[03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26: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 [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]accept exits with 9 [03:44:31]New connection [03:44:31]New thread 3067223396 created [03:44:31]Thread 3067080036 joined [03:44:31]Waiting for new connection... [03:44:31] Sock 9.Parse request [03:44:31]Sock 9.Check first char [03:44:31]Sock 9.First char is OK [03:44:31]request: POST /json_proto HTTP/1.0 [03:44:31]Method: POST [03:44:31]URL: /json_proto [03:44:31]Method is POST - this is cgi request [03:44:31]url: /json_proto [03:44:31]query_string will be loaded in cgi processing [03:44:31]execute_cgi json_proto POST (null) [03:44:31]execute_cgi path=json_proto method=POST [03:44:31]POST find Content-Length [03:44:31]Host: 172.17.46.131:8080 [03:44:31]Content-Length: 677 [03:44:31]Content-Type: application/json [03:44:31] [03:44:31]POST finish read [03:44:31]Found Content-Length = 677 [03:44:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [03:44:31]execute_script... [03:44: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)412672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [03:44:31]POST & json_proto [03:44:31]process_json_proto [03:44:31]json parsed OK: [03:44:31]protocol is kg_v1.0 [03:44:31]action value=close_receipt [03:44:31]process_action close_receipt [03:44:31]cmd_close_receipt [03:44:31]MH_GetDate [03:44:31]Write to MH i2c: F0 00 00 46 11 46 [03:44:31]Write i2c OK [03:44:31]MH_I2C_Read... [03:44:31]Read from MH i2c: F0 [03:44:31]MH_I2C_Read... [03:44:31]Read from MH i2c: F0 09 00 [03:44:31]MH_I2C_Read... [03:44:31]Read from MH i2c: F0 09 00 46 11 00 A1 F6 B7 67 7E 41 4F 65 77 [03:44:31]GetLastDocTimeStamp 1740107414 [03:44:31]current date 1740109473 [03:44:31]FM_GetShiftState [03:44:31]SAM_PROTO_GetShiftState [03:44:31]wFMCommunicate request_size=4 [03:44:31]MH_SAM_APDU [03:44:31]CAPDU: 80 13 01 00 [03:44:31]Write to MH i2c: E2 08 00 47 11 80 13 01 00 00 00 00 00 D5 [03:44:31]Write i2c OK [03:44:31]MH_I2C_Read... [03:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:31]Read from MH i2c: E2 [03:44:31]MH_I2C_Read... [03:44:31]Read from MH i2c: E2 0E 00 [03:44:31]MH_I2C_Read... [03:44:31]Read from MH i2c: E2 0E 00 47 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C3 [03:44:31]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [03:44:31]wFMCommunicate OK [03:44:31]SAM_PROTO_GetShiftState done [03:44:31]FM_GetShiftState done [03:44:31]opened in 1740098043 [03:44:31]opened+sec_in_day 1740184443 [03:44:31]quantity*price = 60036 [03:44:31]sum+1 = 60038 [03:44:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 9 21.02.2025 03:44 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187515 ФПД: 241390022694212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T034433&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187515&fm=241390022694212&tin=02508201610067®Number=0000000000091857&sum=60000 [03:44:32]StoreToDocumentArchive [03:44:32]shift 649 fd 187515 [03:44:32]save to /storage/0649/doc_00187515 [03:44:32]save last doc name /storage/0649/doc_00187515 to /storage/kkm_last_doc_name [03:44:32]save OK [03:44:32]Clear old archive folders... [03:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:44:32]tlvbuf is 02021700 [03:44:32]SAM_PROTO_ClearQueue [03:44:32]wFMCommunicate request_size=4 [03:44:32]MH_SAM_APDU [03:44:32]CAPDU: 80 09 00 00 [03:44:32]Write to MH i2c: E2 08 00 54 11 80 09 00 00 00 00 00 00 D7 [03:44:32]Write i2c OK [03:44:32]MH_I2C_Read... [03:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:44:32]Read from MH i2c: E2 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 03 00 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 03 00 54 11 00 90 00 D9 [03:44:32]RAPDU: 90 00 [03:44:32]wFMCommunicate OK [03:44:32]SAM_PROTO_ClearQueue done [03:44:32]KKMCreateOFDPacket [03:44:32]OFDProtocolAddRootSTLVToBuf [03:44:32]FM_MakeSignedData [03:44:32]FM_MakeSignedData [03:44:32]SAM_PROTO_SignData [03:44:32]wFMCommunicate request_size=4 [03:44:32]MH_SAM_APDU [03:44:32]CAPDU: 80 0D 01 02 [03:44:32]Write to MH i2c: E2 08 00 55 11 80 0D 01 02 00 00 00 00 DF [03:44:32]Write i2c OK [03:44:32]MH_I2C_Read... [03:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:44:32]Read from MH i2c: E2 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 03 00 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 03 00 55 11 00 90 00 DA [03:44:32]RAPDU: 90 00 [03:44:32]wFMCommunicate OK [03:44:32]wFMCommunicate request_size=255 [03:44:32]MH_SAM_APDU [03:44: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 A1 F6 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DC 02 00 35 04 06 00 DB [03:44:32]Write to MH i2c: E2 02 01 56 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 A1 F6 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DC 02 00 35 04 06 00 DB 00 00 77 [03:44:32]Write i2c OK [03:44:32]MH_I2C_Read... [03:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:32]Read from MH i2c: E2 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 03 00 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [03:44:32]RAPDU: 90 00 [03:44:32]wFMCommunicate OK [03:44:32]wFMCommunicate request_size=10 [03:44:32]MH_SAM_APDU [03:44:32]CAPDU: 80 0D 02 02 05 8A FE 8E 15 44 [03:44:32]Write to MH i2c: E2 0D 00 57 11 80 0D 02 02 05 00 8A FE 8E 15 44 00 00 5B [03:44:32]Write i2c OK [03:44:32]MH_I2C_Read... [03:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:32]Read from MH i2c: E2 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 03 00 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [03:44:32]RAPDU: 90 00 [03:44:32]wFMCommunicate OK [03:44:32]wFMCommunicate request_size=4 [03:44:32]MH_SAM_APDU [03:44:32]CAPDU: 80 0D 03 02 [03:44:32]Write to MH i2c: E2 08 00 58 11 80 0D 03 02 00 00 00 00 E4 [03:44:32]Write i2c OK [03:44:32]MH_I2C_Read... [03:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:44:32]Read from MH i2c: E2 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 0B 00 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 0B 00 58 11 00 5F A9 4B AB 51 09 34 A3 90 00 14 [03:44:32]RAPDU: 5F A9 4B AB 51 09 34 A3 90 00 [03:44:32]wFMCommunicate OK [03:44:32]SAM_PROTO_SignData done [03:44:32]FM_MakeSignedData done [03:44:32]CreateOFDProtocolMessage [03:44:32]wFMCommunicate request_size=4 [03:44:32]MH_SAM_APDU [03:44:32]CAPDU: 80 11 00 00 [03:44:32]Write to MH i2c: E2 08 00 59 11 80 11 00 00 00 00 00 00 E4 [03:44:32]Write i2c OK [03:44:32]MH_I2C_Read... [03:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:32]Read from MH i2c: E2 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 17 00 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: E2 17 00 59 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [03:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:44:32]wFMCommunicate OK [03:44:32]CreateOFDProtocolMessage done [03:44:32]OFDSenderStorePacket 187515 [03:44:32]StoreOFDPacket docnum=187515 [03:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DF 90 07 01 1B C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 A1 F6 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DC 02 00 35 04 06 00 DB 8A FE 8E 15 44 5F A9 4B AB 51 09 34 A3 [03:44:32]CheckFolder [03:44:32]dirname=/storage/ofd_packets [03:44:32]CheckFolder done [03:44:32]ProducePacketName [03:44:32]name=ofd_packets/00187515 [03:44:32]NVStorageSaveData ofd_packets/00187515 [03:44:32]File name is /storage/ofd_packets/00187515 [03:44:32]Write 301 bytes [03:44:32]NVStorageSaveData done [03:44:32]OFDSenderStorePacket done [03:44:32]KKMCreateOFDPacket done [03:44:32]NVStorageSaveData kkm_last_timestamp [03:44:32]File name is /storage/kkm_last_timestamp [03:44:32]Write 4 bytes [03:44:32]NVStorageSaveData done [03:44:32]ExternCall_PrintAddStr [03:44:32]wPrintStart [03:44:32]Write to MH i2c: 01 00 00 5A 11 6B [03:44:32]Write i2c OK [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: 01 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: 01 07 00 [03:44:32]MH_I2C_Read... [03:44:32]Read from MH i2c: 01 07 00 5A 11 00 00 00 00 00 FF 0F 80 [03:44:32]RasterBufferAndPrint [03:44:32]line Счет N : (1)412672 [03:44:32]line ИНН: 02508201610067 [03:44:32]line Контрольно-Кассовый Чек [03:44:32]line ПРОДАЖА [03:44:32]line ТРК (МРК, ГНК) : 43 [03:44:32]line Товар: 2710124500 [03:44:32]line Аи-95-К-5 [03:44:32]line 8.350 * 71.90 [03:44:32]line = 600.37 [03:44:32]line НДС 12% НСП 1% [03:44:32]line > о реализуемом товаре [03:44:32]line ОКРУГЛЕНИЕ: -0.37 [03:44:32]line ИТОГО: 600.00 [03:44:32]line Внесено: 600.00 [03:44:32]line СДАЧА: 0.00 [03:44:32]line НСП 1% : 5.31 [03:44:32]line НДС 12% : 63.76 [03:44:32]line Наличными: 600.00 [03:44:32]line Безнал.: 0.00 [03:44:32]line Место: АЗС № 92 "Партнер Нефть" [03:44:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [03:44:32]line СНО: Общий режим [03:44:32]line Чек 9 21.02.2025 03:44 [03:44:32]line Смена: 649 ФФД: 1.0 [03:44:32]line ЗНМ: 0300000118 [03:44:32]line РНМ: 0000000000091857 [03:44:32]line Версия ККМ: 001 [03:44:32]line ФМ: 0000000000871826 [03:44:32]line ФД: 187515 [03:44:32]line ФПД: 241390022694212 [03:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T034433&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187515&fm=241390022694212&tin=02508201610067®Number=0000000000091857&sum=60000 [03:44:33]OFD Sender: Processing packet 187515 [packets to send 49, broken 48] [03:44:33]ProducePacketName [03:44:33]name=ofd_packets/00187515 [03:44:33]OFD Sender: To server: pG, [03:44:33]CommunicateWithHost lk.salyk.kg:30040 [03:44:33]ConnectInit lk.salyk.kg [03:44:33]written 0, free lines is 4095 [03:44:33]Connected sock=10 [03:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DF 90 07 01 1B C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 A1 F6 B7 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DC 02 00 35 04 06 00 DB 8A FE 8E 15 44 5F A9 4B AB 51 09 34 A3 [03:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 85 06 47 00 FD 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DC 02 00 F4 03 04 00 F0 9C B7 67 B6 04 01 00 00 29 23 20 F0 5E 54 36 3C [03:44:33]CommunicateWithHost err = 0 [03:44:33]CheckOFDResponse [03:44:33]1017 (14) - 77093643461234 [03:44:33]1041 (16) - 0000000000871826 [03:44:33]1040 (4) - 187515 [03:44:33]1012 (4) - 20.02.2025 21:21 [03:44:33]1206 (1) - 0 [03:44:33]OFD Sender: Remove packet 187515 [03:44:33]ProducePacketName [03:44:33]name=ofd_packets/00187515 [03:44:33]NVStorageDeleteData [03:44:33]Write to MH i2c: 01 00 00 85 11 96 [03:44:33]Write i2c OK [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: 01 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: 01 07 00 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: 01 07 00 85 11 00 00 00 00 00 E9 0C 92 [03:44:33]RasterBufferAndPrint [03:44:33]line [03:44:33]line [03:44:33]line [03:44:33]line [03:44:33]line [03:44:33]written 0, free lines is 3312 [03:44:33]MH_Cut [03:44:33]Write to MH i2c: D1 01 00 8C 11 01 6F [03:44:33]Write i2c OK [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: D1 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: D1 01 00 [03:44:33]MH_I2C_Read... [03:44:33]Read from MH i2c: D1 01 00 8C 11 00 6E [03:44:33]Write to MH i2c: 01 00 00 8D 11 9E [03:44:33]Write i2c OK [03:44:33]MH_I2C_Read... [03:44:34]OFD Sender: No OFD packet to send [03:44:34]*** Cut start [03:44:34]*** Partial cut [03:44:34]*** CUTSNS_PIN = 1 [03:44:34]*** CUTSNS_PIN = 0 [03:44:34]*** Brake cut motor [03:44:35]Read from MH i2c: 01 [03:44:35]MH_I2C_Read... [03:44:35]*** Stop cut motor [03:44:35]*** Cut end [03:44:35]Read from MH i2c: 01 07 00 [03:44:35]MH_I2C_Read... [03:44:35]Read from MH i2c: 01 07 00 8D 11 00 00 00 00 00 FF 0F B3 [03:44:35]process_action close_receipt done [03:44:35]requested_data is exist [03:44:35]produce_requested_data [03:44:35]requested_item fm.sn is exist - process it [03:44:35]wFMCommunicate request_size=4 [03:44:35]MH_SAM_APDU [03:44:35]CAPDU: 80 11 00 00 [03:44:35]Write to MH i2c: E2 08 00 8E 11 80 11 00 00 00 00 00 00 19 [03:44:35]Write i2c OK [03:44:35]MH_I2C_Read... [03:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:35]Read from MH i2c: E2 [03:44:35]MH_I2C_Read... [03:44:35]Read from MH i2c: E2 17 00 [03:44:35]MH_I2C_Read... [03:44:35]Read from MH i2c: E2 17 00 8E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6C [03:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:44:35]wFMCommunicate OK [03:44:35]requested_item fd.num is exist - process it [03:44:35]SAM_PROTO_GetFieldsCounters [03:44:35]wFMCommunicate request_size=4 [03:44:35]MH_SAM_APDU [03:44:35]CAPDU: 80 13 00 00 [03:44:35]Write to MH i2c: E2 08 00 8F 11 80 13 00 00 00 00 00 00 1C [03:44:35]Write i2c OK [03:44:35]MH_I2C_Read... [03:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:44:35]Read from MH i2c: E2 [03:44:35]MH_I2C_Read... [03:44:35]Read from MH i2c: E2 62 00 [03:44:35]MH_I2C_Read... [03:44:35]Read from MH i2c: E2 62 00 8F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7B DC 02 00 0E 04 04 00 89 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 41 [03:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7B DC 02 00 0E 04 04 00 89 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:44:35]wFMCommunicate OK [03:44:35]SAM_PROTO_GetFieldsCounters done [03:44:35]requested_item shift.num is exist - process it [03:44:35]requested_item shift.opened is exist - process it [03:44:35]req_shift_opened [03:44:35]FM_GetShiftState [03:44:35]SAM_PROTO_GetShiftState [03:44:35]wFMCommunicate request_size=4 [03:44:35]MH_SAM_APDU [03:44:35]CAPDU: 80 13 01 00 [03:44:35]Write to MH i2c: E2 08 00 90 11 80 13 01 00 00 00 00 00 1E [03:44:35]Write i2c OK [03:44:35]MH_I2C_Read... [03:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:35]Read from MH i2c: E2 [03:44:35]MH_I2C_Read... [03:44:35]Read from MH i2c: E2 0E 00 [03:44:35]MH_I2C_Read... [03:44:35]Read from MH i2c: E2 0E 00 90 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0C [03:44:35]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [03:44:35]wFMCommunicate OK [03:44:35]SAM_PROTO_GetShiftState done [03:44:35]FM_GetShiftState done [03:44:35]req_shift_opened done [03:44:35]requested_item shift.open_date is exist - process it [03:44:35]req_shift_open_date [03:44:35]req_shift_open_date done [03:44:35]produce_requested_data done [03:44:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187515,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [03:44:35]process_action_free close_receipt [03:44:35]json_value_free [03:44:35]json_value_free done [03:44:35]process_json_proto returns [03:44:35]Send response to host [03:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187515,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [03:44:35]free response buf [03:44:35]execute_script done [03:44:35]execute_script returns [03:44:35]free content buf [03:44:35]Sock 9.Close socket [03:44:35]Sock 9.Thread stoped [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:54]accept exits with 7 [04:55:54]New connection [04:55:54]New thread 3067080036 created [04:55:54]Thread 3067223396 joined [04:55:54]Waiting for new connection... [04:55:54] Sock 7.Parse request [04:55:54]Sock 7.Check first char [04:55:54]Sock 7.First char is OK [04:55:54]request: POST /json_proto HTTP/1.0 [04:55:54]Method: POST [04:55:54]URL: /json_proto [04:55:54]Method is POST - this is cgi request [04:55:54]url: /json_proto [04:55:54]query_string will be loaded in cgi processing [04:55:54]execute_cgi json_proto POST (null) [04:55:54]execute_cgi path=json_proto method=POST [04:55:54]POST find Content-Length [04:55:54]Host: 172.17.46.131:8080 [04:55:54]Content-Length: 682 [04:55:54]Content-Type: application/json [04:55:54] [04:55:54]POST finish read [04:55:54]Found Content-Length = 682 [04:55:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 18.620, "sum" : 1195.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1195.00, "payments": [ { "type": 0, "sum" : 1195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:55:54]execute_script... [04:55:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 18.620, "sum" : 1195.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1195.00, "payments": [ { "type": 0, "sum" : 1195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:55:54]POST & json_proto [04:55:54]process_json_proto [04:55:54]json parsed OK: [04:55:54]protocol is kg_v1.0 [04:55:54]action value=close_receipt [04:55:54]process_action close_receipt [04:55:54]cmd_close_receipt [04:55:54]MH_GetDate [04:55:54]Write to MH i2c: F0 00 00 91 11 91 [04:55:54]Write i2c OK [04:55:54]MH_I2C_Read... [04:55:54]Read from MH i2c: F0 [04:55:54]MH_I2C_Read... [04:55:54]Read from MH i2c: F0 09 00 [04:55:54]MH_I2C_Read... [04:55:54]Read from MH i2c: F0 09 00 91 11 00 5D 07 B8 67 7E 41 4F 65 90 [04:55:54]GetLastDocTimeStamp 1740109473 [04:55:54]current date 1740113757 [04:55:54]FM_GetShiftState [04:55:54]SAM_PROTO_GetShiftState [04:55:54]wFMCommunicate request_size=4 [04:55:54]MH_SAM_APDU [04:55:54]CAPDU: 80 13 01 00 [04:55:54]Write to MH i2c: E2 08 00 92 11 80 13 01 00 00 00 00 00 20 [04:55:54]Write i2c OK [04:55:54]MH_I2C_Read... [04:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:55:54]Read from MH i2c: E2 [04:55:54]MH_I2C_Read... [04:55:54]Read from MH i2c: E2 0E 00 [04:55:54]MH_I2C_Read... [04:55:54]Read from MH i2c: E2 0E 00 92 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0E [04:55:54]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [04:55:54]wFMCommunicate OK [04:55:54]SAM_PROTO_GetShiftState done [04:55:54]FM_GetShiftState done [04:55:54]opened in 1740098043 [04:55:54]opened+sec_in_day 1740184443 [04:55:54]quantity*price = 119540 [04:55:54]sum+1 = 119541 [04:55:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1195.00 Внесено: 1500.00 СДАЧА: 305.00 НСП 1% : 10.58 НДС 12% : 126.94 Наличными: 1195.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 10 21.02.2025 04:55 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187516 ФПД: 109756256732576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T045557&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187516&fm=109756256732576&tin=02508201610067®Number=0000000000091857&sum=119500 [04:55:56]StoreToDocumentArchive [04:55:56]shift 649 fd 187516 [04:55:56]save to /storage/0649/doc_00187516 [04:55:56]save last doc name /storage/0649/doc_00187516 to /storage/kkm_last_doc_name [04:55:56]save OK [04:55:56]Clear old archive folders... [04:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:55:56]tlvbuf is B6EEA5B0 [04:55:56]SAM_PROTO_ClearQueue [04:55:56]wFMCommunicate request_size=4 [04:55:56]MH_SAM_APDU [04:55:56]CAPDU: 80 09 00 00 [04:55:56]Write to MH i2c: E2 08 00 9F 11 80 09 00 00 00 00 00 00 22 [04:55:56]Write i2c OK [04:55:56]MH_I2C_Read... [04:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:55:56]Read from MH i2c: E2 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 03 00 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 03 00 9F 11 00 90 00 24 [04:55:56]RAPDU: 90 00 [04:55:56]wFMCommunicate OK [04:55:56]SAM_PROTO_ClearQueue done [04:55:56]KKMCreateOFDPacket [04:55:56]OFDProtocolAddRootSTLVToBuf [04:55:56]FM_MakeSignedData [04:55:56]FM_MakeSignedData [04:55:56]SAM_PROTO_SignData [04:55:56]wFMCommunicate request_size=4 [04:55:56]MH_SAM_APDU [04:55:56]CAPDU: 80 0D 01 02 [04:55:56]Write to MH i2c: E2 08 00 A0 11 80 0D 01 02 00 00 00 00 2A [04:55:56]Write i2c OK [04:55:56]MH_I2C_Read... [04:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:55:56]Read from MH i2c: E2 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 03 00 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 03 00 A0 11 00 90 00 25 [04:55:56]RAPDU: 90 00 [04:55:56]wFMCommunicate OK [04:55:56]wFMCommunicate request_size=255 [04:55:56]MH_SAM_APDU [04:55:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BC 48 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F4 D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5D 07 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DC 02 00 35 04 06 00 63 [04:55:56]Write to MH i2c: E2 02 01 A1 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BC 48 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F4 D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5D 07 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DC 02 00 35 04 06 00 63 00 00 2E [04:55:56]Write i2c OK [04:55:56]MH_I2C_Read... [04:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:55:56]Read from MH i2c: E2 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 03 00 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 03 00 A1 11 00 90 00 26 [04:55:56]RAPDU: 90 00 [04:55:56]wFMCommunicate OK [04:55:56]wFMCommunicate request_size=10 [04:55:56]MH_SAM_APDU [04:55:56]CAPDU: 80 0D 02 02 05 D2 9E B1 C5 A0 [04:55:56]Write to MH i2c: E2 0D 00 A2 11 80 0D 02 02 05 00 D2 9E B1 C5 A0 00 00 BD [04:55:56]Write i2c OK [04:55:56]MH_I2C_Read... [04:55:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:55:56]Read from MH i2c: E2 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 03 00 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 03 00 A2 11 00 90 00 27 [04:55:56]RAPDU: 90 00 [04:55:56]wFMCommunicate OK [04:55:56]wFMCommunicate request_size=4 [04:55:56]MH_SAM_APDU [04:55:56]CAPDU: 80 0D 03 02 [04:55:56]Write to MH i2c: E2 08 00 A3 11 80 0D 03 02 00 00 00 00 2F [04:55:56]Write i2c OK [04:55:56]MH_I2C_Read... [04:55:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:55:56]Read from MH i2c: E2 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 0B 00 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 0B 00 A3 11 00 EE E1 28 7C 13 69 6E 4A 90 00 D7 [04:55:56]RAPDU: EE E1 28 7C 13 69 6E 4A 90 00 [04:55:56]wFMCommunicate OK [04:55:56]SAM_PROTO_SignData done [04:55:56]FM_MakeSignedData done [04:55:56]CreateOFDProtocolMessage [04:55:56]wFMCommunicate request_size=4 [04:55:56]MH_SAM_APDU [04:55:56]CAPDU: 80 11 00 00 [04:55:56]Write to MH i2c: E2 08 00 A4 11 80 11 00 00 00 00 00 00 2F [04:55:56]Write i2c OK [04:55:56]MH_I2C_Read... [04:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:56]Read from MH i2c: E2 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 17 00 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: E2 17 00 A4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [04:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:55:56]wFMCommunicate OK [04:55:56]CreateOFDProtocolMessage done [04:55:56]OFDSenderStorePacket 187516 [04:55:56]StoreOFDPacket docnum=187516 [04:55:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5A 9E 07 01 5D D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BC 48 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F4 D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5D 07 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DC 02 00 35 04 06 00 63 D2 9E B1 C5 A0 EE E1 28 7C 13 69 6E 4A [04:55:56]CheckFolder [04:55:56]dirname=/storage/ofd_packets [04:55:56]CheckFolder done [04:55:56]ProducePacketName [04:55:56]name=ofd_packets/00187516 [04:55:56]NVStorageSaveData ofd_packets/00187516 [04:55:56]File name is /storage/ofd_packets/00187516 [04:55:56]Write 301 bytes [04:55:56]NVStorageSaveData done [04:55:56]OFDSenderStorePacket done [04:55:56]KKMCreateOFDPacket done [04:55:56]NVStorageSaveData kkm_last_timestamp [04:55:56]File name is /storage/kkm_last_timestamp [04:55:56]Write 4 bytes [04:55:56]NVStorageSaveData done [04:55:56]ExternCall_PrintAddStr [04:55:56]wPrintStart [04:55:56]Write to MH i2c: 01 00 00 A5 11 B6 [04:55:56]Write i2c OK [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: 01 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: 01 07 00 [04:55:56]MH_I2C_Read... [04:55:56]Read from MH i2c: 01 07 00 A5 11 00 00 00 00 00 FF 0F CB [04:55:56]RasterBufferAndPrint [04:55:56]line Счет N : (1)412673 [04:55:56]line ИНН: 02508201610067 [04:55:56]line Контрольно-Кассовый Чек [04:55:56]line ПРОДАЖА [04:55:56]line ТРК (МРК, ГНК) : 32 [04:55:56]line Товар: 2710124130 [04:55:56]line Аи-92-К-2 [04:55:56]line 18.620 * 64.20 [04:55:56]line = 1195.40 [04:55:56]line НДС 12% НСП 1% [04:55:56]line > о реализуемом товаре [04:55:56]line ОКРУГЛЕНИЕ: -0.40 [04:55:56]line ИТОГО: 1195.00 [04:55:56]line Внесено: 1500.00 [04:55:56]line СДАЧА: 305.00 [04:55:56]line НСП 1% : 10.58 [04:55:56]line НДС 12% : 126.94 [04:55:56]line Наличными: 1195.00 [04:55:56]line Безнал.: 0.00 [04:55:56]line Место: АЗС № 92 "Партнер Нефть" [04:55:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [04:55:56]line СНО: Общий режим [04:55:56]line Чек 10 21.02.2025 04:55 [04:55:56]line Смена: 649 ФФД: 1.0 [04:55:56]line ЗНМ: 0300000118 [04:55:56]line РНМ: 0000000000091857 [04:55:56]line Версия ККМ: 001 [04:55:56]line ФМ: 0000000000871826 [04:55:56]line ФД: 187516 [04:55:56]line ФПД: 109756256732576 [04:55:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T045557&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187516&fm=109756256732576&tin=02508201610067®Number=0000000000091857&sum=119500 [04:55:56]OFD Sender: Processing packet 187516 [packets to send 49, broken 48] [04:55:56]ProducePacketName [04:55:56]name=ofd_packets/00187516 [04:55:56]OFD Sender: To server: pG, [04:55:56]CommunicateWithHost lk.salyk.kg:30040 [04:55:56]ConnectInit lk.salyk.kg [04:55:56]written 0, free lines is 4095 [04:55:57]Connected sock=9 [04:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5A 9E 07 01 5D D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 BC 48 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F4 D2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC D2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 31 00 00 00 00 07 04 06 00 CC D2 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 5D 07 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DC 02 00 35 04 06 00 63 D2 9E B1 C5 A0 EE E1 28 7C 13 69 6E 4A [04:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FA FD 47 00 FE 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DC 02 00 F4 03 04 00 AC AD B7 67 B6 04 01 00 00 E3 CF 48 BA 9B 91 A0 40 [04:55:57]CommunicateWithHost err = 0 [04:55:57]CheckOFDResponse [04:55:57]1017 (14) - 77093643461234 [04:55:57]1041 (16) - 0000000000871826 [04:55:57]1040 (4) - 187516 [04:55:57]1012 (4) - 20.02.2025 22:33 [04:55:57]1206 (1) - 0 [04:55:57]OFD Sender: Remove packet 187516 [04:55:57]ProducePacketName [04:55:57]name=ofd_packets/00187516 [04:55:57]NVStorageDeleteData [04:55:57]Write to MH i2c: 01 00 00 D0 11 E1 [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: 01 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: 01 07 00 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: 01 07 00 D0 11 00 00 00 00 00 04 0D F9 [04:55:57]RasterBufferAndPrint [04:55:57]line [04:55:57]line [04:55:57]line [04:55:57]line [04:55:57]line [04:55:57]written 0, free lines is 3339 [04:55:57]MH_Cut [04:55:57]Write to MH i2c: D1 01 00 D7 11 01 BA [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: D1 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: D1 01 00 [04:55:57]MH_I2C_Read... [04:55:57]Read from MH i2c: D1 01 00 D7 11 00 B9 [04:55:57]Write to MH i2c: 01 00 00 D8 11 E9 [04:55:57]Write i2c OK [04:55:57]MH_I2C_Read... [04:55:57]OFD Sender: No OFD packet to send [04:55:58]*** Cut start [04:55:58]*** Partial cut [04:55:58]*** CUTSNS_PIN = 1 [04:55:58]*** CUTSNS_PIN = 0 [04:55:58]*** Brake cut motor [04:55:58]Read from MH i2c: 01 [04:55:58]MH_I2C_Read... [04:55:58]*** Stop cut motor [04:55:58]*** Cut end [04:55:58]Read from MH i2c: 01 07 00 [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: 01 07 00 D8 11 00 00 00 00 00 FF 0F FE [04:55:58]process_action close_receipt done [04:55:58]requested_data is exist [04:55:58]produce_requested_data [04:55:58]requested_item fm.sn is exist - process it [04:55:58]wFMCommunicate request_size=4 [04:55:58]MH_SAM_APDU [04:55:58]CAPDU: 80 11 00 00 [04:55:58]Write to MH i2c: E2 08 00 D9 11 80 11 00 00 00 00 00 00 64 [04:55:58]Write i2c OK [04:55:58]MH_I2C_Read... [04:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:55:58]Read from MH i2c: E2 [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: E2 17 00 [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: E2 17 00 D9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B7 [04:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [04:55:58]wFMCommunicate OK [04:55:58]requested_item fd.num is exist - process it [04:55:58]SAM_PROTO_GetFieldsCounters [04:55:58]wFMCommunicate request_size=4 [04:55:58]MH_SAM_APDU [04:55:58]CAPDU: 80 13 00 00 [04:55:58]Write to MH i2c: E2 08 00 DA 11 80 13 00 00 00 00 00 00 67 [04:55:58]Write i2c OK [04:55:58]MH_I2C_Read... [04:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:55:58]Read from MH i2c: E2 [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: E2 62 00 [04:55:58]MH_I2C_Read... [04:55:58]Read from MH i2c: E2 62 00 DA 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7C DC 02 00 0E 04 04 00 89 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 90 [04:55:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7C DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:55:58]wFMCommunicate OK [04:55:58]SAM_PROTO_GetFieldsCounters done [04:55:58]requested_item shift.num is exist - process it [04:55:58]requested_item shift.opened is exist - process it [04:55:58]req_shift_opened [04:55:58]FM_GetShiftState [04:55:58]SAM_PROTO_GetShiftState [04:55:58]wFMCommunicate request_size=4 [04:55:58]MH_SAM_APDU [04:55:58]CAPDU: 80 13 01 00 [04:55:58]Write to MH i2c: E2 08 00 DB 11 80 13 01 00 00 00 00 00 69 [04:55:58]Write i2c OK [04:55:58]MH_I2C_Read... [04:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:55:59]Read from MH i2c: E2 [04:55:59]MH_I2C_Read... [04:55:59]Read from MH i2c: E2 0E 00 [04:55:59]MH_I2C_Read... [04:55:59]Read from MH i2c: E2 0E 00 DB 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 57 [04:55:59]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [04:55:59]wFMCommunicate OK [04:55:59]SAM_PROTO_GetShiftState done [04:55:59]FM_GetShiftState done [04:55:59]req_shift_opened done [04:55:59]requested_item shift.open_date is exist - process it [04:55:59]req_shift_open_date [04:55:59]req_shift_open_date done [04:55:59]produce_requested_data done [04:55:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187516,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [04:55:59]process_action_free close_receipt [04:55:59]json_value_free [04:55:59]json_value_free done [04:55:59]process_json_proto returns [04:55:59]Send response to host [04:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187516,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [04:55:59]free response buf [04:55:59]execute_script done [04:55:59]execute_script returns [04:55:59]free content buf [04:55:59]Sock 7.Close socket [04:55:59]Sock 7.Thread stoped [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:06]accept exits with 10 [05:04:06]New connection [05:04:06]New thread 3067223396 created [05:04:06]Thread 3067080036 joined [05:04:06]Waiting for new connection... [05:04:06] Sock 10.Parse request [05:04:06]Sock 10.Check first char [05:04:06]Sock 10.First char is OK [05:04:06]request: POST /json_proto HTTP/1.0 [05:04:06]Method: POST [05:04:06]URL: /json_proto [05:04:06]Method is POST - this is cgi request [05:04:06]url: /json_proto [05:04:06]query_string will be loaded in cgi processing [05:04:06]execute_cgi json_proto POST (null) [05:04:06]execute_cgi path=json_proto method=POST [05:04:06]POST find Content-Length [05:04:06]Host: 172.17.46.131:8080 [05:04:06]Content-Length: 803 [05:04:06]Content-Type: application/json [05:04:06] [05:04:06]POST finish read [05:04:06]Found Content-Length = 803 [05:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:06]execute_script... [05: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)412674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:06]POST & json_proto [05:04:06]process_json_proto [05:04:06]json parsed OK: [05:04:06]protocol is kg_v1.0 [05:04:06]action value=close_receipt [05:04:06]process_action close_receipt [05:04:06]cmd_close_receipt [05:04:06]MH_GetDate [05:04:06]Write to MH i2c: F0 00 00 DC 11 DC [05:04:06]Write i2c OK [05:04:06]MH_I2C_Read... [05:04:06]Read from MH i2c: F0 [05:04:06]MH_I2C_Read... [05:04:06]Read from MH i2c: F0 09 00 [05:04:06]MH_I2C_Read... [05:04:06]Read from MH i2c: F0 09 00 DC 11 00 48 09 B8 67 7E 41 4F 65 C8 [05:04:06]GetLastDocTimeStamp 1740113757 [05:04:06]current date 1740114248 [05:04:06]FM_GetShiftState [05:04:06]SAM_PROTO_GetShiftState [05:04:06]wFMCommunicate request_size=4 [05:04:06]MH_SAM_APDU [05:04:06]CAPDU: 80 13 01 00 [05:04:06]Write to MH i2c: E2 08 00 DD 11 80 13 01 00 00 00 00 00 6B [05:04:06]Write i2c OK [05:04:06]MH_I2C_Read... [05:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:06]Read from MH i2c: E2 [05:04:06]MH_I2C_Read... [05:04:06]Read from MH i2c: E2 0E 00 [05:04:06]MH_I2C_Read... [05:04:06]Read from MH i2c: E2 0E 00 DD 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 59 [05:04:06]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [05:04:06]wFMCommunicate OK [05:04:06]SAM_PROTO_GetShiftState done [05:04:06]FM_GetShiftState done [05:04:06]opened in 1740098043 [05:04:06]opened+sec_in_day 1740184443 [05:04:06]quantity*price = 100023 [05:04:06]sum+1 = 100025 [05:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 11 21.02.2025 05:04 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187517 ФПД: 114796777102659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T050408&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187517&fm=114796777102659&tin=02508201610067®Number=0000000000091857&sum=100024 [05:04:07]StoreToDocumentArchive [05:04:07]shift 649 fd 187517 [05:04:07]save to /storage/0649/doc_00187517 [05:04:07]save last doc name /storage/0649/doc_00187517 to /storage/kkm_last_doc_name [05:04:07]save OK [05:04:07]Clear old archive folders... [05:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:04:07]tlvbuf is 0206E1D0 [05:04:07]SAM_PROTO_ClearQueue [05:04:07]wFMCommunicate request_size=4 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 09 00 00 [05:04:07]Write to MH i2c: E2 08 00 EA 11 80 09 00 00 00 00 00 00 6D [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 03 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 03 00 EA 11 00 90 00 6F [05:04:07]RAPDU: 90 00 [05:04:07]wFMCommunicate OK [05:04:07]SAM_PROTO_ClearQueue done [05:04:07]KKMCreateOFDPacket [05:04:07]OFDProtocolAddRootSTLVToBuf [05:04:07]FM_MakeSignedData [05:04:07]FM_MakeSignedData [05:04:07]SAM_PROTO_SignData [05:04:07]wFMCommunicate request_size=4 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 0D 01 02 [05:04:07]Write to MH i2c: E2 08 00 EB 11 80 0D 01 02 00 00 00 00 75 [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 03 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 03 00 EB 11 00 90 00 70 [05:04:07]RAPDU: 90 00 [05:04:07]wFMCommunicate OK [05:04:07]wFMCommunicate request_size=255 [05:04:07]MH_SAM_APDU [05: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 48 09 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D DC 02 00 35 04 06 00 68 [05:04:07]Write to MH i2c: E2 02 01 EC 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 48 09 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D DC 02 00 35 04 06 00 68 00 00 6B [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 03 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 03 00 EC 11 00 90 00 71 [05:04:07]RAPDU: 90 00 [05:04:07]wFMCommunicate OK [05:04:07]wFMCommunicate request_size=10 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 0D 02 02 05 68 35 1E DD 43 [05:04:07]Write to MH i2c: E2 0D 00 ED 11 80 0D 02 02 05 00 68 35 1E DD 43 00 00 5D [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 03 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [05:04:07]RAPDU: 90 00 [05:04:07]wFMCommunicate OK [05:04:07]wFMCommunicate request_size=4 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 0D 03 02 [05:04:07]Write to MH i2c: E2 08 00 EE 11 80 0D 03 02 00 00 00 00 7A [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 0B 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 0B 00 EE 11 00 15 AC 5F 67 5A BE 53 BD 90 00 2A [05:04:07]RAPDU: 15 AC 5F 67 5A BE 53 BD 90 00 [05:04:07]wFMCommunicate OK [05:04:07]SAM_PROTO_SignData done [05:04:07]FM_MakeSignedData done [05:04:07]CreateOFDProtocolMessage [05:04:07]wFMCommunicate request_size=4 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 11 00 00 [05:04:07]Write to MH i2c: E2 08 00 EF 11 80 11 00 00 00 00 00 00 7A [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 17 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 17 00 EF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [05:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:04:07]wFMCommunicate OK [05:04:07]CreateOFDProtocolMessage done [05:04:07]OFDSenderStorePacket 187517 [05:04:07]StoreOFDPacket docnum=187517 [05:04:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 35 A2 07 01 D0 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 48 09 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D DC 02 00 35 04 06 00 68 68 35 1E DD 43 15 AC 5F 67 5A BE 53 BD [05:04:07]CheckFolder [05:04:07]dirname=/storage/ofd_packets [05:04:07]CheckFolder done [05:04:07]ProducePacketName [05:04:07]name=ofd_packets/00187517 [05:04:07]NVStorageSaveData ofd_packets/00187517 [05:04:07]File name is /storage/ofd_packets/00187517 [05:04:07]Write 301 bytes [05:04:07]NVStorageSaveData done [05:04:07]OFDSenderStorePacket done [05:04:07]KKMCreateOFDPacket done [05:04:07]NVStorageSaveData kkm_last_timestamp [05:04:07]File name is /storage/kkm_last_timestamp [05:04:07]Write 4 bytes [05:04:07]NVStorageSaveData done [05:04:07]ExternCall_PrintAddStr [05:04:07]wPrintStart [05:04:07]Write to MH i2c: 01 00 00 F0 11 01 [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: 01 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: 01 07 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: 01 07 00 F0 11 00 00 00 00 00 FF 0F 16 [05:04:07]RasterBufferAndPrint [05:04:07]line Счет N : (1)412674 [05:04:07]line ИНН: 02508201610067 [05:04:07]line Контрольно-Кассовый Чек [05:04:07]line ПРОДАЖА [05:04:07]line ТРК (МРК, ГНК) : 42 [05:04:07]line Товар: 2710124130 [05:04:07]line Аи-92-К-2 [05:04:07]line 15.580 * 64.20 [05:04:07]line = 1000.24 [05:04:07]line НДС 12% НСП 1% [05:04:07]line > о реализуемом товаре [05:04:07]line ИТОГО: 1000.24 [05:04:07]line НСП 1% : 8.85 [05:04:07]line НДС 12% : 106.22 [05:04:07]line Наличными: 0.00 [05:04:07]line Безнал.: 1000.24 [05:04:07]line Место: АЗС № 92 "Партнер Нефть" [05:04:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:04:07]line СНО: Общий режим [05:04:07]line Чек 11 21.02.2025 05:04 [05:04:07]line Смена: 649 ФФД: 1.0 [05:04:07]line ЗНМ: 0300000118 [05:04:07]line РНМ: 0000000000091857 [05:04:07]line Версия ККМ: 001 [05:04:07]line Платежная система: O! деньги [05:04:07]line ФМ: 0000000000871826 [05:04:07]line ФД: 187517 [05:04:07]line ФПД: 114796777102659 [05:04:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T050408&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187517&fm=114796777102659&tin=02508201610067®Number=0000000000091857&sum=100024 [05:04:08]written 0, free lines is 4095 [05:04:08]OFD Sender: Processing packet 187517 [packets to send 49, broken 48] [05:04:08]ProducePacketName [05:04:08]name=ofd_packets/00187517 [05:04:08]OFD Sender: To server: pG, [05:04:08]CommunicateWithHost lk.salyk.kg:30040 [05:04:08]ConnectInit lk.salyk.kg [05:04:08]Connected sock=9 [05: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 38 32 36 0F 01 00 00 35 A2 07 01 D0 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 48 09 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D DC 02 00 35 04 06 00 68 68 35 1E DD 43 15 AC 5F 67 5A BE 53 BD [05: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 38 32 36 4F 00 00 00 C1 7B 47 00 F1 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D DC 02 00 F4 03 04 00 97 AF B7 67 B6 04 01 00 00 A1 CC CA 27 AA 1C 18 14 [05:04:08]CommunicateWithHost err = 0 [05:04:08]CheckOFDResponse [05:04:08]1017 (14) - 77093643461234 [05:04:08]1041 (16) - 0000000000871826 [05:04:08]1040 (4) - 187517 [05:04:08]1012 (4) - 20.02.2025 22:41 [05:04:08]1206 (1) - 0 [05:04:08]OFD Sender: Remove packet 187517 [05:04:08]ProducePacketName [05:04:08]name=ofd_packets/00187517 [05:04:08]NVStorageDeleteData [05:04:08]Write to MH i2c: 01 00 00 1A 12 2C [05:04:08]Write i2c OK [05:04:08]MH_I2C_Read... [05:04:08]Read from MH i2c: 01 [05:04:08]MH_I2C_Read... [05:04:08]Read from MH i2c: 01 07 00 [05:04:08]MH_I2C_Read... [05:04:08]Read from MH i2c: 01 07 00 1A 12 00 00 00 00 00 00 0D 40 [05:04:08]RasterBufferAndPrint [05:04:08]line [05:04:08]line [05:04:08]line [05:04:08]line [05:04:08]line [05:04:08]written 0, free lines is 3336 [05:04:08]MH_Cut [05:04:08]Write to MH i2c: D1 01 00 21 12 01 05 [05:04:08]Write i2c OK [05:04:08]MH_I2C_Read... [05:04:08]Read from MH i2c: D1 [05:04:08]MH_I2C_Read... [05:04:08]Read from MH i2c: D1 01 00 [05:04:08]MH_I2C_Read... [05:04:08]Read from MH i2c: D1 01 00 21 12 00 04 [05:04:08]Write to MH i2c: 01 00 00 22 12 34 [05:04:08]Write i2c OK [05:04:08]MH_I2C_Read... [05:04:08]OFD Sender: No OFD packet to send [05:04:09]*** Cut start [05:04:09]*** Partial cut [05:04:09]*** CUTSNS_PIN = 1 [05:04:09]*** CUTSNS_PIN = 0 [05:04:09]*** Brake cut motor [05:04:09]Read from MH i2c: 01 [05:04:09]MH_I2C_Read... [05:04:09]*** Stop cut motor [05:04:09]*** Cut end [05:04:09]Read from MH i2c: 01 07 00 [05:04:09]MH_I2C_Read... [05:04:09]Read from MH i2c: 01 07 00 22 12 00 00 00 00 00 FF 0F 49 [05:04:09]process_action close_receipt done [05:04:09]requested_data is exist [05:04:09]produce_requested_data [05:04:09]requested_item fm.sn is exist - process it [05:04:09]wFMCommunicate request_size=4 [05:04:09]MH_SAM_APDU [05:04:09]CAPDU: 80 11 00 00 [05:04:09]Write to MH i2c: E2 08 00 23 12 80 11 00 00 00 00 00 00 AF [05:04:09]Write i2c OK [05:04:09]MH_I2C_Read... [05:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:09]Read from MH i2c: E2 [05:04:09]MH_I2C_Read... [05:04:09]Read from MH i2c: E2 17 00 [05:04:09]MH_I2C_Read... [05:04:09]Read from MH i2c: E2 17 00 23 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 02 [05:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:04:09]wFMCommunicate OK [05:04:09]requested_item fd.num is exist - process it [05:04:09]SAM_PROTO_GetFieldsCounters [05:04:09]wFMCommunicate request_size=4 [05:04:09]MH_SAM_APDU [05:04:09]CAPDU: 80 13 00 00 [05:04:09]Write to MH i2c: E2 08 00 24 12 80 13 00 00 00 00 00 00 B2 [05:04:09]Write i2c OK [05:04:09]MH_I2C_Read... [05:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:04:10]Read from MH i2c: E2 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 62 00 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 62 00 24 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7D DC 02 00 0E 04 04 00 89 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 DF [05: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7D DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:04:10]wFMCommunicate OK [05:04:10]SAM_PROTO_GetFieldsCounters done [05:04:10]requested_item shift.num is exist - process it [05:04:10]requested_item shift.opened is exist - process it [05:04:10]req_shift_opened [05:04:10]FM_GetShiftState [05:04:10]SAM_PROTO_GetShiftState [05:04:10]wFMCommunicate request_size=4 [05:04:10]MH_SAM_APDU [05:04:10]CAPDU: 80 13 01 00 [05:04:10]Write to MH i2c: E2 08 00 25 12 80 13 01 00 00 00 00 00 B4 [05:04:10]Write i2c OK [05:04:10]MH_I2C_Read... [05:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:10]Read from MH i2c: E2 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 0E 00 [05:04:10]MH_I2C_Read... [05:04:10]Read from MH i2c: E2 0E 00 25 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A2 [05:04:10]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [05:04:10]wFMCommunicate OK [05:04:10]SAM_PROTO_GetShiftState done [05:04:10]FM_GetShiftState done [05:04:10]req_shift_opened done [05:04:10]requested_item shift.open_date is exist - process it [05:04:10]req_shift_open_date [05:04:10]req_shift_open_date done [05:04:10]produce_requested_data done [05:04:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187517,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [05:04:10]process_action_free close_receipt [05:04:10]json_value_free [05:04:10]json_value_free done [05:04:10]process_json_proto returns [05:04:10]Send response to host [05:04:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187517,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [05:04:10]free response buf [05:04:10]execute_script done [05:04:10]execute_script returns [05:04:10]free content buf [05:04:10]Sock 10.Close socket [05:04:10]Sock 10.Thread stoped [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:19]OFD Sender: No OFD packet to send [05:14:24]OFD Sender: No OFD packet to send [05:14:29]OFD Sender: No OFD packet to send [05:14:34]OFD Sender: No OFD packet to send [05:14:39]OFD Sender: No OFD packet to send [05:14:44]OFD Sender: No OFD packet to send [05:14:49]OFD Sender: No OFD packet to send [05:14:54]OFD Sender: No OFD packet to send [05:14:59]OFD Sender: No OFD packet to send [05:15:04]OFD Sender: No OFD packet to send [05:15:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:00]OFD Sender: No OFD packet to send [05:24:05]OFD Sender: No OFD packet to send [05:24:10]OFD Sender: No OFD packet to send [05:24:15]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:04]accept exits with 7 [05:50:04]New connection [05:50:04]New thread 3067080036 created [05:50:04]Thread 3067223396 joined [05:50:04]Waiting for new connection... [05:50:04] Sock 7.Parse request [05:50:04]Sock 7.Check first char [05:50:04]Sock 7.First char is OK [05:50:04]request: POST /json_proto HTTP/1.0 [05:50:04]Method: POST [05:50:04]URL: /json_proto [05:50:04]Method is POST - this is cgi request [05:50:04]url: /json_proto [05:50:04]query_string will be loaded in cgi processing [05:50:04]execute_cgi json_proto POST (null) [05:50:04]execute_cgi path=json_proto method=POST [05:50:04]POST find Content-Length [05:50:04]Host: 172.17.46.131:8080 [05:50:04]Content-Length: 673 [05:50:04]Content-Type: application/json [05:50:04] [05:50:04]POST finish read [05:50:04]Found Content-Length = 673 [05:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.680, "sum" : 630.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:04]execute_script... [05:50: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)412675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.680, "sum" : 630.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:04]POST & json_proto [05:50:04]process_json_proto [05:50:04]json parsed OK: [05:50:04]protocol is kg_v1.0 [05:50:04]action value=close_receipt [05:50:04]process_action close_receipt [05:50:04]cmd_close_receipt [05:50:04]MH_GetDate [05:50:04]Write to MH i2c: F0 00 00 26 12 27 [05:50:04]Write i2c OK [05:50:04]MH_I2C_Read... [05:50:04]Read from MH i2c: F0 [05:50:04]MH_I2C_Read... [05:50:04]Read from MH i2c: F0 09 00 [05:50:04]MH_I2C_Read... [05:50:04]Read from MH i2c: F0 09 00 26 12 00 0F 14 B8 67 7E 41 4F 65 E5 [05:50:04]GetLastDocTimeStamp 1740114248 [05:50:04]current date 1740117007 [05:50:04]FM_GetShiftState [05:50:04]SAM_PROTO_GetShiftState [05:50:04]wFMCommunicate request_size=4 [05:50:04]MH_SAM_APDU [05:50:04]CAPDU: 80 13 01 00 [05:50:04]Write to MH i2c: E2 08 00 27 12 80 13 01 00 00 00 00 00 B6 [05:50:04]Write i2c OK [05:50:04]MH_I2C_Read... [05:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:04]Read from MH i2c: E2 [05:50:04]MH_I2C_Read... [05:50:04]Read from MH i2c: E2 0E 00 [05:50:04]MH_I2C_Read... [05:50:04]Read from MH i2c: E2 0E 00 27 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A4 [05:50:04]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [05:50:04]wFMCommunicate OK [05:50:04]SAM_PROTO_GetShiftState done [05:50:04]FM_GetShiftState done [05:50:04]opened in 1740098043 [05:50:04]opened+sec_in_day 1740184443 [05:50:04]quantity*price = 63016 [05:50:04]sum+1 = 63018 [05:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.92 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 12 21.02.2025 05:50 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187518 ФПД: 86687805274149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T055007&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187518&fm=86687805274149&tin=02508201610067®Number=0000000000091857&sum=63000 [05:50:05]StoreToDocumentArchive [05:50:05]shift 649 fd 187518 [05:50:05]save to /storage/0649/doc_00187518 [05:50:05]save last doc name /storage/0649/doc_00187518 to /storage/kkm_last_doc_name [05:50:05]save OK [05:50:05]Clear old archive folders... [05:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:50:05]tlvbuf is B6F033A0 [05:50:05]SAM_PROTO_ClearQueue [05:50:05]wFMCommunicate request_size=4 [05:50:05]MH_SAM_APDU [05:50:05]CAPDU: 80 09 00 00 [05:50:05]Write to MH i2c: E2 08 00 34 12 80 09 00 00 00 00 00 00 B8 [05:50:05]Write i2c OK [05:50:05]MH_I2C_Read... [05:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:50:05]Read from MH i2c: E2 [05:50:05]MH_I2C_Read... [05:50:05]Read from MH i2c: E2 03 00 [05:50:05]MH_I2C_Read... [05:50:05]Read from MH i2c: E2 03 00 34 12 00 90 00 BA [05:50:05]RAPDU: 90 00 [05:50:05]wFMCommunicate OK [05:50:05]SAM_PROTO_ClearQueue done [05:50:05]KKMCreateOFDPacket [05:50:05]OFDProtocolAddRootSTLVToBuf [05:50:05]FM_MakeSignedData [05:50:05]FM_MakeSignedData [05:50:05]SAM_PROTO_SignData [05:50:05]wFMCommunicate request_size=4 [05:50:05]MH_SAM_APDU [05:50:05]CAPDU: 80 0D 01 02 [05:50:05]Write to MH i2c: E2 08 00 35 12 80 0D 01 02 00 00 00 00 C0 [05:50:05]Write i2c OK [05:50:05]MH_I2C_Read... [05:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:50:05]Read from MH i2c: E2 [05:50:05]MH_I2C_Read... [05:50:05]Read from MH i2c: E2 03 00 [05:50:05]MH_I2C_Read... [05:50:05]Read from MH i2c: E2 03 00 35 12 00 90 00 BB [05:50:05]RAPDU: 90 00 [05:50:05]wFMCommunicate OK [05:50:05]wFMCommunicate request_size=255 [05:50:05]MH_SAM_APDU [05:50:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 21 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 29 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0F 14 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DC 02 00 35 04 06 00 4E D7 93 D6 [05:50:05]Write to MH i2c: E2 02 01 36 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 21 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 29 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0F 14 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DC 02 00 35 04 06 00 4E D7 93 D6 00 00 0F [05:50:05]Write i2c OK [05:50:05]MH_I2C_Read... [05:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:06]Read from MH i2c: E2 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: E2 03 00 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: E2 03 00 36 12 00 90 00 BC [05:50:06]RAPDU: 90 00 [05:50:06]wFMCommunicate OK [05:50:06]wFMCommunicate request_size=7 [05:50:06]MH_SAM_APDU [05:50:06]CAPDU: 80 0D 02 02 02 F8 25 [05:50:06]Write to MH i2c: E2 0A 00 37 12 80 0D 02 02 02 00 F8 25 00 00 E4 [05:50:06]Write i2c OK [05:50:06]MH_I2C_Read... [05:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:06]Read from MH i2c: E2 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: E2 03 00 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [05:50:06]RAPDU: 90 00 [05:50:06]wFMCommunicate OK [05:50:06]wFMCommunicate request_size=4 [05:50:06]MH_SAM_APDU [05:50:06]CAPDU: 80 0D 03 02 [05:50:06]Write to MH i2c: E2 08 00 38 12 80 0D 03 02 00 00 00 00 C5 [05:50:06]Write i2c OK [05:50:06]MH_I2C_Read... [05:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:50:06]Read from MH i2c: E2 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: E2 0B 00 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: E2 0B 00 38 12 00 07 07 C2 D1 A8 71 81 14 90 00 15 [05:50:06]RAPDU: 07 07 C2 D1 A8 71 81 14 90 00 [05:50:06]wFMCommunicate OK [05:50:06]SAM_PROTO_SignData done [05:50:06]FM_MakeSignedData done [05:50:06]CreateOFDProtocolMessage [05:50:06]wFMCommunicate request_size=4 [05:50:06]MH_SAM_APDU [05:50:06]CAPDU: 80 11 00 00 [05:50:06]Write to MH i2c: E2 08 00 39 12 80 11 00 00 00 00 00 00 C5 [05:50:06]Write i2c OK [05:50:06]MH_I2C_Read... [05:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:06]Read from MH i2c: E2 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: E2 17 00 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: E2 17 00 39 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 18 [05:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:50:06]wFMCommunicate OK [05:50:06]CreateOFDProtocolMessage done [05:50:06]OFDSenderStorePacket 187518 [05:50:06]StoreOFDPacket docnum=187518 [05:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 6D 28 04 01 55 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 21 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 29 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0F 14 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DC 02 00 35 04 06 00 4E D7 93 D6 F8 25 07 07 C2 D1 A8 71 81 14 [05:50:06]CheckFolder [05:50:06]dirname=/storage/ofd_packets [05:50:06]CheckFolder done [05:50:06]ProducePacketName [05:50:06]name=ofd_packets/00187518 [05:50:06]NVStorageSaveData ofd_packets/00187518 [05:50:06]File name is /storage/ofd_packets/00187518 [05:50:06]Write 298 bytes [05:50:06]NVStorageSaveData done [05:50:06]OFDSenderStorePacket done [05:50:06]KKMCreateOFDPacket done [05:50:06]NVStorageSaveData kkm_last_timestamp [05:50:06]File name is /storage/kkm_last_timestamp [05:50:06]Write 4 bytes [05:50:06]NVStorageSaveData done [05:50:06]ExternCall_PrintAddStr [05:50:06]wPrintStart [05:50:06]Write to MH i2c: 01 00 00 3A 12 4C [05:50:06]Write i2c OK [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: 01 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: 01 07 00 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: 01 07 00 3A 12 00 00 00 00 00 FF 0F 61 [05:50:06]RasterBufferAndPrint [05:50:06]line Счет N : (1)412675 [05:50:06]line ИНН: 02508201610067 [05:50:06]line Контрольно-Кассовый Чек [05:50:06]line ПРОДАЖА [05:50:06]line ТРК (МРК, ГНК) : 6 [05:50:06]line Товар: 2710194210 [05:50:06]line ДТ-К-5 [05:50:06]line 8.680 * 72.60 [05:50:06]line = 630.17 [05:50:06]line НДС 12% НСП 1% [05:50:06]line > о реализуемом товаре [05:50:06]line ОКРУГЛЕНИЕ: -0.17 [05:50:06]line ИТОГО: 630.00 [05:50:06]line Внесено: 630.00 [05:50:06]line СДАЧА: 0.00 [05:50:06]line НСП 1% : 5.58 [05:50:06]line НДС 12% : 66.92 [05:50:06]line Наличными: 630.00 [05:50:06]line Безнал.: 0.00 [05:50:06]line Место: АЗС № 92 "Партнер Нефть" [05:50:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:50:06]line СНО: Общий режим [05:50:06]line Чек 12 21.02.2025 05:50 [05:50:06]line Смена: 649 ФФД: 1.0 [05:50:06]line ЗНМ: 0300000118 [05:50:06]line РНМ: 0000000000091857 [05:50:06]line Версия ККМ: 001 [05:50:06]line ФМ: 0000000000871826 [05:50:06]line ФД: 187518 [05:50:06]line ФПД: 86687805274149 [05:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T055007&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187518&fm=86687805274149&tin=02508201610067®Number=0000000000091857&sum=63000 [05:50:06]written 0, free lines is 4095 [05:50:06]OFD Sender: Processing packet 187518 [packets to send 49, broken 48] [05:50:06]ProducePacketName [05:50:06]name=ofd_packets/00187518 [05:50:06]OFD Sender: To server: pG, [05:50:06]CommunicateWithHost lk.salyk.kg:30040 [05:50:06]ConnectInit lk.salyk.kg [05:50:06]Connected sock=10 [05:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 6D 28 04 01 55 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 21 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 29 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0F 14 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DC 02 00 35 04 06 00 4E D7 93 D6 F8 25 07 07 C2 D1 A8 71 81 14 [05:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 02 F5 47 00 91 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DC 02 00 F4 03 04 00 5D BA B7 67 B6 04 01 00 00 D4 DF 5F D3 A8 3C 0A A6 [05:50:06]CommunicateWithHost err = 0 [05:50:06]CheckOFDResponse [05:50:06]1017 (14) - 77093643461234 [05:50:06]1041 (16) - 0000000000871826 [05:50:06]1040 (4) - 187518 [05:50:06]1012 (4) - 20.02.2025 23:27 [05:50:06]1206 (1) - 0 [05:50:06]OFD Sender: Remove packet 187518 [05:50:06]ProducePacketName [05:50:06]name=ofd_packets/00187518 [05:50:06]NVStorageDeleteData [05:50:06]Write to MH i2c: 01 00 00 65 12 77 [05:50:06]Write i2c OK [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: 01 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: 01 07 00 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: 01 07 00 65 12 00 00 00 00 00 FE 0C 88 [05:50:06]RasterBufferAndPrint [05:50:06]line [05:50:06]line [05:50:06]line [05:50:06]line [05:50:06]line [05:50:06]written 0, free lines is 3332 [05:50:06]MH_Cut [05:50:06]Write to MH i2c: D1 01 00 6C 12 01 50 [05:50:06]Write i2c OK [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: D1 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: D1 01 00 [05:50:06]MH_I2C_Read... [05:50:06]Read from MH i2c: D1 01 00 6C 12 00 4F [05:50:06]Write to MH i2c: 01 00 00 6D 12 7F [05:50:06]Write i2c OK [05:50:06]MH_I2C_Read... [05:50:07]OFD Sender: No OFD packet to send [05:50:07]*** Cut start [05:50:07]*** Partial cut [05:50:07]*** CUTSNS_PIN = 1 [05:50:07]*** CUTSNS_PIN = 0 [05:50:07]*** Brake cut motor [05:50:08]Read from MH i2c: 01 [05:50:08]MH_I2C_Read... [05:50:08]*** Stop cut motor [05:50:08]*** Cut end [05:50:08]Read from MH i2c: 01 07 00 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: 01 07 00 6D 12 00 00 00 00 00 FF 0F 94 [05:50:08]process_action close_receipt done [05:50:08]requested_data is exist [05:50:08]produce_requested_data [05:50:08]requested_item fm.sn is exist - process it [05:50:08]wFMCommunicate request_size=4 [05:50:08]MH_SAM_APDU [05:50:08]CAPDU: 80 11 00 00 [05:50:08]Write to MH i2c: E2 08 00 6E 12 80 11 00 00 00 00 00 00 FA [05:50:08]Write i2c OK [05:50:08]MH_I2C_Read... [05:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:08]Read from MH i2c: E2 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: E2 17 00 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: E2 17 00 6E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [05:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:50:08]wFMCommunicate OK [05:50:08]requested_item fd.num is exist - process it [05:50:08]SAM_PROTO_GetFieldsCounters [05:50:08]wFMCommunicate request_size=4 [05:50:08]MH_SAM_APDU [05:50:08]CAPDU: 80 13 00 00 [05:50:08]Write to MH i2c: E2 08 00 6F 12 80 13 00 00 00 00 00 00 FD [05:50:08]Write i2c OK [05:50:08]MH_I2C_Read... [05:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:50:08]Read from MH i2c: E2 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: E2 62 00 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: E2 62 00 6F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7E DC 02 00 0E 04 04 00 89 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 2E [05:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7E DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:50:08]wFMCommunicate OK [05:50:08]SAM_PROTO_GetFieldsCounters done [05:50:08]requested_item shift.num is exist - process it [05:50:08]requested_item shift.opened is exist - process it [05:50:08]req_shift_opened [05:50:08]FM_GetShiftState [05:50:08]SAM_PROTO_GetShiftState [05:50:08]wFMCommunicate request_size=4 [05:50:08]MH_SAM_APDU [05:50:08]CAPDU: 80 13 01 00 [05:50:08]Write to MH i2c: E2 08 00 70 12 80 13 01 00 00 00 00 00 FF [05:50:08]Write i2c OK [05:50:08]MH_I2C_Read... [05:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:08]Read from MH i2c: E2 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: E2 0E 00 [05:50:08]MH_I2C_Read... [05:50:08]Read from MH i2c: E2 0E 00 70 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 ED [05:50:08]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [05:50:08]wFMCommunicate OK [05:50:08]SAM_PROTO_GetShiftState done [05:50:08]FM_GetShiftState done [05:50:08]req_shift_opened done [05:50:08]requested_item shift.open_date is exist - process it [05:50:08]req_shift_open_date [05:50:08]req_shift_open_date done [05:50:08]produce_requested_data done [05:50:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187518,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [05:50:08]process_action_free close_receipt [05:50:08]json_value_free [05:50:08]json_value_free done [05:50:08]process_json_proto returns [05:50:08]Send response to host [05:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187518,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [05:50:08]free response buf [05:50:08]execute_script done [05:50:08]execute_script returns [05:50:08]free content buf [05:50:08]Sock 7.Close socket [05:50:08]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05: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:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]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:44]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:18]accept exits with 9 [06:49:18]New connection [06:49:18]New thread 3067223396 created [06:49:19]Thread 3067080036 joined [06:49:19]Waiting for new connection... [06:49:19] Sock 9.Parse request [06:49:19]Sock 9.Check first char [06:49:19]Sock 9.First char is OK [06:49:19]request: POST /json_proto HTTP/1.0 [06:49:19]Method: POST [06:49:19]URL: /json_proto [06:49:19]Method is POST - this is cgi request [06:49:19]url: /json_proto [06:49:19]query_string will be loaded in cgi processing [06:49:19]execute_cgi json_proto POST (null) [06:49:19]execute_cgi path=json_proto method=POST [06:49:19]POST find Content-Length [06:49:19]Host: 172.17.46.131:8080 [06:49:19]Content-Length: 673 [06:49:19]Content-Type: application/json [06:49:19] [06:49:19]POST finish read [06:49:19]Found Content-Length = 673 [06:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [06:49:19]execute_script... [06:49: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)412676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 8.270, "sum" : 600.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [06:49:19]POST & json_proto [06:49:19]process_json_proto [06:49:19]json parsed OK: [06:49:19]protocol is kg_v1.0 [06:49:19]action value=close_receipt [06:49:19]process_action close_receipt [06:49:19]cmd_close_receipt [06:49:19]MH_GetDate [06:49:19]Write to MH i2c: F0 00 00 71 12 72 [06:49:19]Write i2c OK [06:49:19]MH_I2C_Read... [06:49:19]Read from MH i2c: F0 [06:49:19]MH_I2C_Read... [06:49:19]Read from MH i2c: F0 09 00 [06:49:19]MH_I2C_Read... [06:49:19]Read from MH i2c: F0 09 00 71 12 00 F2 21 B8 67 7E 41 4F 65 20 [06:49:19]GetLastDocTimeStamp 1740117007 [06:49:19]current date 1740120562 [06:49:19]FM_GetShiftState [06:49:19]SAM_PROTO_GetShiftState [06:49:19]wFMCommunicate request_size=4 [06:49:19]MH_SAM_APDU [06:49:19]CAPDU: 80 13 01 00 [06:49:19]Write to MH i2c: E2 08 00 72 12 80 13 01 00 00 00 00 00 01 [06:49:19]Write i2c OK [06:49:19]MH_I2C_Read... [06:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:19]Read from MH i2c: E2 [06:49:19]MH_I2C_Read... [06:49:19]Read from MH i2c: E2 0E 00 [06:49:19]MH_I2C_Read... [06:49:19]Read from MH i2c: E2 0E 00 72 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 EF [06:49:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [06:49:19]wFMCommunicate OK [06:49:19]SAM_PROTO_GetShiftState done [06:49:19]FM_GetShiftState done [06:49:19]opened in 1740098043 [06:49:19]opened+sec_in_day 1740184443 [06:49:19]quantity*price = 60040 [06:49:19]sum+1 = 60041 [06:49:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 13 21.02.2025 06:49 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187519 ФПД: 99226114339556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T064922&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187519&fm=99226114339556&tin=02508201610067®Number=0000000000091857&sum=60000 [06:49:20]StoreToDocumentArchive [06:49:20]shift 649 fd 187519 [06:49:20]save to /storage/0649/doc_00187519 [06:49:20]save last doc name /storage/0649/doc_00187519 to /storage/kkm_last_doc_name [06:49:20]save OK [06:49:20]Clear old archive folders... [06:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:49:20]tlvbuf is 02040F70 [06:49:20]SAM_PROTO_ClearQueue [06:49:20]wFMCommunicate request_size=4 [06:49:20]MH_SAM_APDU [06:49:20]CAPDU: 80 09 00 00 [06:49:20]Write to MH i2c: E2 08 00 7F 12 80 09 00 00 00 00 00 00 03 [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:20]Read from MH i2c: E2 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 03 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 03 00 7F 12 00 90 00 05 [06:49:20]RAPDU: 90 00 [06:49:20]wFMCommunicate OK [06:49:20]SAM_PROTO_ClearQueue done [06:49:20]KKMCreateOFDPacket [06:49:20]OFDProtocolAddRootSTLVToBuf [06:49:20]FM_MakeSignedData [06:49:20]FM_MakeSignedData [06:49:20]SAM_PROTO_SignData [06:49:20]wFMCommunicate request_size=4 [06:49:20]MH_SAM_APDU [06:49:20]CAPDU: 80 0D 01 02 [06:49:20]Write to MH i2c: E2 08 00 80 12 80 0D 01 02 00 00 00 00 0B [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:20]Read from MH i2c: E2 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 03 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 03 00 80 12 00 90 00 06 [06:49:20]RAPDU: 90 00 [06:49:20]wFMCommunicate OK [06:49:20]wFMCommunicate request_size=255 [06:49:20]MH_SAM_APDU [06:49: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 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F2 21 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DC 02 00 35 04 06 00 5A 3E E1 4C [06:49:20]Write to MH i2c: E2 02 01 81 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F2 21 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DC 02 00 35 04 06 00 5A 3E E1 4C 00 00 5A [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]OFD Sender: No OFD packet to send [06:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:20]Read from MH i2c: E2 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 03 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [06:49:20]RAPDU: 90 00 [06:49:20]wFMCommunicate OK [06:49:20]wFMCommunicate request_size=7 [06:49:20]MH_SAM_APDU [06:49:20]CAPDU: 80 0D 02 02 02 32 E4 [06:49:20]Write to MH i2c: E2 0A 00 82 12 80 0D 02 02 02 00 32 E4 00 00 28 [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:20]Read from MH i2c: E2 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 03 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [06:49:20]RAPDU: 90 00 [06:49:20]wFMCommunicate OK [06:49:20]wFMCommunicate request_size=4 [06:49:20]MH_SAM_APDU [06:49:20]CAPDU: 80 0D 03 02 [06:49:20]Write to MH i2c: E2 08 00 83 12 80 0D 03 02 00 00 00 00 10 [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:20]Read from MH i2c: E2 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 0B 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 0B 00 83 12 00 50 A9 B7 76 09 E1 3E D2 90 00 31 [06:49:20]RAPDU: 50 A9 B7 76 09 E1 3E D2 90 00 [06:49:20]wFMCommunicate OK [06:49:20]SAM_PROTO_SignData done [06:49:20]FM_MakeSignedData done [06:49:20]CreateOFDProtocolMessage [06:49:20]wFMCommunicate request_size=4 [06:49:20]MH_SAM_APDU [06:49:20]CAPDU: 80 11 00 00 [06:49:20]Write to MH i2c: E2 08 00 84 12 80 11 00 00 00 00 00 00 10 [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:20]Read from MH i2c: E2 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 17 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 17 00 84 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 63 [06:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:49:20]wFMCommunicate OK [06:49:20]CreateOFDProtocolMessage done [06:49:20]OFDSenderStorePacket 187519 [06:49:20]StoreOFDPacket docnum=187519 [06:49:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7E 8C 04 01 4E 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 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F2 21 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DC 02 00 35 04 06 00 5A 3E E1 4C 32 E4 50 A9 B7 76 09 E1 3E D2 [06:49:20]CheckFolder [06:49:20]dirname=/storage/ofd_packets [06:49:20]CheckFolder done [06:49:20]ProducePacketName [06:49:20]name=ofd_packets/00187519 [06:49:20]NVStorageSaveData ofd_packets/00187519 [06:49:20]File name is /storage/ofd_packets/00187519 [06:49:20]Write 298 bytes [06:49:20]NVStorageSaveData done [06:49:20]OFDSenderStorePacket done [06:49:20]KKMCreateOFDPacket done [06:49:20]NVStorageSaveData kkm_last_timestamp [06:49:20]File name is /storage/kkm_last_timestamp [06:49:20]Write 4 bytes [06:49:20]NVStorageSaveData done [06:49:20]ExternCall_PrintAddStr [06:49:20]wPrintStart [06:49:20]Write to MH i2c: 01 00 00 85 12 97 [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: 01 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: 01 07 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: 01 07 00 85 12 00 00 00 00 00 FF 0F AC [06:49:20]RasterBufferAndPrint [06:49:20]line Счет N : (1)412676 [06:49:20]line ИНН: 02508201610067 [06:49:20]line Контрольно-Кассовый Чек [06:49:20]line ПРОДАЖА [06:49:20]line ТРК (МРК, ГНК) : 5 [06:49:20]line Товар: 2710194210 [06:49:20]line ДТ-К-5 [06:49:20]line 8.270 * 72.60 [06:49:20]line = 600.40 [06:49:20]line НДС 12% НСП 1% [06:49:20]line > о реализуемом товаре [06:49:20]line ОКРУГЛЕНИЕ: -0.40 [06:49:20]line ИТОГО: 600.00 [06:49:20]line Внесено: 600.00 [06:49:20]line СДАЧА: 0.00 [06:49:20]line НСП 1% : 5.31 [06:49:20]line НДС 12% : 63.76 [06:49:20]line Наличными: 600.00 [06:49:20]line Безнал.: 0.00 [06:49:20]line Место: АЗС № 92 "Партнер Нефть" [06:49:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:49:20]line СНО: Общий режим [06:49:20]line Чек 13 21.02.2025 06:49 [06:49:20]line Смена: 649 ФФД: 1.0 [06:49:20]line ЗНМ: 0300000118 [06:49:20]line РНМ: 0000000000091857 [06:49:20]line Версия ККМ: 001 [06:49:20]line ФМ: 0000000000871826 [06:49:20]line ФД: 187519 [06:49:20]line ФПД: 99226114339556 [06:49:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T064922&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187519&fm=99226114339556&tin=02508201610067®Number=0000000000091857&sum=60000 [06:49:21]OFD Sender: Processing packet 187519 [packets to send 49, broken 48] [06:49:21]ProducePacketName [06:49:21]name=ofd_packets/00187519 [06:49:21]OFD Sender: To server: pG, [06:49:21]CommunicateWithHost lk.salyk.kg:30040 [06:49:21]ConnectInit lk.salyk.kg [06:49:21]written 0, free lines is 4095 [06:49:21]Connected sock=10 [06:49:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7E 8C 04 01 4E 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 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 F2 21 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DC 02 00 35 04 06 00 5A 3E E1 4C 32 E4 50 A9 B7 76 09 E1 3E D2 [06:49:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 18 CB 47 00 4C 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DC 02 00 F4 03 04 00 40 C8 B7 67 B6 04 01 00 00 64 64 14 06 8C 23 4E 27 [06:49:21]CommunicateWithHost err = 0 [06:49:21]CheckOFDResponse [06:49:21]1017 (14) - 77093643461234 [06:49:21]1041 (16) - 0000000000871826 [06:49:21]1040 (4) - 187519 [06:49:21]1012 (4) - 21.02.2025 00:26 [06:49:21]1206 (1) - 0 [06:49:21]OFD Sender: Remove packet 187519 [06:49:21]ProducePacketName [06:49:21]name=ofd_packets/00187519 [06:49:21]NVStorageDeleteData [06:49:21]Write to MH i2c: 01 00 00 B0 12 C2 [06:49:21]Write i2c OK [06:49:21]MH_I2C_Read... [06:49:21]Read from MH i2c: 01 [06:49:21]MH_I2C_Read... [06:49:21]Read from MH i2c: 01 07 00 [06:49:21]MH_I2C_Read... [06:49:21]Read from MH i2c: 01 07 00 B0 12 00 00 00 00 00 FA 0C CF [06:49:21]RasterBufferAndPrint [06:49:21]line [06:49:21]line [06:49:21]line [06:49:21]line [06:49:21]line [06:49:21]written 0, free lines is 3330 [06:49:21]MH_Cut [06:49:21]Write to MH i2c: D1 01 00 B7 12 01 9B [06:49:21]Write i2c OK [06:49:21]MH_I2C_Read... [06:49:21]Read from MH i2c: D1 [06:49:21]MH_I2C_Read... [06:49:21]Read from MH i2c: D1 01 00 [06:49:21]MH_I2C_Read... [06:49:21]Read from MH i2c: D1 01 00 B7 12 00 9A [06:49:21]Write to MH i2c: 01 00 00 B8 12 CA [06:49:21]Write i2c OK [06:49:21]MH_I2C_Read... [06:49:21]OFD Sender: No OFD packet to send [06:49:22]*** Cut start [06:49:22]*** Partial cut [06:49:22]*** CUTSNS_PIN = 1 [06:49:22]*** CUTSNS_PIN = 0 [06:49:22]*** Brake cut motor [06:49:22]Read from MH i2c: 01 [06:49:22]MH_I2C_Read... [06:49:22]*** Stop cut motor [06:49:22]*** Cut end [06:49:22]Read from MH i2c: 01 07 00 [06:49:22]MH_I2C_Read... [06:49:22]Read from MH i2c: 01 07 00 B8 12 00 00 00 00 00 FF 0F DF [06:49:22]process_action close_receipt done [06:49:22]requested_data is exist [06:49:22]produce_requested_data [06:49:22]requested_item fm.sn is exist - process it [06:49:22]wFMCommunicate request_size=4 [06:49:22]MH_SAM_APDU [06:49:22]CAPDU: 80 11 00 00 [06:49:22]Write to MH i2c: E2 08 00 B9 12 80 11 00 00 00 00 00 00 45 [06:49:22]Write i2c OK [06:49:22]MH_I2C_Read... [06:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:22]Read from MH i2c: E2 [06:49:22]MH_I2C_Read... [06:49:22]Read from MH i2c: E2 17 00 [06:49:22]MH_I2C_Read... [06:49:22]Read from MH i2c: E2 17 00 B9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [06:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:49:22]wFMCommunicate OK [06:49:22]requested_item fd.num is exist - process it [06:49:22]SAM_PROTO_GetFieldsCounters [06:49:22]wFMCommunicate request_size=4 [06:49:22]MH_SAM_APDU [06:49:22]CAPDU: 80 13 00 00 [06:49:22]Write to MH i2c: E2 08 00 BA 12 80 13 00 00 00 00 00 00 48 [06:49:22]Write i2c OK [06:49:22]MH_I2C_Read... [06:49:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:23]Read from MH i2c: E2 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: E2 62 00 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: E2 62 00 BA 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7F DC 02 00 0E 04 04 00 89 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 7D [06:49:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7F DC 02 00 0E 04 04 00 89 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:49:23]wFMCommunicate OK [06:49:23]SAM_PROTO_GetFieldsCounters done [06:49:23]requested_item shift.num is exist - process it [06:49:23]requested_item shift.opened is exist - process it [06:49:23]req_shift_opened [06:49:23]FM_GetShiftState [06:49:23]SAM_PROTO_GetShiftState [06:49:23]wFMCommunicate request_size=4 [06:49:23]MH_SAM_APDU [06:49:23]CAPDU: 80 13 01 00 [06:49:23]Write to MH i2c: E2 08 00 BB 12 80 13 01 00 00 00 00 00 4A [06:49:23]Write i2c OK [06:49:23]MH_I2C_Read... [06:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:23]Read from MH i2c: E2 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: E2 0E 00 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: E2 0E 00 BB 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 38 [06:49:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [06:49:23]wFMCommunicate OK [06:49:23]SAM_PROTO_GetShiftState done [06:49:23]FM_GetShiftState done [06:49:23]req_shift_opened done [06:49:23]requested_item shift.open_date is exist - process it [06:49:23]req_shift_open_date [06:49:23]req_shift_open_date done [06:49:23]produce_requested_data done [06:49:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187519,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [06:49:23]process_action_free close_receipt [06:49:23]json_value_free [06:49:23]json_value_free done [06:49:23]process_json_proto returns [06:49:23]Send response to host [06:49:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187519,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [06:49:23]free response buf [06:49:23]execute_script done [06:49:23]execute_script returns [06:49:23]free content buf [06:49:23]Sock 9.Close socket [06:49:23]Sock 9.Thread stoped [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]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:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]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:07]accept exits with 7 [07:46:07]New connection [07:46:07]New thread 3067080036 created [07:46:07]Thread 3067223396 joined [07:46:07]Waiting for new connection... [07:46:07] Sock 7.Parse request [07:46:07]Sock 7.Check first char [07:46:07]Sock 7.First char is OK [07:46:07]request: POST /json_proto HTTP/1.0 [07:46:07]Method: POST [07:46:07]URL: /json_proto [07:46:07]Method is POST - this is cgi request [07:46:07]url: /json_proto [07:46:07]query_string will be loaded in cgi processing [07:46:07]execute_cgi json_proto POST (null) [07:46:07]execute_cgi path=json_proto method=POST [07:46:07]POST find Content-Length [07:46:07]Host: 172.17.46.131:8080 [07:46:07]Content-Length: 677 [07:46:07]Content-Type: application/json [07:46:07] [07:46:07]POST finish read [07:46:07]Found Content-Length = 677 [07:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.640, "sum" : 490.49, "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" ] } } [07:46:07]execute_script... [07:46:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.640, "sum" : 490.49, "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" ] } } [07:46:07]POST & json_proto [07:46:07]process_json_proto [07:46:07]json parsed OK: [07:46:07]protocol is kg_v1.0 [07:46:07]action value=close_receipt [07:46:07]process_action close_receipt [07:46:07]cmd_close_receipt [07:46:07]MH_GetDate [07:46:07]Write to MH i2c: F0 00 00 BC 12 BD [07:46:07]Write i2c OK [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: F0 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: F0 09 00 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: F0 09 00 BC 12 00 42 2F B8 67 7E 41 4F 65 C9 [07:46:07]GetLastDocTimeStamp 1740120562 [07:46:07]current date 1740123970 [07:46:07]FM_GetShiftState [07:46:07]SAM_PROTO_GetShiftState [07:46:07]wFMCommunicate request_size=4 [07:46:07]MH_SAM_APDU [07:46:07]CAPDU: 80 13 01 00 [07:46:07]Write to MH i2c: E2 08 00 BD 12 80 13 01 00 00 00 00 00 4C [07:46:07]Write i2c OK [07:46:07]MH_I2C_Read... [07:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:07]Read from MH i2c: E2 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 0E 00 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 0E 00 BD 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 3A [07:46:07]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [07:46:07]wFMCommunicate OK [07:46:07]SAM_PROTO_GetShiftState done [07:46:07]FM_GetShiftState done [07:46:07]opened in 1740098043 [07:46:07]opened+sec_in_day 1740184443 [07:46:07]quantity*price = 49048 [07:46:07]sum+1 = 49050 [07:46:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.09 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 14 21.02.2025 07:46 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187520 ФПД: 46902852520810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T074610&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187520&fm=46902852520810&tin=02508201610067®Number=0000000000091857&sum=49000 [07:46:08]StoreToDocumentArchive [07:46:08]shift 649 fd 187520 [07:46:08]save to /storage/0649/doc_00187520 [07:46:08]save last doc name /storage/0649/doc_00187520 to /storage/kkm_last_doc_name [07:46:08]save OK [07:46:08]Clear old archive folders... [07:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:08]tlvbuf is 02076E60 [07:46:08]SAM_PROTO_ClearQueue [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 09 00 00 [07:46:08]Write to MH i2c: E2 08 00 CA 12 80 09 00 00 00 00 00 00 4E [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 CA 12 00 90 00 50 [07:46:08]RAPDU: 90 00 [07:46:08]wFMCommunicate OK [07:46:08]SAM_PROTO_ClearQueue done [07:46:08]KKMCreateOFDPacket [07:46:08]OFDProtocolAddRootSTLVToBuf [07:46:08]FM_MakeSignedData [07:46:08]FM_MakeSignedData [07:46:08]SAM_PROTO_SignData [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 0D 01 02 [07:46:08]Write to MH i2c: E2 08 00 CB 12 80 0D 01 02 00 00 00 00 56 [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 CB 12 00 90 00 51 [07:46:08]RAPDU: 90 00 [07:46:08]wFMCommunicate OK [07:46:08]wFMCommunicate request_size=255 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D8 1D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 99 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 59 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 0E 00 00 00 F4 03 04 00 42 2F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DC 02 00 35 04 06 00 2A [07:46:08]Write to MH i2c: E2 02 01 CC 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D8 1D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 99 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 59 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 0E 00 00 00 F4 03 04 00 42 2F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DC 02 00 35 04 06 00 2A 00 00 FB [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 CC 12 00 90 00 52 [07:46:08]RAPDU: 90 00 [07:46:08]wFMCommunicate OK [07:46:08]wFMCommunicate request_size=10 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 0D 02 02 05 A8 6B DD 0B 6A [07:46:08]Write to MH i2c: E2 0D 00 CD 12 80 0D 02 02 05 00 A8 6B DD 0B 6A 00 00 C8 [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 03 00 CD 12 00 90 00 53 [07:46:08]RAPDU: 90 00 [07:46:08]wFMCommunicate OK [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 0D 03 02 [07:46:08]Write to MH i2c: E2 08 00 CE 12 80 0D 03 02 00 00 00 00 5B [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 0B 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 0B 00 CE 12 00 68 62 46 39 EC 8E D7 A5 90 00 9B [07:46:08]RAPDU: 68 62 46 39 EC 8E D7 A5 90 00 [07:46:08]wFMCommunicate OK [07:46:08]SAM_PROTO_SignData done [07:46:08]FM_MakeSignedData done [07:46:08]CreateOFDProtocolMessage [07:46:08]wFMCommunicate request_size=4 [07:46:08]MH_SAM_APDU [07:46:08]CAPDU: 80 11 00 00 [07:46:08]Write to MH i2c: E2 08 00 CF 12 80 11 00 00 00 00 00 00 5B [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:08]Read from MH i2c: E2 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 17 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: E2 17 00 CF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AE [07:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:46:08]wFMCommunicate OK [07:46:08]CreateOFDProtocolMessage done [07:46:08]OFDSenderStorePacket 187520 [07:46:08]StoreOFDPacket docnum=187520 [07:46:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 86 78 07 01 E6 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D8 1D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 99 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 59 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 0E 00 00 00 F4 03 04 00 42 2F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DC 02 00 35 04 06 00 2A A8 6B DD 0B 6A 68 62 46 39 EC 8E D7 A5 [07:46:08]CheckFolder [07:46:08]dirname=/storage/ofd_packets [07:46:08]CheckFolder done [07:46:08]ProducePacketName [07:46:08]name=ofd_packets/00187520 [07:46:08]NVStorageSaveData ofd_packets/00187520 [07:46:08]File name is /storage/ofd_packets/00187520 [07:46:08]Write 301 bytes [07:46:08]NVStorageSaveData done [07:46:08]OFDSenderStorePacket done [07:46:08]KKMCreateOFDPacket done [07:46:08]NVStorageSaveData kkm_last_timestamp [07:46:08]File name is /storage/kkm_last_timestamp [07:46:08]Write 4 bytes [07:46:08]NVStorageSaveData done [07:46:08]ExternCall_PrintAddStr [07:46:08]wPrintStart [07:46:08]Write to MH i2c: 01 00 00 D0 12 E2 [07:46:08]OFD Sender: Processing packet 187520 [packets to send 49, broken 48] [07:46:08]ProducePacketName [07:46:08]name=ofd_packets/00187520 [07:46:08]OFD Sender: To server: pG, [07:46:08]CommunicateWithHost lk.salyk.kg:30040 [07:46:08]ConnectInit lk.salyk.kg [07:46:08]Write i2c OK [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: 01 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: 01 07 00 [07:46:08]MH_I2C_Read... [07:46:08]Read from MH i2c: 01 07 00 D0 12 00 00 00 00 00 FF 0F F7 [07:46:08]RasterBufferAndPrint [07:46:08]line Счет N : (1)412677 [07:46:08]line ИНН: 02508201610067 [07:46:08]line Контрольно-Кассовый Чек [07:46:08]line ПРОДАЖА [07:46:08]line ТРК (МРК, ГНК) : 42 [07:46:08]line Товар: 2710124130 [07:46:08]line Аи-92-К-2 [07:46:08]line 7.640 * 64.20 [07:46:08]line = 490.49 [07:46:08]line НДС 12% НСП 1% [07:46:08]line > о реализуемом товаре [07:46:08]line ОКРУГЛЕНИЕ: -0.49 [07:46:08]line ИТОГО: 490.00 [07:46:08]line Внесено: 490.00 [07:46:08]line СДАЧА: 0.00 [07:46:08]line НСП 1% : 4.34 [07:46:08]line НДС 12% : 52.09 [07:46:08]line Наличными: 490.00 [07:46:08]line Безнал.: 0.00 [07:46:08]line Место: АЗС № 92 "Партнер Нефть" [07:46:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:46:08]line СНО: Общий режим [07:46:08]line Чек 14 21.02.2025 07:46 [07:46:08]line Смена: 649 ФФД: 1.0 [07:46:08]line ЗНМ: 0300000118 [07:46:08]line РНМ: 0000000000091857 [07:46:08]line Версия ККМ: 001 [07:46:08]line ФМ: 0000000000871826 [07:46:08]line ФД: 187520 [07:46:08]line ФПД: 46902852520810 [07:46:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T074610&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187520&fm=46902852520810&tin=02508201610067®Number=0000000000091857&sum=49000 [07:46:08]written 0, free lines is 4095 [07:46:09]Connected sock=9 [07:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 86 78 07 01 E6 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D8 1D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 99 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 59 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 0E 00 00 00 F4 03 04 00 42 2F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DC 02 00 35 04 06 00 2A A8 6B DD 0B 6A 68 62 46 39 EC 8E D7 A5 [07:46:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BB CE 47 00 32 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 DC 02 00 F4 03 04 00 90 D5 B7 67 B6 04 01 00 00 E8 D2 DD 26 EF 9B B3 FF [07:46:09]CommunicateWithHost err = 0 [07:46:09]CheckOFDResponse [07:46:09]1017 (14) - 77093643461234 [07:46:09]1041 (16) - 0000000000871826 [07:46:09]1040 (4) - 187520 [07:46:09]1012 (4) - 21.02.2025 01:23 [07:46:09]1206 (1) - 0 [07:46:09]OFD Sender: Remove packet 187520 [07:46:09]ProducePacketName [07:46:09]name=ofd_packets/00187520 [07:46:09]NVStorageDeleteData [07:46:09]Write to MH i2c: 01 00 00 FB 12 0D [07:46:09]Write i2c OK [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: 01 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: 01 07 00 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: 01 07 00 FB 12 00 00 00 00 00 FB 0C 1B [07:46:09]RasterBufferAndPrint [07:46:09]line [07:46:09]line [07:46:09]line [07:46:09]line [07:46:09]line [07:46:09]written 0, free lines is 3329 [07:46:09]MH_Cut [07:46:09]Write to MH i2c: D1 01 00 02 13 01 E7 [07:46:09]Write i2c OK [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: D1 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: D1 01 00 [07:46:09]MH_I2C_Read... [07:46:09]Read from MH i2c: D1 01 00 02 13 00 E6 [07:46:09]Write to MH i2c: 01 00 00 03 13 16 [07:46:09]Write i2c OK [07:46:09]MH_I2C_Read... [07:46:09]OFD Sender: No OFD packet to send [07:46:10]*** Cut start [07:46:10]*** Partial cut [07:46:10]*** CUTSNS_PIN = 1 [07:46:10]*** CUTSNS_PIN = 0 [07:46:10]*** Brake cut motor [07:46:10]Read from MH i2c: 01 [07:46:10]MH_I2C_Read... [07:46:10]*** Stop cut motor [07:46:10]*** Cut end [07:46:10]Read from MH i2c: 01 07 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: 01 07 00 03 13 00 00 00 00 00 FF 0F 2B [07:46:10]process_action close_receipt done [07:46:10]requested_data is exist [07:46:10]produce_requested_data [07:46:10]requested_item fm.sn is exist - process it [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 11 00 00 [07:46:10]Write to MH i2c: E2 08 00 04 13 80 11 00 00 00 00 00 00 91 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 17 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 17 00 04 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E4 [07:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:46:10]wFMCommunicate OK [07:46:10]requested_item fd.num is exist - process it [07:46:10]SAM_PROTO_GetFieldsCounters [07:46:10]wFMCommunicate request_size=4 [07:46:10]MH_SAM_APDU [07:46:10]CAPDU: 80 13 00 00 [07:46:10]Write to MH i2c: E2 08 00 05 13 80 13 00 00 00 00 00 00 94 [07:46:10]Write i2c OK [07:46:10]MH_I2C_Read... [07:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:10]Read from MH i2c: E2 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 62 00 [07:46:10]MH_I2C_Read... [07:46:10]Read from MH i2c: E2 62 00 05 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 80 DC 02 00 0E 04 04 00 89 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 CD [07:46:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 80 DC 02 00 0E 04 04 00 89 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:46:11]wFMCommunicate OK [07:46:11]SAM_PROTO_GetFieldsCounters done [07:46:11]requested_item shift.num is exist - process it [07:46:11]requested_item shift.opened is exist - process it [07:46:11]req_shift_opened [07:46:11]FM_GetShiftState [07:46:11]SAM_PROTO_GetShiftState [07:46:11]wFMCommunicate request_size=4 [07:46:11]MH_SAM_APDU [07:46:11]CAPDU: 80 13 01 00 [07:46:11]Write to MH i2c: E2 08 00 06 13 80 13 01 00 00 00 00 00 96 [07:46:11]Write i2c OK [07:46:11]MH_I2C_Read... [07:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:11]Read from MH i2c: E2 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 0E 00 [07:46:11]MH_I2C_Read... [07:46:11]Read from MH i2c: E2 0E 00 06 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 84 [07:46:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [07:46:11]wFMCommunicate OK [07:46:11]SAM_PROTO_GetShiftState done [07:46:11]FM_GetShiftState done [07:46:11]req_shift_opened done [07:46:11]requested_item shift.open_date is exist - process it [07:46:11]req_shift_open_date [07:46:11]req_shift_open_date done [07:46:11]produce_requested_data done [07:46:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187520,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [07:46:11]process_action_free close_receipt [07:46:11]json_value_free [07:46:11]json_value_free done [07:46:11]process_json_proto returns [07:46:11]Send response to host [07:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187520,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [07:46:11]free response buf [07:46:11]execute_script done [07:46:11]execute_script returns [07:46:11]free content buf [07:46:11]Sock 7.Close socket [07:46:11]Sock 7.Thread stoped [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:56]accept exits with 10 [07:46:56]New connection [07:46:56]New thread 3067223396 created [07:46:56]Thread 3067080036 joined [07:46:56]Waiting for new connection... [07:46:56] Sock 10.Parse request [07:46:56]Sock 10.Check first char [07:46:56]Sock 10.First char is OK [07:46:56]request: POST /json_proto HTTP/1.0 [07:46:56]Method: POST [07:46:56]URL: /json_proto [07:46:56]Method is POST - this is cgi request [07:46:56]url: /json_proto [07:46:56]query_string will be loaded in cgi processing [07:46:56]execute_cgi json_proto POST (null) [07:46:56]execute_cgi path=json_proto method=POST [07:46:56]POST find Content-Length [07:46:56]Host: 172.17.46.131:8080 [07:46:56]Content-Length: 677 [07:46:56]Content-Type: application/json [07:46:56] [07:46:56]POST finish read [07:46:56]Found Content-Length = 677 [07:46:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:56]execute_script... [07:46:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:56]POST & json_proto [07:46:56]process_json_proto [07:46:56]json parsed OK: [07:46:56]protocol is kg_v1.0 [07:46:56]action value=close_receipt [07:46:56]process_action close_receipt [07:46:56]cmd_close_receipt [07:46:56]MH_GetDate [07:46:56]Write to MH i2c: F0 00 00 07 13 09 [07:46:56]Write i2c OK [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: F0 [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: F0 09 00 [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: F0 09 00 07 13 00 74 2F B8 67 7E 41 4F 65 47 [07:46:56]GetLastDocTimeStamp 1740123970 [07:46:56]current date 1740124020 [07:46:56]FM_GetShiftState [07:46:56]SAM_PROTO_GetShiftState [07:46:56]wFMCommunicate request_size=4 [07:46:56]MH_SAM_APDU [07:46:56]CAPDU: 80 13 01 00 [07:46:56]Write to MH i2c: E2 08 00 08 13 80 13 01 00 00 00 00 00 98 [07:46:56]Write i2c OK [07:46:56]MH_I2C_Read... [07:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:56]Read from MH i2c: E2 [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: E2 0E 00 [07:46:56]MH_I2C_Read... [07:46:56]Read from MH i2c: E2 0E 00 08 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 86 [07:46:56]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [07:46:56]wFMCommunicate OK [07:46:56]SAM_PROTO_GetShiftState done [07:46:56]FM_GetShiftState done [07:46:56]opened in 1740098043 [07:46:56]opened+sec_in_day 1740184443 [07:46:56]quantity*price = 50011 [07:46:56]sum+1 = 50013 [07:46:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 15 21.02.2025 07:47 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187521 ФПД: 212377268089081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T074700&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187521&fm=212377268089081&tin=02508201610067®Number=0000000000091857&sum=50000 [07:46:57]StoreToDocumentArchive [07:46:57]shift 649 fd 187521 [07:46:57]save to /storage/0649/doc_00187521 [07:46:57]save last doc name /storage/0649/doc_00187521 to /storage/kkm_last_doc_name [07:46:57]save OK [07:46:57]Clear old archive folders... [07:46:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:46:57]tlvbuf is B6F035B0 [07:46:57]SAM_PROTO_ClearQueue [07:46:57]wFMCommunicate request_size=4 [07:46:57]MH_SAM_APDU [07:46:57]CAPDU: 80 09 00 00 [07:46:57]Write to MH i2c: E2 08 00 15 13 80 09 00 00 00 00 00 00 9A [07:46:57]Write i2c OK [07:46:57]MH_I2C_Read... [07:46:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:57]Read from MH i2c: E2 [07:46:57]MH_I2C_Read... [07:46:57]Read from MH i2c: E2 03 00 [07:46:57]MH_I2C_Read... [07:46:57]Read from MH i2c: E2 03 00 15 13 00 90 00 9C [07:46:57]RAPDU: 90 00 [07:46:57]wFMCommunicate OK [07:46:57]SAM_PROTO_ClearQueue done [07:46:57]KKMCreateOFDPacket [07:46:57]OFDProtocolAddRootSTLVToBuf [07:46:57]FM_MakeSignedData [07:46:57]FM_MakeSignedData [07:46:57]SAM_PROTO_SignData [07:46:57]wFMCommunicate request_size=4 [07:46:57]MH_SAM_APDU [07:46:57]CAPDU: 80 0D 01 02 [07:46:57]Write to MH i2c: E2 08 00 16 13 80 0D 01 02 00 00 00 00 A2 [07:46:57]Write i2c OK [07:46:57]MH_I2C_Read... [07:46:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:57]Read from MH i2c: E2 [07:46:57]MH_I2C_Read... [07:46:57]Read from MH i2c: E2 03 00 [07:46:57]MH_I2C_Read... [07:46:57]Read from MH i2c: E2 03 00 16 13 00 90 00 9D [07:46:57]RAPDU: 90 00 [07:46:57]wFMCommunicate OK [07:46:57]wFMCommunicate request_size=255 [07:46:57]MH_SAM_APDU [07:46:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 74 2F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DC 02 00 35 04 06 00 C1 [07:46:58]Write to MH i2c: E2 02 01 17 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 74 2F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DC 02 00 35 04 06 00 C1 00 00 B7 [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:58]Read from MH i2c: E2 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 03 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 03 00 17 13 00 90 00 9E [07:46:58]RAPDU: 90 00 [07:46:58]wFMCommunicate OK [07:46:58]wFMCommunicate request_size=10 [07:46:58]MH_SAM_APDU [07:46:58]CAPDU: 80 0D 02 02 05 27 EF 9F 70 F9 [07:46:58]Write to MH i2c: E2 0D 00 18 13 80 0D 02 02 05 00 27 EF 9F 70 F9 00 00 CD [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:58]Read from MH i2c: E2 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 03 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 03 00 18 13 00 90 00 9F [07:46:58]RAPDU: 90 00 [07:46:58]wFMCommunicate OK [07:46:58]wFMCommunicate request_size=4 [07:46:58]MH_SAM_APDU [07:46:58]CAPDU: 80 0D 03 02 [07:46:58]Write to MH i2c: E2 08 00 19 13 80 0D 03 02 00 00 00 00 A7 [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:58]Read from MH i2c: E2 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 0B 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 0B 00 19 13 00 D1 3D 54 95 C1 36 03 6C 90 00 05 [07:46:58]RAPDU: D1 3D 54 95 C1 36 03 6C 90 00 [07:46:58]wFMCommunicate OK [07:46:58]SAM_PROTO_SignData done [07:46:58]FM_MakeSignedData done [07:46:58]CreateOFDProtocolMessage [07:46:58]wFMCommunicate request_size=4 [07:46:58]MH_SAM_APDU [07:46:58]CAPDU: 80 11 00 00 [07:46:58]Write to MH i2c: E2 08 00 1A 13 80 11 00 00 00 00 00 00 A7 [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:58]Read from MH i2c: E2 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 17 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: E2 17 00 1A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [07:46:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:46:58]wFMCommunicate OK [07:46:58]CreateOFDProtocolMessage done [07:46:58]OFDSenderStorePacket 187521 [07:46:58]StoreOFDPacket docnum=187521 [07:46:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 15 E7 07 01 E2 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 74 2F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DC 02 00 35 04 06 00 C1 27 EF 9F 70 F9 D1 3D 54 95 C1 36 03 6C [07:46:58]CheckFolder [07:46:58]dirname=/storage/ofd_packets [07:46:58]CheckFolder done [07:46:58]ProducePacketName [07:46:58]name=ofd_packets/00187521 [07:46:58]NVStorageSaveData ofd_packets/00187521 [07:46:58]File name is /storage/ofd_packets/00187521 [07:46:58]Write 301 bytes [07:46:58]NVStorageSaveData done [07:46:58]OFDSenderStorePacket done [07:46:58]KKMCreateOFDPacket done [07:46:58]NVStorageSaveData kkm_last_timestamp [07:46:58]File name is /storage/kkm_last_timestamp [07:46:58]Write 4 bytes [07:46:58]NVStorageSaveData done [07:46:58]ExternCall_PrintAddStr [07:46:58]wPrintStart [07:46:58]Write to MH i2c: 01 00 00 1B 13 2E [07:46:58]Write i2c OK [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: 01 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: 01 07 00 [07:46:58]MH_I2C_Read... [07:46:58]Read from MH i2c: 01 07 00 1B 13 00 00 00 00 00 FF 0F 43 [07:46:58]RasterBufferAndPrint [07:46:58]line Счет N : (1)412678 [07:46:58]line ИНН: 02508201610067 [07:46:58]line Контрольно-Кассовый Чек [07:46:58]line ПРОДАЖА [07:46:58]line ТРК (МРК, ГНК) : 22 [07:46:58]line Товар: 2710124130 [07:46:58]line Аи-92-К-2 [07:46:58]line 7.790 * 64.20 [07:46:58]line = 500.12 [07:46:58]line НДС 12% НСП 1% [07:46:58]line > о реализуемом товаре [07:46:58]line ОКРУГЛЕНИЕ: -0.12 [07:46:58]line ИТОГО: 500.00 [07:46:58]line Внесено: 500.00 [07:46:58]line СДАЧА: 0.00 [07:46:58]line НСП 1% : 4.43 [07:46:58]line НДС 12% : 53.11 [07:46:58]line Наличными: 500.00 [07:46:58]line Безнал.: 0.00 [07:46:58]line Место: АЗС № 92 "Партнер Нефть" [07:46:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:46:58]line СНО: Общий режим [07:46:58]line Чек 15 21.02.2025 07:47 [07:46:58]line Смена: 649 ФФД: 1.0 [07:46:58]line ЗНМ: 0300000118 [07:46:58]line РНМ: 0000000000091857 [07:46:58]line Версия ККМ: 001 [07:46:58]line ФМ: 0000000000871826 [07:46:58]line ФД: 187521 [07:46:58]line ФПД: 212377268089081 [07:46:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T074700&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187521&fm=212377268089081&tin=02508201610067®Number=0000000000091857&sum=50000 [07:46:58]written 0, free lines is 4095 [07:46:58]OFD Sender: Processing packet 187521 [packets to send 49, broken 48] [07:46:58]ProducePacketName [07:46:58]name=ofd_packets/00187521 [07:46:58]OFD Sender: To server: pG, [07:46:58]CommunicateWithHost lk.salyk.kg:30040 [07:46:58]ConnectInit lk.salyk.kg [07:46:58]Connected sock=9 [07:46:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 15 E7 07 01 E2 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 74 2F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DC 02 00 35 04 06 00 C1 27 EF 9F 70 F9 D1 3D 54 95 C1 36 03 6C [07:46:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C6 8A 47 00 30 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 DC 02 00 F4 03 04 00 C2 D5 B7 67 B6 04 01 00 00 DA D7 81 2D 80 B2 E9 6B [07:46:59]CommunicateWithHost err = 0 [07:46:59]CheckOFDResponse [07:46:59]1017 (14) - 77093643461234 [07:46:59]1041 (16) - 0000000000871826 [07:46:59]1040 (4) - 187521 [07:46:59]1012 (4) - 21.02.2025 01:24 [07:46:59]1206 (1) - 0 [07:46:59]OFD Sender: Remove packet 187521 [07:46:59]ProducePacketName [07:46:59]name=ofd_packets/00187521 [07:46:59]NVStorageDeleteData [07:46:59]Write to MH i2c: 01 00 00 46 13 59 [07:46:59]Write i2c OK [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: 01 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: 01 07 00 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: 01 07 00 46 13 00 00 00 00 00 F9 0C 65 [07:46:59]RasterBufferAndPrint [07:46:59]line [07:46:59]line [07:46:59]line [07:46:59]line [07:46:59]line [07:46:59]written 0, free lines is 3327 [07:46:59]MH_Cut [07:46:59]Write to MH i2c: D1 01 00 4D 13 01 32 [07:46:59]Write i2c OK [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: D1 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: D1 01 00 [07:46:59]MH_I2C_Read... [07:46:59]Read from MH i2c: D1 01 00 4D 13 00 31 [07:46:59]Write to MH i2c: 01 00 00 4E 13 61 [07:46:59]Write i2c OK [07:46:59]MH_I2C_Read... [07:46:59]OFD Sender: No OFD packet to send [07:46:59]*** Cut start [07:46:59]*** Partial cut [07:46:59]*** CUTSNS_PIN = 1 [07:46:59]*** CUTSNS_PIN = 0 [07:47:00]*** Brake cut motor [07:47:00]Read from MH i2c: 01 *** Stop cut motor [07:47:00]*** Cut end [07:47:00] [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 07 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 FF 0F 76 [07:47:00]process_action close_receipt done [07:47:00]requested_data is exist [07:47:00]produce_requested_data [07:47:00]requested_item fm.sn is exist - process it [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 11 00 00 [07:47:00]Write to MH i2c: E2 08 00 4F 13 80 11 00 00 00 00 00 00 DC [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 17 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 17 00 4F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [07:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:47:00]wFMCommunicate OK [07:47:00]requested_item fd.num is exist - process it [07:47:00]SAM_PROTO_GetFieldsCounters [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 13 00 00 [07:47:00]Write to MH i2c: E2 08 00 50 13 80 13 00 00 00 00 00 00 DF [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 62 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 62 00 50 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 81 DC 02 00 0E 04 04 00 89 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 1C [07:47:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 81 DC 02 00 0E 04 04 00 89 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:47:00]wFMCommunicate OK [07:47:00]SAM_PROTO_GetFieldsCounters done [07:47:00]requested_item shift.num is exist - process it [07:47:00]requested_item shift.opened is exist - process it [07:47:00]req_shift_opened [07:47:00]FM_GetShiftState [07:47:00]SAM_PROTO_GetShiftState [07:47:00]wFMCommunicate request_size=4 [07:47:00]MH_SAM_APDU [07:47:00]CAPDU: 80 13 01 00 [07:47:00]Write to MH i2c: E2 08 00 51 13 80 13 01 00 00 00 00 00 E1 [07:47:00]Write i2c OK [07:47:00]MH_I2C_Read... [07:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:00]Read from MH i2c: E2 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 0E 00 [07:47:00]MH_I2C_Read... [07:47:00]Read from MH i2c: E2 0E 00 51 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 CF [07:47:00]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [07:47:00]wFMCommunicate OK [07:47:00]SAM_PROTO_GetShiftState done [07:47:00]FM_GetShiftState done [07:47:00]req_shift_opened done [07:47:00]requested_item shift.open_date is exist - process it [07:47:00]req_shift_open_date [07:47:00]req_shift_open_date done [07:47:00]produce_requested_data done [07:47:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187521,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [07:47:00]process_action_free close_receipt [07:47:00]json_value_free [07:47:00]json_value_free done [07:47:00]process_json_proto returns [07:47:00]Send response to host [07:47:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187521,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [07:47:00]free response buf [07:47:00]execute_script done [07:47:00]execute_script returns [07:47:00]free content buf [07:47:00]Sock 10.Close socket [07:47:00]Sock 10.Thread stoped [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:41]accept exits with 7 [07:50:41]New connection [07:50:41]New thread 3067080036 created [07:50:41]Thread 3067223396 joined [07:50:41]Waiting for new connection... [07:50:41] Sock 7.Parse request [07:50:41]Sock 7.Check first char [07:50:41]Sock 7.First char is OK [07:50:41]request: POST /json_proto HTTP/1.0 [07:50:41]Method: POST [07:50:41]URL: /json_proto [07:50:41]Method is POST - this is cgi request [07:50:41]url: /json_proto [07:50:41]query_string will be loaded in cgi processing [07:50:41]execute_cgi json_proto POST (null) [07:50:41]execute_cgi path=json_proto method=POST [07:50:41]POST find Content-Length [07:50:41]Host: 172.17.46.131:8080 [07:50:41]Content-Length: 682 [07:50:41]Content-Type: application/json [07:50:41] [07:50:41]POST finish read [07:50:41]Found Content-Length = 682 [07:50:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:41]execute_script... [07:50: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)412679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:41]POST & json_proto [07:50:41]process_json_proto [07:50:41]json parsed OK: [07:50:41]protocol is kg_v1.0 [07:50:41]action value=close_receipt [07:50:41]process_action close_receipt [07:50:41]cmd_close_receipt [07:50:41]MH_GetDate [07:50:41]Write to MH i2c: F0 00 00 52 13 54 [07:50:41]Write i2c OK [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: F0 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: F0 09 00 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: F0 09 00 52 13 00 55 30 B8 67 7E 41 4F 65 74 [07:50:41]GetLastDocTimeStamp 1740124020 [07:50:41]current date 1740124245 [07:50:41]FM_GetShiftState [07:50:41]SAM_PROTO_GetShiftState [07:50:41]wFMCommunicate request_size=4 [07:50:41]MH_SAM_APDU [07:50:41]CAPDU: 80 13 01 00 [07:50:41]Write to MH i2c: E2 08 00 53 13 80 13 01 00 00 00 00 00 E3 [07:50:41]Write i2c OK [07:50:41]MH_I2C_Read... [07:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:41]Read from MH i2c: E2 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: E2 0E 00 [07:50:41]MH_I2C_Read... [07:50:41]Read from MH i2c: E2 0E 00 53 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D1 [07:50:41]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [07:50:41]wFMCommunicate OK [07:50:41]SAM_PROTO_GetShiftState done [07:50:41]FM_GetShiftState done [07:50:41]opened in 1740098043 [07:50:41]opened+sec_in_day 1740184443 [07:50:41]quantity*price = 200047 [07:50:41]sum+1 = 200048 [07:50:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 16 21.02.2025 07:50 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187522 ФПД: 49258787031382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T075045&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187522&fm=49258787031382&tin=02508201610067®Number=0000000000091857&sum=200000 [07:50:42]StoreToDocumentArchive [07:50:42]shift 649 fd 187522 [07:50:42]save to /storage/0649/doc_00187522 [07:50:42]save last doc name /storage/0649/doc_00187522 to /storage/kkm_last_doc_name [07:50:42]save OK [07:50:42]Clear old archive folders... [07:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:42]tlvbuf is 0206B610 [07:50:42]SAM_PROTO_ClearQueue [07:50:42]wFMCommunicate request_size=4 [07:50:42]MH_SAM_APDU [07:50:42]CAPDU: 80 09 00 00 [07:50:42]Write to MH i2c: E2 08 00 60 13 80 09 00 00 00 00 00 00 E5 [07:50:42]Write i2c OK [07:50:42]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 03 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 03 00 60 13 00 90 00 E7 [07:50:43]RAPDU: 90 00 [07:50:43]wFMCommunicate OK [07:50:43]SAM_PROTO_ClearQueue done [07:50:43]KKMCreateOFDPacket [07:50:43]OFDProtocolAddRootSTLVToBuf [07:50:43]FM_MakeSignedData [07:50:43]FM_MakeSignedData [07:50:43]SAM_PROTO_SignData [07:50:43]wFMCommunicate request_size=4 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 0D 01 02 [07:50:43]Write to MH i2c: E2 08 00 61 13 80 0D 01 02 00 00 00 00 ED [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 03 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 03 00 61 13 00 90 00 E8 [07:50:43]RAPDU: 90 00 [07:50:43]wFMCommunicate OK [07:50:43]wFMCommunicate request_size=255 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 30 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 DC 02 00 35 04 06 00 2C [07:50:43]Write to MH i2c: E2 02 01 62 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 30 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 DC 02 00 35 04 06 00 2C 00 00 7F [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 03 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 03 00 62 13 00 90 00 E9 [07:50:43]RAPDU: 90 00 [07:50:43]wFMCommunicate OK [07:50:43]wFMCommunicate request_size=10 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 0D 02 02 05 CC F4 80 C9 56 [07:50:43]Write to MH i2c: E2 0D 00 63 13 80 0D 02 02 05 00 CC F4 80 C9 56 00 00 59 [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 03 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 03 00 63 13 00 90 00 EA [07:50:43]RAPDU: 90 00 [07:50:43]wFMCommunicate OK [07:50:43]wFMCommunicate request_size=4 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 0D 03 02 [07:50:43]Write to MH i2c: E2 08 00 64 13 80 0D 03 02 00 00 00 00 F2 [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 0B 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 0B 00 64 13 00 61 27 57 62 C0 68 0C CD 90 00 35 [07:50:43]RAPDU: 61 27 57 62 C0 68 0C CD 90 00 [07:50:43]wFMCommunicate OK [07:50:43]SAM_PROTO_SignData done [07:50:43]FM_MakeSignedData done [07:50:43]CreateOFDProtocolMessage [07:50:43]wFMCommunicate request_size=4 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 11 00 00 [07:50:43]Write to MH i2c: E2 08 00 65 13 80 11 00 00 00 00 00 00 F2 [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 17 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 17 00 65 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 45 [07:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:50:43]wFMCommunicate OK [07:50:43]CreateOFDProtocolMessage done [07:50:43]OFDSenderStorePacket 187522 [07:50:43]StoreOFDPacket docnum=187522 [07:50:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E A2 07 01 5E 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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 30 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 DC 02 00 35 04 06 00 2C CC F4 80 C9 56 61 27 57 62 C0 68 0C CD [07:50:43]CheckFolder [07:50:43]dirname=/storage/ofd_packets [07:50:43]CheckFolder done [07:50:43]ProducePacketName [07:50:43]name=ofd_packets/00187522 [07:50:43]NVStorageSaveData ofd_packets/00187522 [07:50:43]File name is /storage/ofd_packets/00187522 [07:50:43]Write 301 bytes [07:50:43]NVStorageSaveData done [07:50:43]OFDSenderStorePacket done [07:50:43]KKMCreateOFDPacket done [07:50:43]NVStorageSaveData kkm_last_timestamp [07:50:43]File name is /storage/kkm_last_timestamp [07:50:43]Write 4 bytes [07:50:43]NVStorageSaveData done [07:50:43]ExternCall_PrintAddStr [07:50:43]wPrintStart [07:50:43]Write to MH i2c: 01 00 00 66 13 79 [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: 01 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: 01 07 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: 01 07 00 66 13 00 00 00 00 00 FF 0F 8E [07:50:43]RasterBufferAndPrint [07:50:43]line Счет N : (1)412679 [07:50:43]line ИНН: 02508201610067 [07:50:43]line Контрольно-Кассовый Чек [07:50:43]line ПРОДАЖА [07:50:43]line ТРК (МРК, ГНК) : 32 [07:50:43]line Товар: 2710124130 [07:50:43]line Аи-92-К-2 [07:50:43]line 31.160 * 64.20 [07:50:43]line = 2000.47 [07:50:43]line НДС 12% НСП 1% [07:50:43]line > о реализуемом товаре [07:50:43]line ОКРУГЛЕНИЕ: -0.47 [07:50:43]line ИТОГО: 2000.00 [07:50:43]line Внесено: 2000.00 [07:50:43]line СДАЧА: 0.00 [07:50:43]line НСП 1% : 17.70 [07:50:43]line НДС 12% : 212.44 [07:50:43]line Наличными: 2000.00 [07:50:43]line Безнал.: 0.00 [07:50:43]line Место: АЗС № 92 "Партнер Нефть" [07:50:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:50:43]line СНО: Общий режим [07:50:43]line Чек 16 21.02.2025 07:50 [07:50:43]line Смена: 649 ФФД: 1.0 [07:50:43]line ЗНМ: 0300000118 [07:50:43]line РНМ: 0000000000091857 [07:50:43]line Версия ККМ: 001 [07:50:43]line ФМ: 0000000000871826 [07:50:43]line ФД: 187522 [07:50:43]line ФПД: 49258787031382 [07:50:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T075045&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187522&fm=49258787031382&tin=02508201610067®Number=0000000000091857&sum=200000 [07:50:43]OFD Sender: Processing packet 187522 [packets to send 49, broken 48] [07:50:43]ProducePacketName [07:50:43]name=ofd_packets/00187522 [07:50:43]OFD Sender: To server: pG, [07:50:43]CommunicateWithHost lk.salyk.kg:30040 [07:50:43]ConnectInit lk.salyk.kg [07:50:43]written 0, free lines is 4095 [07:50:44]Connected sock=10 [07:50:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E A2 07 01 5E 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 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 55 30 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 DC 02 00 35 04 06 00 2C CC F4 80 C9 56 61 27 57 62 C0 68 0C CD [07:50:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 42 02 47 00 C1 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 38 32 36 10 04 04 00 82 DC 02 00 F4 03 04 00 A3 D6 B7 67 B6 04 01 00 00 37 18 20 06 5A 09 93 F0 [07:50:44]CommunicateWithHost err = 0 [07:50:44]CheckOFDResponse [07:50:44]1017 (14) - 77093643461234 [07:50:44]1041 (16) - 0000000000871826 [07:50:44]1040 (4) - 187522 [07:50:44]1012 (4) - 21.02.2025 01:28 [07:50:44]1206 (1) - 0 [07:50:44]OFD Sender: Remove packet 187522 [07:50:44]ProducePacketName [07:50:44]name=ofd_packets/00187522 [07:50:44]NVStorageDeleteData [07:50:44]Write to MH i2c: 01 00 00 91 13 A4 [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: 01 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: 01 07 00 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: 01 07 00 91 13 00 00 00 00 00 FF 0C B6 [07:50:44]RasterBufferAndPrint [07:50:44]line [07:50:44]line [07:50:44]line [07:50:44]line [07:50:44]line [07:50:44]written 0, free lines is 3333 [07:50:44]MH_Cut [07:50:44]Write to MH i2c: D1 01 00 98 13 01 7D [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: D1 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: D1 01 00 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: D1 01 00 98 13 00 7C [07:50:44]Write to MH i2c: 01 00 00 99 13 AC [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:44]OFD Sender: No OFD packet to send [07:50:44]*** Cut start [07:50:44]*** Partial cut [07:50:44]*** CUTSNS_PIN = 1 [07:50:45]*** CUTSNS_PIN = 0 [07:50:45]*** Brake cut motor [07:50:45]Read from MH i2c: 01 [07:50:45]MH_I2C_Read... [07:50:45]*** Stop cut motor [07:50:45]*** Cut end [07:50:45]Read from MH i2c: 01 07 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 07 00 99 13 00 00 00 00 00 FF 0F C1 [07:50:45]process_action close_receipt done [07:50:45]requested_data is exist [07:50:45]produce_requested_data [07:50:45]requested_item fm.sn is exist - process it [07:50:45]wFMCommunicate request_size=4 [07:50:45]MH_SAM_APDU [07:50:45]CAPDU: 80 11 00 00 [07:50:45]Write to MH i2c: E2 08 00 9A 13 80 11 00 00 00 00 00 00 27 [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:45]Read from MH i2c: E2 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 17 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 17 00 9A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [07:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:50:45]wFMCommunicate OK [07:50:45]requested_item fd.num is exist - process it [07:50:45]SAM_PROTO_GetFieldsCounters [07:50:45]wFMCommunicate request_size=4 [07:50:45]MH_SAM_APDU [07:50:45]CAPDU: 80 13 00 00 [07:50:45]Write to MH i2c: E2 08 00 9B 13 80 13 00 00 00 00 00 00 2A [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:45]Read from MH i2c: E2 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 62 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 62 00 9B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 82 DC 02 00 0E 04 04 00 89 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 6B [07:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 82 DC 02 00 0E 04 04 00 89 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:50:45]wFMCommunicate OK [07:50:45]SAM_PROTO_GetFieldsCounters done [07:50:45]requested_item shift.num is exist - process it [07:50:45]requested_item shift.opened is exist - process it [07:50:45]req_shift_opened [07:50:45]FM_GetShiftState [07:50:45]SAM_PROTO_GetShiftState [07:50:45]wFMCommunicate request_size=4 [07:50:45]MH_SAM_APDU [07:50:45]CAPDU: 80 13 01 00 [07:50:45]Write to MH i2c: E2 08 00 9C 13 80 13 01 00 00 00 00 00 2C [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:46]Read from MH i2c: E2 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: E2 0E 00 [07:50:46]MH_I2C_Read... [07:50:46]Read from MH i2c: E2 0E 00 9C 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1A [07:50:46]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [07:50:46]wFMCommunicate OK [07:50:46]SAM_PROTO_GetShiftState done [07:50:46]FM_GetShiftState done [07:50:46]req_shift_opened done [07:50:46]requested_item shift.open_date is exist - process it [07:50:46]req_shift_open_date [07:50:46]req_shift_open_date done [07:50:46]produce_requested_data done [07:50:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187522,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [07:50:46]process_action_free close_receipt [07:50:46]json_value_free [07:50:46]json_value_free done [07:50:46]process_json_proto returns [07:50:46]Send response to host [07:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187522,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [07:50:46]free response buf [07:50:46]execute_script done [07:50:46]execute_script returns [07:50:46]free content buf [07:50:46]Sock 7.Close socket [07:50:46]Sock 7.Thread stoped [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:27]accept exits with 9 [08:05:27]New connection [08:05:27]New thread 3067223396 created [08:05:27]Thread 3067080036 joined [08:05:27]Waiting for new connection... [08:05:27] Sock 9.Parse request [08:05:27]Sock 9.Check first char [08:05:27]Sock 9.First char is OK [08:05:27]request: POST /json_proto HTTP/1.0 [08:05:27]Method: POST [08:05:27]URL: /json_proto [08:05:27]Method is POST - this is cgi request [08:05:27]url: /json_proto [08:05:27]query_string will be loaded in cgi processing [08:05:27]execute_cgi json_proto POST (null) [08:05:27]execute_cgi path=json_proto method=POST [08:05:27]POST find Content-Length [08:05:27]Host: 172.17.46.131:8080 [08:05:27]Content-Length: 678 [08:05:27]Content-Type: application/json [08:05:27] [08:05:27]POST finish read [08:05:27]Found Content-Length = 678 [08:05:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:27]execute_script... [08:05: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)412680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:27]POST & json_proto [08:05:27]process_json_proto [08:05:27]json parsed OK: [08:05:27]protocol is kg_v1.0 [08:05:27]action value=close_receipt [08:05:27]process_action close_receipt [08:05:27]cmd_close_receipt [08:05:27]MH_GetDate [08:05:27]Write to MH i2c: F0 00 00 9D 13 9F [08:05:27]Write i2c OK [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: F0 [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: F0 09 00 [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: F0 09 00 9D 13 00 CB 33 B8 67 7E 41 4F 65 38 [08:05:27]GetLastDocTimeStamp 1740124245 [08:05:27]current date 1740125131 [08:05:27]FM_GetShiftState [08:05:27]SAM_PROTO_GetShiftState [08:05:27]wFMCommunicate request_size=4 [08:05:27]MH_SAM_APDU [08:05:27]CAPDU: 80 13 01 00 [08:05:27]Write to MH i2c: E2 08 00 9E 13 80 13 01 00 00 00 00 00 2E [08:05:27]Write i2c OK [08:05:27]MH_I2C_Read... [08:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:27]Read from MH i2c: E2 [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: E2 0E 00 [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: E2 0E 00 9E 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1C [08:05:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:05:27]wFMCommunicate OK [08:05:27]SAM_PROTO_GetShiftState done [08:05:27]FM_GetShiftState done [08:05:27]opened in 1740098043 [08:05:27]opened+sec_in_day 1740184443 [08:05:27]quantity*price = 80057 [08:05:27]sum+1 = 80058 [08:05:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 17 21.02.2025 08:05 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187523 ФПД: 102933695078551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T080531&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187523&fm=102933695078551&tin=02508201610067®Number=0000000000091857&sum=80000 [08:05:29]StoreToDocumentArchive [08:05:29]shift 649 fd 187523 [08:05:29]save to /storage/0649/doc_00187523 [08:05:29]save last doc name /storage/0649/doc_00187523 to /storage/kkm_last_doc_name [08:05:29]save OK [08:05:29]Clear old archive folders... [08:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:29]tlvbuf is 02021BA0 [08:05:29]SAM_PROTO_ClearQueue [08:05:29]wFMCommunicate request_size=4 [08:05:29]MH_SAM_APDU [08:05:29]CAPDU: 80 09 00 00 [08:05:29]Write to MH i2c: E2 08 00 AB 13 80 09 00 00 00 00 00 00 30 [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:29]Read from MH i2c: E2 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 AB 13 00 90 00 32 [08:05:29]RAPDU: 90 00 [08:05:29]wFMCommunicate OK [08:05:29]SAM_PROTO_ClearQueue done [08:05:29]KKMCreateOFDPacket [08:05:29]OFDProtocolAddRootSTLVToBuf [08:05:29]FM_MakeSignedData [08:05:29]FM_MakeSignedData [08:05:29]SAM_PROTO_SignData [08:05:29]wFMCommunicate request_size=4 [08:05:29]MH_SAM_APDU [08:05:29]CAPDU: 80 0D 01 02 [08:05:29]Write to MH i2c: E2 08 00 AC 13 80 0D 01 02 00 00 00 00 38 [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:29]Read from MH i2c: E2 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 AC 13 00 90 00 33 [08:05:29]RAPDU: 90 00 [08:05:29]wFMCommunicate OK [08:05:29]wFMCommunicate request_size=255 [08:05:29]MH_SAM_APDU [08:05:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CB 33 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DC 02 00 35 04 06 00 5D [08:05:29]Write to MH i2c: E2 02 01 AD 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CB 33 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DC 02 00 35 04 06 00 5D 00 00 4F [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:29]Read from MH i2c: E2 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [08:05:29]RAPDU: 90 00 [08:05:29]wFMCommunicate OK [08:05:29]wFMCommunicate request_size=10 [08:05:29]MH_SAM_APDU [08:05:29]CAPDU: 80 0D 02 02 05 9E 1E 54 A0 97 [08:05:29]Write to MH i2c: E2 0D 00 AE 13 80 0D 02 02 05 00 9E 1E 54 A0 97 00 00 8C [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:29]Read from MH i2c: E2 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [08:05:29]RAPDU: 90 00 [08:05:29]wFMCommunicate OK [08:05:29]wFMCommunicate request_size=4 [08:05:29]MH_SAM_APDU [08:05:29]CAPDU: 80 0D 03 02 [08:05:29]Write to MH i2c: E2 08 00 AF 13 80 0D 03 02 00 00 00 00 3D [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:29]Read from MH i2c: E2 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 0B 00 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 0B 00 AF 13 00 A7 34 40 97 C9 A9 F1 48 90 00 9B [08:05:29]RAPDU: A7 34 40 97 C9 A9 F1 48 90 00 [08:05:29]wFMCommunicate OK [08:05:29]SAM_PROTO_SignData done [08:05:29]FM_MakeSignedData done [08:05:29]CreateOFDProtocolMessage [08:05:29]wFMCommunicate request_size=4 [08:05:29]MH_SAM_APDU [08:05:29]CAPDU: 80 11 00 00 [08:05:29]Write to MH i2c: E2 08 00 B0 13 80 11 00 00 00 00 00 00 3D [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:29]Read from MH i2c: E2 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 17 00 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: E2 17 00 B0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 90 [08:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:05:29]wFMCommunicate OK [08:05:29]CreateOFDProtocolMessage done [08:05:29]OFDSenderStorePacket 187523 [08:05:29]StoreOFDPacket docnum=187523 [08:05:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C 73 07 01 87 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CB 33 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DC 02 00 35 04 06 00 5D 9E 1E 54 A0 97 A7 34 40 97 C9 A9 F1 48 [08:05:29]CheckFolder [08:05:29]dirname=/storage/ofd_packets [08:05:29]CheckFolder done [08:05:29]ProducePacketName [08:05:29]name=ofd_packets/00187523 [08:05:29]NVStorageSaveData ofd_packets/00187523 [08:05:29]File name is /storage/ofd_packets/00187523 [08:05:29]Write 301 bytes [08:05:29]NVStorageSaveData done [08:05:29]OFDSenderStorePacket done [08:05:29]KKMCreateOFDPacket done [08:05:29]NVStorageSaveData kkm_last_timestamp [08:05:29]File name is /storage/kkm_last_timestamp [08:05:29]OFD Sender: Processing packet 187523 [packets to send 49, broken 48] [08:05:29]ProducePacketName [08:05:29]name=ofd_packets/00187523 [08:05:29]OFD Sender: To server: pG, [08:05:29]CommunicateWithHost lk.salyk.kg:30040 [08:05:29]ConnectInit lk.salyk.kg [08:05:29]Write 4 bytes [08:05:29]NVStorageSaveData done [08:05:29]ExternCall_PrintAddStr [08:05:29]wPrintStart [08:05:29]Write to MH i2c: 01 00 00 B1 13 C4 [08:05:29]Write i2c OK [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: 01 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: 01 07 00 [08:05:29]MH_I2C_Read... [08:05:29]Read from MH i2c: 01 07 00 B1 13 00 00 00 00 00 FF 0F D9 [08:05:29]RasterBufferAndPrint [08:05:29]line Счет N : (1)412680 [08:05:29]line ИНН: 02508201610067 [08:05:29]line Контрольно-Кассовый Чек [08:05:29]line ПРОДАЖА [08:05:29]line ТРК (МРК, ГНК) : 22 [08:05:29]line Товар: 2710124130 [08:05:29]line Аи-92-К-2 [08:05:29]line 12.470 * 64.20 [08:05:29]line = 800.57 [08:05:29]line НДС 12% НСП 1% [08:05:29]line > о реализуемом товаре [08:05:29]line ОКРУГЛЕНИЕ: -0.57 [08:05:29]line ИТОГО: 800.00 [08:05:29]line Внесено: 800.00 [08:05:29]line СДАЧА: 0.00 [08:05:29]line НСП 1% : 7.08 [08:05:29]line НДС 12% : 85.02 [08:05:29]line Наличными: 800.00 [08:05:29]line Безнал.: 0.00 [08:05:29]line Место: АЗС № 92 "Партнер Нефть" [08:05:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:05:29]line СНО: Общий режим [08:05:29]line Чек 17 21.02.2025 08:05 [08:05:29]line Смена: 649 ФФД: 1.0 [08:05:29]line ЗНМ: 0300000118 [08:05:29]line РНМ: 0000000000091857 [08:05:29]line Версия ККМ: 001 [08:05:29]line ФМ: 0000000000871826 [08:05:29]line ФД: 187523 [08:05:29]line ФПД: 102933695078551 [08:05:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T080531&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187523&fm=102933695078551&tin=02508201610067®Number=0000000000091857&sum=80000 [08:05:29]Connected sock=11 [08:05:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C 73 07 01 87 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 CB 33 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DC 02 00 35 04 06 00 5D 9E 1E 54 A0 97 A7 34 40 97 C9 A9 F1 48 [08:05:29]written 0, free lines is 4095 [08:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6D 0F 47 00 36 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DC 02 00 F4 03 04 00 19 DA B7 67 B6 04 01 00 00 46 63 BD 72 84 A8 9C C5 [08:05:30]CommunicateWithHost err = 0 [08:05:30]CheckOFDResponse [08:05:30]1017 (14) - 77093643461234 [08:05:30]1041 (16) - 0000000000871826 [08:05:30]1040 (4) - 187523 [08:05:30]1012 (4) - 21.02.2025 01:42 [08:05:30]1206 (1) - 0 [08:05:30]OFD Sender: Remove packet 187523 [08:05:30]ProducePacketName [08:05:30]name=ofd_packets/00187523 [08:05:30]NVStorageDeleteData [08:05:30]Write to MH i2c: 01 00 00 DC 13 EF [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: 01 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: 01 07 00 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: 01 07 00 DC 13 00 00 00 00 00 FC 0C FE [08:05:30]RasterBufferAndPrint [08:05:30]line [08:05:30]line [08:05:30]line [08:05:30]line [08:05:30]line [08:05:30]written 0, free lines is 3333 [08:05:30]MH_Cut [08:05:30]Write to MH i2c: D1 01 00 E3 13 01 C8 [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: D1 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: D1 01 00 [08:05:30]MH_I2C_Read... [08:05:30]Read from MH i2c: D1 01 00 E3 13 00 C7 [08:05:30]Write to MH i2c: 01 00 00 E4 13 F7 [08:05:30]Write i2c OK [08:05:30]MH_I2C_Read... [08:05:30]OFD Sender: No OFD packet to send [08:05:31]*** Cut start [08:05:31]*** Partial cut [08:05:31]*** CUTSNS_PIN = 1 [08:05:31]*** CUTSNS_PIN = 0 [08:05:31]*** Brake cut motor [08:05:31]Read from MH i2c: 01 [08:05:31]MH_I2C_Read... [08:05:31]*** Stop cut motor [08:05:31]*** Cut end [08:05:31]Read from MH i2c: 01 07 00 [08:05:31]MH_I2C_Read... [08:05:31]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 FF 0F 0C [08:05:31]process_action close_receipt done [08:05:31]requested_data is exist [08:05:31]produce_requested_data [08:05:31]requested_item fm.sn is exist - process it [08:05:31]wFMCommunicate request_size=4 [08:05:31]MH_SAM_APDU [08:05:31]CAPDU: 80 11 00 00 [08:05:31]Write to MH i2c: E2 08 00 E5 13 80 11 00 00 00 00 00 00 72 [08:05:31]Write i2c OK [08:05:31]MH_I2C_Read... [08:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:31]Read from MH i2c: E2 [08:05:31]MH_I2C_Read... [08:05:31]Read from MH i2c: E2 17 00 [08:05:31]MH_I2C_Read... [08:05:31]Read from MH i2c: E2 17 00 E5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C5 [08:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:05:31]wFMCommunicate OK [08:05:31]requested_item fd.num is exist - process it [08:05:31]SAM_PROTO_GetFieldsCounters [08:05:31]wFMCommunicate request_size=4 [08:05:31]MH_SAM_APDU [08:05:31]CAPDU: 80 13 00 00 [08:05:31]Write to MH i2c: E2 08 00 E6 13 80 13 00 00 00 00 00 00 75 [08:05:31]Write i2c OK [08:05:31]MH_I2C_Read... [08:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:32]Read from MH i2c: E2 [08:05:32]MH_I2C_Read... [08:05:32]Read from MH i2c: E2 62 00 [08:05:32]MH_I2C_Read... [08:05:32]Read from MH i2c: E2 62 00 E6 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 83 DC 02 00 0E 04 04 00 89 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 BA [08:05:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 83 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:32]wFMCommunicate OK [08:05:32]SAM_PROTO_GetFieldsCounters done [08:05:32]requested_item shift.num is exist - process it [08:05:32]requested_item shift.opened is exist - process it [08:05:32]req_shift_opened [08:05:32]FM_GetShiftState [08:05:32]SAM_PROTO_GetShiftState [08:05:32]wFMCommunicate request_size=4 [08:05:32]MH_SAM_APDU [08:05:32]CAPDU: 80 13 01 00 [08:05:32]Write to MH i2c: E2 08 00 E7 13 80 13 01 00 00 00 00 00 77 [08:05:32]Write i2c OK [08:05:32]MH_I2C_Read... [08:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:32]Read from MH i2c: E2 [08:05:32]MH_I2C_Read... [08:05:32]Read from MH i2c: E2 0E 00 [08:05:32]MH_I2C_Read... [08:05:32]Read from MH i2c: E2 0E 00 E7 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 65 [08:05:32]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:05:32]wFMCommunicate OK [08:05:32]SAM_PROTO_GetShiftState done [08:05:32]FM_GetShiftState done [08:05:32]req_shift_opened done [08:05:32]requested_item shift.open_date is exist - process it [08:05:32]req_shift_open_date [08:05:32]req_shift_open_date done [08:05:32]produce_requested_data done [08:05:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187523,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:05:32]process_action_free close_receipt [08:05:32]json_value_free [08:05:32]json_value_free done [08:05:32]process_json_proto returns [08:05:32]Send response to host [08:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187523,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:05:32]free response buf [08:05:32]execute_script done [08:05:32]execute_script returns [08:05:32]free content buf [08:05:32]Sock 9.Close socket [08:05:32]Sock 9.Thread stoped [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17: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:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]accept exits with 7 [08:22:31]New connection [08:22:31]New thread 3067080036 created [08:22:31]Thread 3067223396 joined [08:22:31]Waiting for new connection... [08:22:31] Sock 7.Parse request [08:22:31]Sock 7.Check first char [08:22:31]Sock 7.First char is OK [08:22:31]request: POST /json_proto HTTP/1.0 [08:22:31]Method: POST [08:22:31]URL: /json_proto [08:22:31]Method is POST - this is cgi request [08:22:31]url: /json_proto [08:22:31]query_string will be loaded in cgi processing [08:22:31]execute_cgi json_proto POST (null) [08:22:31]execute_cgi path=json_proto method=POST [08:22:31]POST find Content-Length [08:22:31]Host: 172.17.46.131:8080 [08:22:31]Content-Length: 678 [08:22:31]Content-Type: application/json [08:22:31] [08:22:31]POST finish read [08:22:31]Found Content-Length = 678 [08:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:31]execute_script... [08:22: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)412681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:31]POST & json_proto [08:22:31]process_json_proto [08:22:31]json parsed OK: [08:22:31]protocol is kg_v1.0 [08:22:31]action value=close_receipt [08:22:31]process_action close_receipt [08:22:31]cmd_close_receipt [08:22:31]MH_GetDate [08:22:31]Write to MH i2c: F0 00 00 E8 13 EA [08:22:31]Write i2c OK [08:22:31]MH_I2C_Read... [08:22:31]Read from MH i2c: F0 [08:22:31]MH_I2C_Read... [08:22:31]Read from MH i2c: F0 09 00 [08:22:31]MH_I2C_Read... [08:22:31]Read from MH i2c: F0 09 00 E8 13 00 CA 37 B8 67 7E 41 4F 65 86 [08:22:31]GetLastDocTimeStamp 1740125131 [08:22:31]current date 1740126154 [08:22:31]FM_GetShiftState [08:22:31]SAM_PROTO_GetShiftState [08:22:31]wFMCommunicate request_size=4 [08:22:31]MH_SAM_APDU [08:22:31]CAPDU: 80 13 01 00 [08:22:31]Write to MH i2c: E2 08 00 E9 13 80 13 01 00 00 00 00 00 79 [08:22:31]Write i2c OK [08:22:31]MH_I2C_Read... [08:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:31]Read from MH i2c: E2 [08:22:31]MH_I2C_Read... [08:22:31]Read from MH i2c: E2 0E 00 [08:22:31]MH_I2C_Read... [08:22:31]Read from MH i2c: E2 0E 00 E9 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 67 [08:22:31]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:22:31]wFMCommunicate OK [08:22:31]SAM_PROTO_GetShiftState done [08:22:31]FM_GetShiftState done [08:22:31]opened in 1740098043 [08:22:31]opened+sec_in_day 1740184443 [08:22:31]quantity*price = 100042 [08:22:31]sum+1 = 100044 [08:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 18 21.02.2025 08:22 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187524 ФПД: 199813417709097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T082234&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187524&fm=199813417709097&tin=02508201610067®Number=0000000000091857&sum=100000 [08:22:32]StoreToDocumentArchive [08:22:32]shift 649 fd 187524 [08:22:32]save to /storage/0649/doc_00187524 [08:22:32]save last doc name /storage/0649/doc_00187524 to /storage/kkm_last_doc_name [08:22:32]save OK [08:22:32]Clear old archive folders... [08:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:22:32]tlvbuf is 02076DD0 [08:22:32]SAM_PROTO_ClearQueue [08:22:32]wFMCommunicate request_size=4 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 09 00 00 [08:22:32]Write to MH i2c: E2 08 00 F6 13 80 09 00 00 00 00 00 00 7B [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 F6 13 00 90 00 7D [08:22:32]RAPDU: 90 00 [08:22:32]wFMCommunicate OK [08:22:32]SAM_PROTO_ClearQueue done [08:22:32]KKMCreateOFDPacket [08:22:32]OFDProtocolAddRootSTLVToBuf [08:22:32]FM_MakeSignedData [08:22:32]FM_MakeSignedData [08:22:32]SAM_PROTO_SignData [08:22:32]wFMCommunicate request_size=4 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 0D 01 02 [08:22:32]Write to MH i2c: E2 08 00 F7 13 80 0D 01 02 00 00 00 00 83 [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 F7 13 00 90 00 7E [08:22:32]RAPDU: 90 00 [08:22:32]wFMCommunicate OK [08:22:32]wFMCommunicate request_size=255 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CA 37 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DC 02 00 35 04 06 00 B5 BA AF C8 [08:22:32]Write to MH i2c: E2 02 01 F8 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CA 37 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DC 02 00 35 04 06 00 B5 BA AF C8 00 00 2C [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [08:22:32]RAPDU: 90 00 [08:22:32]wFMCommunicate OK [08:22:32]wFMCommunicate request_size=7 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 0D 02 02 02 AE 29 [08:22:32]Write to MH i2c: E2 0A 00 F9 13 80 0D 02 02 02 00 AE 29 00 00 61 [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [08:22:32]RAPDU: 90 00 [08:22:32]wFMCommunicate OK [08:22:32]wFMCommunicate request_size=4 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 0D 03 02 [08:22:32]Write to MH i2c: E2 08 00 FA 13 80 0D 03 02 00 00 00 00 88 [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 0B 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 0B 00 FA 13 00 6F BB 8D C2 9B 2D 91 A3 90 00 FE [08:22:32]RAPDU: 6F BB 8D C2 9B 2D 91 A3 90 00 [08:22:32]wFMCommunicate OK [08:22:32]SAM_PROTO_SignData done [08:22:32]FM_MakeSignedData done [08:22:32]CreateOFDProtocolMessage [08:22:32]wFMCommunicate request_size=4 [08:22:32]MH_SAM_APDU [08:22:32]CAPDU: 80 11 00 00 [08:22:32]Write to MH i2c: E2 08 00 FB 13 80 11 00 00 00 00 00 00 88 [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:32]Read from MH i2c: E2 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 17 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: E2 17 00 FB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [08:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:22:32]wFMCommunicate OK [08:22:32]CreateOFDProtocolMessage done [08:22:32]OFDSenderStorePacket 187524 [08:22:32]StoreOFDPacket docnum=187524 [08:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D0 DB 04 01 08 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CA 37 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DC 02 00 35 04 06 00 B5 BA AF C8 AE 29 6F BB 8D C2 9B 2D 91 A3 [08:22:32]CheckFolder [08:22:32]dirname=/storage/ofd_packets [08:22:32]CheckFolder done [08:22:32]ProducePacketName [08:22:32]name=ofd_packets/00187524 [08:22:32]NVStorageSaveData ofd_packets/00187524 [08:22:32]File name is /storage/ofd_packets/00187524 [08:22:32]Write 298 bytes [08:22:32]NVStorageSaveData done [08:22:32]OFDSenderStorePacket done [08:22:32]KKMCreateOFDPacket done [08:22:32]NVStorageSaveData kkm_last_timestamp [08:22:32]File name is /storage/kkm_last_timestamp [08:22:32]Write 4 bytes [08:22:32]NVStorageSaveData done [08:22:32]ExternCall_PrintAddStr [08:22:32]wPrintStart [08:22:32]Write to MH i2c: 01 00 00 FC 13 0F [08:22:32]Write i2c OK [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: 01 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: 01 07 00 [08:22:32]MH_I2C_Read... [08:22:32]Read from MH i2c: 01 07 00 FC 13 00 00 00 00 00 FF 0F 24 [08:22:32]RasterBufferAndPrint [08:22:32]line Счет N : (1)412681 [08:22:32]line ИНН: 02508201610067 [08:22:32]line Контрольно-Кассовый Чек [08:22:32]line ПРОДАЖА [08:22:32]line ТРК (МРК, ГНК) : 5 [08:22:32]line Товар: 2710194210 [08:22:32]line ДТ-К-5 [08:22:32]line 13.780 * 72.60 [08:22:32]line = 1000.43 [08:22:32]line НДС 12% НСП 1% [08:22:32]line > о реализуемом товаре [08:22:32]line ОКРУГЛЕНИЕ: -0.43 [08:22:32]line ИТОГО: 1000.00 [08:22:32]line Внесено: 1000.00 [08:22:32]line СДАЧА: 0.00 [08:22:32]line НСП 1% : 8.85 [08:22:32]line НДС 12% : 106.24 [08:22:32]line Наличными: 1000.00 [08:22:32]line Безнал.: 0.00 [08:22:32]line Место: АЗС № 92 "Партнер Нефть" [08:22:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:22:32]line СНО: Общий режим [08:22:32]line Чек 18 21.02.2025 08:22 [08:22:32]line Смена: 649 ФФД: 1.0 [08:22:32]line ЗНМ: 0300000118 [08:22:32]line РНМ: 0000000000091857 [08:22:32]line Версия ККМ: 001 [08:22:32]line ФМ: 0000000000871826 [08:22:32]line ФД: 187524 [08:22:32]line ФПД: 199813417709097 [08:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T082234&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187524&fm=199813417709097&tin=02508201610067®Number=0000000000091857&sum=100000 [08:22:33]OFD Sender: Processing packet 187524 [packets to send 49, broken 48] [08:22:33]ProducePacketName [08:22:33]name=ofd_packets/00187524 [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]written 0, free lines is 4095 [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 38 32 36 0C 01 00 00 D0 DB 04 01 08 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CA 37 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DC 02 00 35 04 06 00 B5 BA AF C8 AE 29 6F BB 8D C2 9B 2D 91 A3 [08:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 76 63 47 00 FE C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DC 02 00 F4 03 04 00 19 DE B7 67 B6 04 01 00 00 CF F8 02 75 BE DC DF 36 [08:22:33]CommunicateWithHost err = 0 [08:22:33]CheckOFDResponse [08:22:33]1017 (14) - 77093643461234 [08:22:33]1041 (16) - 0000000000871826 [08:22:33]1040 (4) - 187524 [08:22:33]1012 (4) - 21.02.2025 01:59 [08:22:33]1206 (1) - 0 [08:22:33]OFD Sender: Remove packet 187524 [08:22:33]ProducePacketName [08:22:33]name=ofd_packets/00187524 [08:22:33]NVStorageDeleteData [08:22:33]Write to MH i2c: 01 00 00 27 14 3B [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 27 14 00 00 00 00 00 F5 0C 43 [08:22:33]RasterBufferAndPrint [08:22:33]line [08:22:33]line [08:22:33]line [08:22:33]line [08:22:33]line [08:22:33]written 0, free lines is 3328 [08:22:33]MH_Cut [08:22:33]Write to MH i2c: D1 01 00 2E 14 01 14 [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: D1 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: D1 01 00 [08:22:33]MH_I2C_Read... [08:22:33]Read from MH i2c: D1 01 00 2E 14 00 13 [08:22:33]Write to MH i2c: 01 00 00 2F 14 43 [08:22:33]Write i2c OK [08:22:33]MH_I2C_Read... [08:22:34]OFD Sender: No OFD packet to send [08:22:34]*** Cut start [08:22:34]*** Partial cut [08:22:34]*** CUTSNS_PIN = 1 [08:22:34]*** CUTSNS_PIN = 0 [08:22:34]*** 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 2F 14 00 00 00 00 00 FF 0F 58 [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 30 14 80 11 00 00 00 00 00 00 BE [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 30 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [08:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 31 14 80 13 00 00 00 00 00 00 C1 [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 31 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 84 DC 02 00 0E 04 04 00 89 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 0A [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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 84 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08: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 32 14 80 13 01 00 00 00 00 00 C3 [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:35]Read from MH i2c: E2 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 0E 00 [08:22:35]MH_I2C_Read... [08:22:35]Read from MH i2c: E2 0E 00 32 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B1 [08:22:35]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:22:35]wFMCommunicate OK [08:22:35]SAM_PROTO_GetShiftState done [08:22:35]FM_GetShiftState done [08:22:35]req_shift_opened done [08:22:35]requested_item shift.open_date is exist - process it [08:22:35]req_shift_open_date [08:22:35]req_shift_open_date done [08:22:35]produce_requested_data done [08:22:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187524,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:22:35]process_action_free close_receipt [08:22:35]json_value_free [08:22:35]json_value_free done [08:22:35]process_json_proto returns [08:22:35]Send response to host [08:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187524,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:22:35]free response buf [08:22:35]execute_script done [08:22:35]execute_script returns [08:22:35]free content buf [08:22:35]Sock 7.Close socket [08:22:35]Sock 7.Thread stoped [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24: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:58]accept exits with 9 [08:24:58]New connection [08:24:58]New thread 3067223396 created [08:24:58]Thread 3067080036 joined [08:24:58]Waiting for new connection... [08:24:58] Sock 9.Parse request [08:24:58]Sock 9.Check first char [08:24:58]Sock 9.First char is OK [08:24:58]request: POST /json_proto HTTP/1.0 [08:24:58]Method: POST [08:24:58]URL: /json_proto [08:24:58]Method is POST - this is cgi request [08:24:58]url: /json_proto [08:24:58]query_string will be loaded in cgi processing [08:24:58]execute_cgi json_proto POST (null) [08:24:58]execute_cgi path=json_proto method=POST [08:24:58]POST find Content-Length [08:24:58]Host: 172.17.46.131:8080 [08:24:58]Content-Length: 677 [08:24:58]Content-Type: application/json [08:24:58] [08:24:58]POST finish read [08:24:58]Found Content-Length = 677 [08:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:58]execute_script... [08:24: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)412682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:58]POST & json_proto [08:24:58]process_json_proto [08:24:58]json parsed OK: [08:24:58]protocol is kg_v1.0 [08:24:58]action value=close_receipt [08:24:58]process_action close_receipt [08:24:58]cmd_close_receipt [08:24:58]MH_GetDate [08:24:58]Write to MH i2c: F0 00 00 33 14 36 [08:24:58]Write i2c OK [08:24:58]MH_I2C_Read... [08:24:58]Read from MH i2c: F0 [08:24:58]MH_I2C_Read... [08:24:58]Read from MH i2c: F0 09 00 [08:24:58]MH_I2C_Read... [08:24:58]Read from MH i2c: F0 09 00 33 14 00 5E 38 B8 67 7E 41 4F 65 67 [08:24:58]GetLastDocTimeStamp 1740126154 [08:24:58]current date 1740126302 [08:24:58]FM_GetShiftState [08:24:58]SAM_PROTO_GetShiftState [08:24:58]wFMCommunicate request_size=4 [08:24:58]MH_SAM_APDU [08:24:58]CAPDU: 80 13 01 00 [08:24:58]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [08:24:58]Write i2c OK [08:24:58]MH_I2C_Read... [08:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:58]Read from MH i2c: E2 [08:24:58]MH_I2C_Read... [08:24:58]Read from MH i2c: E2 0E 00 [08:24:58]MH_I2C_Read... [08:24:58]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B3 [08:24:58]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:24:58]wFMCommunicate OK [08:24:58]SAM_PROTO_GetShiftState done [08:24:58]FM_GetShiftState done [08:24:58]opened in 1740098043 [08:24:58]opened+sec_in_day 1740184443 [08:24:58]quantity*price = 50042 [08:24:58]sum+1 = 50043 [08:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 19 21.02.2025 08:25 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187525 ФПД: 218377697466213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T082502&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187525&fm=218377697466213&tin=02508201610067®Number=0000000000091857&sum=50000 [08:24:59]StoreToDocumentArchive [08:24:59]shift 649 fd 187525 [08:24:59]save to /storage/0649/doc_00187525 [08:24:59]save last doc name /storage/0649/doc_00187525 to /storage/kkm_last_doc_name [08:24:59]save OK [08:24:59]Clear old archive folders... [08:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:59]tlvbuf is 020497D0 [08:24:59]SAM_PROTO_ClearQueue [08:24:59]wFMCommunicate request_size=4 [08:24:59]MH_SAM_APDU [08:24:59]CAPDU: 80 09 00 00 [08:24:59]Write to MH i2c: E2 08 00 41 14 80 09 00 00 00 00 00 00 C7 [08:24:59]Write i2c OK [08:24:59]MH_I2C_Read... [08:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:59]Read from MH i2c: E2 [08:24:59]MH_I2C_Read... [08:24:59]Read from MH i2c: E2 03 00 [08:24:59]MH_I2C_Read... [08:24:59]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [08:24:59]RAPDU: 90 00 [08:24:59]wFMCommunicate OK [08:24:59]SAM_PROTO_ClearQueue done [08:24:59]KKMCreateOFDPacket [08:24:59]OFDProtocolAddRootSTLVToBuf [08:24:59]FM_MakeSignedData [08:24:59]FM_MakeSignedData [08:24:59]SAM_PROTO_SignData [08:24:59]wFMCommunicate request_size=4 [08:24:59]MH_SAM_APDU [08:24:59]CAPDU: 80 0D 01 02 [08:24:59]Write to MH i2c: E2 08 00 42 14 80 0D 01 02 00 00 00 00 CF [08:24:59]Write i2c OK [08:24:59]MH_I2C_Read... [08:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:59]Read from MH i2c: E2 [08:24:59]MH_I2C_Read... [08:24:59]Read from MH i2c: E2 03 00 [08:24:59]MH_I2C_Read... [08:24:59]Read from MH i2c: E2 03 00 42 14 00 90 00 CA [08:24:59]RAPDU: 90 00 [08:24:59]wFMCommunicate OK [08:24:59]wFMCommunicate request_size=255 [08:24:59]MH_SAM_APDU [08: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5E 38 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 DC 02 00 35 04 06 00 C6 [08:24:59]Write to MH i2c: E2 02 01 43 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5E 38 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 DC 02 00 35 04 06 00 C6 00 00 D0 [08:24:59]Write i2c OK [08:24:59]MH_I2C_Read... [08:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:00]Read from MH i2c: E2 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: E2 03 00 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [08:25:00]RAPDU: 90 00 [08:25:00]wFMCommunicate OK [08:25:00]wFMCommunicate request_size=10 [08:25:00]MH_SAM_APDU [08:25:00]CAPDU: 80 0D 02 02 05 9D 05 15 97 65 [08:25:00]Write to MH i2c: E2 0D 00 44 14 80 0D 02 02 05 00 9D 05 15 97 65 00 00 8F [08:25:00]Write i2c OK [08:25:00]MH_I2C_Read... [08:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:00]Read from MH i2c: E2 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: E2 03 00 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [08:25:00]RAPDU: 90 00 [08:25:00]wFMCommunicate OK [08:25:00]wFMCommunicate request_size=4 [08:25:00]MH_SAM_APDU [08:25:00]CAPDU: 80 0D 03 02 [08:25:00]Write to MH i2c: E2 08 00 45 14 80 0D 03 02 00 00 00 00 D4 [08:25:00]Write i2c OK [08:25:00]MH_I2C_Read... [08:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:00]Read from MH i2c: E2 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: E2 0B 00 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: E2 0B 00 45 14 00 8C 40 D4 04 52 3A 88 6B 90 00 F8 [08:25:00]RAPDU: 8C 40 D4 04 52 3A 88 6B 90 00 [08:25:00]wFMCommunicate OK [08:25:00]SAM_PROTO_SignData done [08:25:00]FM_MakeSignedData done [08:25:00]CreateOFDProtocolMessage [08:25:00]wFMCommunicate request_size=4 [08:25:00]MH_SAM_APDU [08:25:00]CAPDU: 80 11 00 00 [08:25:00]Write to MH i2c: E2 08 00 46 14 80 11 00 00 00 00 00 00 D4 [08:25:00]Write i2c OK [08:25:00]MH_I2C_Read... [08:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:00]Read from MH i2c: E2 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: E2 17 00 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: E2 17 00 46 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [08:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:25:00]wFMCommunicate OK [08:25:00]CreateOFDProtocolMessage done [08:25:00]OFDSenderStorePacket 187525 [08:25:00]StoreOFDPacket docnum=187525 [08:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 78 3D 07 01 0B B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5E 38 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 DC 02 00 35 04 06 00 C6 9D 05 15 97 65 8C 40 D4 04 52 3A 88 6B [08:25:00]CheckFolder [08:25:00]dirname=/storage/ofd_packets [08:25:00]CheckFolder done [08:25:00]ProducePacketName [08:25:00]name=ofd_packets/00187525 [08:25:00]NVStorageSaveData ofd_packets/00187525 [08:25:00]File name is /storage/ofd_packets/00187525 [08:25:00]Write 301 bytes [08:25:00]NVStorageSaveData done [08:25:00]OFDSenderStorePacket done [08:25:00]KKMCreateOFDPacket done [08:25:00]NVStorageSaveData kkm_last_timestamp [08:25:00]File name is /storage/kkm_last_timestamp [08:25:00]Write 4 bytes [08:25:00]NVStorageSaveData done [08:25:00]ExternCall_PrintAddStr [08:25:00]wPrintStart [08:25:00]Write to MH i2c: 01 00 00 47 14 5B [08:25:00]Write i2c OK [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: 01 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: 01 07 00 [08:25:00]MH_I2C_Read... [08:25:00]Read from MH i2c: 01 07 00 47 14 00 00 00 00 00 FF 0F 70 [08:25:00]RasterBufferAndPrint [08:25:00]line Счет N : (1)412682 [08:25:00]line ИНН: 02508201610067 [08:25:00]line Контрольно-Кассовый Чек [08:25:00]line ПРОДАЖА [08:25:00]line ТРК (МРК, ГНК) : 23 [08:25:00]line Товар: 2710124500 [08:25:00]line Аи-95-К-5 [08:25:00]line 6.960 * 71.90 [08:25:00]line = 500.42 [08:25:00]line НДС 12% НСП 1% [08:25:00]line > о реализуемом товаре [08:25:00]line ОКРУГЛЕНИЕ: -0.42 [08:25:00]line ИТОГО: 500.00 [08:25:00]line Внесено: 500.00 [08:25:00]line СДАЧА: 0.00 [08:25:00]line НСП 1% : 4.43 [08:25:00]line НДС 12% : 53.14 [08:25:00]line Наличными: 500.00 [08:25:00]line Безнал.: 0.00 [08:25:00]line Место: АЗС № 92 "Партнер Нефть" [08:25:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:25:00]line СНО: Общий режим [08:25:00]line Чек 19 21.02.2025 08:25 [08:25:00]line Смена: 649 ФФД: 1.0 [08:25:00]line ЗНМ: 0300000118 [08:25:00]line РНМ: 0000000000091857 [08:25:00]line Версия ККМ: 001 [08:25:00]line ФМ: 0000000000871826 [08:25:00]line ФД: 187525 [08:25:00]line ФПД: 218377697466213 [08:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T082502&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187525&fm=218377697466213&tin=02508201610067®Number=0000000000091857&sum=50000 [08:25:00]written 0, free lines is 4095 [08:25:00]OFD Sender: Processing packet 187525 [packets to send 49, broken 48] [08:25:00]ProducePacketName [08:25:00]name=ofd_packets/00187525 [08:25:00]OFD Sender: To server: pG, [08:25:00]CommunicateWithHost lk.salyk.kg:30040 [08:25:00]ConnectInit lk.salyk.kg [08:25:00]Connected sock=11 [08:25:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 78 3D 07 01 0B B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 5E 38 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 DC 02 00 35 04 06 00 C6 9D 05 15 97 65 8C 40 D4 04 52 3A 88 6B [08: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 38 32 36 4F 00 00 00 94 21 47 00 DC 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 DC 02 00 F4 03 04 00 AC DE B7 67 B6 04 01 00 00 6B B4 2C EE 53 DD CB D9 [08:25:00]CommunicateWithHost err = 0 [08:25:00]CheckOFDResponse [08:25:00]1017 (14) - 77093643461234 [08:25:00]1041 (16) - 0000000000871826 [08:25:00]1040 (4) - 187525 [08:25:00]1012 (4) - 21.02.2025 02:02 [08:25:00]1206 (1) - 0 [08:25:00]OFD Sender: Remove packet 187525 [08:25:00]ProducePacketName [08:25:00]name=ofd_packets/00187525 [08:25:00]NVStorageDeleteData [08:25:01]Write to MH i2c: 01 00 00 72 14 86 [08:25:01]Write i2c OK [08:25:01]MH_I2C_Read... [08:25:01]Read from MH i2c: 01 [08:25:01]MH_I2C_Read... [08:25:01]Read from MH i2c: 01 07 00 [08:25:01]MH_I2C_Read... [08:25:01]Read from MH i2c: 01 07 00 72 14 00 00 00 00 00 FC 0C 95 [08:25:01]RasterBufferAndPrint [08:25:01]line [08:25:01]line [08:25:01]line [08:25:01]line [08:25:01]line [08:25:01]written 0, free lines is 3330 [08:25:01]MH_Cut [08:25:01]Write to MH i2c: D1 01 00 79 14 01 5F [08:25:01]Write i2c OK [08:25:01]MH_I2C_Read... [08:25:01]Read from MH i2c: D1 [08:25:01]MH_I2C_Read... [08:25:01]Read from MH i2c: D1 01 00 [08:25:01]MH_I2C_Read... [08:25:01]Read from MH i2c: D1 01 00 79 14 00 5E [08:25:01]Write to MH i2c: 01 00 00 7A 14 8E [08:25:01]Write i2c OK [08:25:01]MH_I2C_Read... [08:25:01]OFD Sender: No OFD packet to send [08:25:01]*** Cut start [08:25:01]*** Partial cut [08:25:01]*** CUTSNS_PIN = 1 [08:25:01]*** CUTSNS_PIN = 0 [08:25:02]*** Brake cut motor [08:25:02]Read from MH i2c: 01 [08:25:02]MH_I2C_Read... [08:25:02]*** Stop cut motor [08:25:02]*** Cut end [08:25:02]Read from MH i2c: 01 07 00 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: 01 07 00 7A 14 00 00 00 00 00 FF 0F A3 [08:25:02]process_action close_receipt done [08:25:02]requested_data is exist [08:25:02]produce_requested_data [08:25:02]requested_item fm.sn is exist - process it [08:25:02]wFMCommunicate request_size=4 [08:25:02]MH_SAM_APDU [08:25:02]CAPDU: 80 11 00 00 [08:25:02]Write to MH i2c: E2 08 00 7B 14 80 11 00 00 00 00 00 00 09 [08:25:02]Write i2c OK [08:25:02]MH_I2C_Read... [08:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:02]Read from MH i2c: E2 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 17 00 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 17 00 7B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [08:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:25:02]wFMCommunicate OK [08:25:02]requested_item fd.num is exist - process it [08:25:02]SAM_PROTO_GetFieldsCounters [08:25:02]wFMCommunicate request_size=4 [08:25:02]MH_SAM_APDU [08:25:02]CAPDU: 80 13 00 00 [08:25:02]Write to MH i2c: E2 08 00 7C 14 80 13 00 00 00 00 00 00 0C [08:25:02]Write i2c OK [08:25:02]MH_I2C_Read... [08:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:02]Read from MH i2c: E2 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 62 00 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 62 00 7C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 85 DC 02 00 0E 04 04 00 89 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 59 [08: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 85 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:02]wFMCommunicate OK [08:25:02]SAM_PROTO_GetFieldsCounters done [08:25:02]requested_item shift.num is exist - process it [08:25:02]requested_item shift.opened is exist - process it [08:25:02]req_shift_opened [08:25:02]FM_GetShiftState [08:25:02]SAM_PROTO_GetShiftState [08:25:02]wFMCommunicate request_size=4 [08:25:02]MH_SAM_APDU [08:25:02]CAPDU: 80 13 01 00 [08:25:02]Write to MH i2c: E2 08 00 7D 14 80 13 01 00 00 00 00 00 0E [08:25:02]Write i2c OK [08:25:02]MH_I2C_Read... [08:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:02]Read from MH i2c: E2 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 0E 00 [08:25:02]MH_I2C_Read... [08:25:02]Read from MH i2c: E2 0E 00 7D 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FC [08:25:02]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:25:02]wFMCommunicate OK [08:25:02]SAM_PROTO_GetShiftState done [08:25:02]FM_GetShiftState done [08:25:02]req_shift_opened done [08:25:02]requested_item shift.open_date is exist - process it [08:25:02]req_shift_open_date [08:25:02]req_shift_open_date done [08:25:02]produce_requested_data done [08:25:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187525,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:25:02]process_action_free close_receipt [08:25:02]json_value_free [08:25:02]json_value_free done [08:25:02]process_json_proto returns [08:25:02]Send response to host [08:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187525,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:25:02]free response buf [08:25:02]execute_script done [08:25:02]execute_script returns [08:25:02]free content buf [08:25:02]Sock 9.Close socket [08:25:02]Sock 9.Thread stoped [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:17]accept exits with 7 [08:28:17]New connection [08:28:17]New thread 3067080036 created [08:28:17]Thread 3067223396 joined [08:28:17]Waiting for new connection... [08:28:17] Sock 7.Parse request [08:28:17]Sock 7.Check first char [08:28:17]Sock 7.First char is OK [08:28:17]request: POST /json_proto HTTP/1.0 [08:28:17]Method: POST [08:28:17]URL: /json_proto [08:28:17]Method is POST - this is cgi request [08:28:17]url: /json_proto [08:28:17]query_string will be loaded in cgi processing [08:28:17]execute_cgi json_proto POST (null) [08:28:17]execute_cgi path=json_proto method=POST [08:28:17]POST find Content-Length [08:28:17]Host: 172.17.46.131:8080 [08:28:17]Content-Length: 677 [08:28:17]Content-Type: application/json [08:28:17] [08:28:17]POST finish read [08:28:17]Found Content-Length = 677 [08:28:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:17]execute_script... [08:28: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)412683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:17]POST & json_proto [08:28:17]process_json_proto [08:28:17]json parsed OK: [08:28:17]protocol is kg_v1.0 [08:28:17]action value=close_receipt [08:28:17]process_action close_receipt [08:28:17]cmd_close_receipt [08:28:17]MH_GetDate [08:28:17]Write to MH i2c: F0 00 00 7E 14 81 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: F0 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: F0 09 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: F0 09 00 7E 14 00 24 39 B8 67 7E 41 4F 65 79 [08:28:17]GetLastDocTimeStamp 1740126302 [08:28:17]current date 1740126500 [08:28:17]FM_GetShiftState [08:28:17]SAM_PROTO_GetShiftState [08:28:17]wFMCommunicate request_size=4 [08:28:17]MH_SAM_APDU [08:28:17]CAPDU: 80 13 01 00 [08:28:17]Write to MH i2c: E2 08 00 7F 14 80 13 01 00 00 00 00 00 10 [08:28:17]Write i2c OK [08:28:17]MH_I2C_Read... [08:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:17]Read from MH i2c: E2 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 0E 00 [08:28:17]MH_I2C_Read... [08:28:17]Read from MH i2c: E2 0E 00 7F 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FE [08:28:17]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:28:17]wFMCommunicate OK [08:28:17]SAM_PROTO_GetShiftState done [08:28:17]FM_GetShiftState done [08:28:17]opened in 1740098043 [08:28:17]opened+sec_in_day 1740184443 [08:28:17]quantity*price = 50011 [08:28:17]sum+1 = 50013 [08:28:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 20 21.02.2025 08:28 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187526 ФПД: 33907966175954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T082820&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187526&fm=33907966175954&tin=02508201610067®Number=0000000000091857&sum=50000 [08:28:18]StoreToDocumentArchive [08:28:18]shift 649 fd 187526 [08:28:18]save to /storage/0649/doc_00187526 [08:28:18]save last doc name /storage/0649/doc_00187526 to /storage/kkm_last_doc_name [08:28:18]save OK [08:28:18]Clear old archive folders... [08:28:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:18]tlvbuf is 0206E170 [08:28:18]SAM_PROTO_ClearQueue [08:28:18]wFMCommunicate request_size=4 [08:28:18]MH_SAM_APDU [08:28:18]CAPDU: 80 09 00 00 [08:28:18]Write to MH i2c: E2 08 00 8C 14 80 09 00 00 00 00 00 00 12 [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:18]Read from MH i2c: E2 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 8C 14 00 90 00 14 [08:28:18]RAPDU: 90 00 [08:28:18]wFMCommunicate OK [08:28:18]SAM_PROTO_ClearQueue done [08:28:18]KKMCreateOFDPacket [08:28:18]OFDProtocolAddRootSTLVToBuf [08:28:18]FM_MakeSignedData [08:28:18]FM_MakeSignedData [08:28:18]SAM_PROTO_SignData [08:28:18]wFMCommunicate request_size=4 [08:28:18]MH_SAM_APDU [08:28:18]CAPDU: 80 0D 01 02 [08:28:18]Write to MH i2c: E2 08 00 8D 14 80 0D 01 02 00 00 00 00 1A [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:18]Read from MH i2c: E2 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 8D 14 00 90 00 15 [08:28:18]RAPDU: 90 00 [08:28:18]wFMCommunicate OK [08:28:18]wFMCommunicate request_size=255 [08:28:18]MH_SAM_APDU [08:28:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 24 39 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 DC 02 00 35 04 06 00 1E [08:28:18]Write to MH i2c: E2 02 01 8E 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 24 39 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 DC 02 00 35 04 06 00 1E 00 00 50 [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:18]Read from MH i2c: E2 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 [08:28:18]MH_I2C_Read... [08:28:18]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [08:28:18]RAPDU: 90 00 [08:28:18]wFMCommunicate OK [08:28:18]wFMCommunicate request_size=10 [08:28:18]MH_SAM_APDU [08:28:18]CAPDU: 80 0D 02 02 05 D6 D0 47 6A D2 [08:28:18]Write to MH i2c: E2 0D 00 8F 14 80 0D 02 02 05 00 D6 D0 47 6A D2 00 00 50 [08:28:18]Write i2c OK [08:28:18]MH_I2C_Read... [08:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:19]Read from MH i2c: E2 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: E2 03 00 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [08:28:19]RAPDU: 90 00 [08:28:19]wFMCommunicate OK [08:28:19]wFMCommunicate request_size=4 [08:28:19]MH_SAM_APDU [08:28:19]CAPDU: 80 0D 03 02 [08:28:19]Write to MH i2c: E2 08 00 90 14 80 0D 03 02 00 00 00 00 1F [08:28:19]Write i2c OK [08:28:19]MH_I2C_Read... [08:28:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:19]Read from MH i2c: E2 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: E2 0B 00 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: E2 0B 00 90 14 00 2D C4 05 01 76 8E 75 9C 90 00 2C [08:28:19]RAPDU: 2D C4 05 01 76 8E 75 9C 90 00 [08:28:19]wFMCommunicate OK [08:28:19]SAM_PROTO_SignData done [08:28:19]FM_MakeSignedData done [08:28:19]CreateOFDProtocolMessage [08:28:19]wFMCommunicate request_size=4 [08:28:19]MH_SAM_APDU [08:28:19]CAPDU: 80 11 00 00 [08:28:19]Write to MH i2c: E2 08 00 91 14 80 11 00 00 00 00 00 00 1F [08:28:19]Write i2c OK [08:28:19]MH_I2C_Read... [08:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:19]Read from MH i2c: E2 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: E2 17 00 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: E2 17 00 91 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [08:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:28:19]wFMCommunicate OK [08:28:19]CreateOFDProtocolMessage done [08:28:19]OFDSenderStorePacket 187526 [08:28:19]StoreOFDPacket docnum=187526 [08:28:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6C 67 07 01 D5 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 24 39 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 DC 02 00 35 04 06 00 1E D6 D0 47 6A D2 2D C4 05 01 76 8E 75 9C [08:28:19]CheckFolder [08:28:19]dirname=/storage/ofd_packets [08:28:19]CheckFolder done [08:28:19]ProducePacketName [08:28:19]name=ofd_packets/00187526 [08:28:19]NVStorageSaveData ofd_packets/00187526 [08:28:19]File name is /storage/ofd_packets/00187526 [08:28:19]Write 301 bytes [08:28:19]NVStorageSaveData done [08:28:19]OFDSenderStorePacket done [08:28:19]KKMCreateOFDPacket done [08:28:19]NVStorageSaveData kkm_last_timestamp [08:28:19]File name is /storage/kkm_last_timestamp [08:28:19]OFD Sender: Processing packet 187526 [packets to send 49, broken 48] [08:28:19]ProducePacketName [08:28:19]name=ofd_packets/00187526 [08:28:19]OFD Sender: To server: pG, [08:28:19]CommunicateWithHost lk.salyk.kg:30040 [08:28:19]ConnectInit lk.salyk.kg [08:28:19]Write 4 bytes [08:28:19]NVStorageSaveData done [08:28:19]ExternCall_PrintAddStr [08:28:19]wPrintStart [08:28:19]Write to MH i2c: 01 00 00 92 14 A6 [08:28:19]Write i2c OK [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: 01 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: 01 07 00 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: 01 07 00 92 14 00 00 00 00 00 FF 0F BB [08:28:19]RasterBufferAndPrint [08:28:19]line Счет N : (1)412683 [08:28:19]line ИНН: 02508201610067 [08:28:19]line Контрольно-Кассовый Чек [08:28:19]line ПРОДАЖА [08:28:19]line ТРК (МРК, ГНК) : 22 [08:28:19]line Товар: 2710124130 [08:28:19]line Аи-92-К-2 [08:28:19]line 7.790 * 64.20 [08:28:19]line = 500.12 [08:28:19]line НДС 12% НСП 1% [08:28:19]line > о реализуемом товаре [08:28:19]line ОКРУГЛЕНИЕ: -0.12 [08:28:19]line ИТОГО: 500.00 [08:28:19]line Внесено: 500.00 [08:28:19]line СДАЧА: 0.00 [08:28:19]line НСП 1% : 4.43 [08:28:19]line НДС 12% : 53.11 [08:28:19]line Наличными: 500.00 [08:28:19]line Безнал.: 0.00 [08:28:19]line Место: АЗС № 92 "Партнер Нефть" [08:28:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:28:19]line СНО: Общий режим [08:28:19]line Чек 20 21.02.2025 08:28 [08:28:19]line Смена: 649 ФФД: 1.0 [08:28:19]line ЗНМ: 0300000118 [08:28:19]line РНМ: 0000000000091857 [08:28:19]line Версия ККМ: 001 [08:28:19]line ФМ: 0000000000871826 [08:28:19]line ФД: 187526 [08:28:19]line ФПД: 33907966175954 [08:28:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T082820&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187526&fm=33907966175954&tin=02508201610067®Number=0000000000091857&sum=50000 [08:28:19]written 0, free lines is 4095 [08:28:19]Connected sock=11 [08:28:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6C 67 07 01 D5 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 24 39 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 DC 02 00 35 04 06 00 1E D6 D0 47 6A D2 2D C4 05 01 76 8E 75 9C [08:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D8 E0 47 00 DF BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 DC 02 00 F4 03 04 00 73 DF B7 67 B6 04 01 00 00 51 29 BF 9B 8A AD F9 6C [08:28:19]CommunicateWithHost err = 0 [08:28:19]CheckOFDResponse [08:28:19]1017 (14) - 77093643461234 [08:28:19]1041 (16) - 0000000000871826 [08:28:19]1040 (4) - 187526 [08:28:19]1012 (4) - 21.02.2025 02:05 [08:28:19]1206 (1) - 0 [08:28:19]OFD Sender: Remove packet 187526 [08:28:19]ProducePacketName [08:28:19]name=ofd_packets/00187526 [08:28:19]NVStorageDeleteData [08:28:19]Write to MH i2c: 01 00 00 BD 14 D1 [08:28:19]Write i2c OK [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: 01 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: 01 07 00 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: 01 07 00 BD 14 00 00 00 00 00 F3 0C D7 [08:28:19]RasterBufferAndPrint [08:28:19]line [08:28:19]line [08:28:19]line [08:28:19]line [08:28:19]line [08:28:19]written 0, free lines is 3321 [08:28:19]MH_Cut [08:28:19]Write to MH i2c: D1 01 00 C4 14 01 AA [08:28:19]Write i2c OK [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: D1 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: D1 01 00 [08:28:19]MH_I2C_Read... [08:28:19]Read from MH i2c: D1 01 00 C4 14 00 A9 [08:28:19]Write to MH i2c: 01 00 00 C5 14 D9 [08:28:19]Write i2c OK [08:28:19]MH_I2C_Read... [08:28:20]OFD Sender: No OFD packet to send [08:28:20]*** Cut start [08:28:20]*** Partial cut [08:28:20]*** CUTSNS_PIN = 1 [08:28:20]*** CUTSNS_PIN = 0 [08:28:20]*** Brake cut motor [08:28:20]Read from MH i2c: 01 [08:28:21]MH_I2C_Read... [08:28:21]*** Stop cut motor [08:28:21]*** Cut end [08:28:21]Read from MH i2c: 01 07 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: 01 07 00 C5 14 00 00 00 00 00 FF 0F EE [08:28:21]process_action close_receipt done [08:28:21]requested_data is exist [08:28:21]produce_requested_data [08:28:21]requested_item fm.sn is exist - process it [08:28:21]wFMCommunicate request_size=4 [08:28:21]MH_SAM_APDU [08:28:21]CAPDU: 80 11 00 00 [08:28:21]Write to MH i2c: E2 08 00 C6 14 80 11 00 00 00 00 00 00 54 [08:28:21]Write i2c OK [08:28:21]MH_I2C_Read... [08:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:21]Read from MH i2c: E2 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 17 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 17 00 C6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [08:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:28:21]wFMCommunicate OK [08:28:21]requested_item fd.num is exist - process it [08:28:21]SAM_PROTO_GetFieldsCounters [08:28:21]wFMCommunicate request_size=4 [08:28:21]MH_SAM_APDU [08:28:21]CAPDU: 80 13 00 00 [08:28:21]Write to MH i2c: E2 08 00 C7 14 80 13 00 00 00 00 00 00 57 [08:28:21]Write i2c OK [08:28:21]MH_I2C_Read... [08:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:21]Read from MH i2c: E2 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 62 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 62 00 C7 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 86 DC 02 00 0E 04 04 00 89 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 A8 [08:28:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 86 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:21]wFMCommunicate OK [08:28:21]SAM_PROTO_GetFieldsCounters done [08:28:21]requested_item shift.num is exist - process it [08:28:21]requested_item shift.opened is exist - process it [08:28:21]req_shift_opened [08:28:21]FM_GetShiftState [08:28:21]SAM_PROTO_GetShiftState [08:28:21]wFMCommunicate request_size=4 [08:28:21]MH_SAM_APDU [08:28:21]CAPDU: 80 13 01 00 [08:28:21]Write to MH i2c: E2 08 00 C8 14 80 13 01 00 00 00 00 00 59 [08:28:21]Write i2c OK [08:28:21]MH_I2C_Read... [08:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:21]Read from MH i2c: E2 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 0E 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 0E 00 C8 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 47 [08:28:21]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:28:21]wFMCommunicate OK [08:28:21]SAM_PROTO_GetShiftState done [08:28:21]FM_GetShiftState done [08:28:21]req_shift_opened done [08:28:21]requested_item shift.open_date is exist - process it [08:28:21]req_shift_open_date [08:28:21]req_shift_open_date done [08:28:21]produce_requested_data done [08:28:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187526,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:28:21]process_action_free close_receipt [08:28:21]json_value_free [08:28:21]json_value_free done [08:28:21]process_json_proto returns [08:28:21]Send response to host [08:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187526,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:28:21]free response buf [08:28:21]execute_script done [08:28:21]execute_script returns [08:28:21]free content buf [08:28:21]Sock 7.Close socket [08:28:21]Sock 7.Thread stoped [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30: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:38]accept exits with 9 [08:32:38]New connection [08:32:38]New thread 3067223396 created [08:32:38]Thread 3067080036 joined [08:32:38]Waiting for new connection... [08:32:38] Sock 9.Parse request [08:32:38]Sock 9.Check first char [08:32:38]Sock 9.First char is OK [08:32:38]request: POST /json_proto HTTP/1.0 [08:32:38]Method: POST [08:32:38]URL: /json_proto [08:32:38]Method is POST - this is cgi request [08:32:38]url: /json_proto [08:32:38]query_string will be loaded in cgi processing [08:32:38]execute_cgi json_proto POST (null) [08:32:38]execute_cgi path=json_proto method=POST [08:32:38]POST find Content-Length [08:32:38]Host: 172.17.46.131:8080 [08:32:38]Content-Length: 678 [08:32:38]Content-Type: application/json [08:32:38] [08:32:38]POST finish read [08:32:38]Found Content-Length = 678 [08:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:38]execute_script... [08:32:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:38]POST & json_proto [08:32:38]process_json_proto [08:32:38]json parsed OK: [08:32:38]protocol is kg_v1.0 [08:32:38]action value=close_receipt [08:32:38]process_action close_receipt [08:32:38]cmd_close_receipt [08:32:38]MH_GetDate [08:32:38]Write to MH i2c: F0 00 00 C9 14 CC [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: F0 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: F0 09 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: F0 09 00 C9 14 00 2A 3A B8 67 7E 41 4F 65 CB [08:32:38]GetLastDocTimeStamp 1740126500 [08:32:38]current date 1740126762 [08:32:38]FM_GetShiftState [08:32:38]SAM_PROTO_GetShiftState [08:32:38]wFMCommunicate request_size=4 [08:32:38]MH_SAM_APDU [08:32:38]CAPDU: 80 13 01 00 [08:32:38]Write to MH i2c: E2 08 00 CA 14 80 13 01 00 00 00 00 00 5B [08:32:38]Write i2c OK [08:32:38]MH_I2C_Read... [08:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:38]Read from MH i2c: E2 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 0E 00 [08:32:38]MH_I2C_Read... [08:32:38]Read from MH i2c: E2 0E 00 CA 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 49 [08:32:38]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:32:38]wFMCommunicate OK [08:32:38]SAM_PROTO_GetShiftState done [08:32:38]FM_GetShiftState done [08:32:38]opened in 1740098043 [08:32:38]opened+sec_in_day 1740184443 [08:32:38]quantity*price = 100042 [08:32:38]sum+1 = 100044 [08:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 21 21.02.2025 08:32 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187527 ФПД: 135104446248939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T083242&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187527&fm=135104446248939&tin=02508201610067®Number=0000000000091857&sum=100000 [08:32:40]StoreToDocumentArchive [08:32:40]shift 649 fd 187527 [08:32:40]save to /storage/0649/doc_00187527 [08:32:40]save last doc name /storage/0649/doc_00187527 to /storage/kkm_last_doc_name [08:32:40]save OK [08:32:40]Clear old archive folders... [08:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:32:40]tlvbuf is 0208E3C0 [08:32:40]SAM_PROTO_ClearQueue [08:32:40]wFMCommunicate request_size=4 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 09 00 00 [08:32:40]Write to MH i2c: E2 08 00 D7 14 80 09 00 00 00 00 00 00 5D [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 03 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 03 00 D7 14 00 90 00 5F [08:32:40]RAPDU: 90 00 [08:32:40]wFMCommunicate OK [08:32:40]SAM_PROTO_ClearQueue done [08:32:40]KKMCreateOFDPacket [08:32:40]OFDProtocolAddRootSTLVToBuf [08:32:40]FM_MakeSignedData [08:32:40]FM_MakeSignedData [08:32:40]SAM_PROTO_SignData [08:32:40]wFMCommunicate request_size=4 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 0D 01 02 [08:32:40]Write to MH i2c: E2 08 00 D8 14 80 0D 01 02 00 00 00 00 65 [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 03 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 03 00 D8 14 00 90 00 60 [08:32:40]RAPDU: 90 00 [08:32:40]wFMCommunicate OK [08:32:40]wFMCommunicate request_size=255 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2A 3A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 DC 02 00 35 04 06 00 7A E0 74 86 [08:32:40]Write to MH i2c: E2 02 01 D9 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2A 3A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 DC 02 00 35 04 06 00 7A E0 74 86 00 00 E5 [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]OFD Sender: No OFD packet to send [08:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 03 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 03 00 D9 14 00 90 00 61 [08:32:40]RAPDU: 90 00 [08:32:40]wFMCommunicate OK [08:32:40]wFMCommunicate request_size=7 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 0D 02 02 02 B7 EB [08:32:40]Write to MH i2c: E2 0A 00 DA 14 80 0D 02 02 02 00 B7 EB 00 00 0E [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 03 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 03 00 DA 14 00 90 00 62 [08:32:40]RAPDU: 90 00 [08:32:40]wFMCommunicate OK [08:32:40]wFMCommunicate request_size=4 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 0D 03 02 [08:32:40]Write to MH i2c: E2 08 00 DB 14 80 0D 03 02 00 00 00 00 6A [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 0B 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 0B 00 DB 14 00 43 1D D6 72 57 8E F0 C4 90 00 AC [08:32:40]RAPDU: 43 1D D6 72 57 8E F0 C4 90 00 [08:32:40]wFMCommunicate OK [08:32:40]SAM_PROTO_SignData done [08:32:40]FM_MakeSignedData done [08:32:40]CreateOFDProtocolMessage [08:32:40]wFMCommunicate request_size=4 [08:32:40]MH_SAM_APDU [08:32:40]CAPDU: 80 11 00 00 [08:32:40]Write to MH i2c: E2 08 00 DC 14 80 11 00 00 00 00 00 00 6A [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:40]Read from MH i2c: E2 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 17 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: E2 17 00 DC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [08:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:32:40]wFMCommunicate OK [08:32:40]CreateOFDProtocolMessage done [08:32:40]OFDSenderStorePacket 187527 [08:32:40]StoreOFDPacket docnum=187527 [08:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7C 2D 04 01 CC 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2A 3A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 DC 02 00 35 04 06 00 7A E0 74 86 B7 EB 43 1D D6 72 57 8E F0 C4 [08:32:40]CheckFolder [08:32:40]dirname=/storage/ofd_packets [08:32:40]CheckFolder done [08:32:40]ProducePacketName [08:32:40]name=ofd_packets/00187527 [08:32:40]NVStorageSaveData ofd_packets/00187527 [08:32:40]File name is /storage/ofd_packets/00187527 [08:32:40]Write 298 bytes [08:32:40]NVStorageSaveData done [08:32:40]OFDSenderStorePacket done [08:32:40]KKMCreateOFDPacket done [08:32:40]NVStorageSaveData kkm_last_timestamp [08:32:40]File name is /storage/kkm_last_timestamp [08:32:40]Write 4 bytes [08:32:40]NVStorageSaveData done [08:32:40]ExternCall_PrintAddStr [08:32:40]wPrintStart [08:32:40]Write to MH i2c: 01 00 00 DD 14 F1 [08:32:40]Write i2c OK [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: 01 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: 01 07 00 [08:32:40]MH_I2C_Read... [08:32:40]Read from MH i2c: 01 07 00 DD 14 00 00 00 00 00 FF 0F 06 [08:32:40]RasterBufferAndPrint [08:32:40]line Счет N : (1)412684 [08:32:40]line ИНН: 02508201610067 [08:32:40]line Контрольно-Кассовый Чек [08:32:40]line ПРОДАЖА [08:32:40]line ТРК (МРК, ГНК) : 5 [08:32:40]line Товар: 2710194210 [08:32:40]line ДТ-К-5 [08:32:40]line 13.780 * 72.60 [08:32:40]line = 1000.43 [08:32:40]line НДС 12% НСП 1% [08:32:40]line > о реализуемом товаре [08:32:40]line ОКРУГЛЕНИЕ: -0.43 [08:32:40]line ИТОГО: 1000.00 [08:32:40]line Внесено: 1000.00 [08:32:40]line СДАЧА: 0.00 [08:32:40]line НСП 1% : 8.85 [08:32:40]line НДС 12% : 106.24 [08:32:40]line Наличными: 1000.00 [08:32:40]line Безнал.: 0.00 [08:32:40]line Место: АЗС № 92 "Партнер Нефть" [08:32:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:32:40]line СНО: Общий режим [08:32:40]line Чек 21 21.02.2025 08:32 [08:32:40]line Смена: 649 ФФД: 1.0 [08:32:40]line ЗНМ: 0300000118 [08:32:40]line РНМ: 0000000000091857 [08:32:40]line Версия ККМ: 001 [08:32:40]line ФМ: 0000000000871826 [08:32:40]line ФД: 187527 [08:32:40]line ФПД: 135104446248939 [08:32:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T083242&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187527&fm=135104446248939&tin=02508201610067®Number=0000000000091857&sum=100000 [08:32:40]OFD Sender: Processing packet 187527 [packets to send 49, broken 48] [08:32:40]ProducePacketName [08:32:40]name=ofd_packets/00187527 [08:32:40]OFD Sender: To server: pG, [08:32:40]CommunicateWithHost lk.salyk.kg:30040 [08:32:40]ConnectInit lk.salyk.kg [08:32:40]written 0, free lines is 4095 [08:32:41]Connected sock=7 [08:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 7C 2D 04 01 CC 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 2A 3A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 DC 02 00 35 04 06 00 7A E0 74 86 B7 EB 43 1D D6 72 57 8E F0 C4 [08:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3B 55 47 00 F9 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 38 32 36 10 04 04 00 87 DC 02 00 F4 03 04 00 78 E0 B7 67 B6 04 01 00 00 BC 36 C7 28 BE 38 ED 32 [08:32:41]CommunicateWithHost err = 0 [08:32:41]CheckOFDResponse [08:32:41]1017 (14) - 77093643461234 [08:32:41]1041 (16) - 0000000000871826 [08:32:41]1040 (4) - 187527 [08:32:41]1012 (4) - 21.02.2025 02:10 [08:32:41]1206 (1) - 0 [08:32:41]OFD Sender: Remove packet 187527 [08:32:41]ProducePacketName [08:32:41]name=ofd_packets/00187527 [08:32:41]NVStorageDeleteData [08:32:41]Write to MH i2c: 01 00 00 08 15 1D [08:32:41]Write i2c OK [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: 01 [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: 01 07 00 [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: 01 07 00 08 15 00 00 00 00 00 FC 0C 2C [08:32:41]RasterBufferAndPrint [08:32:41]line [08:32:41]line [08:32:41]line [08:32:41]line [08:32:41]line [08:32:41]written 0, free lines is 3331 [08:32:41]MH_Cut [08:32:41]Write to MH i2c: D1 01 00 0F 15 01 F6 [08:32:41]Write i2c OK [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: D1 [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: D1 01 00 [08:32:41]MH_I2C_Read... [08:32:41]Read from MH i2c: D1 01 00 0F 15 00 F5 [08:32:41]Write to MH i2c: 01 00 00 10 15 25 [08:32:41]Write i2c OK [08:32:41]MH_I2C_Read... [08:32:41]OFD Sender: No OFD packet to send [08:32:41]*** Cut start [08:32:41]*** Partial cut [08:32:41]*** CUTSNS_PIN = 1 [08:32:42]*** CUTSNS_PIN = 0 [08:32:42]*** Brake cut motor [08:32:42]Read from MH i2c: 01 [08:32:42]MH_I2C_Read... [08:32:42]*** Stop cut motor [08:32:42]*** Cut end [08:32:42]Read from MH i2c: 01 07 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: 01 07 00 10 15 00 00 00 00 00 FF 0F 3A [08:32:42]process_action close_receipt done [08:32:42]requested_data is exist [08:32:42]produce_requested_data [08:32:42]requested_item fm.sn is exist - process it [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 11 00 00 [08:32:42]Write to MH i2c: E2 08 00 11 15 80 11 00 00 00 00 00 00 A0 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 17 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 17 00 11 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F3 [08:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:32:42]wFMCommunicate OK [08:32:42]requested_item fd.num is exist - process it [08:32:42]SAM_PROTO_GetFieldsCounters [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 13 00 00 [08:32:42]Write to MH i2c: E2 08 00 12 15 80 13 00 00 00 00 00 00 A3 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:42]Read from MH i2c: E2 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 62 00 [08:32:42]MH_I2C_Read... [08:32:42]Read from MH i2c: E2 62 00 12 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 87 DC 02 00 0E 04 04 00 89 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 F8 [08:32:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 87 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:42]wFMCommunicate OK [08:32:42]SAM_PROTO_GetFieldsCounters done [08:32:42]requested_item shift.num is exist - process it [08:32:42]requested_item shift.opened is exist - process it [08:32:42]req_shift_opened [08:32:42]FM_GetShiftState [08:32:42]SAM_PROTO_GetShiftState [08:32:42]wFMCommunicate request_size=4 [08:32:42]MH_SAM_APDU [08:32:42]CAPDU: 80 13 01 00 [08:32:42]Write to MH i2c: E2 08 00 13 15 80 13 01 00 00 00 00 00 A5 [08:32:42]Write i2c OK [08:32:42]MH_I2C_Read... [08:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:43]Read from MH i2c: E2 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 0E 00 [08:32:43]MH_I2C_Read... [08:32:43]Read from MH i2c: E2 0E 00 13 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 93 [08:32:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:32:43]wFMCommunicate OK [08:32:43]SAM_PROTO_GetShiftState done [08:32:43]FM_GetShiftState done [08:32:43]req_shift_opened done [08:32:43]requested_item shift.open_date is exist - process it [08:32:43]req_shift_open_date [08:32:43]req_shift_open_date done [08:32:43]produce_requested_data done [08:32:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187527,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:32:43]process_action_free close_receipt [08:32:43]json_value_free [08:32:43]json_value_free done [08:32:43]process_json_proto returns [08:32:43]Send response to host [08:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187527,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:32:43]free response buf [08:32:43]execute_script done [08:32:43]execute_script returns [08:32:43]free content buf [08:32:43]Sock 9.Close socket [08:32:43]Sock 9.Thread stoped [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:39]accept exits with 10 [08:37:39]New connection [08:37:39]New thread 3067080036 created [08:37:39]Thread 3067223396 joined [08:37:39]Waiting for new connection... [08:37:39] Sock 10.Parse request [08:37:39]Sock 10.Check first char [08:37:39]Sock 10.First char is OK [08:37:39]request: POST /json_proto HTTP/1.0 [08:37:39]Method: POST [08:37:39]URL: /json_proto [08:37:39]Method is POST - this is cgi request [08:37:39]url: /json_proto [08:37:39]query_string will be loaded in cgi processing [08:37:39]execute_cgi json_proto POST (null) [08:37:39]execute_cgi path=json_proto method=POST [08:37:39]POST find Content-Length [08:37:39]Host: 172.17.46.131:8080 [08:37:39]Content-Length: 677 [08:37:39]Content-Type: application/json [08:37:39] [08:37:39]POST finish read [08:37:39]Found Content-Length = 677 [08:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.700, "sum" : 430.14, "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" ] } } [08:37:39]execute_script... [08:37: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)412685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.700, "sum" : 430.14, "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" ] } } [08:37:39]POST & json_proto [08:37:39]process_json_proto [08:37:39]json parsed OK: [08:37:39]protocol is kg_v1.0 [08:37:39]action value=close_receipt [08:37:39]process_action close_receipt [08:37:39]cmd_close_receipt [08:37:39]MH_GetDate [08:37:39]Write to MH i2c: F0 00 00 14 15 18 [08:37:39]Write i2c OK [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: F0 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: F0 09 00 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: F0 09 00 14 15 00 56 3B B8 67 7E 41 4F 65 44 [08:37:39]GetLastDocTimeStamp 1740126762 [08:37:39]current date 1740127062 [08:37:39]FM_GetShiftState [08:37:39]SAM_PROTO_GetShiftState [08:37:39]wFMCommunicate request_size=4 [08:37:39]MH_SAM_APDU [08:37:39]CAPDU: 80 13 01 00 [08:37:39]Write to MH i2c: E2 08 00 15 15 80 13 01 00 00 00 00 00 A7 [08:37:39]Write i2c OK [08:37:39]MH_I2C_Read... [08:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:39]Read from MH i2c: E2 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: E2 0E 00 [08:37:39]MH_I2C_Read... [08:37:39]Read from MH i2c: E2 0E 00 15 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 95 [08:37:39]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:37:39]wFMCommunicate OK [08:37:39]SAM_PROTO_GetShiftState done [08:37:39]FM_GetShiftState done [08:37:39]opened in 1740098043 [08:37:39]opened+sec_in_day 1740184443 [08:37:39]quantity*price = 43014 [08:37:39]sum+1 = 43015 [08:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 430.00 Внесено: 430.00 СДАЧА: 0.00 НСП 1% : 3.81 НДС 12% : 45.68 Наличными: 430.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 22 21.02.2025 08:37 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187528 ФПД: 230589698041701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T083742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187528&fm=230589698041701&tin=02508201610067®Number=0000000000091857&sum=43000 [08:37:40]StoreToDocumentArchive [08:37:40]shift 649 fd 187528 [08:37:40]save to /storage/0649/doc_00187528 [08:37:40]save last doc name /storage/0649/doc_00187528 to /storage/kkm_last_doc_name [08:37:40]save OK [08:37:40]Clear old archive folders... [08:37:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:40]tlvbuf is 0206E3A0 [08:37:40]SAM_PROTO_ClearQueue [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 09 00 00 [08:37:40]Write to MH i2c: E2 08 00 22 15 80 09 00 00 00 00 00 00 A9 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 22 15 00 90 00 AB [08:37:40]RAPDU: 90 00 [08:37:40]wFMCommunicate OK [08:37:40]SAM_PROTO_ClearQueue done [08:37:40]KKMCreateOFDPacket [08:37:40]OFDProtocolAddRootSTLVToBuf [08:37:40]FM_MakeSignedData [08:37:40]FM_MakeSignedData [08:37:40]SAM_PROTO_SignData [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 0D 01 02 [08:37:40]Write to MH i2c: E2 08 00 23 15 80 0D 01 02 00 00 00 00 B1 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 23 15 00 90 00 AC [08:37:40]RAPDU: 90 00 [08:37:40]wFMCommunicate OK [08:37:40]wFMCommunicate request_size=255 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 06 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 16 00 00 00 F4 03 04 00 56 3B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 DC 02 00 35 04 06 00 D1 [08:37:40]Write to MH i2c: E2 02 01 24 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 06 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 16 00 00 00 F4 03 04 00 56 3B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 DC 02 00 35 04 06 00 D1 00 00 0B [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 24 15 00 90 00 AD [08:37:40]RAPDU: 90 00 [08:37:40]wFMCommunicate OK [08:37:40]wFMCommunicate request_size=10 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 0D 02 02 05 B8 59 0A 67 65 [08:37:40]Write to MH i2c: E2 0D 00 25 15 80 0D 02 02 05 00 B8 59 0A 67 65 00 00 A5 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 03 00 25 15 00 90 00 AE [08:37:40]RAPDU: 90 00 [08:37:40]wFMCommunicate OK [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 0D 03 02 [08:37:40]Write to MH i2c: E2 08 00 26 15 80 0D 03 02 00 00 00 00 B6 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 0B 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 0B 00 26 15 00 7B AA 96 56 D1 F5 0C CC 90 00 66 [08:37:40]RAPDU: 7B AA 96 56 D1 F5 0C CC 90 00 [08:37:40]wFMCommunicate OK [08:37:40]SAM_PROTO_SignData done [08:37:40]FM_MakeSignedData done [08:37:40]CreateOFDProtocolMessage [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 11 00 00 [08:37:40]Write to MH i2c: E2 08 00 27 15 80 11 00 00 00 00 00 00 B6 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 17 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 17 00 27 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [08:37:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:37:40]wFMCommunicate OK [08:37:40]CreateOFDProtocolMessage done [08:37:40]OFDSenderStorePacket 187528 [08:37:40]StoreOFDPacket docnum=187528 [08:37:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 9D 07 01 96 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 06 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 16 00 00 00 F4 03 04 00 56 3B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 DC 02 00 35 04 06 00 D1 B8 59 0A 67 65 7B AA 96 56 D1 F5 0C CC [08:37:40]CheckFolder [08:37:40]dirname=/storage/ofd_packets [08:37:40]CheckFolder done [08:37:40]ProducePacketName [08:37:40]name=ofd_packets/00187528 [08:37:40]NVStorageSaveData ofd_packets/00187528 [08:37:40]File name is /storage/ofd_packets/00187528 [08:37:40]Write 301 bytes [08:37:40]NVStorageSaveData done [08:37:40]OFDSenderStorePacket done [08:37:40]KKMCreateOFDPacket done [08:37:40]NVStorageSaveData kkm_last_timestamp [08:37:40]File name is /storage/kkm_last_timestamp [08:37:40]Write 4 bytes [08:37:40]NVStorageSaveData done [08:37:40]ExternCall_PrintAddStr [08:37:40]wPrintStart [08:37:40]Write to MH i2c: 01 00 00 28 15 3D [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: 01 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: 01 07 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: 01 07 00 28 15 00 00 00 00 00 FF 0F 52 [08:37:40]RasterBufferAndPrint [08:37:40]line Счет N : (1)412685 [08:37:40]line ИНН: 02508201610067 [08:37:40]line Контрольно-Кассовый Чек [08:37:40]line ПРОДАЖА [08:37:40]line ТРК (МРК, ГНК) : 22 [08:37:40]line Товар: 2710124130 [08:37:40]line Аи-92-К-2 [08:37:40]line 6.700 * 64.20 [08:37:40]line = 430.14 [08:37:40]line НДС 12% НСП 1% [08:37:40]line > о реализуемом товаре [08:37:40]line ОКРУГЛЕНИЕ: -0.14 [08:37:40]line ИТОГО: 430.00 [08:37:40]line Внесено: 430.00 [08:37:40]line СДАЧА: 0.00 [08:37:40]line НСП 1% : 3.81 [08:37:40]line НДС 12% : 45.68 [08:37:40]line Наличными: 430.00 [08:37:40]line Безнал.: 0.00 [08:37:40]line Место: АЗС № 92 "Партнер Нефть" [08:37:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:37:40]line СНО: Общий режим [08:37:40]line Чек 22 21.02.2025 08:37 [08:37:40]line Смена: 649 ФФД: 1.0 [08:37:40]line ЗНМ: 0300000118 [08:37:40]line РНМ: 0000000000091857 [08:37:40]line Версия ККМ: 001 [08:37:40]line ФМ: 0000000000871826 [08:37:40]line ФД: 187528 [08:37:40]line ФПД: 230589698041701 [08:37:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T083742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187528&fm=230589698041701&tin=02508201610067®Number=0000000000091857&sum=43000 [08:37:41]written 0, free lines is 4095 [08:37:41]OFD Sender: Processing packet 187528 [packets to send 49, broken 48] [08:37:41]ProducePacketName [08:37:41]name=ofd_packets/00187528 [08:37:41]OFD Sender: To server: pG, [08:37:41]CommunicateWithHost lk.salyk.kg:30040 [08:37:41]ConnectInit lk.salyk.kg [08:37:41]Connected sock=9 [08:37:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 9D 07 01 96 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 06 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 16 00 00 00 F4 03 04 00 56 3B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 DC 02 00 35 04 06 00 D1 B8 59 0A 67 65 7B AA 96 56 D1 F5 0C CC [08:37:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5E 0A 47 00 F3 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 DC 02 00 F4 03 04 00 A5 E1 B7 67 B6 04 01 00 00 E2 BE 99 A9 2D 08 0A B8 [08:37:41]CommunicateWithHost err = 0 [08:37:41]CheckOFDResponse [08:37:41]1017 (14) - 77093643461234 [08:37:41]1041 (16) - 0000000000871826 [08:37:41]1040 (4) - 187528 [08:37:41]1012 (4) - 21.02.2025 02:15 [08:37:41]1206 (1) - 0 [08:37:41]OFD Sender: Remove packet 187528 [08:37:41]ProducePacketName [08:37:41]name=ofd_packets/00187528 [08:37:41]NVStorageDeleteData [08:37:41]Write to MH i2c: 01 00 00 53 15 68 [08:37:41]Write i2c OK [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: 01 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: 01 07 00 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: 01 07 00 53 15 00 00 00 00 00 F6 0C 71 [08:37:41]RasterBufferAndPrint [08:37:41]line [08:37:41]line [08:37:41]line [08:37:41]line [08:37:41]line [08:37:41]written 0, free lines is 3324 [08:37:41]MH_Cut [08:37:41]Write to MH i2c: D1 01 00 5A 15 01 41 [08:37:41]Write i2c OK [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: D1 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: D1 01 00 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: D1 01 00 5A 15 00 40 [08:37:41]Write to MH i2c: 01 00 00 5B 15 70 [08:37:41]Write i2c OK [08:37:41]MH_I2C_Read... [08:37:42]OFD Sender: No OFD packet to send [08:37:42]*** Cut start [08:37:42]*** Partial cut [08:37:42]*** CUTSNS_PIN = 1 [08:37:42]*** CUTSNS_PIN = 0 [08:37:42]*** Brake cut motor [08:37:43]Read from MH i2c: 01 [08:37:43]MH_I2C_Read... [08:37:43]*** Stop cut motor [08:37:43]*** Cut end [08:37:43]Read from MH i2c: 01 07 00 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: 01 07 00 5B 15 00 00 00 00 00 FF 0F 85 [08:37:43]process_action close_receipt done [08:37:43]requested_data is exist [08:37:43]produce_requested_data [08:37:43]requested_item fm.sn is exist - process it [08:37:43]wFMCommunicate request_size=4 [08:37:43]MH_SAM_APDU [08:37:43]CAPDU: 80 11 00 00 [08:37:43]Write to MH i2c: E2 08 00 5C 15 80 11 00 00 00 00 00 00 EB [08:37:43]Write i2c OK [08:37:43]MH_I2C_Read... [08:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:43]Read from MH i2c: E2 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: E2 17 00 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: E2 17 00 5C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [08:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:37:43]wFMCommunicate OK [08:37:43]requested_item fd.num is exist - process it [08:37:43]SAM_PROTO_GetFieldsCounters [08:37:43]wFMCommunicate request_size=4 [08:37:43]MH_SAM_APDU [08:37:43]CAPDU: 80 13 00 00 [08:37:43]Write to MH i2c: E2 08 00 5D 15 80 13 00 00 00 00 00 00 EE [08:37:43]Write i2c OK [08:37:43]MH_I2C_Read... [08:37:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:43]Read from MH i2c: E2 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: E2 62 00 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: E2 62 00 5D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 88 DC 02 00 0E 04 04 00 89 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 47 [08:37:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 88 DC 02 00 0E 04 04 00 89 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:37:43]wFMCommunicate OK [08:37:43]SAM_PROTO_GetFieldsCounters done [08:37:43]requested_item shift.num is exist - process it [08:37:43]requested_item shift.opened is exist - process it [08:37:43]req_shift_opened [08:37:43]FM_GetShiftState [08:37:43]SAM_PROTO_GetShiftState [08:37:43]wFMCommunicate request_size=4 [08:37:43]MH_SAM_APDU [08:37:43]CAPDU: 80 13 01 00 [08:37:43]Write to MH i2c: E2 08 00 5E 15 80 13 01 00 00 00 00 00 F0 [08:37:43]Write i2c OK [08:37:43]MH_I2C_Read... [08:37:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:43]Read from MH i2c: E2 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: E2 0E 00 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: E2 0E 00 5E 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 DE [08:37:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:37:43]wFMCommunicate OK [08:37:43]SAM_PROTO_GetShiftState done [08:37:43]FM_GetShiftState done [08:37:43]req_shift_opened done [08:37:43]requested_item shift.open_date is exist - process it [08:37:43]req_shift_open_date [08:37:43]req_shift_open_date done [08:37:43]produce_requested_data done [08:37:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187528,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:37:43]process_action_free close_receipt [08:37:43]json_value_free [08:37:43]json_value_free done [08:37:43]process_json_proto returns [08:37:43]Send response to host [08:37:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187528,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:37:43]free response buf [08:37:43]execute_script done [08:37:43]execute_script returns [08:37:43]free content buf [08:37:43]Sock 10.Close socket [08:37:43]Sock 10.Thread stoped [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:28]accept exits with 7 [08:38:28]New connection [08:38:28]New thread 3067223396 created [08:38:28]Thread 3067080036 joined [08:38:28]Waiting for new connection... [08:38:28] Sock 7.Parse request [08:38:28]Sock 7.Check first char [08:38:28]Sock 7.First char is OK [08:38:28]request: POST /json_proto HTTP/1.0 [08:38:28]Method: POST [08:38:28]URL: /json_proto [08:38:28]Method is POST - this is cgi request [08:38:28]url: /json_proto [08:38:28]query_string will be loaded in cgi processing [08:38:28]execute_cgi json_proto POST (null) [08:38:28]execute_cgi path=json_proto method=POST [08:38:28]POST find Content-Length [08:38:28]Host: 172.17.46.131:8080 [08:38:28]Content-Length: 800 [08:38:28]Content-Type: application/json [08:38:28] [08:38:28]POST finish read [08:38:28]Found Content-Length = 800 [08:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 2.650, "sum" : 170.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:28]execute_script... [08:38: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)412686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 2.650, "sum" : 170.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 170.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:28]POST & json_proto [08:38:28]process_json_proto [08:38:28]json parsed OK: [08:38:28]protocol is kg_v1.0 [08:38:28]action value=close_receipt [08:38:28]process_action close_receipt [08:38:28]cmd_close_receipt [08:38:28]MH_GetDate [08:38:28]Write to MH i2c: F0 00 00 5F 15 63 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: F0 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: F0 09 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: F0 09 00 5F 15 00 87 3B B8 67 7E 41 4F 65 C0 [08:38:28]GetLastDocTimeStamp 1740127062 [08:38:28]current date 1740127111 [08:38:28]FM_GetShiftState [08:38:28]SAM_PROTO_GetShiftState [08:38:28]wFMCommunicate request_size=4 [08:38:28]MH_SAM_APDU [08:38:28]CAPDU: 80 13 01 00 [08:38:28]Write to MH i2c: E2 08 00 60 15 80 13 01 00 00 00 00 00 F2 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:28]Read from MH i2c: E2 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 0E 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: E2 0E 00 60 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E0 [08:38:28]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:38:28]wFMCommunicate OK [08:38:28]SAM_PROTO_GetShiftState done [08:38:28]FM_GetShiftState done [08:38:28]opened in 1740098043 [08:38:28]opened+sec_in_day 1740184443 [08:38:28]quantity*price = 17013 [08:38:28]sum+1 = 17014 [08:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.13 НСП 1% : 1.51 НДС 12% : 18.07 Наличными: 0.00 Безнал.: 170.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 23 21.02.2025 08:38 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187529 ФПД: 221396043748222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T083831&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187529&fm=221396043748222&tin=02508201610067®Number=0000000000091857&sum=17013 [08:38:29]StoreToDocumentArchive [08:38:29]shift 649 fd 187529 [08:38:29]save to /storage/0649/doc_00187529 [08:38:29]save last doc name /storage/0649/doc_00187529 to /storage/kkm_last_doc_name [08:38:29]save OK [08:38:29]Clear old archive folders... [08:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:29]tlvbuf is 02093480 [08:38:29]SAM_PROTO_ClearQueue [08:38:29]wFMCommunicate request_size=4 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 09 00 00 [08:38:29]Write to MH i2c: E2 08 00 6D 15 80 09 00 00 00 00 00 00 F4 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 6D 15 00 90 00 F6 [08:38:29]RAPDU: 90 00 [08:38:29]wFMCommunicate OK [08:38:29]SAM_PROTO_ClearQueue done [08:38:29]KKMCreateOFDPacket [08:38:29]OFDProtocolAddRootSTLVToBuf [08:38:29]FM_MakeSignedData [08:38:29]FM_MakeSignedData [08:38:29]SAM_PROTO_SignData [08:38:29]wFMCommunicate request_size=4 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 0D 01 02 [08:38:29]Write to MH i2c: E2 08 00 6E 15 80 0D 01 02 00 00 00 00 FC [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 6E 15 00 90 00 F7 [08:38:29]RAPDU: 90 00 [08:38:29]wFMCommunicate OK [08:38:29]wFMCommunicate request_size=255 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 0A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 75 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 87 3B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DC 02 00 35 04 06 00 C9 [08:38:29]Write to MH i2c: E2 02 01 6F 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 0A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 75 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 87 3B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DC 02 00 35 04 06 00 C9 00 00 1E [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 6F 15 00 90 00 F8 [08:38:29]RAPDU: 90 00 [08:38:29]wFMCommunicate OK [08:38:29]wFMCommunicate request_size=10 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 0D 02 02 05 5B C8 8A D3 7E [08:38:29]Write to MH i2c: E2 0D 00 70 15 80 0D 02 02 05 00 5B C8 8A D3 7E 00 00 07 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 03 00 70 15 00 90 00 F9 [08:38:29]RAPDU: 90 00 [08:38:29]wFMCommunicate OK [08:38:29]wFMCommunicate request_size=4 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 0D 03 02 [08:38:29]Write to MH i2c: E2 08 00 71 15 80 0D 03 02 00 00 00 00 01 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 0B 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 0B 00 71 15 00 89 27 62 BE AC D7 11 2E 90 00 94 [08:38:29]RAPDU: 89 27 62 BE AC D7 11 2E 90 00 [08:38:29]wFMCommunicate OK [08:38:29]SAM_PROTO_SignData done [08:38:29]FM_MakeSignedData done [08:38:29]CreateOFDProtocolMessage [08:38:29]wFMCommunicate request_size=4 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 11 00 00 [08:38:29]Write to MH i2c: E2 08 00 72 15 80 11 00 00 00 00 00 00 01 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 17 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 17 00 72 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [08:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:38:29]wFMCommunicate OK [08:38:29]CreateOFDProtocolMessage done [08:38:29]OFDSenderStorePacket 187529 [08:38:29]StoreOFDPacket docnum=187529 [08:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 56 4F 07 01 48 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 0A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 75 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 87 3B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DC 02 00 35 04 06 00 C9 5B C8 8A D3 7E 89 27 62 BE AC D7 11 2E [08:38:29]CheckFolder [08:38:29]dirname=/storage/ofd_packets [08:38:29]CheckFolder done [08:38:29]ProducePacketName [08:38:29]name=ofd_packets/00187529 [08:38:29]NVStorageSaveData ofd_packets/00187529 [08:38:29]File name is /storage/ofd_packets/00187529 [08:38:29]Write 301 bytes [08:38:29]NVStorageSaveData done [08:38:29]OFDSenderStorePacket done [08:38:29]KKMCreateOFDPacket done [08:38:29]NVStorageSaveData kkm_last_timestamp [08:38:29]File name is /storage/kkm_last_timestamp [08:38:29]Write 4 bytes [08:38:29]NVStorageSaveData done [08:38:29]ExternCall_PrintAddStr [08:38:29]wPrintStart [08:38:29]Write to MH i2c: 01 00 00 73 15 88 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: 01 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: 01 07 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: 01 07 00 73 15 00 00 00 00 00 FF 0F 9D [08:38:29]RasterBufferAndPrint [08:38:29]line Счет N : (1)412686 [08:38:29]line ИНН: 02508201610067 [08:38:29]line Контрольно-Кассовый Чек [08:38:29]line ПРОДАЖА [08:38:29]line ТРК (МРК, ГНК) : 22 [08:38:29]line Товар: 2710124130 [08:38:29]line Аи-92-К-2 [08:38:29]line 2.650 * 64.20 [08:38:29]line = 170.13 [08:38:29]line НДС 12% НСП 1% [08:38:29]line > о реализуемом товаре [08:38:29]line ИТОГО: 170.13 [08:38:29]line НСП 1% : 1.51 [08:38:29]line НДС 12% : 18.07 [08:38:29]line Наличными: 0.00 [08:38:29]line Безнал.: 170.13 [08:38:29]line Место: АЗС № 92 "Партнер Нефть" [08:38:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:38:29]line СНО: Общий режим [08:38:29]line Чек 23 21.02.2025 08:38 [08:38:29]line Смена: 649 ФФД: 1.0 [08:38:29]line ЗНМ: 0300000118 [08:38:29]line РНМ: 0000000000091857 [08:38:29]line Версия ККМ: 001 [08:38:29]line Платежная система: O! деньги [08:38:29]line ФМ: 0000000000871826 [08:38:29]line ФД: 187529 [08:38:29]line ФПД: 221396043748222 [08:38:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T083831&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187529&fm=221396043748222&tin=02508201610067®Number=0000000000091857&sum=17013 [08:38:30]OFD Sender: Processing packet 187529 [packets to send 49, broken 48] [08:38:30]ProducePacketName [08:38:30]name=ofd_packets/00187529 [08:38:30]OFD Sender: To server: pG, [08:38:30]CommunicateWithHost lk.salyk.kg:30040 [08:38:30]ConnectInit lk.salyk.kg [08:38:30]written 0, free lines is 4095 [08:38:30]Connected sock=10 [08:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 56 4F 07 01 48 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 0A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 75 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 75 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 75 42 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 87 3B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DC 02 00 35 04 06 00 C9 5B C8 8A D3 7E 89 27 62 BE AC D7 11 2E [08:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4A F9 47 00 C6 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DC 02 00 F4 03 04 00 D5 E1 B7 67 B6 04 01 00 00 E4 6E C1 F0 CF E9 C0 FB [08:38:30]CommunicateWithHost err = 0 [08:38:30]CheckOFDResponse [08:38:30]1017 (14) - 77093643461234 [08:38:30]1041 (16) - 0000000000871826 [08:38:30]1040 (4) - 187529 [08:38:30]1012 (4) - 21.02.2025 02:15 [08:38:30]1206 (1) - 0 [08:38:30]OFD Sender: Remove packet 187529 [08:38:30]ProducePacketName [08:38:30]name=ofd_packets/00187529 [08:38:30]NVStorageDeleteData [08:38:30]Write to MH i2c: 01 00 00 9D 15 B2 [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: 01 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: 01 07 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: 01 07 00 9D 15 00 00 00 00 00 0B 0D D1 [08:38:30]RasterBufferAndPrint [08:38:30]line [08:38:30]line [08:38:30]line [08:38:30]line [08:38:30]line [08:38:30]written 0, free lines is 3345 [08:38:30]MH_Cut [08:38:30]Write to MH i2c: D1 01 00 A4 15 01 8B [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: D1 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: D1 01 00 [08:38:30]MH_I2C_Read... [08:38:30]Read from MH i2c: D1 01 00 A4 15 00 8A [08:38:30]Write to MH i2c: 01 00 00 A5 15 BA [08:38:30]Write i2c OK [08:38:30]MH_I2C_Read... [08:38:30]OFD Sender: No OFD packet to send [08:38:31]*** Cut start [08:38:31]*** Partial cut [08:38:31]*** CUTSNS_PIN = 1 [08:38:31]*** CUTSNS_PIN = 0 [08:38:31]*** Brake cut motor [08:38:31]Read from MH i2c: 01 [08:38:31]MH_I2C_Read... [08:38:31]*** Stop cut motor [08:38:31]*** Cut end [08:38:31]Read from MH i2c: 01 07 00 [08:38:31]MH_I2C_Read... [08:38:31]Read from MH i2c: 01 07 00 A5 15 00 00 00 00 00 FF 0F CF [08:38:31]process_action close_receipt done [08:38:31]requested_data is exist [08:38:31]produce_requested_data [08:38:31]requested_item fm.sn is exist - process it [08:38:31]wFMCommunicate request_size=4 [08:38:31]MH_SAM_APDU [08:38:31]CAPDU: 80 11 00 00 [08:38:31]Write to MH i2c: E2 08 00 A6 15 80 11 00 00 00 00 00 00 35 [08:38:31]Write i2c OK [08:38:31]MH_I2C_Read... [08:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:31]Read from MH i2c: E2 [08:38:31]MH_I2C_Read... [08:38:31]Read from MH i2c: E2 17 00 [08:38:31]MH_I2C_Read... [08:38:31]Read from MH i2c: E2 17 00 A6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 88 [08:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:38:31]wFMCommunicate OK [08:38:31]requested_item fd.num is exist - process it [08:38:31]SAM_PROTO_GetFieldsCounters [08:38:31]wFMCommunicate request_size=4 [08:38:31]MH_SAM_APDU [08:38:31]CAPDU: 80 13 00 00 [08:38:31]Write to MH i2c: E2 08 00 A7 15 80 13 00 00 00 00 00 00 38 [08:38:31]Write i2c OK [08:38:31]MH_I2C_Read... [08:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:32]Read from MH i2c: E2 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 62 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 62 00 A7 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 89 DC 02 00 0E 04 04 00 89 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 95 [08:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 89 DC 02 00 0E 04 04 00 89 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:38:32]wFMCommunicate OK [08:38:32]SAM_PROTO_GetFieldsCounters done [08:38:32]requested_item shift.num is exist - process it [08:38:32]requested_item shift.opened is exist - process it [08:38:32]req_shift_opened [08:38:32]FM_GetShiftState [08:38:32]SAM_PROTO_GetShiftState [08:38:32]wFMCommunicate request_size=4 [08:38:32]MH_SAM_APDU [08:38:32]CAPDU: 80 13 01 00 [08:38:32]Write to MH i2c: E2 08 00 A8 15 80 13 01 00 00 00 00 00 3A [08:38:32]Write i2c OK [08:38:32]MH_I2C_Read... [08:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:32]Read from MH i2c: E2 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 0E 00 [08:38:32]MH_I2C_Read... [08:38:32]Read from MH i2c: E2 0E 00 A8 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 28 [08:38:32]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:38:32]wFMCommunicate OK [08:38:32]SAM_PROTO_GetShiftState done [08:38:32]FM_GetShiftState done [08:38:32]req_shift_opened done [08:38:32]requested_item shift.open_date is exist - process it [08:38:32]req_shift_open_date [08:38:32]req_shift_open_date done [08:38:32]produce_requested_data done [08:38:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187529,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:38:32]process_action_free close_receipt [08:38:32]json_value_free [08:38:32]json_value_free done [08:38:32]process_json_proto returns [08:38:32]Send response to host [08:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187529,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:38:32]free response buf [08:38:32]execute_script done [08:38:32]execute_script returns [08:38:32]free content buf [08:38:32]Sock 7.Close socket [08:38:32]Sock 7.Thread stoped [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:32]accept exits with 9 [08:44:32]New connection [08:44:32]New thread 3067080036 created [08:44:32]Thread 3067223396 joined [08:44:32]Waiting for new connection... [08:44:32] Sock 9.Parse request [08:44:32]Sock 9.Check first char [08:44:32]Sock 9.First char is OK [08:44:32]request: POST /json_proto HTTP/1.0 [08:44:32]Method: POST [08:44:32]URL: /json_proto [08:44:32]Method is POST - this is cgi request [08:44:32]url: /json_proto [08:44:32]query_string will be loaded in cgi processing [08:44:32]execute_cgi json_proto POST (null) [08:44:32]execute_cgi path=json_proto method=POST [08:44:32]POST find Content-Length [08:44:32]Host: 172.17.46.131:8080 [08:44:32]Content-Length: 796 [08:44:32]Content-Type: application/json [08:44:32] [08:44:32]POST finish read [08:44:32]Found Content-Length = 796 [08:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:32]execute_script... [08:44: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)412687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:32]POST & json_proto [08:44:32]process_json_proto [08:44:32]json parsed OK: [08:44:32]protocol is kg_v1.0 [08:44:32]action value=close_receipt [08:44:32]process_action close_receipt [08:44:32]cmd_close_receipt [08:44:32]MH_GetDate [08:44:32]Write to MH i2c: F0 00 00 A9 15 AD [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: F0 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: F0 09 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: F0 09 00 A9 15 00 F3 3C B8 67 7E 41 4F 65 77 [08:44:32]GetLastDocTimeStamp 1740127111 [08:44:32]current date 1740127475 [08:44:32]FM_GetShiftState [08:44:32]SAM_PROTO_GetShiftState [08:44:32]wFMCommunicate request_size=4 [08:44:32]MH_SAM_APDU [08:44:32]CAPDU: 80 13 01 00 [08:44:32]Write to MH i2c: E2 08 00 AA 15 80 13 01 00 00 00 00 00 3C [08:44:32]Write i2c OK [08:44:32]MH_I2C_Read... [08:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:32]Read from MH i2c: E2 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 0E 00 [08:44:32]MH_I2C_Read... [08:44:32]Read from MH i2c: E2 0E 00 AA 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2A [08:44:32]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:44:32]wFMCommunicate OK [08:44:32]SAM_PROTO_GetShiftState done [08:44:32]FM_GetShiftState done [08:44:32]opened in 1740098043 [08:44:32]opened+sec_in_day 1740184443 [08:44:32]quantity*price = 70059 [08:44:32]sum+1 = 70060 [08:44:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.59 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 0.00 Безнал.: 700.59 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 24 21.02.2025 08:44 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187530 ФПД: 69091342366266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T084435&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187530&fm=69091342366266&tin=02508201610067®Number=0000000000091857&sum=70059 [08:44:33]StoreToDocumentArchive [08:44:33]shift 649 fd 187530 [08:44:33]save to /storage/0649/doc_00187530 [08:44:33]save last doc name /storage/0649/doc_00187530 to /storage/kkm_last_doc_name [08:44:33]save OK [08:44:33]Clear old archive folders... [08:44:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:44:33]tlvbuf is 020931C0 [08:44:33]SAM_PROTO_ClearQueue [08:44:33]wFMCommunicate request_size=4 [08:44:33]MH_SAM_APDU [08:44:33]CAPDU: 80 09 00 00 [08:44:33]Write to MH i2c: E2 08 00 B7 15 80 09 00 00 00 00 00 00 3E [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:33]Read from MH i2c: E2 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 03 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 03 00 B7 15 00 90 00 40 [08:44:33]RAPDU: 90 00 [08:44:33]wFMCommunicate OK [08:44:33]SAM_PROTO_ClearQueue done [08:44:33]KKMCreateOFDPacket [08:44:33]OFDProtocolAddRootSTLVToBuf [08:44:33]FM_MakeSignedData [08:44:33]FM_MakeSignedData [08:44:33]SAM_PROTO_SignData [08:44:33]wFMCommunicate request_size=4 [08:44:33]MH_SAM_APDU [08:44:33]CAPDU: 80 0D 01 02 [08:44:33]Write to MH i2c: E2 08 00 B8 15 80 0D 01 02 00 00 00 00 46 [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:33]Read from MH i2c: E2 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 03 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 03 00 B8 15 00 90 00 41 [08:44:33]RAPDU: 90 00 [08:44:33]wFMCommunicate OK [08:44:33]wFMCommunicate request_size=255 [08:44:33]MH_SAM_APDU [08:44:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F3 3C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A DC 02 00 35 04 06 00 3E D6 94 EB [08:44:33]Write to MH i2c: E2 02 01 B9 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F3 3C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A DC 02 00 35 04 06 00 3E D6 94 EB 00 00 B5 [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:33]Read from MH i2c: E2 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 03 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 03 00 B9 15 00 90 00 42 [08:44:33]RAPDU: 90 00 [08:44:33]wFMCommunicate OK [08:44:33]wFMCommunicate request_size=7 [08:44:33]MH_SAM_APDU [08:44:33]CAPDU: 80 0D 02 02 02 36 3A [08:44:33]Write to MH i2c: E2 0A 00 BA 15 80 0D 02 02 02 00 36 3A 00 00 BD [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:33]Read from MH i2c: E2 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 03 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [08:44:33]RAPDU: 90 00 [08:44:33]wFMCommunicate OK [08:44:33]wFMCommunicate request_size=4 [08:44:33]MH_SAM_APDU [08:44:33]CAPDU: 80 0D 03 02 [08:44:33]Write to MH i2c: E2 08 00 BB 15 80 0D 03 02 00 00 00 00 4B [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:33]Read from MH i2c: E2 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 0B 00 [08:44:33]MH_I2C_Read... [08:44:33]Read from MH i2c: E2 0B 00 BB 15 00 AA 9B 80 90 E4 C4 84 D3 90 00 A0 [08:44:33]RAPDU: AA 9B 80 90 E4 C4 84 D3 90 00 [08:44:33]wFMCommunicate OK [08:44:33]SAM_PROTO_SignData done [08:44:33]FM_MakeSignedData done [08:44:33]CreateOFDProtocolMessage [08:44:33]wFMCommunicate request_size=4 [08:44:33]MH_SAM_APDU [08:44:33]CAPDU: 80 11 00 00 [08:44:33]Write to MH i2c: E2 08 00 BC 15 80 11 00 00 00 00 00 00 4B [08:44:33]Write i2c OK [08:44:33]MH_I2C_Read... [08:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:34]Read from MH i2c: E2 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: E2 17 00 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: E2 17 00 BC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [08:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:44:34]wFMCommunicate OK [08:44:34]CreateOFDProtocolMessage done [08:44:34]OFDSenderStorePacket 187530 [08:44:34]StoreOFDPacket docnum=187530 [08:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 91 A0 04 01 C9 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F3 3C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A DC 02 00 35 04 06 00 3E D6 94 EB 36 3A AA 9B 80 90 E4 C4 84 D3 [08:44:34]CheckFolder [08:44:34]dirname=/storage/ofd_packets [08:44:34]CheckFolder done [08:44:34]ProducePacketName [08:44:34]name=ofd_packets/00187530 [08:44:34]NVStorageSaveData ofd_packets/00187530 [08:44:34]File name is /storage/ofd_packets/00187530 [08:44:34]Write 298 bytes [08:44:34]NVStorageSaveData done [08:44:34]OFDSenderStorePacket done [08:44:34]KKMCreateOFDPacket done [08:44:34]NVStorageSaveData kkm_last_timestamp [08:44:34]File name is /storage/kkm_last_timestamp [08:44:34]Write 4 bytes [08:44:34]NVStorageSaveData done [08:44:34]ExternCall_PrintAddStr [08:44:34]wPrintStart [08:44:34]Write to MH i2c: 01 00 00 BD 15 D2 [08:44:34]Write i2c OK [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: 01 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: 01 07 00 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: 01 07 00 BD 15 00 00 00 00 00 FF 0F E7 [08:44:34]RasterBufferAndPrint [08:44:34]line Счет N : (1)412687 [08:44:34]line ИНН: 02508201610067 [08:44:34]line Контрольно-Кассовый Чек [08:44:34]line ПРОДАЖА [08:44:34]line ТРК (МРК, ГНК) : 5 [08:44:34]line Товар: 2710194210 [08:44:34]line ДТ-К-5 [08:44:34]line 9.650 * 72.60 [08:44:34]line = 700.59 [08:44:34]line НДС 12% НСП 1% [08:44:34]line > о реализуемом товаре [08:44:34]line ИТОГО: 700.59 [08:44:34]line НСП 1% : 6.20 [08:44:34]line НДС 12% : 74.40 [08:44:34]line Наличными: 0.00 [08:44:34]line Безнал.: 700.59 [08:44:34]line Место: АЗС № 92 "Партнер Нефть" [08:44:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:44:34]line СНО: Общий режим [08:44:34]line Чек 24 21.02.2025 08:44 [08:44:34]line Смена: 649 ФФД: 1.0 [08:44:34]line ЗНМ: 0300000118 [08:44:34]line РНМ: 0000000000091857 [08:44:34]line Версия ККМ: 001 [08:44:34]line Платежная система: O! деньги [08:44:34]line ФМ: 0000000000871826 [08:44:34]line ФД: 187530 [08:44:34]line ФПД: 69091342366266 [08:44:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T084435&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187530&fm=69091342366266&tin=02508201610067®Number=0000000000091857&sum=70059 [08:44:34]OFD Sender: Processing packet 187530 [packets to send 49, broken 48] [08:44:34]ProducePacketName [08:44:34]name=ofd_packets/00187530 [08:44:34]OFD Sender: To server: pG, [08:44:34]CommunicateWithHost lk.salyk.kg:30040 [08:44:34]ConnectInit lk.salyk.kg [08:44:34]written 0, free lines is 4095 [08:44:34]Connected sock=10 [08:44:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 91 A0 04 01 C9 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 F3 3C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A DC 02 00 35 04 06 00 3E D6 94 EB 36 3A AA 9B 80 90 E4 C4 84 D3 [08:44:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A9 9E 47 00 D3 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A DC 02 00 F4 03 04 00 42 E3 B7 67 B6 04 01 00 00 72 6D CA 44 46 3C 40 E8 [08:44:34]CommunicateWithHost err = 0 [08:44:34]CheckOFDResponse [08:44:34]1017 (14) - 77093643461234 [08:44:34]1041 (16) - 0000000000871826 [08:44:34]1040 (4) - 187530 [08:44:34]1012 (4) - 21.02.2025 02:21 [08:44:34]1206 (1) - 0 [08:44:34]OFD Sender: Remove packet 187530 [08:44:34]ProducePacketName [08:44:34]name=ofd_packets/00187530 [08:44:34]NVStorageDeleteData [08:44:34]Write to MH i2c: 01 00 00 E7 15 FC [08:44:34]Write i2c OK [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: 01 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: 01 07 00 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: 01 07 00 E7 15 00 00 00 00 00 0B 0D 1B [08:44:34]RasterBufferAndPrint [08:44:34]line [08:44:34]line [08:44:34]line [08:44:34]line [08:44:34]line [08:44:34]written 0, free lines is 3345 [08:44:34]MH_Cut [08:44:34]Write to MH i2c: D1 01 00 EE 15 01 D5 [08:44:34]Write i2c OK [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: D1 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: D1 01 00 [08:44:34]MH_I2C_Read... [08:44:34]Read from MH i2c: D1 01 00 EE 15 00 D4 [08:44:34]Write to MH i2c: 01 00 00 EF 15 04 [08:44:34]Write i2c OK [08:44:34]MH_I2C_Read... [08:44:35]OFD Sender: No OFD packet to send [08:44:35]*** Cut start [08:44:35]*** Partial cut [08:44:35]*** CUTSNS_PIN = 1 [08:44:35]*** CUTSNS_PIN = 0 [08:44:35]*** Brake cut motor [08:44:36]Read from MH i2c: 01 [08:44:36]MH_I2C_Read... [08:44:36]*** Stop cut motor [08:44:36]*** Cut end [08:44:36]Read from MH i2c: 01 07 00 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: 01 07 00 EF 15 00 00 00 00 00 FF 0F 19 [08:44:36]process_action close_receipt done [08:44:36]requested_data is exist [08:44:36]produce_requested_data [08:44:36]requested_item fm.sn is exist - process it [08:44:36]wFMCommunicate request_size=4 [08:44:36]MH_SAM_APDU [08:44:36]CAPDU: 80 11 00 00 [08:44:36]Write to MH i2c: E2 08 00 F0 15 80 11 00 00 00 00 00 00 7F [08:44:36]Write i2c OK [08:44:36]MH_I2C_Read... [08:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:36]Read from MH i2c: E2 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 17 00 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 17 00 F0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D2 [08:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:44:36]wFMCommunicate OK [08:44:36]requested_item fd.num is exist - process it [08:44:36]SAM_PROTO_GetFieldsCounters [08:44:36]wFMCommunicate request_size=4 [08:44:36]MH_SAM_APDU [08:44:36]CAPDU: 80 13 00 00 [08:44:36]Write to MH i2c: E2 08 00 F1 15 80 13 00 00 00 00 00 00 82 [08:44:36]Write i2c OK [08:44:36]MH_I2C_Read... [08:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:36]Read from MH i2c: E2 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 62 00 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 62 00 F1 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8A DC 02 00 0E 04 04 00 89 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 E3 [08:44:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8A DC 02 00 0E 04 04 00 89 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:44:36]wFMCommunicate OK [08:44:36]SAM_PROTO_GetFieldsCounters done [08:44:36]requested_item shift.num is exist - process it [08:44:36]requested_item shift.opened is exist - process it [08:44:36]req_shift_opened [08:44:36]FM_GetShiftState [08:44:36]SAM_PROTO_GetShiftState [08:44:36]wFMCommunicate request_size=4 [08:44:36]MH_SAM_APDU [08:44:36]CAPDU: 80 13 01 00 [08:44:36]Write to MH i2c: E2 08 00 F2 15 80 13 01 00 00 00 00 00 84 [08:44:36]Write i2c OK [08:44:36]MH_I2C_Read... [08:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:36]Read from MH i2c: E2 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 0E 00 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 0E 00 F2 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 72 [08:44:36]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:44:36]wFMCommunicate OK [08:44:36]SAM_PROTO_GetShiftState done [08:44:36]FM_GetShiftState done [08:44:36]req_shift_opened done [08:44:36]requested_item shift.open_date is exist - process it [08:44:36]req_shift_open_date [08:44:36]req_shift_open_date done [08:44:36]produce_requested_data done [08:44:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187530,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:44:36]process_action_free close_receipt [08:44:36]json_value_free [08:44:36]json_value_free done [08:44:36]process_json_proto returns [08:44:36]Send response to host [08:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187530,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:44:36]free response buf [08:44:36]execute_script done [08:44:36]execute_script returns [08:44:36]free content buf [08:44:36]Sock 9.Close socket [08:44:36]Sock 9.Thread stoped [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]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:24]accept exits with 7 [08:45:24]New connection [08:45:24]New thread 3067223396 created [08:45:24]Thread 3067080036 joined [08:45:24]Waiting for new connection... [08:45:24] Sock 7.Parse request [08:45:24]Sock 7.Check first char [08:45:24]Sock 7.First char is OK [08:45:24]request: POST /json_proto HTTP/1.0 [08:45:24]Method: POST [08:45:24]URL: /json_proto [08:45:24]Method is POST - this is cgi request [08:45:24]url: /json_proto [08:45:24]query_string will be loaded in cgi processing [08:45:24]execute_cgi json_proto POST (null) [08:45:24]execute_cgi path=json_proto method=POST [08:45:24]POST find Content-Length [08:45:24]Host: 172.17.46.131:8080 [08:45:24]Content-Length: 799 [08:45:24]Content-Type: application/json [08:45:24] [08:45:24]POST finish read [08:45:24]Found Content-Length = 799 [08:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:24]execute_script... [08:45:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:24]POST & json_proto [08:45:24]process_json_proto [08:45:24]json parsed OK: [08:45:24]protocol is kg_v1.0 [08:45:24]action value=close_receipt [08:45:24]process_action close_receipt [08:45:24]cmd_close_receipt [08:45:24]MH_GetDate [08:45:24]Write to MH i2c: F0 00 00 F3 15 F7 [08:45:24]Write i2c OK [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: F0 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: F0 09 00 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: F0 09 00 F3 15 00 28 3D B8 67 7E 41 4F 65 F7 [08:45:24]GetLastDocTimeStamp 1740127475 [08:45:24]current date 1740127528 [08:45:24]FM_GetShiftState [08:45:24]SAM_PROTO_GetShiftState [08:45:24]wFMCommunicate request_size=4 [08:45:24]MH_SAM_APDU [08:45:24]CAPDU: 80 13 01 00 [08:45:24]Write to MH i2c: E2 08 00 F4 15 80 13 01 00 00 00 00 00 86 [08:45:24]Write i2c OK [08:45:24]MH_I2C_Read... [08:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:24]Read from MH i2c: E2 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 0E 00 [08:45:24]MH_I2C_Read... [08:45:24]Read from MH i2c: E2 0E 00 F4 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 74 [08:45:24]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:45:24]wFMCommunicate OK [08:45:24]SAM_PROTO_GetShiftState done [08:45:24]FM_GetShiftState done [08:45:24]opened in 1740098043 [08:45:24]opened+sec_in_day 1740184443 [08:45:24]quantity*price = 100042 [08:45:24]sum+1 = 100044 [08:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 25 21.02.2025 08:45 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187531 ФПД: 42870976618266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T084528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187531&fm=42870976618266&tin=02508201610067®Number=0000000000091857&sum=100043 [08:45:25]StoreToDocumentArchive [08:45:25]shift 649 fd 187531 [08:45:25]save to /storage/0649/doc_00187531 [08:45:25]save last doc name /storage/0649/doc_00187531 to /storage/kkm_last_doc_name [08:45:25]save OK [08:45:25]Clear old archive folders... [08:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:45:25]tlvbuf is 02077440 [08:45:25]SAM_PROTO_ClearQueue [08:45:25]wFMCommunicate request_size=4 [08:45:25]MH_SAM_APDU [08:45:25]CAPDU: 80 09 00 00 [08:45:25]Write to MH i2c: E2 08 00 01 16 80 09 00 00 00 00 00 00 89 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:25]Read from MH i2c: E2 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 03 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 03 00 01 16 00 90 00 8B [08:45:25]RAPDU: 90 00 [08:45:25]wFMCommunicate OK [08:45:25]SAM_PROTO_ClearQueue done [08:45:25]KKMCreateOFDPacket [08:45:25]OFDProtocolAddRootSTLVToBuf [08:45:25]FM_MakeSignedData [08:45:25]FM_MakeSignedData [08:45:25]SAM_PROTO_SignData [08:45:25]wFMCommunicate request_size=4 [08:45:25]MH_SAM_APDU [08:45:25]CAPDU: 80 0D 01 02 [08:45:25]Write to MH i2c: E2 08 00 02 16 80 0D 01 02 00 00 00 00 91 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:25]Read from MH i2c: E2 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 03 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 03 00 02 16 00 90 00 8C [08:45:25]RAPDU: 90 00 [08:45:25]wFMCommunicate OK [08:45:25]wFMCommunicate request_size=255 [08:45:25]MH_SAM_APDU [08:45:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 28 3D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DC 02 00 35 04 06 00 26 FD AD 55 [08:45:25]Write to MH i2c: E2 02 01 03 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 28 3D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DC 02 00 35 04 06 00 26 FD AD 55 00 00 41 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:25]Read from MH i2c: E2 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 03 00 [08:45:25]MH_I2C_Read... [08:45:25]Read from MH i2c: E2 03 00 03 16 00 90 00 8D [08:45:25]RAPDU: 90 00 [08:45:25]wFMCommunicate OK [08:45:25]wFMCommunicate request_size=7 [08:45:25]MH_SAM_APDU [08:45:25]CAPDU: 80 0D 02 02 02 1F 1A [08:45:25]Write to MH i2c: E2 0A 00 04 16 80 0D 02 02 02 00 1F 1A 00 00 D1 [08:45:25]Write i2c OK [08:45:25]MH_I2C_Read... [08:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:26]Read from MH i2c: E2 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 03 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [08:45:26]RAPDU: 90 00 [08:45:26]wFMCommunicate OK [08:45:26]wFMCommunicate request_size=4 [08:45:26]MH_SAM_APDU [08:45:26]CAPDU: 80 0D 03 02 [08:45:26]Write to MH i2c: E2 08 00 05 16 80 0D 03 02 00 00 00 00 96 [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:26]Read from MH i2c: E2 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 0B 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 0B 00 05 16 00 F1 5D 0C CF A0 7C 6B 09 90 00 50 [08:45:26]RAPDU: F1 5D 0C CF A0 7C 6B 09 90 00 [08:45:26]wFMCommunicate OK [08:45:26]SAM_PROTO_SignData done [08:45:26]FM_MakeSignedData done [08:45:26]CreateOFDProtocolMessage [08:45:26]wFMCommunicate request_size=4 [08:45:26]MH_SAM_APDU [08:45:26]CAPDU: 80 11 00 00 [08:45:26]Write to MH i2c: E2 08 00 06 16 80 11 00 00 00 00 00 00 96 [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:26]Read from MH i2c: E2 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 17 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: E2 17 00 06 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E9 [08:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:45:26]wFMCommunicate OK [08:45:26]CreateOFDProtocolMessage done [08:45:26]OFDSenderStorePacket 187531 [08:45:26]StoreOFDPacket docnum=187531 [08:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 87 E6 04 01 8C 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 28 3D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DC 02 00 35 04 06 00 26 FD AD 55 1F 1A F1 5D 0C CF A0 7C 6B 09 [08:45:26]CheckFolder [08:45:26]dirname=/storage/ofd_packets [08:45:26]CheckFolder done [08:45:26]ProducePacketName [08:45:26]name=ofd_packets/00187531 [08:45:26]NVStorageSaveData ofd_packets/00187531 [08:45:26]File name is /storage/ofd_packets/00187531 [08:45:26]Write 298 bytes [08:45:26]NVStorageSaveData done [08:45:26]OFDSenderStorePacket done [08:45:26]KKMCreateOFDPacket done [08:45:26]NVStorageSaveData kkm_last_timestamp [08:45:26]File name is /storage/kkm_last_timestamp [08:45:26]Write 4 bytes [08:45:26]NVStorageSaveData done [08:45:26]ExternCall_PrintAddStr [08:45:26]wPrintStart [08:45:26]Write to MH i2c: 01 00 00 07 16 1D [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: 01 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: 01 07 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: 01 07 00 07 16 00 00 00 00 00 FF 0F 32 [08:45:26]RasterBufferAndPrint [08:45:26]line Счет N : (1)412688 [08:45:26]line ИНН: 02508201610067 [08:45:26]line Контрольно-Кассовый Чек [08:45:26]line ПРОДАЖА [08:45:26]line ТРК (МРК, ГНК) : 6 [08:45:26]line Товар: 2710194210 [08:45:26]line ДТ-К-5 [08:45:26]line 13.780 * 72.60 [08:45:26]line = 1000.43 [08:45:26]line НДС 12% НСП 1% [08:45:26]line > о реализуемом товаре [08:45:26]line ИТОГО: 1000.43 [08:45:26]line НСП 1% : 8.85 [08:45:26]line НДС 12% : 106.24 [08:45:26]line Наличными: 0.00 [08:45:26]line Безнал.: 1000.43 [08:45:26]line Место: АЗС № 92 "Партнер Нефть" [08:45:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:45:26]line СНО: Общий режим [08:45:26]line Чек 25 21.02.2025 08:45 [08:45:26]line Смена: 649 ФФД: 1.0 [08:45:26]line ЗНМ: 0300000118 [08:45:26]line РНМ: 0000000000091857 [08:45:26]line Версия ККМ: 001 [08:45:26]line Платежная система: O! деньги [08:45:26]line ФМ: 0000000000871826 [08:45:26]line ФД: 187531 [08:45:26]line ФПД: 42870976618266 [08:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T084528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187531&fm=42870976618266&tin=02508201610067®Number=0000000000091857&sum=100043 [08:45:26]OFD Sender: Processing packet 187531 [packets to send 49, broken 48] [08:45:26]ProducePacketName [08:45:26]name=ofd_packets/00187531 [08:45:26]OFD Sender: To server: pG, [08:45:26]CommunicateWithHost lk.salyk.kg:30040 [08:45:26]ConnectInit lk.salyk.kg [08:45:26]written 0, free lines is 4095 [08:45:26]Connected sock=9 [08:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 87 E6 04 01 8C 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 28 3D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DC 02 00 35 04 06 00 26 FD AD 55 1F 1A F1 5D 0C CF A0 7C 6B 09 [08:45:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3C 76 47 00 0B 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 38 32 36 10 04 04 00 8B DC 02 00 F4 03 04 00 76 E3 B7 67 B6 04 01 00 00 AA DB 24 4D C2 FC B7 22 [08:45:26]CommunicateWithHost err = 0 [08:45:26]CheckOFDResponse [08:45:26]1017 (14) - 77093643461234 [08:45:26]1041 (16) - 0000000000871826 [08:45:26]1040 (4) - 187531 [08:45:26]1012 (4) - 21.02.2025 02:22 [08:45:26]1206 (1) - 0 [08:45:26]OFD Sender: Remove packet 187531 [08:45:26]ProducePacketName [08:45:26]name=ofd_packets/00187531 [08:45:26]NVStorageDeleteData [08:45:26]Write to MH i2c: 01 00 00 31 16 47 [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: 01 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: 01 07 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: 01 07 00 31 16 00 00 00 00 00 1A 0D 75 [08:45:26]RasterBufferAndPrint [08:45:26]line [08:45:26]line [08:45:26]line [08:45:26]line [08:45:26]line [08:45:26]written 0, free lines is 3363 [08:45:26]MH_Cut [08:45:26]Write to MH i2c: D1 01 00 38 16 01 20 [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: D1 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: D1 01 00 [08:45:26]MH_I2C_Read... [08:45:26]Read from MH i2c: D1 01 00 38 16 00 1F [08:45:26]Write to MH i2c: 01 00 00 39 16 4F [08:45:26]Write i2c OK [08:45:26]MH_I2C_Read... [08:45:27]OFD Sender: No OFD packet to send [08:45:27]*** Cut start [08:45:27]*** Partial cut [08:45:27]*** CUTSNS_PIN = 1 [08:45:27]*** CUTSNS_PIN = 0 [08:45:27]*** Brake cut motor [08:45:28]Read from MH i2c: 01 [08:45:28]MH_I2C_Read... [08:45:28]*** Stop cut motor [08:45:28]*** Cut end [08:45:28]Read from MH i2c: 01 07 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: 01 07 00 39 16 00 00 00 00 00 FF 0F 64 [08:45:28]process_action close_receipt done [08:45:28]requested_data is exist [08:45:28]produce_requested_data [08:45:28]requested_item fm.sn is exist - process it [08:45:28]wFMCommunicate request_size=4 [08:45:28]MH_SAM_APDU [08:45:28]CAPDU: 80 11 00 00 [08:45:28]Write to MH i2c: E2 08 00 3A 16 80 11 00 00 00 00 00 00 CA [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:28]Read from MH i2c: E2 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 17 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 17 00 3A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1D [08:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:45:28]wFMCommunicate OK [08:45:28]requested_item fd.num is exist - process it [08:45:28]SAM_PROTO_GetFieldsCounters [08:45:28]wFMCommunicate request_size=4 [08:45:28]MH_SAM_APDU [08:45:28]CAPDU: 80 13 00 00 [08:45:28]Write to MH i2c: E2 08 00 3B 16 80 13 00 00 00 00 00 00 CD [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:28]Read from MH i2c: E2 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 62 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 62 00 3B 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8B DC 02 00 0E 04 04 00 89 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 32 [08:45:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8B DC 02 00 0E 04 04 00 89 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:45:28]wFMCommunicate OK [08:45:28]SAM_PROTO_GetFieldsCounters done [08:45:28]requested_item shift.num is exist - process it [08:45:28]requested_item shift.opened is exist - process it [08:45:28]req_shift_opened [08:45:28]FM_GetShiftState [08:45:28]SAM_PROTO_GetShiftState [08:45:28]wFMCommunicate request_size=4 [08:45:28]MH_SAM_APDU [08:45:28]CAPDU: 80 13 01 00 [08:45:28]Write to MH i2c: E2 08 00 3C 16 80 13 01 00 00 00 00 00 CF [08:45:28]Write i2c OK [08:45:28]MH_I2C_Read... [08:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:28]Read from MH i2c: E2 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 0E 00 [08:45:28]MH_I2C_Read... [08:45:28]Read from MH i2c: E2 0E 00 3C 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 BD [08:45:28]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:45:28]wFMCommunicate OK [08:45:28]SAM_PROTO_GetShiftState done [08:45:28]FM_GetShiftState done [08:45:28]req_shift_opened done [08:45:28]requested_item shift.open_date is exist - process it [08:45:28]req_shift_open_date [08:45:28]req_shift_open_date done [08:45:28]produce_requested_data done [08:45:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187531,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:45:28]process_action_free close_receipt [08:45:28]json_value_free [08:45:28]json_value_free done [08:45:28]process_json_proto returns [08:45:28]Send response to host [08:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187531,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:45:28]free response buf [08:45:28]execute_script done [08:45:28]execute_script returns [08:45:28]free content buf [08:45:28]Sock 7.Close socket [08:45:28]Sock 7.Thread stoped [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:24]accept exits with 10 [08:46:24]New connection [08:46:24]New thread 3067080036 created [08:46:24]Thread 3067223396 joined [08:46:24]Waiting for new connection... [08:46:24] Sock 10.Parse request [08:46:24]Sock 10.Check first char [08:46:24]Sock 10.First char is OK [08:46:24]request: POST /json_proto HTTP/1.0 [08:46:24]Method: POST [08:46:24]URL: /json_proto [08:46:24]Method is POST - this is cgi request [08:46:24]url: /json_proto [08:46:24]query_string will be loaded in cgi processing [08:46:24]execute_cgi json_proto POST (null) [08:46:24]execute_cgi path=json_proto method=POST [08:46:24]POST find Content-Length [08:46:24]Host: 172.17.46.131:8080 [08:46:24]Content-Length: 792 [08:46:24]Content-Type: application/json [08:46:24] [08:46:24]POST finish read [08:46:24]Found Content-Length = 792 [08:46:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:24]execute_script... [08:46: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)412689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:24]POST & json_proto [08:46:24]process_json_proto [08:46:24]json parsed OK: [08:46:24]protocol is kg_v1.0 [08:46:24]action value=close_receipt [08:46:24]process_action close_receipt [08:46:24]cmd_close_receipt [08:46:24]MH_GetDate [08:46:24]Write to MH i2c: F0 00 00 3D 16 42 [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: F0 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: F0 09 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: F0 09 00 3D 16 00 63 3D B8 67 7E 41 4F 65 7D [08:46:24]GetLastDocTimeStamp 1740127528 [08:46:24]current date 1740127587 [08:46:24]FM_GetShiftState [08:46:24]SAM_PROTO_GetShiftState [08:46:24]wFMCommunicate request_size=4 [08:46:24]MH_SAM_APDU [08:46:24]CAPDU: 80 13 01 00 [08:46:24]Write to MH i2c: E2 08 00 3E 16 80 13 01 00 00 00 00 00 D1 [08:46:24]Write i2c OK [08:46:24]MH_I2C_Read... [08:46:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:24]Read from MH i2c: E2 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 0E 00 [08:46:24]MH_I2C_Read... [08:46:24]Read from MH i2c: E2 0E 00 3E 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 BF [08:46:24]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:46:24]wFMCommunicate OK [08:46:24]SAM_PROTO_GetShiftState done [08:46:24]FM_GetShiftState done [08:46:24]opened in 1740098043 [08:46:24]opened+sec_in_day 1740184443 [08:46:24]quantity*price = 0 [08:46:24]sum+1 = 1 [08:46:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 26 21.02.2025 08:46 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03822 ФМ: 0000000000871826 ФД: 187532 ФПД: 191119106930849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T084627&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187532&fm=191119106930849&tin=02508201610067®Number=0000000000091857&sum=0 [08:46:25]StoreToDocumentArchive [08:46:25]shift 649 fd 187532 [08:46:25]save to /storage/0649/doc_00187532 [08:46:25]save last doc name /storage/0649/doc_00187532 to /storage/kkm_last_doc_name [08:46:25]save OK [08:46:25]Clear old archive folders... [08:46:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:25]tlvbuf is 02041560 [08:46:25]SAM_PROTO_ClearQueue [08:46:25]wFMCommunicate request_size=4 [08:46:25]MH_SAM_APDU [08:46:25]CAPDU: 80 09 00 00 [08:46:25]Write to MH i2c: E2 08 00 4B 16 80 09 00 00 00 00 00 00 D3 [08:46:25]Write i2c OK [08:46:25]MH_I2C_Read... [08:46:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:25]Read from MH i2c: E2 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 03 00 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 03 00 4B 16 00 90 00 D5 [08:46:25]RAPDU: 90 00 [08:46:25]wFMCommunicate OK [08:46:25]SAM_PROTO_ClearQueue done [08:46:25]KKMCreateOFDPacket [08:46:25]OFDProtocolAddRootSTLVToBuf [08:46:25]FM_MakeSignedData [08:46:25]FM_MakeSignedData [08:46:25]SAM_PROTO_SignData [08:46:25]wFMCommunicate request_size=4 [08:46:25]MH_SAM_APDU [08:46:25]CAPDU: 80 0D 01 02 [08:46:25]Write to MH i2c: E2 08 00 4C 16 80 0D 01 02 00 00 00 00 DB [08:46:25]Write i2c OK [08:46:25]MH_I2C_Read... [08:46:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:25]Read from MH i2c: E2 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 03 00 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 03 00 4C 16 00 90 00 D6 [08:46:25]RAPDU: 90 00 [08:46:25]wFMCommunicate OK [08:46:25]wFMCommunicate request_size=255 [08:46:25]MH_SAM_APDU [08:46: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 63 3D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DC 02 00 35 04 06 00 AD [08:46:25]Write to MH i2c: E2 02 01 4D 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 63 3D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DC 02 00 35 04 06 00 AD 00 00 7A [08:46:25]Write i2c OK [08:46:25]MH_I2C_Read... [08:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:25]Read from MH i2c: E2 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 03 00 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 03 00 4D 16 00 90 00 D7 [08:46:25]RAPDU: 90 00 [08:46:25]wFMCommunicate OK [08:46:25]wFMCommunicate request_size=10 [08:46:25]MH_SAM_APDU [08:46:25]CAPDU: 80 0D 02 02 05 D2 62 7A 78 A1 [08:46:25]Write to MH i2c: E2 0D 00 4E 16 80 0D 02 02 05 00 D2 62 7A 78 A1 00 00 AF [08:46:25]Write i2c OK [08:46:25]MH_I2C_Read... [08:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:25]Read from MH i2c: E2 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 03 00 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 03 00 4E 16 00 90 00 D8 [08:46:25]RAPDU: 90 00 [08:46:25]wFMCommunicate OK [08:46:25]wFMCommunicate request_size=4 [08:46:25]MH_SAM_APDU [08:46:25]CAPDU: 80 0D 03 02 [08:46:25]Write to MH i2c: E2 08 00 4F 16 80 0D 03 02 00 00 00 00 E0 [08:46:25]Write i2c OK [08:46:25]MH_I2C_Read... [08:46:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:25]Read from MH i2c: E2 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 0B 00 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 0B 00 4F 16 00 63 06 69 76 4B 46 28 58 90 00 3A [08:46:25]RAPDU: 63 06 69 76 4B 46 28 58 90 00 [08:46:25]wFMCommunicate OK [08:46:25]SAM_PROTO_SignData done [08:46:25]FM_MakeSignedData done [08:46:25]CreateOFDProtocolMessage [08:46:25]wFMCommunicate request_size=4 [08:46:25]MH_SAM_APDU [08:46:25]CAPDU: 80 11 00 00 [08:46:25]Write to MH i2c: E2 08 00 50 16 80 11 00 00 00 00 00 00 E0 [08:46:25]Write i2c OK [08:46:25]MH_I2C_Read... [08:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:25]Read from MH i2c: E2 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 17 00 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: E2 17 00 50 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 33 [08:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:46:25]wFMCommunicate OK [08:46:25]CreateOFDProtocolMessage done [08:46:25]OFDSenderStorePacket 187532 [08:46:25]StoreOFDPacket docnum=187532 [08:46:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 23 48 07 01 EC 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 63 3D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DC 02 00 35 04 06 00 AD D2 62 7A 78 A1 63 06 69 76 4B 46 28 58 [08:46:25]CheckFolder [08:46:25]dirname=/storage/ofd_packets [08:46:25]CheckFolder done [08:46:25]ProducePacketName [08:46:25]name=ofd_packets/00187532 [08:46:25]NVStorageSaveData ofd_packets/00187532 [08:46:25]File name is /storage/ofd_packets/00187532 [08:46:25]Write 301 bytes [08:46:25]NVStorageSaveData done [08:46:25]OFDSenderStorePacket done [08:46:25]KKMCreateOFDPacket done [08:46:25]NVStorageSaveData kkm_last_timestamp [08:46:25]File name is /storage/kkm_last_timestamp [08:46:25]Write 4 bytes [08:46:25]NVStorageSaveData done [08:46:25]ExternCall_PrintAddStr [08:46:25]wPrintStart [08:46:25]Write to MH i2c: 01 00 00 51 16 67 [08:46:25]Write i2c OK [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: 01 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: 01 07 00 [08:46:25]MH_I2C_Read... [08:46:25]Read from MH i2c: 01 07 00 51 16 00 00 00 00 00 FF 0F 7C [08:46:25]RasterBufferAndPrint [08:46:25]line Счет N : (1)412689 [08:46:25]line ИНН: 02508201610067 [08:46:25]line Контрольно-Кассовый Чек [08:46:25]line ПРОДАЖА [08:46:25]line ТРК (МРК, ГНК) : 42 [08:46:25]line Товар: 2710124130 [08:46:25]line Аи-92-К-2 [08:46:25]line 15.580 * 0.00 [08:46:25]line = 0.00 [08:46:25]line НДС 12% НСП 1% [08:46:25]line > о реализуемом товаре [08:46:25]line ИТОГО: 0.00 [08:46:25]line НСП 1% : 0.00 [08:46:25]line НДС 12% : 0.00 [08:46:25]line Наличными: 0.00 [08:46:25]line Безнал.: 0.00 [08:46:25]line Место: АЗС № 92 "Партнер Нефть" [08:46:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:46:25]line СНО: Общий режим [08:46:25]line Чек 26 21.02.2025 08:46 [08:46:25]line Смена: 649 ФФД: 1.0 [08:46:25]line ЗНМ: 0300000118 [08:46:25]line РНМ: 0000000000091857 [08:46:25]line Версия ККМ: 001 [08:46:25]line Талоны: Топливная Карта [08:46:25]line 03822 [08:46:25]line ФМ: 0000000000871826 [08:46:25]line ФД: 187532 [08:46:25]line ФПД: 191119106930849 [08:46:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T084627&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187532&fm=191119106930849&tin=02508201610067®Number=0000000000091857&sum=0 [08:46:25]written 0, free lines is 4095 [08:46:26]OFD Sender: Processing packet 187532 [packets to send 49, broken 48] [08:46:26]ProducePacketName [08:46:26]name=ofd_packets/00187532 [08:46:26]OFD Sender: To server: pG, [08:46:26]CommunicateWithHost lk.salyk.kg:30040 [08:46:26]ConnectInit lk.salyk.kg [08:46:26]Connected sock=9 [08:46:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 23 48 07 01 EC 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 63 3D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DC 02 00 35 04 06 00 AD D2 62 7A 78 A1 63 06 69 76 4B 46 28 58 [08:46:26]Write to MH i2c: 01 00 00 7B 16 91 [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: 01 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: 01 07 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: 01 07 00 7B 16 00 00 00 00 00 06 0D AB [08:46:26]RasterBufferAndPrint [08:46:26]line [08:46:26]line [08:46:26]line [08:46:26]line [08:46:26]line [08:46:26]written 0, free lines is 3340 [08:46:26]MH_Cut [08:46:26]Write to MH i2c: D1 01 00 82 16 01 6A [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: D1 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: D1 01 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: D1 01 00 82 16 00 69 [08:46:26]Write to MH i2c: 01 00 00 83 16 99 [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 83 47 47 00 13 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C DC 02 00 F4 03 04 00 B2 E3 B7 67 B6 04 01 00 00 23 AC 30 37 7B 32 22 96 [08:46:26]CommunicateWithHost err = 0 [08:46:26]CheckOFDResponse [08:46:26]1017 (14) - 77093643461234 [08:46:26]1041 (16) - 0000000000871826 [08:46:26]1040 (4) - 187532 [08:46:26]1012 (4) - 21.02.2025 02:23 [08:46:26]1206 (1) - 0 [08:46:26]OFD Sender: Remove packet 187532 [08:46:26]ProducePacketName [08:46:26]name=ofd_packets/00187532 [08:46:26]NVStorageDeleteData [08:46:26]OFD Sender: No OFD packet to send [08:46:27]*** Cut start [08:46:27]*** Partial cut [08:46:27]*** CUTSNS_PIN = 1 [08:46:27]*** CUTSNS_PIN = 0 [08:46:27]*** Brake cut motor [08:46:27]Read from MH i2c: 01 [08:46:27]MH_I2C_Read... [08:46:27]*** Stop cut motor [08:46:27]*** Cut end [08:46:27]Read from MH i2c: 01 07 00 [08:46:27]MH_I2C_Read... [08:46:27]Read from MH i2c: 01 07 00 83 16 00 00 00 00 00 FF 0F AE [08:46:27]process_action close_receipt done [08:46:27]requested_data is exist [08:46:27]produce_requested_data [08:46:27]requested_item fm.sn is exist - process it [08:46:27]wFMCommunicate request_size=4 [08:46:27]MH_SAM_APDU [08:46:27]CAPDU: 80 11 00 00 [08:46:27]Write to MH i2c: E2 08 00 84 16 80 11 00 00 00 00 00 00 14 [08:46:27]Write i2c OK [08:46:27]MH_I2C_Read... [08:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:27]Read from MH i2c: E2 [08:46:27]MH_I2C_Read... [08:46:27]Read from MH i2c: E2 17 00 [08:46:27]MH_I2C_Read... [08:46:27]Read from MH i2c: E2 17 00 84 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 67 [08:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:46:27]wFMCommunicate OK [08:46:27]requested_item fd.num is exist - process it [08:46:27]SAM_PROTO_GetFieldsCounters [08:46:27]wFMCommunicate request_size=4 [08:46:27]MH_SAM_APDU [08:46:27]CAPDU: 80 13 00 00 [08:46:27]Write to MH i2c: E2 08 00 85 16 80 13 00 00 00 00 00 00 17 [08:46:27]Write i2c OK [08:46:27]MH_I2C_Read... [08:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:28]Read from MH i2c: E2 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 62 00 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 62 00 85 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8C DC 02 00 0E 04 04 00 89 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 80 [08:46:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8C DC 02 00 0E 04 04 00 89 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:46:28]wFMCommunicate OK [08:46:28]SAM_PROTO_GetFieldsCounters done [08:46:28]requested_item shift.num is exist - process it [08:46:28]requested_item shift.opened is exist - process it [08:46:28]req_shift_opened [08:46:28]FM_GetShiftState [08:46:28]SAM_PROTO_GetShiftState [08:46:28]wFMCommunicate request_size=4 [08:46:28]MH_SAM_APDU [08:46:28]CAPDU: 80 13 01 00 [08:46:28]Write to MH i2c: E2 08 00 86 16 80 13 01 00 00 00 00 00 19 [08:46:28]Write i2c OK [08:46:28]MH_I2C_Read... [08:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:28]Read from MH i2c: E2 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 0E 00 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 0E 00 86 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 07 [08:46:28]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:46:28]wFMCommunicate OK [08:46:28]SAM_PROTO_GetShiftState done [08:46:28]FM_GetShiftState done [08:46:28]req_shift_opened done [08:46:28]requested_item shift.open_date is exist - process it [08:46:28]req_shift_open_date [08:46:28]req_shift_open_date done [08:46:28]produce_requested_data done [08:46:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187532,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:46:28]process_action_free close_receipt [08:46:28]json_value_free [08:46:28]json_value_free done [08:46:28]process_json_proto returns [08:46:28]Send response to host [08:46:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187533,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:46:45]process_action_free close_receipt [08:46:45]json_value_free [08:46:45]json_value_free done [08:46:45]process_json_proto returns [08:46:45]Send response to host [08:46:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187533,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:46:45]free response buf [08:46:45]execute_script done [08:46:45]execute_script returns [08:46:45]free content buf [08:46:45]Sock 7.Close socket [08:46:45]Sock 7.Thread stoped [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:57]ConnectInit Can't connect to host [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:15]ConnectInit Can't connect to host [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:19]accept exits with 9 [08:52:19]New connection [08:52:19]New thread 3067080036 created [08:52:19]Thread 3067223396 joined [08:52:19]Waiting for new connection... [08:52:19] Sock 9.Parse request [08:52:19]Sock 9.Check first char [08:52:19]Sock 9.First char is OK [08:52:19]request: POST /json_proto HTTP/1.0 [08:52:19]Method: POST [08:52:19]URL: /json_proto [08:52:19]Method is POST - this is cgi request [08:52:19]url: /json_proto [08:52:19]query_string will be loaded in cgi processing [08:52:19]execute_cgi json_proto POST (null) [08:52:19]execute_cgi path=json_proto method=POST [08:52:19]POST find Content-Length [08:52:19]Host: 172.17.46.131:8080 [08:52:19]Content-Length: 679 [08:52:19]Content-Type: application/json [08:52:19] [08:52:19]POST finish read [08:52:19]Found Content-Length = 679 [08:52:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:19]execute_script... [08:52: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)412691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:19]POST & json_proto [08:52:19]process_json_proto [08:52:19]json parsed OK: [08:52:19]protocol is kg_v1.0 [08:52:19]action value=close_receipt [08:52:19]process_action close_receipt [08:52:19]cmd_close_receipt [08:52:19]MH_GetDate [08:52:19]Write to MH i2c: F0 00 00 D2 16 D7 [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 09 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: F0 09 00 D2 16 00 C7 3E B8 67 7E 41 4F 65 77 [08:52:19]GetLastDocTimeStamp 1740127604 [08:52:19]current date 1740127943 [08:52:19]FM_GetShiftState [08:52:19]SAM_PROTO_GetShiftState [08:52:19]wFMCommunicate request_size=4 [08:52:19]MH_SAM_APDU [08:52:19]CAPDU: 80 13 01 00 [08:52:19]Write to MH i2c: E2 08 00 D3 16 80 13 01 00 00 00 00 00 66 [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:19]Read from MH i2c: E2 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 0E 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 0E 00 D3 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 54 [08:52:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:52:19]wFMCommunicate OK [08:52:19]SAM_PROTO_GetShiftState done [08:52:19]FM_GetShiftState done [08:52:19]opened in 1740098043 [08:52:19]opened+sec_in_day 1740184443 [08:52:19]quantity*price = 100042 [08:52:19]sum+1 = 100044 [08:52:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 28 21.02.2025 08:52 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187534 ФПД: 119547820350627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085223&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187534&fm=119547820350627&tin=02508201610067®Number=0000000000091857&sum=100000 [08:52:20]StoreToDocumentArchive [08:52:20]shift 649 fd 187534 [08:52:20]save to /storage/0649/doc_00187534 [08:52:20]save last doc name /storage/0649/doc_00187534 to /storage/kkm_last_doc_name [08:52:20]save OK [08:52:20]Clear old archive folders... [08:52:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:52:20]tlvbuf is 020C2D50 [08:52:20]SAM_PROTO_ClearQueue [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 09 00 00 [08:52:20]Write to MH i2c: E2 08 00 E0 16 80 09 00 00 00 00 00 00 68 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:20]Read from MH i2c: E2 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 [08:52:20]MH_I2C_Read... [08:52:20]Read from MH i2c: E2 03 00 E0 16 00 90 00 6A [08:52:20]RAPDU: 90 00 [08:52:20]wFMCommunicate OK [08:52:20]SAM_PROTO_ClearQueue done [08:52:20]KKMCreateOFDPacket [08:52:20]OFDProtocolAddRootSTLVToBuf [08:52:20]FM_MakeSignedData [08:52:20]FM_MakeSignedData [08:52:20]SAM_PROTO_SignData [08:52:20]wFMCommunicate request_size=4 [08:52:20]MH_SAM_APDU [08:52:20]CAPDU: 80 0D 01 02 [08:52:20]Write to MH i2c: E2 08 00 E1 16 80 0D 01 02 00 00 00 00 70 [08:52:20]Write i2c OK [08:52:20]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 E1 16 00 90 00 6B [08:52:21]RAPDU: 90 00 [08:52:21]wFMCommunicate OK [08:52:21]wFMCommunicate request_size=255 [08:52:21]MH_SAM_APDU [08:52: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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C7 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E DC 02 00 35 04 06 00 6C BA 65 5D [08:52:21]Write to MH i2c: E2 02 01 E2 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C7 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E DC 02 00 35 04 06 00 6C BA 65 5D 00 00 30 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 E2 16 00 90 00 6C [08:52:21]RAPDU: 90 00 [08:52:21]wFMCommunicate OK [08:52:21]wFMCommunicate request_size=7 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 0D 02 02 02 9C A3 [08:52:21]Write to MH i2c: E2 0A 00 E3 16 80 0D 02 02 02 00 9C A3 00 00 B6 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 03 00 E3 16 00 90 00 6D [08:52:21]RAPDU: 90 00 [08:52:21]wFMCommunicate OK [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 0D 03 02 [08:52:21]Write to MH i2c: E2 08 00 E4 16 80 0D 03 02 00 00 00 00 75 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 0B 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 0B 00 E4 16 00 16 D9 39 AE FD D4 26 17 90 00 5A [08:52:21]RAPDU: 16 D9 39 AE FD D4 26 17 90 00 [08:52:21]wFMCommunicate OK [08:52:21]SAM_PROTO_SignData done [08:52:21]FM_MakeSignedData done [08:52:21]CreateOFDProtocolMessage [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 11 00 00 [08:52:21]Write to MH i2c: E2 08 00 E5 16 80 11 00 00 00 00 00 00 75 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 17 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 17 00 E5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C8 [08:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:52:21]wFMCommunicate OK [08:52:21]CreateOFDProtocolMessage done [08:52:21]OFDSenderStorePacket 187534 [08:52:21]StoreOFDPacket docnum=187534 [08:52:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 84 29 04 01 ED 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C7 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E DC 02 00 35 04 06 00 6C BA 65 5D 9C A3 16 D9 39 AE FD D4 26 17 [08:52:21]CheckFolder [08:52:21]dirname=/storage/ofd_packets [08:52:21]CheckFolder done [08:52:21]ProducePacketName [08:52:21]name=ofd_packets/00187534 [08:52:21]NVStorageSaveData ofd_packets/00187534 [08:52:21]File name is /storage/ofd_packets/00187534 [08:52:21]Write 298 bytes [08:52:21]NVStorageSaveData done [08:52:21]OFDSenderStorePacket done [08:52:21]KKMCreateOFDPacket done [08:52:21]NVStorageSaveData kkm_last_timestamp [08:52:21]File name is /storage/kkm_last_timestamp [08:52:21]Write 4 bytes [08:52:21]NVStorageSaveData done [08:52:21]ExternCall_PrintAddStr [08:52:21]wPrintStart [08:52:21]Write to MH i2c: 01 00 00 E6 16 FC [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 07 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: 01 07 00 E6 16 00 00 00 00 00 FF 0F 11 [08:52:21]RasterBufferAndPrint [08:52:21]line Счет N : (1)412691 [08:52:21]line ИНН: 02508201610067 [08:52:21]line Контрольно-Кассовый Чек [08:52:21]line ПРОДАЖА [08:52:21]line ТРК (МРК, ГНК) : 41 [08:52:21]line Товар: 2710194210 [08:52:21]line ДТ-К-2 [08:52:21]line 13.780 * 72.60 [08:52:21]line = 1000.43 [08:52:21]line НДС 12% НСП 1% [08:52:21]line > о реализуемом товаре [08:52:21]line ОКРУГЛЕНИЕ: -0.43 [08:52:21]line ИТОГО: 1000.00 [08:52:21]line Внесено: 1000.00 [08:52:21]line СДАЧА: 0.00 [08:52:21]line НСП 1% : 8.85 [08:52:21]line НДС 12% : 106.24 [08:52:21]line Наличными: 1000.00 [08:52:21]line Безнал.: 0.00 [08:52:21]line Место: АЗС № 92 "Партнер Нефть" [08:52:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:52:21]line СНО: Общий режим [08:52:21]line Чек 28 21.02.2025 08:52 [08:52:21]line Смена: 649 ФФД: 1.0 [08:52:21]line ЗНМ: 0300000118 [08:52:21]line РНМ: 0000000000091857 [08:52:21]line Версия ККМ: 001 [08:52:21]line ФМ: 0000000000871826 [08:52:21]line ФД: 187534 [08:52:21]line ФПД: 119547820350627 [08:52:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085223&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187534&fm=119547820350627&tin=02508201610067®Number=0000000000091857&sum=100000 [08:52:21]OFD Sender: Processing packet 187534 [packets to send 49, broken 48] [08:52:21]ProducePacketName [08:52:21]name=ofd_packets/00187534 [08:52:21]OFD Sender: To server: pG, [08:52:21]CommunicateWithHost lk.salyk.kg:30040 [08:52:21]ConnectInit lk.salyk.kg [08:52:21]written 0, free lines is 4095 [08:52:21]Connected sock=11 [08:52:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 84 29 04 01 ED 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C7 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E DC 02 00 35 04 06 00 6C BA 65 5D 9C A3 16 D9 39 AE FD D4 26 17 [08:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 11 15 47 00 19 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E DC 02 00 F4 03 04 00 15 E5 B7 67 B6 04 01 00 00 08 D5 43 BF 02 BE 7D 76 [08:52:22]CommunicateWithHost err = 0 [08:52:22]CheckOFDResponse [08:52:22]1017 (14) - 77093643461234 [08:52:22]1041 (16) - 0000000000871826 [08:52:22]1040 (4) - 187534 [08:52:22]1012 (4) - 21.02.2025 02:29 [08:52:22]1206 (1) - 0 [08:52:22]OFD Sender: Remove packet 187534 [08:52:22]ProducePacketName [08:52:22]name=ofd_packets/00187534 [08:52:22]NVStorageDeleteData [08:52:22]Write to MH i2c: 01 00 00 11 17 28 [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 07 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 07 00 11 17 00 00 00 00 00 F6 0C 31 [08:52:22]RasterBufferAndPrint [08:52:22]line [08:52:22]line [08:52:22]line [08:52:22]line [08:52:22]line [08:52:22]written 0, free lines is 3328 [08:52:22]MH_Cut [08:52:22]Write to MH i2c: D1 01 00 18 17 01 01 [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: D1 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: D1 01 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: D1 01 00 18 17 00 00 [08:52:22]Write to MH i2c: 01 00 00 19 17 30 [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]OFD Sender: No OFD packet to send [08:52:22]*** Cut start [08:52:22]*** Partial cut [08:52:22]*** CUTSNS_PIN = 1 [08:52:22]*** CUTSNS_PIN = 0 [08:52:23]*** Brake cut motor [08:52:23]Read from MH i2c: 01 [08:52:23]MH_I2C_Read... [08:52:23]*** Stop cut motor [08:52:23]*** Cut end [08:52:23]Read from MH i2c: 01 07 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 07 00 19 17 00 00 00 00 00 FF 0F 45 [08:52:23]process_action close_receipt done [08:52:23]requested_data is exist [08:52:23]produce_requested_data [08:52:23]requested_item fm.sn is exist - process it [08:52:23]wFMCommunicate request_size=4 [08:52:23]MH_SAM_APDU [08:52:23]CAPDU: 80 11 00 00 [08:52:23]Write to MH i2c: E2 08 00 1A 17 80 11 00 00 00 00 00 00 AB [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:23]Read from MH i2c: E2 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 17 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 17 00 1A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FE [08:52:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:52:23]wFMCommunicate OK [08:52:23]requested_item fd.num is exist - process it [08:52:23]SAM_PROTO_GetFieldsCounters [08:52:23]wFMCommunicate request_size=4 [08:52:23]MH_SAM_APDU [08:52:23]CAPDU: 80 13 00 00 [08:52:23]Write to MH i2c: E2 08 00 1B 17 80 13 00 00 00 00 00 00 AE [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:23]Read from MH i2c: E2 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 62 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 62 00 1B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8E DC 02 00 0E 04 04 00 89 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 1F [08:52:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8E DC 02 00 0E 04 04 00 89 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:52:23]wFMCommunicate OK [08:52:23]SAM_PROTO_GetFieldsCounters done [08:52:23]requested_item shift.num is exist - process it [08:52:23]requested_item shift.opened is exist - process it [08:52:23]req_shift_opened [08:52:23]FM_GetShiftState [08:52:23]SAM_PROTO_GetShiftState [08:52:23]wFMCommunicate request_size=4 [08:52:23]MH_SAM_APDU [08:52:23]CAPDU: 80 13 01 00 [08:52:23]Write to MH i2c: E2 08 00 1C 17 80 13 01 00 00 00 00 00 B0 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:23]Read from MH i2c: E2 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 0E 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: E2 0E 00 1C 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 9E [08:52:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:52:23]wFMCommunicate OK [08:52:23]SAM_PROTO_GetShiftState done [08:52:23]FM_GetShiftState done [08:52:23]req_shift_opened done [08:52:23]requested_item shift.open_date is exist - process it [08:52:23]req_shift_open_date [08:52:23]req_shift_open_date done [08:52:23]produce_requested_data done [08:52:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187534,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:52:23]process_action_free close_receipt [08:52:23]json_value_free [08:52:23]json_value_free done [08:52:23]process_json_proto returns [08:52:23]Send response to host [08:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187534,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:52:23]free response buf [08:52:23]execute_script done [08:52:23]execute_script returns [08:52:23]free content buf [08:52:23]Sock 9.Close socket [08:52:23]Sock 9.Thread stoped [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:34]accept exits with 10 [08:52:34]New connection [08:52:34]New thread 3067223396 created [08:52:34]Thread 3067080036 joined [08:52:34]Waiting for new connection... [08:52:34] Sock 10.Parse request [08:52:34]Sock 10.Check first char [08:52:34]Sock 10.First char is OK [08:52:34]request: POST /json_proto HTTP/1.0 [08:52:34]Method: POST [08:52:34]URL: /json_proto [08:52:34]Method is POST - this is cgi request [08:52:34]url: /json_proto [08:52:34]query_string will be loaded in cgi processing [08:52:34]execute_cgi json_proto POST (null) [08:52:34]execute_cgi path=json_proto method=POST [08:52:34]POST find Content-Length [08:52:34]Host: 172.17.46.131:8080 [08:52:34]Content-Length: 796 [08:52:34]Content-Type: application/json [08:52:34] [08:52:34]POST finish read [08:52:34]Found Content-Length = 796 [08:52:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 4.140, "sum" : 300.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:34]execute_script... [08:52:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 4.140, "sum" : 300.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:34]POST & json_proto [08:52:34]process_json_proto [08:52:34]json parsed OK: [08:52:34]protocol is kg_v1.0 [08:52:34]action value=close_receipt [08:52:34]process_action close_receipt [08:52:34]cmd_close_receipt [08:52:34]MH_GetDate [08:52:34]Write to MH i2c: F0 00 00 1D 17 23 [08:52:34]Write i2c OK [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: F0 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: F0 09 00 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: F0 09 00 1D 17 00 D5 3E B8 67 7E 41 4F 65 D1 [08:52:34]GetLastDocTimeStamp 1740127943 [08:52:34]current date 1740127957 [08:52:34]FM_GetShiftState [08:52:34]SAM_PROTO_GetShiftState [08:52:34]wFMCommunicate request_size=4 [08:52:34]MH_SAM_APDU [08:52:34]CAPDU: 80 13 01 00 [08:52:34]Write to MH i2c: E2 08 00 1E 17 80 13 01 00 00 00 00 00 B2 [08:52:34]Write i2c OK [08:52:34]MH_I2C_Read... [08:52:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:34]Read from MH i2c: E2 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 0E 00 [08:52:34]MH_I2C_Read... [08:52:34]Read from MH i2c: E2 0E 00 1E 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A0 [08:52:34]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:52:34]wFMCommunicate OK [08:52:34]SAM_PROTO_GetShiftState done [08:52:34]FM_GetShiftState done [08:52:34]opened in 1740098043 [08:52:34]opened+sec_in_day 1740184443 [08:52:34]quantity*price = 30056 [08:52:34]sum+1 = 30057 [08:52:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.56 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.56 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 29 21.02.2025 08:52 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187535 ФПД: 23430194990375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187535&fm=23430194990375&tin=02508201610067®Number=0000000000091857&sum=30056 [08:52:35]StoreToDocumentArchive [08:52:35]shift 649 fd 187535 [08:52:35]save to /storage/0649/doc_00187535 [08:52:35]save last doc name /storage/0649/doc_00187535 to /storage/kkm_last_doc_name [08:52:35]save OK [08:52:35]Clear old archive folders... [08:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:52:35]tlvbuf is 020D61B0 [08:52:35]SAM_PROTO_ClearQueue [08:52:35]wFMCommunicate request_size=4 [08:52:35]MH_SAM_APDU [08:52:35]CAPDU: 80 09 00 00 [08:52:35]Write to MH i2c: E2 08 00 2B 17 80 09 00 00 00 00 00 00 B4 [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:35]Read from MH i2c: E2 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 03 00 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 03 00 2B 17 00 90 00 B6 [08:52:35]RAPDU: 90 00 [08:52:35]wFMCommunicate OK [08:52:35]SAM_PROTO_ClearQueue done [08:52:35]KKMCreateOFDPacket [08:52:35]OFDProtocolAddRootSTLVToBuf [08:52:35]FM_MakeSignedData [08:52:35]FM_MakeSignedData [08:52:35]SAM_PROTO_SignData [08:52:35]wFMCommunicate request_size=4 [08:52:35]MH_SAM_APDU [08:52:35]CAPDU: 80 0D 01 02 [08:52:35]Write to MH i2c: E2 08 00 2C 17 80 0D 01 02 00 00 00 00 BC [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:35]Read from MH i2c: E2 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 03 00 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 03 00 2C 17 00 90 00 B7 [08:52:35]RAPDU: 90 00 [08:52:35]wFMCommunicate OK [08:52:35]wFMCommunicate request_size=255 [08:52:35]MH_SAM_APDU [08:52:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D5 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F DC 02 00 35 04 06 00 15 4F 44 73 [08:52:35]Write to MH i2c: E2 02 01 2D 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D5 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F DC 02 00 35 04 06 00 15 4F 44 73 00 00 5A [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:35]Read from MH i2c: E2 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 03 00 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 03 00 2D 17 00 90 00 B8 [08:52:35]RAPDU: 90 00 [08:52:35]wFMCommunicate OK [08:52:35]wFMCommunicate request_size=7 [08:52:35]MH_SAM_APDU [08:52:35]CAPDU: 80 0D 02 02 02 0D 27 [08:52:35]Write to MH i2c: E2 0A 00 2E 17 80 0D 02 02 02 00 0D 27 00 00 F7 [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:35]Read from MH i2c: E2 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 03 00 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 03 00 2E 17 00 90 00 B9 [08:52:35]RAPDU: 90 00 [08:52:35]wFMCommunicate OK [08:52:35]wFMCommunicate request_size=4 [08:52:35]MH_SAM_APDU [08:52:35]CAPDU: 80 0D 03 02 [08:52:35]Write to MH i2c: E2 08 00 2F 17 80 0D 03 02 00 00 00 00 C1 [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:35]Read from MH i2c: E2 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 0B 00 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 0B 00 2F 17 00 B1 32 D5 0D D6 12 49 C9 90 00 81 [08:52:35]RAPDU: B1 32 D5 0D D6 12 49 C9 90 00 [08:52:35]wFMCommunicate OK [08:52:35]SAM_PROTO_SignData done [08:52:35]FM_MakeSignedData done [08:52:35]CreateOFDProtocolMessage [08:52:35]wFMCommunicate request_size=4 [08:52:35]MH_SAM_APDU [08:52:35]CAPDU: 80 11 00 00 [08:52:35]Write to MH i2c: E2 08 00 30 17 80 11 00 00 00 00 00 00 C1 [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:35]Read from MH i2c: E2 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 17 00 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: E2 17 00 30 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [08:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:52:35]wFMCommunicate OK [08:52:35]CreateOFDProtocolMessage done [08:52:35]OFDSenderStorePacket 187535 [08:52:35]StoreOFDPacket docnum=187535 [08:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FE A0 04 01 33 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D5 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F DC 02 00 35 04 06 00 15 4F 44 73 0D 27 B1 32 D5 0D D6 12 49 C9 [08:52:35]CheckFolder [08:52:35]dirname=/storage/ofd_packets [08:52:35]CheckFolder done [08:52:35]ProducePacketName [08:52:35]name=ofd_packets/00187535 [08:52:35]NVStorageSaveData ofd_packets/00187535 [08:52:35]File name is /storage/ofd_packets/00187535 [08:52:35]Write 298 bytes [08:52:35]NVStorageSaveData done [08:52:35]OFDSenderStorePacket done [08:52:35]KKMCreateOFDPacket done [08:52:35]NVStorageSaveData kkm_last_timestamp [08:52:35]File name is /storage/kkm_last_timestamp [08:52:35]Write 4 bytes [08:52:35]NVStorageSaveData done [08:52:35]ExternCall_PrintAddStr [08:52:35]wPrintStart [08:52:35]Write to MH i2c: 01 00 00 31 17 48 [08:52:35]Write i2c OK [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: 01 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: 01 07 00 [08:52:35]MH_I2C_Read... [08:52:35]Read from MH i2c: 01 07 00 31 17 00 00 00 00 00 FF 0F 5D [08:52:35]RasterBufferAndPrint [08:52:35]line Счет N : (1)412692 [08:52:35]line ИНН: 02508201610067 [08:52:35]line Контрольно-Кассовый Чек [08:52:35]line ПРОДАЖА [08:52:35]line ТРК (МРК, ГНК) : 6 [08:52:35]line Товар: 2710194210 [08:52:35]line ДТ-К-5 [08:52:35]line 4.140 * 72.60 [08:52:35]line = 300.56 [08:52:35]line НДС 12% НСП 1% [08:52:35]line > о реализуемом товаре [08:52:35]line ИТОГО: 300.56 [08:52:35]line НСП 1% : 2.66 [08:52:35]line НДС 12% : 31.92 [08:52:35]line Наличными: 0.00 [08:52:35]line Безнал.: 300.56 [08:52:35]line Место: АЗС № 92 "Партнер Нефть" [08:52:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:52:35]line СНО: Общий режим [08:52:35]line Чек 29 21.02.2025 08:52 [08:52:35]line Смена: 649 ФФД: 1.0 [08:52:35]line ЗНМ: 0300000118 [08:52:35]line РНМ: 0000000000091857 [08:52:35]line Версия ККМ: 001 [08:52:35]line Платежная система: O! деньги [08:52:35]line ФМ: 0000000000871826 [08:52:35]line ФД: 187535 [08:52:35]line ФПД: 23430194990375 [08:52:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187535&fm=23430194990375&tin=02508201610067®Number=0000000000091857&sum=30056 [08:52:35]written 0, free lines is 4095 [08:52:35]OFD Sender: Processing packet 187535 [packets to send 49, broken 48] [08:52:35]ProducePacketName [08:52:35]name=ofd_packets/00187535 [08:52:35]OFD Sender: To server: pG, [08:52:35]CommunicateWithHost lk.salyk.kg:30040 [08:52:35]ConnectInit lk.salyk.kg [08:52:36]Connected sock=11 [08:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FE A0 04 01 33 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 10 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 68 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 68 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D5 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F DC 02 00 35 04 06 00 15 4F 44 73 0D 27 B1 32 D5 0D D6 12 49 C9 [08:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 71 4C 47 00 72 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F DC 02 00 F4 03 04 00 23 E5 B7 67 B6 04 01 00 00 3F E4 1C 9F 1B 3D C9 F6 [08:52:36]CommunicateWithHost err = 0 [08:52:36]CheckOFDResponse [08:52:36]1017 (14) - 77093643461234 [08:52:36]1041 (16) - 0000000000871826 [08:52:36]1040 (4) - 187535 [08:52:36]1012 (4) - 21.02.2025 02:29 [08:52:36]1206 (1) - 0 [08:52:36]OFD Sender: Remove packet 187535 [08:52:36]ProducePacketName [08:52:36]name=ofd_packets/00187535 [08:52:36]NVStorageDeleteData [08:52:36]Write to MH i2c: 01 00 00 5B 17 72 [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 07 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: 01 07 00 5B 17 00 00 00 00 00 4F 0D D5 [08:52:36]RasterBufferAndPrint [08:52:36]line [08:52:36]line [08:52:36]line [08:52:36]line [08:52:36]line [08:52:36]written 0, free lines is 3426 [08:52:36]MH_Cut [08:52:36]Write to MH i2c: D1 01 00 62 17 01 4B [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: D1 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: D1 01 00 [08:52:36]MH_I2C_Read... [08:52:36]Read from MH i2c: D1 01 00 62 17 00 4A [08:52:36]Write to MH i2c: 01 00 00 63 17 7A [08:52:36]Write i2c OK [08:52:36]MH_I2C_Read... [08:52:36]OFD Sender: No OFD packet to send [08:52:37]*** Cut start [08:52:37]*** Partial cut [08:52:37]*** CUTSNS_PIN = 1 [08:52:37]*** CUTSNS_PIN = 0 [08:52:37]*** Brake cut motor [08:52:37]Read from MH i2c: 01 [08:52:37]MH_I2C_Read... [08:52:37]*** Stop cut motor [08:52:37]*** Cut end [08:52:37]Read from MH i2c: 01 07 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: 01 07 00 63 17 00 00 00 00 00 FF 0F 8F [08:52:37]process_action close_receipt done [08:52:37]requested_data is exist [08:52:37]produce_requested_data [08:52:37]requested_item fm.sn is exist - process it [08:52:37]wFMCommunicate request_size=4 [08:52:37]MH_SAM_APDU [08:52:37]CAPDU: 80 11 00 00 [08:52:37]Write to MH i2c: E2 08 00 64 17 80 11 00 00 00 00 00 00 F5 [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:37]Read from MH i2c: E2 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 17 00 [08:52:37]MH_I2C_Read... [08:52:37]Read from MH i2c: E2 17 00 64 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [08:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:52:37]wFMCommunicate OK [08:52:37]requested_item fd.num is exist - process it [08:52:37]SAM_PROTO_GetFieldsCounters [08:52:37]wFMCommunicate request_size=4 [08:52:37]MH_SAM_APDU [08:52:37]CAPDU: 80 13 00 00 [08:52:37]Write to MH i2c: E2 08 00 65 17 80 13 00 00 00 00 00 00 F8 [08:52:37]Write i2c OK [08:52:37]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 62 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 62 00 65 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8F DC 02 00 0E 04 04 00 89 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 6D [08:52:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8F DC 02 00 0E 04 04 00 89 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:52:38]wFMCommunicate OK [08:52:38]SAM_PROTO_GetFieldsCounters done [08:52:38]requested_item shift.num is exist - process it [08:52:38]requested_item shift.opened is exist - process it [08:52:38]req_shift_opened [08:52:38]FM_GetShiftState [08:52:38]SAM_PROTO_GetShiftState [08:52:38]wFMCommunicate request_size=4 [08:52:38]MH_SAM_APDU [08:52:38]CAPDU: 80 13 01 00 [08:52:38]Write to MH i2c: E2 08 00 66 17 80 13 01 00 00 00 00 00 FA [08:52:38]Write i2c OK [08:52:38]MH_I2C_Read... [08:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:38]Read from MH i2c: E2 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 0E 00 [08:52:38]MH_I2C_Read... [08:52:38]Read from MH i2c: E2 0E 00 66 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E8 [08:52:38]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:52:38]wFMCommunicate OK [08:52:38]SAM_PROTO_GetShiftState done [08:52:38]FM_GetShiftState done [08:52:38]req_shift_opened done [08:52:38]requested_item shift.open_date is exist - process it [08:52:38]req_shift_open_date [08:52:38]req_shift_open_date done [08:52:38]produce_requested_data done [08:52:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187535,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:52:38]process_action_free close_receipt [08:52:38]json_value_free [08:52:38]json_value_free done [08:52:38]process_json_proto returns [08:52:38]Send response to host [08:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187535,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:52:38]free response buf [08:52:38]execute_script done [08:52:38]execute_script returns [08:52:38]free content buf [08:52:38]Sock 10.Close socket [08:52:38]Sock 10.Thread stoped [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:14]accept exits with 9 [08:53:14]New connection [08:53:14]New thread 3067080036 created [08:53:14]Thread 3067223396 joined [08:53:14]Waiting for new connection... [08:53:14] Sock 9.Parse request [08:53:15]Sock 9.Check first char [08:53:15]Sock 9.First char is OK [08:53:15]request: POST /json_proto HTTP/1.0 [08:53:15]Method: POST [08:53:15]URL: /json_proto [08:53:15]Method is POST - this is cgi request [08:53:15]url: /json_proto [08:53:15]query_string will be loaded in cgi processing [08:53:15]execute_cgi json_proto POST (null) [08:53:15]execute_cgi path=json_proto method=POST [08:53:15]POST find Content-Length [08:53:15]Host: 172.17.46.131:8080 [08:53:15]Content-Length: 673 [08:53:15]Content-Type: application/json [08:53:15] [08:53:15]POST finish read [08:53:15]Found Content-Length = 673 [08:53:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 2.760, "sum" : 200.38, "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:53:15]execute_script... [08:53: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)412693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 2.760, "sum" : 200.38, "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:53:15]POST & json_proto [08:53:15]process_json_proto [08:53:15]json parsed OK: [08:53:15]protocol is kg_v1.0 [08:53:15]action value=close_receipt [08:53:15]process_action close_receipt [08:53:15]cmd_close_receipt [08:53:15]MH_GetDate [08:53:15]Write to MH i2c: F0 00 00 67 17 6D [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: F0 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: F0 09 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: F0 09 00 67 17 00 FE 3E B8 67 7E 41 4F 65 44 [08:53:15]GetLastDocTimeStamp 1740127957 [08:53:15]current date 1740127998 [08:53:15]FM_GetShiftState [08:53:15]SAM_PROTO_GetShiftState [08:53:15]wFMCommunicate request_size=4 [08:53:15]MH_SAM_APDU [08:53:15]CAPDU: 80 13 01 00 [08:53:15]Write to MH i2c: E2 08 00 68 17 80 13 01 00 00 00 00 00 FC [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:15]Read from MH i2c: E2 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 0E 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: E2 0E 00 68 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 EA [08:53:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:53:15]wFMCommunicate OK [08:53:15]SAM_PROTO_GetShiftState done [08:53:15]FM_GetShiftState done [08:53:15]opened in 1740098043 [08:53:15]opened+sec_in_day 1740184443 [08:53:15]quantity*price = 20037 [08:53:15]sum+1 = 20039 [08:53:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 30 21.02.2025 08:53 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187536 ФПД: 189316862547464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085318&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187536&fm=189316862547464&tin=02508201610067®Number=0000000000091857&sum=20000 [08:53:16]StoreToDocumentArchive [08:53:16]shift 649 fd 187536 [08:53:16]save to /storage/0649/doc_00187536 [08:53:16]save last doc name /storage/0649/doc_00187536 to /storage/kkm_last_doc_name [08:53:16]save OK [08:53:16]Clear old archive folders... [08:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:53:16]tlvbuf is 02103700 [08:53:16]SAM_PROTO_ClearQueue [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 09 00 00 [08:53:16]Write to MH i2c: E2 08 00 75 17 80 09 00 00 00 00 00 00 FE [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 75 17 00 90 00 00 [08:53:16]RAPDU: 90 00 [08:53:16]wFMCommunicate OK [08:53:16]SAM_PROTO_ClearQueue done [08:53:16]KKMCreateOFDPacket [08:53:16]OFDProtocolAddRootSTLVToBuf [08:53:16]FM_MakeSignedData [08:53:16]FM_MakeSignedData [08:53:16]SAM_PROTO_SignData [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 0D 01 02 [08:53:16]Write to MH i2c: E2 08 00 76 17 80 0D 01 02 00 00 00 00 06 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 76 17 00 90 00 01 [08:53:16]RAPDU: 90 00 [08:53:16]wFMCommunicate OK [08:53:16]wFMCommunicate request_size=255 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 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 FE 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DC 02 00 35 04 06 00 AC 2E C4 57 [08:53:16]Write to MH i2c: E2 02 01 77 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 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 FE 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DC 02 00 35 04 06 00 AC 2E C4 57 00 00 92 [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 77 17 00 90 00 02 [08:53:16]RAPDU: 90 00 [08:53:16]wFMCommunicate OK [08:53:16]wFMCommunicate request_size=7 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 0D 02 02 02 96 08 [08:53:16]Write to MH i2c: E2 0A 00 78 17 80 0D 02 02 02 00 96 08 00 00 AB [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 03 00 78 17 00 90 00 03 [08:53:16]RAPDU: 90 00 [08:53:16]wFMCommunicate OK [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 0D 03 02 [08:53:16]Write to MH i2c: E2 08 00 79 17 80 0D 03 02 00 00 00 00 0B [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 0B 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 0B 00 79 17 00 6D 30 17 D5 48 FE 1C EC 90 00 E3 [08:53:16]RAPDU: 6D 30 17 D5 48 FE 1C EC 90 00 [08:53:16]wFMCommunicate OK [08:53:16]SAM_PROTO_SignData done [08:53:16]FM_MakeSignedData done [08:53:16]CreateOFDProtocolMessage [08:53:16]wFMCommunicate request_size=4 [08:53:16]MH_SAM_APDU [08:53:16]CAPDU: 80 11 00 00 [08:53:16]Write to MH i2c: E2 08 00 7A 17 80 11 00 00 00 00 00 00 0B [08:53:16]Write i2c OK [08:53:16]MH_I2C_Read... [08:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:16]Read from MH i2c: E2 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 17 00 [08:53:16]MH_I2C_Read... [08:53:16]Read from MH i2c: E2 17 00 7A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [08:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:53:17]wFMCommunicate OK [08:53:17]CreateOFDProtocolMessage done [08:53:17]OFDSenderStorePacket 187536 [08:53:17]StoreOFDPacket docnum=187536 [08:53:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 32 48 04 01 B8 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 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 FE 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DC 02 00 35 04 06 00 AC 2E C4 57 96 08 6D 30 17 D5 48 FE 1C EC [08:53:17]CheckFolder [08:53:17]dirname=/storage/ofd_packets [08:53:17]CheckFolder done [08:53:17]ProducePacketName [08:53:17]name=ofd_packets/00187536 [08:53:17]NVStorageSaveData ofd_packets/00187536 [08:53:17]File name is /storage/ofd_packets/00187536 [08:53:17]Write 298 bytes [08:53:17]NVStorageSaveData done [08:53:17]OFDSenderStorePacket done [08:53:17]KKMCreateOFDPacket done [08:53:17]NVStorageSaveData kkm_last_timestamp [08:53:17]File name is /storage/kkm_last_timestamp [08:53:17]Write 4 bytes [08:53:17]NVStorageSaveData done [08:53:17]ExternCall_PrintAddStr [08:53:17]wPrintStart [08:53:17]Write to MH i2c: 01 00 00 7B 17 92 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 7B 17 00 00 00 00 00 FF 0F A7 [08:53:17]RasterBufferAndPrint [08:53:17]line Счет N : (1)412693 [08:53:17]line ИНН: 02508201610067 [08:53:17]line Контрольно-Кассовый Чек [08:53:17]line ПРОДАЖА [08:53:17]line ТРК (МРК, ГНК) : 6 [08:53:17]line Товар: 2710194210 [08:53:17]line ДТ-К-5 [08:53:17]line 2.760 * 72.60 [08:53:17]line = 200.38 [08:53:17]line НДС 12% НСП 1% [08:53:17]line > о реализуемом товаре [08:53:17]line ОКРУГЛЕНИЕ: -0.38 [08:53:17]line ИТОГО: 200.00 [08:53:17]line Внесено: 200.00 [08:53:17]line СДАЧА: 0.00 [08:53:17]line НСП 1% : 1.77 [08:53:17]line НДС 12% : 21.28 [08:53:17]line Наличными: 200.00 [08:53:17]line Безнал.: 0.00 [08:53:17]line Место: АЗС № 92 "Партнер Нефть" [08:53:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:53:17]line СНО: Общий режим [08:53:17]line Чек 30 21.02.2025 08:53 [08:53:17]line Смена: 649 ФФД: 1.0 [08:53:17]line ЗНМ: 0300000118 [08:53:17]line РНМ: 0000000000091857 [08:53:17]line Версия ККМ: 001 [08:53:17]line ФМ: 0000000000871826 [08:53:17]line ФД: 187536 [08:53:17]line ФПД: 189316862547464 [08:53:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085318&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187536&fm=189316862547464&tin=02508201610067®Number=0000000000091857&sum=20000 [08:53:17]OFD Sender: Processing packet 187536 [packets to send 49, broken 48] [08:53:17]ProducePacketName [08:53:17]name=ofd_packets/00187536 [08:53:17]OFD Sender: To server: pG, [08:53:17]CommunicateWithHost lk.salyk.kg:30040 [08:53:17]ConnectInit lk.salyk.kg [08:53:17]written 0, free lines is 4095 [08:53:17]Connected sock=11 [08:53:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 32 48 04 01 B8 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 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 FE 3E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DC 02 00 35 04 06 00 AC 2E C4 57 96 08 6D 30 17 D5 48 FE 1C EC [08:53:17]Write to MH i2c: 01 00 00 A6 17 BD [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 A6 17 00 00 00 00 00 02 0D D3 [08:53:17]RasterBufferAndPrint [08:53:17]line [08:53:17]line [08:53:17]line [08:53:17]line [08:53:17]line [08:53:17]written 0, free lines is 3357 [08:53:17]MH_Cut [08:53:17]Write to MH i2c: D1 01 00 AD 17 01 96 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: D1 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: D1 01 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: D1 01 00 AD 17 00 95 [08:53:17]Write to MH i2c: 01 00 00 AE 17 C5 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8D 1F 47 00 A5 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DC 02 00 F4 03 04 00 4D E5 B7 67 B6 04 01 00 00 1C 69 7C 1C 8D 6C 83 D9 [08:53:17]CommunicateWithHost err = 0 [08:53:17]CheckOFDResponse [08:53:17]1017 (14) - 77093643461234 [08:53:17]1041 (16) - 0000000000871826 [08:53:17]1040 (4) - 187536 [08:53:17]1012 (4) - 21.02.2025 02:30 [08:53:17]1206 (1) - 0 [08:53:17]OFD Sender: Remove packet 187536 [08:53:17]ProducePacketName [08:53:17]name=ofd_packets/00187536 [08:53:17]NVStorageDeleteData [08:53:18]*** Cut start [08:53:18]*** Partial cut [08:53:18]*** CUTSNS_PIN = 1 [08:53:18]OFD Sender: No OFD packet to send [08:53:18]*** CUTSNS_PIN = 0 [08:53:18]*** Brake cut motor [08:53:18]Read from MH i2c: 01 [08:53:18]MH_I2C_Read... [08:53:18]*** Stop cut motor [08:53:18]*** Cut end [08:53:18]Read from MH i2c: 01 07 00 [08:53:18]MH_I2C_Read... [08:53:18]Read from MH i2c: 01 07 00 AE 17 00 00 00 00 00 FF 0F DA [08:53:18]process_action close_receipt done [08:53:18]requested_data is exist [08:53:18]produce_requested_data [08:53:18]requested_item fm.sn is exist - process it [08:53:18]wFMCommunicate request_size=4 [08:53:18]MH_SAM_APDU [08:53:18]CAPDU: 80 11 00 00 [08:53:18]Write to MH i2c: E2 08 00 AF 17 80 11 00 00 00 00 00 00 40 [08:53:18]Write i2c OK [08:53:18]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 17 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 17 00 AF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [08:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:53:19]wFMCommunicate OK [08:53:19]requested_item fd.num is exist - process it [08:53:19]SAM_PROTO_GetFieldsCounters [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 13 00 00 [08:53:19]Write to MH i2c: E2 08 00 B0 17 80 13 00 00 00 00 00 00 43 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 62 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 62 00 B0 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 90 DC 02 00 0E 04 04 00 89 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 BC [08:53:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 90 DC 02 00 0E 04 04 00 89 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:53:19]wFMCommunicate OK [08:53:19]SAM_PROTO_GetFieldsCounters done [08:53:19]requested_item shift.num is exist - process it [08:53:19]requested_item shift.opened is exist - process it [08:53:19]req_shift_opened [08:53:19]FM_GetShiftState [08:53:19]SAM_PROTO_GetShiftState [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 13 01 00 [08:53:19]Write to MH i2c: E2 08 00 B1 17 80 13 01 00 00 00 00 00 45 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0E 00 B1 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 33 [08:53:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:53:19]wFMCommunicate OK [08:53:19]SAM_PROTO_GetShiftState done [08:53:19]FM_GetShiftState done [08:53:19]req_shift_opened done [08:53:19]requested_item shift.open_date is exist - process it [08:53:19]req_shift_open_date [08:53:19]req_shift_open_date done [08:53:19]produce_requested_data done [08:53:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187536,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:53:19]process_action_free close_receipt [08:53:19]json_value_free [08:53:19]json_value_free done [08:53:19]process_json_proto returns [08:53:19]Send response to host [08:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187536,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:53:19]free response buf [08:53:19]execute_script done [08:53:19]execute_script returns [08:53:19]free content buf [08:53:19]Sock 9.Close socket [08:53:19]Sock 9.Thread stoped [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:34]ConnectInit Can't connect to host [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:55]accept exits with 10 [08:53:55]New connection [08:53:55]New thread 3067223396 created [08:53:55]Thread 3067080036 joined [08:53:55]Waiting for new connection... [08:53:55] Sock 10.Parse request [08:53:55]Sock 10.Check first char [08:53:55]Sock 10.First char is OK [08:53:55]request: POST /json_proto HTTP/1.0 [08:53:55]Method: POST [08:53:55]URL: /json_proto [08:53:55]Method is POST - this is cgi request [08:53:55]url: /json_proto [08:53:55]query_string will be loaded in cgi processing [08:53:55]execute_cgi json_proto POST (null) [08:53:55]execute_cgi path=json_proto method=POST [08:53:55]POST find Content-Length [08:53:55]Host: 172.17.46.131:8080 [08:53:55]Content-Length: 792 [08:53:55]Content-Type: application/json [08:53:55] [08:53:55]POST finish read [08:53:55]Found Content-Length = 792 [08:53:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:55]execute_script... [08:53: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)412694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:55]POST & json_proto [08:53:55]process_json_proto [08:53:55]json parsed OK: [08:53:55]protocol is kg_v1.0 [08:53:55]action value=close_receipt [08:53:55]process_action close_receipt [08:53:55]cmd_close_receipt [08:53:55]MH_GetDate [08:53:55]Write to MH i2c: F0 00 00 B2 17 B8 [08:53:55]Write i2c OK [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: F0 [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: F0 09 00 [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: F0 09 00 B2 17 00 27 3F B8 67 7E 41 4F 65 B9 [08:53:55]GetLastDocTimeStamp 1740127998 [08:53:55]current date 1740128039 [08:53:55]FM_GetShiftState [08:53:55]SAM_PROTO_GetShiftState [08:53:55]wFMCommunicate request_size=4 [08:53:55]MH_SAM_APDU [08:53:55]CAPDU: 80 13 01 00 [08:53:55]Write to MH i2c: E2 08 00 B3 17 80 13 01 00 00 00 00 00 47 [08:53:55]Write i2c OK [08:53:55]MH_I2C_Read... [08:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:55]Read from MH i2c: E2 [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: E2 0E 00 [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: E2 0E 00 B3 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 35 [08:53:55]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:53:55]wFMCommunicate OK [08:53:55]SAM_PROTO_GetShiftState done [08:53:55]FM_GetShiftState done [08:53:55]opened in 1740098043 [08:53:55]opened+sec_in_day 1740184443 [08:53:55]quantity*price = 0 [08:53:55]sum+1 = 1 [08:53:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 31 21.02.2025 08:53 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03821 ФМ: 0000000000871826 ФД: 187537 ФПД: 201502013814931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187537&fm=201502013814931&tin=02508201610067®Number=0000000000091857&sum=0 [08:53:57]StoreToDocumentArchive [08:53:57]shift 649 fd 187537 [08:53:57]save to /storage/0649/doc_00187537 [08:53:57]save last doc name /storage/0649/doc_00187537 to /storage/kkm_last_doc_name [08:53:57]save OK [08:53:57]Clear old archive folders... [08:53:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:57]tlvbuf is 02129EB0 [08:53:57]SAM_PROTO_ClearQueue [08:53:57]wFMCommunicate request_size=4 [08:53:57]MH_SAM_APDU [08:53:57]CAPDU: 80 09 00 00 [08:53:57]Write to MH i2c: E2 08 00 C0 17 80 09 00 00 00 00 00 00 49 [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:57]Read from MH i2c: E2 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 C0 17 00 90 00 4B [08:53:57]RAPDU: 90 00 [08:53:57]wFMCommunicate OK [08:53:57]SAM_PROTO_ClearQueue done [08:53:57]KKMCreateOFDPacket [08:53:57]OFDProtocolAddRootSTLVToBuf [08:53:57]FM_MakeSignedData [08:53:57]FM_MakeSignedData [08:53:57]SAM_PROTO_SignData [08:53:57]wFMCommunicate request_size=4 [08:53:57]MH_SAM_APDU [08:53:57]CAPDU: 80 0D 01 02 [08:53:57]Write to MH i2c: E2 08 00 C1 17 80 0D 01 02 00 00 00 00 51 [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:57]Read from MH i2c: E2 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 C1 17 00 90 00 4C [08:53:57]RAPDU: 90 00 [08:53:57]wFMCommunicate OK [08:53:57]wFMCommunicate request_size=255 [08:53:57]MH_SAM_APDU [08:53:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 27 3F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 DC 02 00 35 04 06 00 B7 [08:53:57]Write to MH i2c: E2 02 01 C2 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 27 3F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 DC 02 00 35 04 06 00 B7 00 00 E9 [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:57]Read from MH i2c: E2 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 C2 17 00 90 00 4D [08:53:57]RAPDU: 90 00 [08:53:57]wFMCommunicate OK [08:53:57]wFMCommunicate request_size=10 [08:53:57]MH_SAM_APDU [08:53:57]CAPDU: 80 0D 02 02 05 43 D7 F4 78 93 [08:53:57]Write to MH i2c: E2 0D 00 C3 17 80 0D 02 02 05 00 43 D7 F4 78 93 00 00 77 [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:57]Read from MH i2c: E2 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 C3 17 00 90 00 4E [08:53:57]RAPDU: 90 00 [08:53:57]wFMCommunicate OK [08:53:57]wFMCommunicate request_size=4 [08:53:57]MH_SAM_APDU [08:53:57]CAPDU: 80 0D 03 02 [08:53:57]Write to MH i2c: E2 08 00 C4 17 80 0D 03 02 00 00 00 00 56 [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:57]Read from MH i2c: E2 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 0B 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 0B 00 C4 17 00 47 F6 A7 BD E9 83 EB 89 90 00 D8 [08:53:57]RAPDU: 47 F6 A7 BD E9 83 EB 89 90 00 [08:53:57]wFMCommunicate OK [08:53:57]SAM_PROTO_SignData done [08:53:57]FM_MakeSignedData done [08:53:57]CreateOFDProtocolMessage [08:53:57]wFMCommunicate request_size=4 [08:53:57]MH_SAM_APDU [08:53:57]CAPDU: 80 11 00 00 [08:53:57]Write to MH i2c: E2 08 00 C5 17 80 11 00 00 00 00 00 00 56 [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:58]Read from MH i2c: E2 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: E2 17 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: E2 17 00 C5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [08:53:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:53:58]wFMCommunicate OK [08:53:58]CreateOFDProtocolMessage done [08:53:58]OFDSenderStorePacket 187537 [08:53:58]StoreOFDPacket docnum=187537 [08:53:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 79 C6 07 01 99 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 27 3F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 DC 02 00 35 04 06 00 B7 43 D7 F4 78 93 47 F6 A7 BD E9 83 EB 89 [08:53:58]CheckFolder [08:53:58]dirname=/storage/ofd_packets [08:53:58]CheckFolder done [08:53:58]ProducePacketName [08:53:58]name=ofd_packets/00187537 [08:53:58]NVStorageSaveData ofd_packets/00187537 [08:53:58]File name is /storage/ofd_packets/00187537 [08:53:58]Write 301 bytes [08:53:58]NVStorageSaveData done [08:53:58]OFDSenderStorePacket done [08:53:58]KKMCreateOFDPacket done [08:53:58]NVStorageSaveData kkm_last_timestamp [08:53:58]File name is /storage/kkm_last_timestamp [08:53:58]Write 4 bytes [08:53:58]NVStorageSaveData done [08:53:58]ExternCall_PrintAddStr [08:53:58]wPrintStart [08:53:58]Write to MH i2c: 01 00 00 C6 17 DD [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: 01 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: 01 07 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: 01 07 00 C6 17 00 00 00 00 00 FF 0F F2 [08:53:58]RasterBufferAndPrint [08:53:58]line Счет N : (1)412694 [08:53:58]line ИНН: 02508201610067 [08:53:58]line Контрольно-Кассовый Чек [08:53:58]line ПРОДАЖА [08:53:58]line ТРК (МРК, ГНК) : 22 [08:53:58]line Товар: 2710124130 [08:53:58]line Аи-92-К-2 [08:53:58]line 10.000 * 0.00 [08:53:58]line = 0.00 [08:53:58]line НДС 12% НСП 1% [08:53:58]line > о реализуемом товаре [08:53:58]line ИТОГО: 0.00 [08:53:58]line НСП 1% : 0.00 [08:53:58]line НДС 12% : 0.00 [08:53:58]line Наличными: 0.00 [08:53:58]line Безнал.: 0.00 [08:53:58]line Место: АЗС № 92 "Партнер Нефть" [08:53:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:53:58]line СНО: Общий режим [08:53:58]line Чек 31 21.02.2025 08:53 [08:53:58]line Смена: 649 ФФД: 1.0 [08:53:58]line ЗНМ: 0300000118 [08:53:58]line РНМ: 0000000000091857 [08:53:58]line Версия ККМ: 001 [08:53:58]line Талоны: Топливная Карта [08:53:58]line 03821 [08:53:58]line ФМ: 0000000000871826 [08:53:58]line ФД: 187537 [08:53:58]line ФПД: 201502013814931 [08:53:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187537&fm=201502013814931&tin=02508201610067®Number=0000000000091857&sum=0 [08:53:58]written 0, free lines is 4095 [08:53:58]OFD Sender: Processing packet 187537 [packets to send 49, broken 48] [08:53:58]ProducePacketName [08:53:58]name=ofd_packets/00187537 [08:53:58]OFD Sender: To server: pG, [08:53:58]CommunicateWithHost lk.salyk.kg:30040 [08:53:58]ConnectInit lk.salyk.kg [08:53:58]Connected sock=11 [08:53:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 79 C6 07 01 99 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 27 3F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 DC 02 00 35 04 06 00 B7 43 D7 F4 78 93 47 F6 A7 BD E9 83 EB 89 [08:53:58]Write to MH i2c: 01 00 00 F0 17 07 [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: 01 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: 01 07 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: 01 07 00 F0 17 00 00 00 00 00 1C 0D 37 [08:53:58]RasterBufferAndPrint [08:53:58]line [08:53:58]line [08:53:58]line [08:53:58]line [08:53:58]line [08:53:58]written 0, free lines is 3393 [08:53:58]MH_Cut [08:53:58]Write to MH i2c: D1 01 00 F7 17 01 E0 [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: D1 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: D1 01 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: D1 01 00 F7 17 00 DF [08:53:58]Write to MH i2c: 01 00 00 F8 17 0F [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E2 D9 47 00 56 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 38 32 36 10 04 04 00 91 DC 02 00 F4 03 04 00 76 E5 B7 67 B6 04 01 00 00 37 7E 01 15 C8 F2 66 B0 [08:53:58]CommunicateWithHost err = 0 [08:53:58]CheckOFDResponse [08:53:58]1017 (14) - 77093643461234 [08:53:58]1041 (16) - 0000000000871826 [08:53:58]1040 (4) - 187537 [08:53:58]1012 (4) - 21.02.2025 02:31 [08:53:58]1206 (1) - 0 [08:53:58]OFD Sender: Remove packet 187537 [08:53:58]ProducePacketName [08:53:58]name=ofd_packets/00187537 [08:53:58]NVStorageDeleteData [08:53:59]*** Cut start [08:53:59]*** Partial cut [08:53:59]*** CUTSNS_PIN = 1 [08:53:59]*** CUTSNS_PIN = 0 [08:53:59]OFD Sender: No OFD packet to send [08:53:59]*** Brake cut motor [08:53:59]Read from MH i2c: 01 [08:53:59]MH_I2C_Read... [08:53:59]*** Stop cut motor [08:53:59]*** Cut end [08:53:59]Read from MH i2c: 01 07 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: 01 07 00 F8 17 00 00 00 00 00 FF 0F 24 [08:53:59]process_action close_receipt done [08:53:59]requested_data is exist [08:53:59]produce_requested_data [08:53:59]requested_item fm.sn is exist - process it [08:53:59]wFMCommunicate request_size=4 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 11 00 00 [08:54:00]Write to MH i2c: E2 08 00 F9 17 80 11 00 00 00 00 00 00 8A [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:00]Read from MH i2c: E2 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 17 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 17 00 F9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [08:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:54:00]wFMCommunicate OK [08:54:00]requested_item fd.num is exist - process it [08:54:00]SAM_PROTO_GetFieldsCounters [08:54:00]wFMCommunicate request_size=4 [08:54:00]MH_SAM_APDU [08:54:00]CAPDU: 80 13 00 00 [08:54:00]Write to MH i2c: E2 08 00 FA 17 80 13 00 00 00 00 00 00 8D [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:00]Read from MH i2c: E2 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 62 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 62 00 FA 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 91 DC 02 00 0E 04 04 00 89 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 0A [08:54:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 91 DC 02 00 0E 04 04 00 89 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:54:00]wFMCommunicate OK [08:54:00]SAM_PROTO_GetFieldsCounters done [08:54:00]requested_item shift.num is exist - process it [08:54:00]requested_item shift.opened is exist - process it [08:54:00]req_shift_opened [08:54:00]FM_GetShiftState [08:54:00]SAM_PROTO_GetShiftState [08:54:00]wFMCommunicate request_size=4 [08:54:00]MH_SAM_APDU [08:54:00]CAPDU: 80 13 01 00 [08:54:00]Write to MH i2c: E2 08 00 FB 17 80 13 01 00 00 00 00 00 8F [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:00]Read from MH i2c: E2 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 0E 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 0E 00 FB 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7D [08:54:00]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:54:00]wFMCommunicate OK [08:54:00]SAM_PROTO_GetShiftState done [08:54:00]FM_GetShiftState done [08:54:00]req_shift_opened done [08:54:00]requested_item shift.open_date is exist - process it [08:54:00]req_shift_open_date [08:54:00]req_shift_open_date done [08:54:00]produce_requested_data done [08:54:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187537,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:54:00]process_action_free close_receipt [08:54:00]json_value_free [08:54:00]json_value_free done [08:54:00]process_json_proto returns [08:54:00]Send response to host [08:54:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187537,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:54:00]free response buf [08:54:00]execute_script done [08:54:00]execute_script returns [08:54:00]free content buf [08:54:00]Sock 10.Close socket [08:54:00]Sock 10.Thread stoped [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:36]accept exits with 9 [08:54:36]New connection [08:54:36]New thread 3067080036 created [08:54:36]Thread 3067223396 joined [08:54:36]Waiting for new connection... [08:54:36] Sock 9.Parse request [08:54:36]Sock 9.Check first char [08:54:36]Sock 9.First char is OK [08:54:36]request: POST /json_proto HTTP/1.0 [08:54:36]Method: POST [08:54:36]URL: /json_proto [08:54:36]Method is POST - this is cgi request [08:54:36]url: /json_proto [08:54:36]query_string will be loaded in cgi processing [08:54:36]execute_cgi json_proto POST (null) [08:54:36]execute_cgi path=json_proto method=POST [08:54:36]POST find Content-Length [08:54:36]Host: 172.17.46.131:8080 [08:54:36]Content-Length: 682 [08:54:36]Content-Type: application/json [08:54:36] [08:54:36]POST finish read [08:54:36]Found Content-Length = 682 [08:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:36]execute_script... [08:54: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)412695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:36]POST & json_proto [08:54:36]process_json_proto [08:54:36]json parsed OK: [08:54:36]protocol is kg_v1.0 [08:54:36]action value=close_receipt [08:54:36]process_action close_receipt [08:54:36]cmd_close_receipt [08:54:36]MH_GetDate [08:54:36]Write to MH i2c: F0 00 00 FC 17 02 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: F0 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: F0 09 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: F0 09 00 FC 17 00 4F 3F B8 67 7E 41 4F 65 2B [08:54:36]GetLastDocTimeStamp 1740128039 [08:54:36]current date 1740128079 [08:54:36]FM_GetShiftState [08:54:36]SAM_PROTO_GetShiftState [08:54:36]wFMCommunicate request_size=4 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 13 01 00 [08:54:36]Write to MH i2c: E2 08 00 FD 17 80 13 01 00 00 00 00 00 91 [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:36]Read from MH i2c: E2 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 0E 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 0E 00 FD 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7F [08:54:36]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:54:36]wFMCommunicate OK [08:54:36]SAM_PROTO_GetShiftState done [08:54:36]FM_GetShiftState done [08:54:36]opened in 1740098043 [08:54:36]opened+sec_in_day 1740184443 [08:54:36]quantity*price = 100023 [08:54:36]sum+1 = 100025 [08:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 32 21.02.2025 08:54 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187538 ФПД: 108466001363223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085439&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187538&fm=108466001363223&tin=02508201610067®Number=0000000000091857&sum=100000 [08:54:37]StoreToDocumentArchive [08:54:37]shift 649 fd 187538 [08:54:37]save to /storage/0649/doc_00187538 [08:54:37]save last doc name /storage/0649/doc_00187538 to /storage/kkm_last_doc_name [08:54:37]save OK [08:54:37]Clear old archive folders... [08:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:37]tlvbuf is 0206B780 [08:54:37]SAM_PROTO_ClearQueue [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 09 00 00 [08:54:37]Write to MH i2c: E2 08 00 0A 18 80 09 00 00 00 00 00 00 94 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 0A 18 00 90 00 96 [08:54:37]RAPDU: 90 00 [08:54:37]wFMCommunicate OK [08:54:37]SAM_PROTO_ClearQueue done [08:54:37]KKMCreateOFDPacket [08:54:37]OFDProtocolAddRootSTLVToBuf [08:54:37]FM_MakeSignedData [08:54:37]FM_MakeSignedData [08:54:37]SAM_PROTO_SignData [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 0D 01 02 [08:54:37]Write to MH i2c: E2 08 00 0B 18 80 0D 01 02 00 00 00 00 9C [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 0B 18 00 90 00 97 [08:54:37]RAPDU: 90 00 [08:54:37]wFMCommunicate OK [08:54:37]wFMCommunicate request_size=255 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 4F 3F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 DC 02 00 35 04 06 00 62 [08:54:37]Write to MH i2c: E2 02 01 0C 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 4F 3F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 DC 02 00 35 04 06 00 62 00 00 C3 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:38]Read from MH i2c: E2 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 03 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 03 00 0C 18 00 90 00 98 [08:54:38]RAPDU: 90 00 [08:54:38]wFMCommunicate OK [08:54:38]wFMCommunicate request_size=10 [08:54:38]MH_SAM_APDU [08:54:38]CAPDU: 80 0D 02 02 05 A6 35 7B 41 17 [08:54:38]Write to MH i2c: E2 0D 00 0D 18 80 0D 02 02 05 00 A6 35 7B 41 17 00 00 57 [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:38]Read from MH i2c: E2 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 03 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 03 00 0D 18 00 90 00 99 [08:54:38]RAPDU: 90 00 [08:54:38]wFMCommunicate OK [08:54:38]wFMCommunicate request_size=4 [08:54:38]MH_SAM_APDU [08:54:38]CAPDU: 80 0D 03 02 [08:54:38]Write to MH i2c: E2 08 00 0E 18 80 0D 03 02 00 00 00 00 A1 [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:38]Read from MH i2c: E2 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 0B 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 0B 00 0E 18 00 08 65 F2 54 86 BD 4A 6E 90 00 50 [08:54:38]RAPDU: 08 65 F2 54 86 BD 4A 6E 90 00 [08:54:38]wFMCommunicate OK [08:54:38]SAM_PROTO_SignData done [08:54:38]FM_MakeSignedData done [08:54:38]CreateOFDProtocolMessage [08:54:38]wFMCommunicate request_size=4 [08:54:38]MH_SAM_APDU [08:54:38]CAPDU: 80 11 00 00 [08:54:38]Write to MH i2c: E2 08 00 0F 18 80 11 00 00 00 00 00 00 A1 [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:38]Read from MH i2c: E2 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 17 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: E2 17 00 0F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F4 [08:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:54:38]wFMCommunicate OK [08:54:38]CreateOFDProtocolMessage done [08:54:38]OFDSenderStorePacket 187538 [08:54:38]StoreOFDPacket docnum=187538 [08:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 18 B3 07 01 39 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 4F 3F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 DC 02 00 35 04 06 00 62 A6 35 7B 41 17 08 65 F2 54 86 BD 4A 6E [08:54:38]CheckFolder [08:54:38]dirname=/storage/ofd_packets [08:54:38]CheckFolder done [08:54:38]ProducePacketName [08:54:38]name=ofd_packets/00187538 [08:54:38]NVStorageSaveData ofd_packets/00187538 [08:54:38]File name is /storage/ofd_packets/00187538 [08:54:38]Write 301 bytes [08:54:38]NVStorageSaveData done [08:54:38]OFDSenderStorePacket done [08:54:38]KKMCreateOFDPacket done [08:54:38]NVStorageSaveData kkm_last_timestamp [08:54:38]File name is /storage/kkm_last_timestamp [08:54:38]Write 4 bytes [08:54:38]NVStorageSaveData done [08:54:38]ExternCall_PrintAddStr [08:54:38]wPrintStart [08:54:38]Write to MH i2c: 01 00 00 10 18 28 [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: 01 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: 01 07 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: 01 07 00 10 18 00 00 00 00 00 FF 0F 3D [08:54:38]RasterBufferAndPrint [08:54:38]line Счет N : (1)412695 [08:54:38]line ИНН: 02508201610067 [08:54:38]line Контрольно-Кассовый Чек [08:54:38]line ПРОДАЖА [08:54:38]line ТРК (МРК, ГНК) : 12 [08:54:38]line Товар: 2710124130 [08:54:38]line Аи-92-К-2 [08:54:38]line 15.580 * 64.20 [08:54:38]line = 1000.24 [08:54:38]line НДС 12% НСП 1% [08:54:38]line > о реализуемом товаре [08:54:38]line ОКРУГЛЕНИЕ: -0.24 [08:54:38]line ИТОГО: 1000.00 [08:54:38]line Внесено: 1000.00 [08:54:38]line СДАЧА: 0.00 [08:54:38]line НСП 1% : 8.85 [08:54:38]line НДС 12% : 106.22 [08:54:38]line Наличными: 1000.00 [08:54:38]line Безнал.: 0.00 [08:54:38]line Место: АЗС № 92 "Партнер Нефть" [08:54:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:54:38]line СНО: Общий режим [08:54:38]line Чек 32 21.02.2025 08:54 [08:54:38]line Смена: 649 ФФД: 1.0 [08:54:38]line ЗНМ: 0300000118 [08:54:38]line РНМ: 0000000000091857 [08:54:38]line Версия ККМ: 001 [08:54:38]line ФМ: 0000000000871826 [08:54:38]line ФД: 187538 [08:54:38]line ФПД: 108466001363223 [08:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085439&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187538&fm=108466001363223&tin=02508201610067®Number=0000000000091857&sum=100000 [08:54:38]written 0, free lines is 4095 [08:54:38]OFD Sender: Processing packet 187538 [packets to send 49, broken 48] [08:54:38]ProducePacketName [08:54:38]name=ofd_packets/00187538 [08:54:38]OFD Sender: To server: pG, [08:54:38]CommunicateWithHost lk.salyk.kg:30040 [08:54:38]ConnectInit lk.salyk.kg [08:54:38]Connected sock=10 [08:54:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 18 B3 07 01 39 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 4F 3F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 DC 02 00 35 04 06 00 62 A6 35 7B 41 17 08 65 F2 54 86 BD 4A 6E [08:54:38]Write to MH i2c: 01 00 00 3B 18 53 [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: 01 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: 01 07 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: 01 07 00 3B 18 00 00 00 00 00 09 0D 70 [08:54:38]RasterBufferAndPrint [08:54:38]line [08:54:38]line [08:54:38]line [08:54:38]line [08:54:38]line [08:54:38]written 0, free lines is 3370 [08:54:38]MH_Cut [08:54:38]Write to MH i2c: D1 01 00 42 18 01 2C [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: D1 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: D1 01 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: D1 01 00 42 18 00 2B [08:54:38]Write to MH i2c: 01 00 00 43 18 5B [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C2 95 47 00 11 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 38 32 36 10 04 04 00 92 DC 02 00 F4 03 04 00 9E E5 B7 67 B6 04 01 00 00 83 5F BE 8E F5 A0 D3 5F [08:54:39]CommunicateWithHost err = 0 [08:54:39]CheckOFDResponse [08:54:39]1017 (14) - 77093643461234 [08:54:39]1041 (16) - 0000000000871826 [08:54:39]1040 (4) - 187538 [08:54:39]1012 (4) - 21.02.2025 02:31 [08:54:39]1206 (1) - 0 [08:54:39]OFD Sender: Remove packet 187538 [08:54:39]ProducePacketName [08:54:39]name=ofd_packets/00187538 [08:54:39]NVStorageDeleteData [08:54:39]*** Cut start [08:54:39]*** Partial cut [08:54:39]*** CUTSNS_PIN = 1 [08:54:39]*** CUTSNS_PIN = 0 [08:54:39]OFD Sender: No OFD packet to send [08:54:39]*** Brake cut motor [08:54:40]Read from MH i2c: 01 [08:54:40]MH_I2C_Read... [08:54:40]*** Stop cut motor [08:54:40]*** Cut end [08:54:40]Read from MH i2c: 01 07 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: 01 07 00 43 18 00 00 00 00 00 FF 0F 70 [08:54:40]process_action close_receipt done [08:54:40]requested_data is exist [08:54:40]produce_requested_data [08:54:40]requested_item fm.sn is exist - process it [08:54:40]wFMCommunicate request_size=4 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 11 00 00 [08:54:40]Write to MH i2c: E2 08 00 44 18 80 11 00 00 00 00 00 00 D6 [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 17 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 17 00 44 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [08:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:54:40]wFMCommunicate OK [08:54:40]requested_item fd.num is exist - process it [08:54:40]SAM_PROTO_GetFieldsCounters [08:54:40]wFMCommunicate request_size=4 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 13 00 00 [08:54:40]Write to MH i2c: E2 08 00 45 18 80 13 00 00 00 00 00 00 D9 [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 62 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 62 00 45 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 92 DC 02 00 0E 04 04 00 89 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 5A [08:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 92 DC 02 00 0E 04 04 00 89 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:54:40]wFMCommunicate OK [08:54:40]SAM_PROTO_GetFieldsCounters done [08:54:40]requested_item shift.num is exist - process it [08:54:40]requested_item shift.opened is exist - process it [08:54:40]req_shift_opened [08:54:40]FM_GetShiftState [08:54:40]SAM_PROTO_GetShiftState [08:54:40]wFMCommunicate request_size=4 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 13 01 00 [08:54:40]Write to MH i2c: E2 08 00 46 18 80 13 01 00 00 00 00 00 DB [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 0E 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 0E 00 46 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C9 [08:54:40]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:54:40]wFMCommunicate OK [08:54:40]SAM_PROTO_GetShiftState done [08:54:40]FM_GetShiftState done [08:54:40]req_shift_opened done [08:54:40]requested_item shift.open_date is exist - process it [08:54:40]req_shift_open_date [08:54:40]req_shift_open_date done [08:54:40]produce_requested_data done [08:54:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187538,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:54:40]process_action_free close_receipt [08:54:40]json_value_free [08:54:40]json_value_free done [08:54:40]process_json_proto returns [08:54:40]Send response to host [08:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187538,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:54:40]free response buf [08:54:40]execute_script done [08:54:40]execute_script returns [08:54:40]free content buf [08:54:40]Sock 9.Close socket [08:54:40]Sock 9.Thread stoped [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:30]accept exits with 7 [08:59:30]New connection [08:59:30]New thread 3067223396 created [08:59:30]Thread 3067080036 joined [08:59:30]Waiting for new connection... [08:59:30] Sock 7.Parse request [08:59:30]Sock 7.Check first char [08:59:30]Sock 7.First char is OK [08:59:30]request: POST /json_proto HTTP/1.0 [08:59:30]Method: POST [08:59:30]URL: /json_proto [08:59:30]Method is POST - this is cgi request [08:59:30]url: /json_proto [08:59:30]query_string will be loaded in cgi processing [08:59:30]execute_cgi json_proto POST (null) [08:59:30]execute_cgi path=json_proto method=POST [08:59:30]POST find Content-Length [08:59:30]Host: 172.17.46.131:8080 [08:59:30]Content-Length: 682 [08:59:30]Content-Type: application/json [08:59:30] [08:59:30]POST finish read [08:59:30]Found Content-Length = 682 [08:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:30]execute_script... [08:59: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)412696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:30]POST & json_proto [08:59:30]process_json_proto [08:59:30]json parsed OK: [08:59:30]protocol is kg_v1.0 [08:59:30]action value=close_receipt [08:59:30]process_action close_receipt [08:59:30]cmd_close_receipt [08:59:30]MH_GetDate [08:59:30]Write to MH i2c: F0 00 00 47 18 4E [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: F0 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: F0 09 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: F0 09 00 47 18 00 75 40 B8 67 7E 41 4F 65 9E [08:59:30]GetLastDocTimeStamp 1740128079 [08:59:30]current date 1740128373 [08:59:30]FM_GetShiftState [08:59:30]SAM_PROTO_GetShiftState [08:59:30]wFMCommunicate request_size=4 [08:59:30]MH_SAM_APDU [08:59:30]CAPDU: 80 13 01 00 [08:59:30]Write to MH i2c: E2 08 00 48 18 80 13 01 00 00 00 00 00 DD [08:59:30]Write i2c OK [08:59:30]MH_I2C_Read... [08:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:30]Read from MH i2c: E2 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 0E 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 0E 00 48 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 CB [08:59:30]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:59:30]wFMCommunicate OK [08:59:30]SAM_PROTO_GetShiftState done [08:59:30]FM_GetShiftState done [08:59:30]opened in 1740098043 [08:59:30]opened+sec_in_day 1740184443 [08:59:30]quantity*price = 100012 [08:59:30]sum+1 = 100014 [08:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 33 21.02.2025 08:59 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187539 ФПД: 80205499691262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085933&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187539&fm=80205499691262&tin=02508201610067®Number=0000000000091857&sum=100000 [08:59:31]StoreToDocumentArchive [08:59:31]shift 649 fd 187539 [08:59:31]save to /storage/0649/doc_00187539 [08:59:31]save last doc name /storage/0649/doc_00187539 to /storage/kkm_last_doc_name [08:59:31]save OK [08:59:31]Clear old archive folders... [08:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:31]tlvbuf is 02040FB0 [08:59:31]SAM_PROTO_ClearQueue [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 09 00 00 [08:59:31]Write to MH i2c: E2 08 00 55 18 80 09 00 00 00 00 00 00 DF [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 55 18 00 90 00 E1 [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_ClearQueue done [08:59:31]KKMCreateOFDPacket [08:59:31]OFDProtocolAddRootSTLVToBuf [08:59:31]FM_MakeSignedData [08:59:31]FM_MakeSignedData [08:59:31]SAM_PROTO_SignData [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 01 02 [08:59:31]Write to MH i2c: E2 08 00 56 18 80 0D 01 02 00 00 00 00 E7 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 56 18 00 90 00 E2 [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]wFMCommunicate request_size=255 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 75 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 DC 02 00 35 04 06 00 48 [08:59:31]Write to MH i2c: E2 02 01 57 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 75 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 DC 02 00 35 04 06 00 48 00 00 91 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 57 18 00 90 00 E3 [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]wFMCommunicate request_size=10 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 02 02 05 F2 4C 51 70 FE [08:59:31]Write to MH i2c: E2 0D 00 58 18 80 0D 02 02 05 00 F2 4C 51 70 FE 00 00 F1 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 58 18 00 90 00 E4 [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 03 02 [08:59:31]Write to MH i2c: E2 08 00 59 18 80 0D 03 02 00 00 00 00 EC [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0B 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0B 00 59 18 00 63 6F 81 80 7B CB 08 83 90 00 91 [08:59:31]RAPDU: 63 6F 81 80 7B CB 08 83 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_SignData done [08:59:31]FM_MakeSignedData done [08:59:31]CreateOFDProtocolMessage [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 11 00 00 [08:59:31]Write to MH i2c: E2 08 00 5A 18 80 11 00 00 00 00 00 00 EC [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 17 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 17 00 5A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3F [08:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:59:31]wFMCommunicate OK [08:59:31]CreateOFDProtocolMessage done [08:59:31]OFDSenderStorePacket 187539 [08:59:31]StoreOFDPacket docnum=187539 [08:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 C3 07 01 54 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 75 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 DC 02 00 35 04 06 00 48 F2 4C 51 70 FE 63 6F 81 80 7B CB 08 83 [08:59:31]CheckFolder [08:59:31]dirname=/storage/ofd_packets [08:59:31]CheckFolder done [08:59:31]ProducePacketName [08:59:31]name=ofd_packets/00187539 [08:59:31]NVStorageSaveData ofd_packets/00187539 [08:59:31]File name is /storage/ofd_packets/00187539 [08:59:31]Write 301 bytes [08:59:31]NVStorageSaveData done [08:59:31]OFDSenderStorePacket done [08:59:31]KKMCreateOFDPacket done [08:59:31]NVStorageSaveData kkm_last_timestamp [08:59:31]File name is /storage/kkm_last_timestamp [08:59:31]Write 4 bytes [08:59:31]NVStorageSaveData done [08:59:31]ExternCall_PrintAddStr [08:59:31]wPrintStart [08:59:31]Write to MH i2c: 01 00 00 5B 18 73 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 07 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 07 00 5B 18 00 00 00 00 00 FF 0F 88 [08:59:31]RasterBufferAndPrint [08:59:31]line Счет N : (1)412696 [08:59:31]line ИНН: 02508201610067 [08:59:31]line Контрольно-Кассовый Чек [08:59:31]line ПРОДАЖА [08:59:31]line ТРК (МРК, ГНК) : 33 [08:59:31]line Товар: 2710124500 [08:59:31]line Аи-95-К-5 [08:59:31]line 13.910 * 71.90 [08:59:31]line = 1000.13 [08:59:31]line НДС 12% НСП 1% [08:59:31]line > о реализуемом товаре [08:59:31]line ОКРУГЛЕНИЕ: -0.13 [08:59:31]line ИТОГО: 1000.00 [08:59:31]line Внесено: 1000.00 [08:59:31]line СДАЧА: 0.00 [08:59:31]line НСП 1% : 8.85 [08:59:31]line НДС 12% : 106.21 [08:59:31]line Наличными: 1000.00 [08:59:31]line Безнал.: 0.00 [08:59:31]line Место: АЗС № 92 "Партнер Нефть" [08:59:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:59:31]line СНО: Общий режим [08:59:31]line Чек 33 21.02.2025 08:59 [08:59:31]line Смена: 649 ФФД: 1.0 [08:59:31]line ЗНМ: 0300000118 [08:59:31]line РНМ: 0000000000091857 [08:59:31]line Версия ККМ: 001 [08:59:31]line ФМ: 0000000000871826 [08:59:31]line ФД: 187539 [08:59:31]line ФПД: 80205499691262 [08:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085933&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187539&fm=80205499691262&tin=02508201610067®Number=0000000000091857&sum=100000 [08:59:32]OFD Sender: Processing packet 187539 [packets to send 49, broken 48] [08:59:32]ProducePacketName [08:59:32]name=ofd_packets/00187539 [08:59:32]OFD Sender: To server: pG, [08:59:32]CommunicateWithHost lk.salyk.kg:30040 [08:59:32]ConnectInit lk.salyk.kg [08:59:32]written 0, free lines is 4095 [08:59:32]Connected sock=10 [08:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 C3 07 01 54 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 75 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 DC 02 00 35 04 06 00 48 F2 4C 51 70 FE 63 6F 81 80 7B CB 08 83 [08:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A7 30 47 00 72 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 DC 02 00 F4 03 04 00 C4 E6 B7 67 B6 04 01 00 00 99 13 C6 2E 12 46 B2 C5 [08:59:32]CommunicateWithHost err = 0 [08:59:32]CheckOFDResponse [08:59:32]1017 (14) - 77093643461234 [08:59:32]1041 (16) - 0000000000871826 [08:59:32]1040 (4) - 187539 [08:59:32]1012 (4) - 21.02.2025 02:36 [08:59:32]1206 (1) - 0 [08:59:32]OFD Sender: Remove packet 187539 [08:59:32]ProducePacketName [08:59:32]name=ofd_packets/00187539 [08:59:32]NVStorageDeleteData [08:59:32]Write to MH i2c: 01 00 00 86 18 9E [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: 01 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: 01 07 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 FA 0C AB [08:59:32]RasterBufferAndPrint [08:59:32]line [08:59:32]line [08:59:32]line [08:59:32]line [08:59:32]line [08:59:32]written 0, free lines is 3329 [08:59:32]MH_Cut [08:59:32]Write to MH i2c: D1 01 00 8D 18 01 77 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: D1 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: D1 01 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: D1 01 00 8D 18 00 76 [08:59:32]Write to MH i2c: 01 00 00 8E 18 A6 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:33]OFD Sender: No OFD packet to send [08:59:33]*** Cut start [08:59:33]*** Partial cut [08:59:33]*** CUTSNS_PIN = 1 [08:59:33]*** CUTSNS_PIN = 0 [08:59:33]*** Brake cut motor [08:59:34]Read from MH i2c: 01 [08:59:34]MH_I2C_Read... [08:59:34]*** Stop cut motor [08:59:34]*** Cut end [08:59:34]Read from MH i2c: 01 07 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: 01 07 00 8E 18 00 00 00 00 00 FF 0F BB [08:59:34]process_action close_receipt done [08:59:34]requested_data is exist [08:59:34]produce_requested_data [08:59:34]requested_item fm.sn is exist - process it [08:59:34]wFMCommunicate request_size=4 [08:59:34]MH_SAM_APDU [08:59:34]CAPDU: 80 11 00 00 [08:59:34]Write to MH i2c: E2 08 00 8F 18 80 11 00 00 00 00 00 00 21 [08:59:34]Write i2c OK [08:59:34]MH_I2C_Read... [08:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:34]Read from MH i2c: E2 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 17 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 17 00 8F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [08:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:59:34]wFMCommunicate OK [08:59:34]requested_item fd.num is exist - process it [08:59:34]SAM_PROTO_GetFieldsCounters [08:59:34]wFMCommunicate request_size=4 [08:59:34]MH_SAM_APDU [08:59:34]CAPDU: 80 13 00 00 [08:59:34]Write to MH i2c: E2 08 00 90 18 80 13 00 00 00 00 00 00 24 [08:59:34]Write i2c OK [08:59:34]MH_I2C_Read... [08:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:34]Read from MH i2c: E2 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 62 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 62 00 90 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 93 DC 02 00 0E 04 04 00 89 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 A9 [08:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 93 DC 02 00 0E 04 04 00 89 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:59:34]wFMCommunicate OK [08:59:34]SAM_PROTO_GetFieldsCounters done [08:59:34]requested_item shift.num is exist - process it [08:59:34]requested_item shift.opened is exist - process it [08:59:34]req_shift_opened [08:59:34]FM_GetShiftState [08:59:34]SAM_PROTO_GetShiftState [08:59:34]wFMCommunicate request_size=4 [08:59:34]MH_SAM_APDU [08:59:34]CAPDU: 80 13 01 00 [08:59:34]Write to MH i2c: E2 08 00 91 18 80 13 01 00 00 00 00 00 26 [08:59:34]Write i2c OK [08:59:34]MH_I2C_Read... [08:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:34]Read from MH i2c: E2 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 0E 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 0E 00 91 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 14 [08:59:34]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:59:34]wFMCommunicate OK [08:59:34]SAM_PROTO_GetShiftState done [08:59:34]FM_GetShiftState done [08:59:34]req_shift_opened done [08:59:34]requested_item shift.open_date is exist - process it [08:59:34]req_shift_open_date [08:59:34]req_shift_open_date done [08:59:34]produce_requested_data done [08:59:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187539,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:59:34]process_action_free close_receipt [08:59:34]json_value_free [08:59:34]json_value_free done [08:59:34]process_json_proto returns [08:59:34]Send response to host [08:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187539,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:59:34]free response buf [08:59:34]execute_script done [08:59:34]execute_script returns [08:59:34]free content buf [08:59:34]Sock 7.Close socket [08:59:34]Sock 7.Thread stoped [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:53]accept exits with 9 [08:59:53]New connection [08:59:53]New thread 3067080036 created [08:59:53]Thread 3067223396 joined [08:59:53]Waiting for new connection... [08:59:53] Sock 9.Parse request [08:59:53]Sock 9.Check first char [08:59:53]Sock 9.First char is OK [08:59:53]request: POST /json_proto HTTP/1.0 [08:59:53]Method: POST [08:59:53]URL: /json_proto [08:59:53]Method is POST - this is cgi request [08:59:53]url: /json_proto [08:59:53]query_string will be loaded in cgi processing [08:59:53]execute_cgi json_proto POST (null) [08:59:53]execute_cgi path=json_proto method=POST [08:59:53]POST find Content-Length [08:59:53]Host: 172.17.46.131:8080 [08:59:53]Content-Length: 677 [08:59:53]Content-Type: application/json [08:59:53] [08:59:53]POST finish read [08:59:53]Found Content-Length = 677 [08:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:53]execute_script... [08:59: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)412698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:53]POST & json_proto [08:59:53]process_json_proto [08:59:53]json parsed OK: [08:59:53]protocol is kg_v1.0 [08:59:53]action value=close_receipt [08:59:53]process_action close_receipt [08:59:53]cmd_close_receipt [08:59:53]MH_GetDate [08:59:53]Write to MH i2c: F0 00 00 92 18 99 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: F0 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: F0 09 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: F0 09 00 92 18 00 8D 40 B8 67 7E 41 4F 65 01 [08:59:53]GetLastDocTimeStamp 1740128373 [08:59:53]current date 1740128397 [08:59:53]FM_GetShiftState [08:59:53]SAM_PROTO_GetShiftState [08:59:53]wFMCommunicate request_size=4 [08:59:53]MH_SAM_APDU [08:59:53]CAPDU: 80 13 01 00 [08:59:53]Write to MH i2c: E2 08 00 93 18 80 13 01 00 00 00 00 00 28 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:53]Read from MH i2c: E2 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: E2 0E 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: E2 0E 00 93 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 16 [08:59:53]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:59:53]wFMCommunicate OK [08:59:53]SAM_PROTO_GetShiftState done [08:59:53]FM_GetShiftState done [08:59:53]opened in 1740098043 [08:59:53]opened+sec_in_day 1740184443 [08:59:53]quantity*price = 50011 [08:59:53]sum+1 = 50013 [08:59:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 34 21.02.2025 08:59 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187540 ФПД: 5409463818690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085957&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187540&fm=5409463818690&tin=02508201610067®Number=0000000000091857&sum=50000 [08:59:54]StoreToDocumentArchive [08:59:54]shift 649 fd 187540 [08:59:54]save to /storage/0649/doc_00187540 [08:59:54]save last doc name /storage/0649/doc_00187540 to /storage/kkm_last_doc_name [08:59:54]save OK [08:59:54]Clear old archive folders... [08:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:54]tlvbuf is 0206E2C0 [08:59:54]SAM_PROTO_ClearQueue [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 09 00 00 [08:59:54]Write to MH i2c: E2 08 00 A0 18 80 09 00 00 00 00 00 00 2A [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 03 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 03 00 A0 18 00 90 00 2C [08:59:54]RAPDU: 90 00 [08:59:54]wFMCommunicate OK [08:59:54]SAM_PROTO_ClearQueue done [08:59:54]KKMCreateOFDPacket [08:59:54]OFDProtocolAddRootSTLVToBuf [08:59:54]FM_MakeSignedData [08:59:54]FM_MakeSignedData [08:59:54]SAM_PROTO_SignData [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 0D 01 02 [08:59:54]Write to MH i2c: E2 08 00 A1 18 80 0D 01 02 00 00 00 00 32 [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 03 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 03 00 A1 18 00 90 00 2D [08:59:54]RAPDU: 90 00 [08:59:54]wFMCommunicate OK [08:59:54]wFMCommunicate request_size=255 [08:59:54]MH_SAM_APDU [08:59: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 8D 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 DC 02 00 35 04 06 00 04 [08:59:54]Write to MH i2c: E2 02 01 A2 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 8D 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 DC 02 00 35 04 06 00 04 00 00 DA [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 03 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 03 00 A2 18 00 90 00 2E [08:59:55]RAPDU: 90 00 [08:59:55]wFMCommunicate OK [08:59:55]wFMCommunicate request_size=10 [08:59:55]MH_SAM_APDU [08:59:55]CAPDU: 80 0D 02 02 05 EB 7D 2B 59 C2 [08:59:55]Write to MH i2c: E2 0D 00 A3 18 80 0D 02 02 05 00 EB 7D 2B 59 C2 00 00 ED [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 03 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 03 00 A3 18 00 90 00 2F [08:59:55]RAPDU: 90 00 [08:59:55]wFMCommunicate OK [08:59:55]wFMCommunicate request_size=4 [08:59:55]MH_SAM_APDU [08:59:55]CAPDU: 80 0D 03 02 [08:59:55]Write to MH i2c: E2 08 00 A4 18 80 0D 03 02 00 00 00 00 37 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 0B 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 0B 00 A4 18 00 E8 35 DC 05 D9 91 64 11 90 00 15 [08:59:55]RAPDU: E8 35 DC 05 D9 91 64 11 90 00 [08:59:55]wFMCommunicate OK [08:59:55]SAM_PROTO_SignData done [08:59:55]FM_MakeSignedData done [08:59:55]CreateOFDProtocolMessage [08:59:55]wFMCommunicate request_size=4 [08:59:55]MH_SAM_APDU [08:59:55]CAPDU: 80 11 00 00 [08:59:55]Write to MH i2c: E2 08 00 A5 18 80 11 00 00 00 00 00 00 37 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 17 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 17 00 A5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [08:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:59:55]wFMCommunicate OK [08:59:55]CreateOFDProtocolMessage done [08:59:55]OFDSenderStorePacket 187540 [08:59:55]StoreOFDPacket docnum=187540 [08:59:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7A 6F 07 01 E9 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 8D 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 DC 02 00 35 04 06 00 04 EB 7D 2B 59 C2 E8 35 DC 05 D9 91 64 11 [08:59:55]CheckFolder [08:59:55]dirname=/storage/ofd_packets [08:59:55]CheckFolder done [08:59:55]ProducePacketName [08:59:55]name=ofd_packets/00187540 [08:59:55]NVStorageSaveData ofd_packets/00187540 [08:59:55]File name is /storage/ofd_packets/00187540 [08:59:55]Write 301 bytes [08:59:55]NVStorageSaveData done [08:59:55]OFDSenderStorePacket done [08:59:55]KKMCreateOFDPacket done [08:59:55]NVStorageSaveData kkm_last_timestamp [08:59:55]File name is /storage/kkm_last_timestamp [08:59:55]Write 4 bytes [08:59:55]NVStorageSaveData done [08:59:55]ExternCall_PrintAddStr [08:59:55]wPrintStart [08:59:55]Write to MH i2c: 01 00 00 A6 18 BE [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 07 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 07 00 A6 18 00 00 00 00 00 FF 0F D3 [08:59:55]RasterBufferAndPrint [08:59:55]line Счет N : (1)412698 [08:59:55]line ИНН: 02508201610067 [08:59:55]line Контрольно-Кассовый Чек [08:59:55]line ПРОДАЖА [08:59:55]line ТРК (МРК, ГНК) : 12 [08:59:55]line Товар: 2710124130 [08:59:55]line Аи-92-К-2 [08:59:55]line 7.790 * 64.20 [08:59:55]line = 500.12 [08:59:55]line НДС 12% НСП 1% [08:59:55]line > о реализуемом товаре [08:59:55]line ОКРУГЛЕНИЕ: -0.12 [08:59:55]line ИТОГО: 500.00 [08:59:55]line Внесено: 500.00 [08:59:55]line СДАЧА: 0.00 [08:59:55]line НСП 1% : 4.43 [08:59:55]line НДС 12% : 53.11 [08:59:55]line Наличными: 500.00 [08:59:55]line Безнал.: 0.00 [08:59:55]line Место: АЗС № 92 "Партнер Нефть" [08:59:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:59:55]line СНО: Общий режим [08:59:55]line Чек 34 21.02.2025 08:59 [08:59:55]line Смена: 649 ФФД: 1.0 [08:59:55]line ЗНМ: 0300000118 [08:59:55]line РНМ: 0000000000091857 [08:59:55]line Версия ККМ: 001 [08:59:55]line ФМ: 0000000000871826 [08:59:55]line ФД: 187540 [08:59:55]line ФПД: 5409463818690 [08:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T085957&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187540&fm=5409463818690&tin=02508201610067®Number=0000000000091857&sum=50000 [08:59:55]written 0, free lines is 4095 [08:59:55]OFD Sender: Processing packet 187540 [packets to send 49, broken 48] [08:59:55]ProducePacketName [08:59:55]name=ofd_packets/00187540 [08:59:55]OFD Sender: To server: pG, [08:59:55]CommunicateWithHost lk.salyk.kg:30040 [08:59:55]ConnectInit lk.salyk.kg [08:59:55]Connected sock=10 [08:59:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7A 6F 07 01 E9 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 8D 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 DC 02 00 35 04 06 00 04 EB 7D 2B 59 C2 E8 35 DC 05 D9 91 64 11 [08:59:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1C F0 47 00 49 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 DC 02 00 F4 03 04 00 DB E6 B7 67 B6 04 01 00 00 93 BE 18 E7 BA 2C EE CB [08:59:56]CommunicateWithHost err = 0 [08:59:56]CheckOFDResponse [08:59:56]1017 (14) - 77093643461234 [08:59:56]1041 (16) - 0000000000871826 [08:59:56]1040 (4) - 187540 [08:59:56]1012 (4) - 21.02.2025 02:37 [08:59:56]1206 (1) - 0 [08:59:56]OFD Sender: Remove packet 187540 [08:59:56]ProducePacketName [08:59:56]name=ofd_packets/00187540 [08:59:56]NVStorageDeleteData [08:59:56]Write to MH i2c: 01 00 00 D1 18 E9 [08:59:56]Write i2c OK [08:59:56]MH_I2C_Read... [08:59:56]Read from MH i2c: 01 [08:59:56]MH_I2C_Read... [08:59:56]Read from MH i2c: 01 07 00 [08:59:56]MH_I2C_Read... [08:59:56]Read from MH i2c: 01 07 00 D1 18 00 00 00 00 00 EC 0C E8 [08:59:56]RasterBufferAndPrint [08:59:56]line [08:59:56]line [08:59:56]line [08:59:56]line [08:59:56]line [08:59:56]written 0, free lines is 3314 [08:59:56]MH_Cut [08:59:56]Write to MH i2c: D1 01 00 D8 18 01 C2 [08:59:56]Write i2c OK [08:59:56]MH_I2C_Read... [08:59:56]Read from MH i2c: D1 [08:59:56]MH_I2C_Read... [08:59:56]Read from MH i2c: D1 01 00 [08:59:56]MH_I2C_Read... [08:59:56]Read from MH i2c: D1 01 00 D8 18 00 C1 [08:59:56]Write to MH i2c: 01 00 00 D9 18 F1 [08:59:56]Write i2c OK [08:59:56]MH_I2C_Read... [08:59:56]OFD Sender: No OFD packet to send [08:59:56]*** Cut start [08:59:56]*** Partial cut [08:59:56]*** CUTSNS_PIN = 1 [08:59:56]*** CUTSNS_PIN = 0 [08:59:57]*** Brake cut motor [08:59:57]Read from MH i2c: 01 [08:59:57]MH_I2C_Read... [08:59:57]*** Stop cut motor [08:59:57]*** Cut end [08:59:57]Read from MH i2c: 01 07 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: 01 07 00 D9 18 00 00 00 00 00 FF 0F 06 [08:59:57]process_action close_receipt done [08:59:57]requested_data is exist [08:59:57]produce_requested_data [08:59:57]requested_item fm.sn is exist - process it [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 11 00 00 [08:59:57]Write to MH i2c: E2 08 00 DA 18 80 11 00 00 00 00 00 00 6C [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 17 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 17 00 DA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [08:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:59:57]wFMCommunicate OK [08:59:57]requested_item fd.num is exist - process it [08:59:57]SAM_PROTO_GetFieldsCounters [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 13 00 00 [08:59:57]Write to MH i2c: E2 08 00 DB 18 80 13 00 00 00 00 00 00 6F [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 62 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 62 00 DB 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 94 DC 02 00 0E 04 04 00 89 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 F8 [08:59:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 94 DC 02 00 0E 04 04 00 89 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:59:57]wFMCommunicate OK [08:59:57]SAM_PROTO_GetFieldsCounters done [08:59:57]requested_item shift.num is exist - process it [08:59:57]requested_item shift.opened is exist - process it [08:59:57]req_shift_opened [08:59:57]FM_GetShiftState [08:59:57]SAM_PROTO_GetShiftState [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 13 01 00 [08:59:57]Write to MH i2c: E2 08 00 DC 18 80 13 01 00 00 00 00 00 71 [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 0E 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 0E 00 DC 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 5F [08:59:57]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [08:59:57]wFMCommunicate OK [08:59:57]SAM_PROTO_GetShiftState done [08:59:57]FM_GetShiftState done [08:59:57]req_shift_opened done [08:59:57]requested_item shift.open_date is exist - process it [08:59:57]req_shift_open_date [08:59:57]req_shift_open_date done [08:59:57]produce_requested_data done [08:59:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187540,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [08:59:57]process_action_free close_receipt [08:59:57]json_value_free [08:59:57]json_value_free done [08:59:57]process_json_proto returns [08:59:57]Send response to host [08:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187540,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [08:59:57]free response buf [08:59:57]execute_script done [08:59:57]execute_script returns [08:59:57]free content buf [08:59:57]Sock 9.Close socket [08:59:57]Sock 9.Thread stoped [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:22]accept exits with 7 [09:00:22]New connection [09:00:22]New thread 3067223396 created [09:00:22]Thread 3067080036 joined [09:00:22]Waiting for new connection... [09:00:22] Sock 7.Parse request [09:00:22]Sock 7.Check first char [09:00:22]Sock 7.First char is OK [09:00:22]request: POST /json_proto HTTP/1.0 [09:00:22]Method: POST [09:00:22]URL: /json_proto [09:00:22]Method is POST - this is cgi request [09:00:22]url: /json_proto [09:00:22]query_string will be loaded in cgi processing [09:00:22]execute_cgi json_proto POST (null) [09:00:22]execute_cgi path=json_proto method=POST [09:00:22]POST find Content-Length [09:00:22]Host: 172.17.46.131:8080 [09:00:22]Content-Length: 677 [09:00:22]Content-Type: application/json [09:00:22] [09:00:22]POST finish read [09:00:22]Found Content-Length = 677 [09:00:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 1.400, "sum" : 100.66, "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" ] } } [09:00:22]execute_script... [09:00: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)412699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 1.400, "sum" : 100.66, "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" ] } } [09:00:22]POST & json_proto [09:00:22]process_json_proto [09:00:22]json parsed OK: [09:00:22]protocol is kg_v1.0 [09:00:22]action value=close_receipt [09:00:22]process_action close_receipt [09:00:22]cmd_close_receipt [09:00:22]MH_GetDate [09:00:22]Write to MH i2c: F0 00 00 DD 18 E4 [09:00:22]Write i2c OK [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: F0 [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: F0 09 00 [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: F0 09 00 DD 18 00 A9 40 B8 67 7E 41 4F 65 68 [09:00:22]GetLastDocTimeStamp 1740128397 [09:00:22]current date 1740128425 [09:00:22]FM_GetShiftState [09:00:22]SAM_PROTO_GetShiftState [09:00:22]wFMCommunicate request_size=4 [09:00:22]MH_SAM_APDU [09:00:22]CAPDU: 80 13 01 00 [09:00:22]Write to MH i2c: E2 08 00 DE 18 80 13 01 00 00 00 00 00 73 [09:00:22]Write i2c OK [09:00:22]MH_I2C_Read... [09:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:22]Read from MH i2c: E2 [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: E2 0E 00 [09:00:22]MH_I2C_Read... [09:00:22]Read from MH i2c: E2 0E 00 DE 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 61 [09:00:22]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:00:22]wFMCommunicate OK [09:00:22]SAM_PROTO_GetShiftState done [09:00:22]FM_GetShiftState done [09:00:22]opened in 1740098043 [09:00:22]opened+sec_in_day 1740184443 [09:00:22]quantity*price = 10066 [09:00:22]sum+1 = 10067 [09:00:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.69 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 35 21.02.2025 09:00 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187541 ФПД: 217329192402109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090026&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187541&fm=217329192402109&tin=02508201610067®Number=0000000000091857&sum=10000 [09:00:23]StoreToDocumentArchive [09:00:23]shift 649 fd 187541 [09:00:23]save to /storage/0649/doc_00187541 [09:00:23]save last doc name /storage/0649/doc_00187541 to /storage/kkm_last_doc_name [09:00:23]save OK [09:00:23]Clear old archive folders... [09:00:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:23]tlvbuf is 0208E1E0 [09:00:23]SAM_PROTO_ClearQueue [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 09 00 00 [09:00:23]Write to MH i2c: E2 08 00 EB 18 80 09 00 00 00 00 00 00 75 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 EB 18 00 90 00 77 [09:00:23]RAPDU: 90 00 [09:00:23]wFMCommunicate OK [09:00:23]SAM_PROTO_ClearQueue done [09:00:23]KKMCreateOFDPacket [09:00:23]OFDProtocolAddRootSTLVToBuf [09:00:23]FM_MakeSignedData [09:00:23]FM_MakeSignedData [09:00:23]SAM_PROTO_SignData [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 0D 01 02 [09:00:23]Write to MH i2c: E2 08 00 EC 18 80 0D 01 02 00 00 00 00 7D [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 EC 18 00 90 00 78 [09:00:23]RAPDU: 90 00 [09:00:23]wFMCommunicate OK [09:00:23]wFMCommunicate request_size=255 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 78 05 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 52 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 2D 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 23 00 00 00 F4 03 04 00 AA 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 DC 02 00 35 04 06 00 C5 [09:00:23]Write to MH i2c: E2 02 01 ED 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 78 05 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 52 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 2D 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 23 00 00 00 F4 03 04 00 AA 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 DC 02 00 35 04 06 00 C5 00 00 9F [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 ED 18 00 90 00 79 [09:00:23]RAPDU: 90 00 [09:00:23]wFMCommunicate OK [09:00:23]wFMCommunicate request_size=10 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 0D 02 02 05 A8 E5 4F FC BD [09:00:23]Write to MH i2c: E2 0D 00 EE 18 80 0D 02 02 05 00 A8 E5 4F FC BD 00 00 1F [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 03 00 EE 18 00 90 00 7A [09:00:23]RAPDU: 90 00 [09:00:23]wFMCommunicate OK [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 0D 03 02 [09:00:23]Write to MH i2c: E2 08 00 EF 18 80 0D 03 02 00 00 00 00 82 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:23]Read from MH i2c: E2 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 0B 00 [09:00:23]MH_I2C_Read... [09:00:23]Read from MH i2c: E2 0B 00 EF 18 00 EA F2 DA 68 9A FE 43 AC 90 00 28 [09:00:23]RAPDU: EA F2 DA 68 9A FE 43 AC 90 00 [09:00:23]wFMCommunicate OK [09:00:23]SAM_PROTO_SignData done [09:00:23]FM_MakeSignedData done [09:00:23]CreateOFDProtocolMessage [09:00:23]wFMCommunicate request_size=4 [09:00:23]MH_SAM_APDU [09:00:23]CAPDU: 80 11 00 00 [09:00:23]Write to MH i2c: E2 08 00 F0 18 80 11 00 00 00 00 00 00 82 [09:00:23]Write i2c OK [09:00:23]MH_I2C_Read... [09:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:24]Read from MH i2c: E2 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 17 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: E2 17 00 F0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D5 [09:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:00:24]wFMCommunicate OK [09:00:24]CreateOFDProtocolMessage done [09:00:24]OFDSenderStorePacket 187541 [09:00:24]StoreOFDPacket docnum=187541 [09:00:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C C8 07 01 CC C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 78 05 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 52 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 2D 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 23 00 00 00 F4 03 04 00 AA 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 DC 02 00 35 04 06 00 C5 A8 E5 4F FC BD EA F2 DA 68 9A FE 43 AC [09:00:24]CheckFolder [09:00:24]dirname=/storage/ofd_packets [09:00:24]CheckFolder done [09:00:24]ProducePacketName [09:00:24]name=ofd_packets/00187541 [09:00:24]NVStorageSaveData ofd_packets/00187541 [09:00:24]File name is /storage/ofd_packets/00187541 [09:00:24]Write 301 bytes [09:00:24]NVStorageSaveData done [09:00:24]OFDSenderStorePacket done [09:00:24]KKMCreateOFDPacket done [09:00:24]NVStorageSaveData kkm_last_timestamp [09:00:24]File name is /storage/kkm_last_timestamp [09:00:24]Write 4 bytes [09:00:24]NVStorageSaveData done [09:00:24]ExternCall_PrintAddStr [09:00:24]wPrintStart [09:00:24]Write to MH i2c: 01 00 00 F1 18 09 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 07 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 07 00 F1 18 00 00 00 00 00 FF 0F 1E [09:00:24]RasterBufferAndPrint [09:00:24]line Счет N : (1)412699 [09:00:24]line ИНН: 02508201610067 [09:00:24]line Контрольно-Кассовый Чек [09:00:24]line ПРОДАЖА [09:00:24]line ТРК (МРК, ГНК) : 33 [09:00:24]line Товар: 2710124500 [09:00:24]line Аи-95-К-5 [09:00:24]line 1.400 * 71.90 [09:00:24]line = 100.66 [09:00:24]line НДС 12% НСП 1% [09:00:24]line > о реализуемом товаре [09:00:24]line ОКРУГЛЕНИЕ: -0.66 [09:00:24]line ИТОГО: 100.00 [09:00:24]line Внесено: 100.00 [09:00:24]line СДАЧА: 0.00 [09:00:24]line НСП 1% : 0.89 [09:00:24]line НДС 12% : 10.69 [09:00:24]line Наличными: 100.00 [09:00:24]line Безнал.: 0.00 [09:00:24]line Место: АЗС № 92 "Партнер Нефть" [09:00:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:00:24]line СНО: Общий режим [09:00:24]line Чек 35 21.02.2025 09:00 [09:00:24]line Смена: 649 ФФД: 1.0 [09:00:24]line ЗНМ: 0300000118 [09:00:24]line РНМ: 0000000000091857 [09:00:24]line Версия ККМ: 001 [09:00:24]line ФМ: 0000000000871826 [09:00:24]line ФД: 187541 [09:00:24]line ФПД: 217329192402109 [09:00:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090026&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187541&fm=217329192402109&tin=02508201610067®Number=0000000000091857&sum=10000 [09:00:24]written 0, free lines is 4095 [09:00:24]OFD Sender: Processing packet 187541 [packets to send 49, broken 48] [09:00:24]ProducePacketName [09:00:24]name=ofd_packets/00187541 [09:00:24]OFD Sender: To server: pG, [09:00:24]CommunicateWithHost lk.salyk.kg:30040 [09:00:24]ConnectInit lk.salyk.kg [09:00:24]Connected sock=11 [09:00:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C C8 07 01 CC C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 78 05 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 52 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 2D 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 23 00 00 00 F4 03 04 00 AA 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 DC 02 00 35 04 06 00 C5 A8 E5 4F FC BD EA F2 DA 68 9A FE 43 AC [09:00:24]Write to MH i2c: 01 00 00 1C 19 35 [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 07 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: 01 07 00 1C 19 00 00 00 00 00 F6 0C 3E [09:00:24]RasterBufferAndPrint [09:00:24]line [09:00:24]line [09:00:24]line [09:00:24]line [09:00:24]line [09:00:24]written 0, free lines is 3324 [09:00:24]MH_Cut [09:00:24]Write to MH i2c: D1 01 00 23 19 01 0E [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: D1 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: D1 01 00 [09:00:24]MH_I2C_Read... [09:00:24]Read from MH i2c: D1 01 00 23 19 00 0D [09:00:24]Write to MH i2c: 01 00 00 24 19 3D [09:00:24]Write i2c OK [09:00:24]MH_I2C_Read... [09:00:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AB 4D 47 00 74 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 DC 02 00 F4 03 04 00 F8 E6 B7 67 B6 04 01 00 00 5F E4 7E 60 DA B6 91 AF [09:00:24]CommunicateWithHost err = 0 [09:00:24]CheckOFDResponse [09:00:24]1017 (14) - 77093643461234 [09:00:24]1041 (16) - 0000000000871826 [09:00:24]1040 (4) - 187541 [09:00:24]1012 (4) - 21.02.2025 02:37 [09:00:24]1206 (1) - 0 [09:00:24]OFD Sender: Remove packet 187541 [09:00:24]ProducePacketName [09:00:24]name=ofd_packets/00187541 [09:00:24]NVStorageDeleteData [09:00:25]OFD Sender: No OFD packet to send [09:00:25]*** Cut start [09:00:25]*** Partial cut [09:00:25]*** CUTSNS_PIN = 1 [09:00:25]*** CUTSNS_PIN = 0 [09:00:25]*** Brake cut motor [09:00:26]Read from MH i2c: 01 [09:00:26]MH_I2C_Read... [09:00:26]*** Stop cut motor [09:00:26]*** Cut end [09:00:26]Read from MH i2c: 01 07 00 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: 01 07 00 24 19 00 00 00 00 00 FF 0F 52 [09:00:26]process_action close_receipt done [09:00:26]requested_data is exist [09:00:26]produce_requested_data [09:00:26]requested_item fm.sn is exist - process it [09:00:26]wFMCommunicate request_size=4 [09:00:26]MH_SAM_APDU [09:00:26]CAPDU: 80 11 00 00 [09:00:26]Write to MH i2c: E2 08 00 25 19 80 11 00 00 00 00 00 00 B8 [09:00:26]Write i2c OK [09:00:26]MH_I2C_Read... [09:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:26]Read from MH i2c: E2 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 17 00 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 17 00 25 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [09:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:00:26]wFMCommunicate OK [09:00:26]requested_item fd.num is exist - process it [09:00:26]SAM_PROTO_GetFieldsCounters [09:00:26]wFMCommunicate request_size=4 [09:00:26]MH_SAM_APDU [09:00:26]CAPDU: 80 13 00 00 [09:00:26]Write to MH i2c: E2 08 00 26 19 80 13 00 00 00 00 00 00 BB [09:00:26]Write i2c OK [09:00:26]MH_I2C_Read... [09:00:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:26]Read from MH i2c: E2 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 62 00 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 62 00 26 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 95 DC 02 00 0E 04 04 00 89 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 48 [09:00:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 95 DC 02 00 0E 04 04 00 89 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 [09:00:26]wFMCommunicate OK [09:00:26]SAM_PROTO_GetFieldsCounters done [09:00:26]requested_item shift.num is exist - process it [09:00:26]requested_item shift.opened is exist - process it [09:00:26]req_shift_opened [09:00:26]FM_GetShiftState [09:00:26]SAM_PROTO_GetShiftState [09:00:26]wFMCommunicate request_size=4 [09:00:26]MH_SAM_APDU [09:00:26]CAPDU: 80 13 01 00 [09:00:26]Write to MH i2c: E2 08 00 27 19 80 13 01 00 00 00 00 00 BD [09:00:26]Write i2c OK [09:00:26]MH_I2C_Read... [09:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:26]Read from MH i2c: E2 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 0E 00 [09:00:26]MH_I2C_Read... [09:00:26]Read from MH i2c: E2 0E 00 27 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 AB [09:00:26]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:00:26]wFMCommunicate OK [09:00:26]SAM_PROTO_GetShiftState done [09:00:26]FM_GetShiftState done [09:00:26]req_shift_opened done [09:00:26]requested_item shift.open_date is exist - process it [09:00:26]req_shift_open_date [09:00:26]req_shift_open_date done [09:00:26]produce_requested_data done [09:00:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187541,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:00:26]process_action_free close_receipt [09:00:26]json_value_free [09:00:26]json_value_free done [09:00:26]process_json_proto returns [09:00:26]Send response to host [09:00:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187541,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:00:26]free response buf [09:00:26]execute_script done [09:00:26]execute_script returns [09:00:26]free content buf [09:00:26]Sock 7.Close socket [09:00:26]Sock 7.Thread stoped [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:47]accept exits with 9 [09:00:47]New connection [09:00:47]New thread 3067080036 created [09:00:47]Thread 3067223396 joined [09:00:47]Waiting for new connection... [09:00:47] Sock 9.Parse request [09:00:47]Sock 9.Check first char [09:00:47]Sock 9.First char is OK [09:00:47]request: POST /json_proto HTTP/1.0 [09:00:47]Method: POST [09:00:47]URL: /json_proto [09:00:47]Method is POST - this is cgi request [09:00:47]url: /json_proto [09:00:47]query_string will be loaded in cgi processing [09:00:47]execute_cgi json_proto POST (null) [09:00:47]execute_cgi path=json_proto method=POST [09:00:47]POST find Content-Length [09:00:47]Host: 172.17.46.131:8080 [09:00:47]Content-Length: 803 [09:00:47]Content-Type: application/json [09:00:47] [09:00:47]POST finish read [09:00:47]Found Content-Length = 803 [09:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 30.600, "sum" : 2200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2200.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:47]execute_script... [09:00: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)412697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 30.600, "sum" : 2200.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2200.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:47]POST & json_proto [09:00:47]process_json_proto [09:00:47]json parsed OK: [09:00:47]protocol is kg_v1.0 [09:00:47]action value=close_receipt [09:00:47]process_action close_receipt [09:00:47]cmd_close_receipt [09:00:47]MH_GetDate [09:00:47]Write to MH i2c: F0 00 00 28 19 30 [09:00:47]Write i2c OK [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: F0 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: F0 09 00 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: F0 09 00 28 19 00 C2 40 B8 67 7E 41 4F 65 CD [09:00:47]GetLastDocTimeStamp 1740128426 [09:00:47]current date 1740128450 [09:00:47]FM_GetShiftState [09:00:47]SAM_PROTO_GetShiftState [09:00:47]wFMCommunicate request_size=4 [09:00:47]MH_SAM_APDU [09:00:47]CAPDU: 80 13 01 00 [09:00:47]Write to MH i2c: E2 08 00 29 19 80 13 01 00 00 00 00 00 BF [09:00:47]Write i2c OK [09:00:47]MH_I2C_Read... [09:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:47]Read from MH i2c: E2 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 0E 00 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 0E 00 29 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 AD [09:00:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:00:47]wFMCommunicate OK [09:00:47]SAM_PROTO_GetShiftState done [09:00:47]FM_GetShiftState done [09:00:47]opened in 1740098043 [09:00:47]opened+sec_in_day 1740184443 [09:00:47]quantity*price = 220014 [09:00:47]sum+1 = 220015 [09:00:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2200.14 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 0.00 Безнал.: 2200.14 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 36 21.02.2025 09:00 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187542 ФПД: 25693842976552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090050&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187542&fm=25693842976552&tin=02508201610067®Number=0000000000091857&sum=220014 [09:00:48]StoreToDocumentArchive [09:00:48]shift 649 fd 187542 [09:00:48]save to /storage/0649/doc_00187542 [09:00:48]save last doc name /storage/0649/doc_00187542 to /storage/kkm_last_doc_name [09:00:48]save OK [09:00:48]Clear old archive folders... [09:00:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:48]tlvbuf is B6EEA690 [09:00:48]SAM_PROTO_ClearQueue [09:00:48]wFMCommunicate request_size=4 [09:00:48]MH_SAM_APDU [09:00:48]CAPDU: 80 09 00 00 [09:00:48]Write to MH i2c: E2 08 00 36 19 80 09 00 00 00 00 00 00 C1 [09:00:48]Write i2c OK [09:00:48]MH_I2C_Read... [09:00:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:48]Read from MH i2c: E2 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 03 00 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 03 00 36 19 00 90 00 C3 [09:00:48]RAPDU: 90 00 [09:00:48]wFMCommunicate OK [09:00:48]SAM_PROTO_ClearQueue done [09:00:48]KKMCreateOFDPacket [09:00:48]OFDProtocolAddRootSTLVToBuf [09:00:48]FM_MakeSignedData [09:00:48]FM_MakeSignedData [09:00:48]SAM_PROTO_SignData [09:00:48]wFMCommunicate request_size=4 [09:00:48]MH_SAM_APDU [09:00:48]CAPDU: 80 0D 01 02 [09:00:48]Write to MH i2c: E2 08 00 37 19 80 0D 01 02 00 00 00 00 C9 [09:00:48]Write i2c OK [09:00:48]MH_I2C_Read... [09:00:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:48]Read from MH i2c: E2 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 03 00 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 03 00 37 19 00 90 00 C4 [09:00:48]RAPDU: 90 00 [09:00:48]wFMCommunicate OK [09:00:48]wFMCommunicate request_size=255 [09:00:48]MH_SAM_APDU [09:00:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C2 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 DC 02 00 35 04 06 00 17 [09:00:48]Write to MH i2c: E2 02 01 38 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C2 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 DC 02 00 35 04 06 00 17 00 00 0D [09:00:48]Write i2c OK [09:00:48]MH_I2C_Read... [09:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:48]Read from MH i2c: E2 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 03 00 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 03 00 38 19 00 90 00 C5 [09:00:48]RAPDU: 90 00 [09:00:48]wFMCommunicate OK [09:00:48]wFMCommunicate request_size=10 [09:00:48]MH_SAM_APDU [09:00:48]CAPDU: 80 0D 02 02 05 5E 50 62 2F 28 [09:00:48]Write to MH i2c: E2 0D 00 39 19 80 0D 02 02 05 00 5E 50 62 2F 28 00 00 3D [09:00:48]Write i2c OK [09:00:48]MH_I2C_Read... [09:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:48]Read from MH i2c: E2 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 03 00 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 03 00 39 19 00 90 00 C6 [09:00:48]RAPDU: 90 00 [09:00:48]wFMCommunicate OK [09:00:48]wFMCommunicate request_size=4 [09:00:48]MH_SAM_APDU [09:00:48]CAPDU: 80 0D 03 02 [09:00:48]Write to MH i2c: E2 08 00 3A 19 80 0D 03 02 00 00 00 00 CE [09:00:48]Write i2c OK [09:00:48]MH_I2C_Read... [09:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:48]Read from MH i2c: E2 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 0B 00 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 0B 00 3A 19 00 D5 BB DE C6 18 3D 6F FA 90 00 C1 [09:00:48]RAPDU: D5 BB DE C6 18 3D 6F FA 90 00 [09:00:48]wFMCommunicate OK [09:00:48]SAM_PROTO_SignData done [09:00:48]FM_MakeSignedData done [09:00:48]CreateOFDProtocolMessage [09:00:48]wFMCommunicate request_size=4 [09:00:48]MH_SAM_APDU [09:00:48]CAPDU: 80 11 00 00 [09:00:48]Write to MH i2c: E2 08 00 3B 19 80 11 00 00 00 00 00 00 CE [09:00:48]Write i2c OK [09:00:48]MH_I2C_Read... [09:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:48]Read from MH i2c: E2 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 17 00 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: E2 17 00 3B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [09:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:00:48]wFMCommunicate OK [09:00:48]CreateOFDProtocolMessage done [09:00:48]OFDSenderStorePacket 187542 [09:00:48]StoreOFDPacket docnum=187542 [09:00:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB 63 07 01 C9 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C2 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 DC 02 00 35 04 06 00 17 5E 50 62 2F 28 D5 BB DE C6 18 3D 6F FA [09:00:48]CheckFolder [09:00:48]dirname=/storage/ofd_packets [09:00:48]CheckFolder done [09:00:48]ProducePacketName [09:00:48]name=ofd_packets/00187542 [09:00:48]NVStorageSaveData ofd_packets/00187542 [09:00:48]File name is /storage/ofd_packets/00187542 [09:00:48]Write 301 bytes [09:00:48]NVStorageSaveData done [09:00:48]OFDSenderStorePacket done [09:00:48]KKMCreateOFDPacket done [09:00:48]NVStorageSaveData kkm_last_timestamp [09:00:48]File name is /storage/kkm_last_timestamp [09:00:48]Write 4 bytes [09:00:48]NVStorageSaveData done [09:00:48]ExternCall_PrintAddStr [09:00:48]wPrintStart [09:00:48]Write to MH i2c: 01 00 00 3C 19 55 [09:00:48]Write i2c OK [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: 01 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: 01 07 00 [09:00:48]MH_I2C_Read... [09:00:48]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 FF 0F 6A [09:00:48]RasterBufferAndPrint [09:00:48]line Счет N : (1)412697 [09:00:48]line ИНН: 02508201610067 [09:00:48]line Контрольно-Кассовый Чек [09:00:48]line ПРОДАЖА [09:00:48]line ТРК (МРК, ГНК) : 43 [09:00:48]line Товар: 2710124500 [09:00:48]line Аи-95-К-5 [09:00:48]line 30.600 * 71.90 [09:00:48]line = 2200.14 [09:00:48]line НДС 12% НСП 1% [09:00:48]line > о реализуемом товаре [09:00:48]line ИТОГО: 2200.14 [09:00:48]line НСП 1% : 19.47 [09:00:48]line НДС 12% : 233.64 [09:00:48]line Наличными: 0.00 [09:00:48]line Безнал.: 2200.14 [09:00:48]line Место: АЗС № 92 "Партнер Нефть" [09:00:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:00:48]line СНО: Общий режим [09:00:48]line Чек 36 21.02.2025 09:00 [09:00:48]line Смена: 649 ФФД: 1.0 [09:00:48]line ЗНМ: 0300000118 [09:00:48]line РНМ: 0000000000091857 [09:00:48]line Версия ККМ: 001 [09:00:48]line Платежная система: O! деньги [09:00:48]line ФМ: 0000000000871826 [09:00:48]line ФД: 187542 [09:00:48]line ФПД: 25693842976552 [09:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090050&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187542&fm=25693842976552&tin=02508201610067®Number=0000000000091857&sum=220014 [09:00:49]written 0, free lines is 4095 [09:00:49]OFD Sender: Processing packet 187542 [packets to send 49, broken 48] [09:00:49]ProducePacketName [09:00:49]name=ofd_packets/00187542 [09:00:49]OFD Sender: To server: pG, [09:00:49]CommunicateWithHost lk.salyk.kg:30040 [09:00:49]ConnectInit lk.salyk.kg [09:00:49]Connected sock=10 [09:00:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB 63 07 01 C9 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 77 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 6E 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C2 40 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 DC 02 00 35 04 06 00 17 5E 50 62 2F 28 D5 BB DE C6 18 3D 6F FA [09:00:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 40 24 47 00 A6 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 DC 02 00 F4 03 04 00 11 E7 B7 67 B6 04 01 00 00 2C BF CE 77 B4 3E 12 80 [09:00:49]CommunicateWithHost err = 0 [09:00:49]CheckOFDResponse [09:00:49]1017 (14) - 77093643461234 [09:00:49]1041 (16) - 0000000000871826 [09:00:49]1040 (4) - 187542 [09:00:49]1012 (4) - 21.02.2025 02:38 [09:00:49]1206 (1) - 0 [09:00:49]OFD Sender: Remove packet 187542 [09:00:49]ProducePacketName [09:00:49]name=ofd_packets/00187542 [09:00:49]NVStorageDeleteData [09:00:49]Write to MH i2c: 01 00 00 66 19 7F [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: 01 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: 01 07 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: 01 07 00 66 19 00 00 00 00 00 16 0D A9 [09:00:49]RasterBufferAndPrint [09:00:49]line [09:00:49]line [09:00:49]line [09:00:49]line [09:00:49]line [09:00:49]written 0, free lines is 3357 [09:00:49]MH_Cut [09:00:49]Write to MH i2c: D1 01 00 6D 19 01 58 [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: D1 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: D1 01 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: D1 01 00 6D 19 00 57 [09:00:49]Write to MH i2c: 01 00 00 6E 19 87 [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:50]OFD Sender: No OFD packet to send [09:00:50]*** Cut start [09:00:50]*** Partial cut [09:00:50]*** CUTSNS_PIN = 1 [09:00:50]*** CUTSNS_PIN = 0 [09:00:50]*** Brake cut motor [09:00:50]Read from MH i2c: 01 [09:00:50]MH_I2C_Read... [09:00:50]*** Stop cut motor [09:00:50]*** Cut end [09:00:50]Read from MH i2c: 01 07 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: 01 07 00 6E 19 00 00 00 00 00 FF 0F 9C [09:00:50]process_action close_receipt done [09:00:50]requested_data is exist [09:00:50]produce_requested_data [09:00:50]requested_item fm.sn is exist - process it [09:00:50]wFMCommunicate request_size=4 [09:00:50]MH_SAM_APDU [09:00:50]CAPDU: 80 11 00 00 [09:00:50]Write to MH i2c: E2 08 00 6F 19 80 11 00 00 00 00 00 00 02 [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 17 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 17 00 6F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [09:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:00:51]wFMCommunicate OK [09:00:51]requested_item fd.num is exist - process it [09:00:51]SAM_PROTO_GetFieldsCounters [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 13 00 00 [09:00:51]Write to MH i2c: E2 08 00 70 19 80 13 00 00 00 00 00 00 05 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 62 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 62 00 70 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 96 DC 02 00 0E 04 04 00 89 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 96 [09:00:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 96 DC 02 00 0E 04 04 00 89 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:00:51]wFMCommunicate OK [09:00:51]SAM_PROTO_GetFieldsCounters done [09:00:51]requested_item shift.num is exist - process it [09:00:51]requested_item shift.opened is exist - process it [09:00:51]req_shift_opened [09:00:51]FM_GetShiftState [09:00:51]SAM_PROTO_GetShiftState [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 13 01 00 [09:00:51]Write to MH i2c: E2 08 00 71 19 80 13 01 00 00 00 00 00 07 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 0E 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 0E 00 71 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 F5 [09:00:51]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:00:51]wFMCommunicate OK [09:00:51]SAM_PROTO_GetShiftState done [09:00:51]FM_GetShiftState done [09:00:51]req_shift_opened done [09:00:51]requested_item shift.open_date is exist - process it [09:00:51]req_shift_open_date [09:00:51]req_shift_open_date done [09:00:51]produce_requested_data done [09:00:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187542,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:00:51]process_action_free close_receipt [09:00:51]json_value_free [09:00:51]json_value_free done [09:00:51]process_json_proto returns [09:00:51]Send response to host [09:00:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187542,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:00:51]free response buf [09:00:51]execute_script done [09:00:51]execute_script returns [09:00:51]free content buf [09:00:51]Sock 9.Close socket [09:00:51]Sock 9.Thread stoped [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:08]accept exits with 7 [09:02:08]New connection [09:02:08]New thread 3067223396 created [09:02:08]Thread 3067080036 joined [09:02:08]Waiting for new connection... [09:02:08] Sock 7.Parse request [09:02:08]Sock 7.Check first char [09:02:08]Sock 7.First char is OK [09:02:08]request: POST /json_proto HTTP/1.0 [09:02:08]Method: POST [09:02:08]URL: /json_proto [09:02:08]Method is POST - this is cgi request [09:02:08]url: /json_proto [09:02:08]query_string will be loaded in cgi processing [09:02:08]execute_cgi json_proto POST (null) [09:02:08]execute_cgi path=json_proto method=POST [09:02:08]POST find Content-Length [09:02:08]Host: 172.17.46.131:8080 [09:02:08]Content-Length: 677 [09:02:08]Content-Type: application/json [09:02:08] [09:02:08]POST finish read [09:02:08]Found Content-Length = 677 [09:02:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:08]execute_script... [09:02: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)412700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:08]POST & json_proto [09:02:08]process_json_proto [09:02:08]json parsed OK: [09:02:08]protocol is kg_v1.0 [09:02:08]action value=close_receipt [09:02:08]process_action close_receipt [09:02:08]cmd_close_receipt [09:02:08]MH_GetDate [09:02:08]Write to MH i2c: F0 00 00 72 19 7A [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: F0 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: F0 09 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: F0 09 00 72 19 00 14 41 B8 67 7E 41 4F 65 6A [09:02:08]GetLastDocTimeStamp 1740128450 [09:02:08]current date 1740128532 [09:02:08]FM_GetShiftState [09:02:08]SAM_PROTO_GetShiftState [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 13 01 00 [09:02:08]Write to MH i2c: E2 08 00 73 19 80 13 01 00 00 00 00 00 09 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 0E 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 0E 00 73 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 F7 [09:02:08]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:02:08]wFMCommunicate OK [09:02:08]SAM_PROTO_GetShiftState done [09:02:08]FM_GetShiftState done [09:02:08]opened in 1740098043 [09:02:08]opened+sec_in_day 1740184443 [09:02:08]quantity*price = 50011 [09:02:08]sum+1 = 50013 [09:02:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 37 21.02.2025 09:02 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187543 ФПД: 179832659307936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090212&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187543&fm=179832659307936&tin=02508201610067®Number=0000000000091857&sum=50000 [09:02:09]StoreToDocumentArchive [09:02:09]shift 649 fd 187543 [09:02:09]save to /storage/0649/doc_00187543 [09:02:09]save last doc name /storage/0649/doc_00187543 to /storage/kkm_last_doc_name [09:02:09]save OK [09:02:09]Clear old archive folders... [09:02:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:09]tlvbuf is B6F03660 [09:02:09]SAM_PROTO_ClearQueue [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 09 00 00 [09:02:09]Write to MH i2c: E2 08 00 80 19 80 09 00 00 00 00 00 00 0B [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:09]Read from MH i2c: E2 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [09:02:09]RAPDU: 90 00 [09:02:09]wFMCommunicate OK [09:02:09]SAM_PROTO_ClearQueue done [09:02:09]KKMCreateOFDPacket [09:02:09]OFDProtocolAddRootSTLVToBuf [09:02:09]FM_MakeSignedData [09:02:09]FM_MakeSignedData [09:02:09]SAM_PROTO_SignData [09:02:09]wFMCommunicate request_size=4 [09:02:09]MH_SAM_APDU [09:02:09]CAPDU: 80 0D 01 02 [09:02:09]Write to MH i2c: E2 08 00 81 19 80 0D 01 02 00 00 00 00 13 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 81 19 00 90 00 0E [09:02:10]RAPDU: 90 00 [09:02:10]wFMCommunicate OK [09:02:10]wFMCommunicate request_size=255 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 14 41 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 DC 02 00 35 04 06 00 A3 [09:02:10]Write to MH i2c: E2 02 01 82 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 14 41 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 DC 02 00 35 04 06 00 A3 00 00 E8 [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]OFD Sender: No OFD packet to send [09:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 82 19 00 90 00 0F [09:02:10]RAPDU: 90 00 [09:02:10]wFMCommunicate OK [09:02:10]wFMCommunicate request_size=10 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 0D 02 02 05 8E 8D C6 ED A0 [09:02:10]Write to MH i2c: E2 0D 00 83 19 80 0D 02 02 05 00 8E 8D C6 ED A0 00 00 8E [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 03 00 83 19 00 90 00 10 [09:02:10]RAPDU: 90 00 [09:02:10]wFMCommunicate OK [09:02:10]wFMCommunicate request_size=4 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 0D 03 02 [09:02:10]Write to MH i2c: E2 08 00 84 19 80 0D 03 02 00 00 00 00 18 [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 0B 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 0B 00 84 19 00 09 45 70 81 57 29 82 F6 90 00 50 [09:02:10]RAPDU: 09 45 70 81 57 29 82 F6 90 00 [09:02:10]wFMCommunicate OK [09:02:10]SAM_PROTO_SignData done [09:02:10]FM_MakeSignedData done [09:02:10]CreateOFDProtocolMessage [09:02:10]wFMCommunicate request_size=4 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 11 00 00 [09:02:10]Write to MH i2c: E2 08 00 85 19 80 11 00 00 00 00 00 00 18 [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 17 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 17 00 85 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [09:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:02:10]wFMCommunicate OK [09:02:10]CreateOFDProtocolMessage done [09:02:10]OFDSenderStorePacket 187543 [09:02:10]StoreOFDPacket docnum=187543 [09:02:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 83 09 07 01 74 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 14 41 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 DC 02 00 35 04 06 00 A3 8E 8D C6 ED A0 09 45 70 81 57 29 82 F6 [09:02:10]CheckFolder [09:02:10]dirname=/storage/ofd_packets [09:02:10]CheckFolder done [09:02:10]ProducePacketName [09:02:10]name=ofd_packets/00187543 [09:02:10]NVStorageSaveData ofd_packets/00187543 [09:02:10]File name is /storage/ofd_packets/00187543 [09:02:10]Write 301 bytes [09:02:10]NVStorageSaveData done [09:02:10]OFDSenderStorePacket done [09:02:10]KKMCreateOFDPacket done [09:02:10]NVStorageSaveData kkm_last_timestamp [09:02:10]File name is /storage/kkm_last_timestamp [09:02:10]Write 4 bytes [09:02:10]NVStorageSaveData done [09:02:10]ExternCall_PrintAddStr [09:02:10]wPrintStart [09:02:10]Write to MH i2c: 01 00 00 86 19 9F [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 07 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 07 00 86 19 00 00 00 00 00 FF 0F B4 [09:02:10]RasterBufferAndPrint [09:02:10]line Счет N : (1)412700 [09:02:10]line ИНН: 02508201610067 [09:02:10]line Контрольно-Кассовый Чек [09:02:10]line ПРОДАЖА [09:02:10]line ТРК (МРК, ГНК) : 12 [09:02:10]line Товар: 2710124130 [09:02:10]line Аи-92-К-2 [09:02:10]line 7.790 * 64.20 [09:02:10]line = 500.12 [09:02:10]line НДС 12% НСП 1% [09:02:10]line > о реализуемом товаре [09:02:10]line ОКРУГЛЕНИЕ: -0.12 [09:02:10]line ИТОГО: 500.00 [09:02:10]line Внесено: 500.00 [09:02:10]line СДАЧА: 0.00 [09:02:10]line НСП 1% : 4.43 [09:02:10]line НДС 12% : 53.11 [09:02:10]line Наличными: 500.00 [09:02:10]line Безнал.: 0.00 [09:02:10]line Место: АЗС № 92 "Партнер Нефть" [09:02:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:02:10]line СНО: Общий режим [09:02:10]line Чек 37 21.02.2025 09:02 [09:02:10]line Смена: 649 ФФД: 1.0 [09:02:10]line ЗНМ: 0300000118 [09:02:10]line РНМ: 0000000000091857 [09:02:10]line Версия ККМ: 001 [09:02:10]line ФМ: 0000000000871826 [09:02:10]line ФД: 187543 [09:02:10]line ФПД: 179832659307936 [09:02:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090212&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187543&fm=179832659307936&tin=02508201610067®Number=0000000000091857&sum=50000 [09:02:10]OFD Sender: Processing packet 187543 [packets to send 49, broken 48] [09:02:10]ProducePacketName [09:02:10]name=ofd_packets/00187543 [09:02:10]OFD Sender: To server: pG, [09:02:10]CommunicateWithHost lk.salyk.kg:30040 [09:02:10]ConnectInit lk.salyk.kg [09:02:10]written 0, free lines is 4095 [09:02:10]Connected sock=10 [09:02:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 83 09 07 01 74 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 14 41 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 DC 02 00 35 04 06 00 A3 8E 8D C6 ED A0 09 45 70 81 57 29 82 F6 [09: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 38 32 36 4F 00 00 00 95 7C 47 00 43 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 DC 02 00 F4 03 04 00 62 E7 B7 67 B6 04 01 00 00 C5 81 A8 56 89 8A 43 E1 [09:02:11]CommunicateWithHost err = 0 [09:02:11]CheckOFDResponse [09:02:11]1017 (14) - 77093643461234 [09:02:11]1041 (16) - 0000000000871826 [09:02:11]1040 (4) - 187543 [09:02:11]1012 (4) - 21.02.2025 02:39 [09:02:11]1206 (1) - 0 [09:02:11]OFD Sender: Remove packet 187543 [09:02:11]ProducePacketName [09:02:11]name=ofd_packets/00187543 [09:02:11]NVStorageDeleteData [09:02:11]Write to MH i2c: 01 00 00 B1 19 CA [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: 01 07 00 B1 19 00 00 00 00 00 F0 0C CD [09:02:11]RasterBufferAndPrint [09:02:11]line [09:02:11]line [09:02:11]line [09:02:11]line [09:02:11]line [09:02:11]written 0, free lines is 3321 [09:02:11]MH_Cut [09:02:11]Write to MH i2c: D1 01 00 B8 19 01 A3 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: D1 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: D1 01 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: D1 01 00 B8 19 00 A2 [09:02:11]Write to MH i2c: 01 00 00 B9 19 D2 [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]OFD Sender: No OFD packet to send [09:02:11]*** Cut start [09:02:11]*** Partial cut [09:02:11]*** CUTSNS_PIN = 1 [09:02:12]*** CUTSNS_PIN = 0 [09:02:12]*** Brake cut motor [09:02:12]Read from MH i2c: 01 [09:02:12]MH_I2C_Read... [09:02:12]*** Stop cut motor [09:02:12]*** Cut end [09:02:12]Read from MH i2c: 01 07 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: 01 07 00 B9 19 00 00 00 00 00 FF 0F E7 [09:02:12]process_action close_receipt done [09:02:12]requested_data is exist [09:02:12]produce_requested_data [09:02:12]requested_item fm.sn is exist - process it [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 11 00 00 [09:02:12]Write to MH i2c: E2 08 00 BA 19 80 11 00 00 00 00 00 00 4D [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 17 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 17 00 BA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [09:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:02:12]wFMCommunicate OK [09:02:12]requested_item fd.num is exist - process it [09:02:12]SAM_PROTO_GetFieldsCounters [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 13 00 00 [09:02:12]Write to MH i2c: E2 08 00 BB 19 80 13 00 00 00 00 00 00 50 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 62 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 62 00 BB 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 97 DC 02 00 0E 04 04 00 89 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 E5 [09:02:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 97 DC 02 00 0E 04 04 00 89 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:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_GetFieldsCounters done [09:02:12]requested_item shift.num is exist - process it [09:02:12]requested_item shift.opened is exist - process it [09:02:12]req_shift_opened [09:02:12]FM_GetShiftState [09:02:12]SAM_PROTO_GetShiftState [09:02:12]wFMCommunicate request_size=4 [09:02:12]MH_SAM_APDU [09:02:12]CAPDU: 80 13 01 00 [09:02:12]Write to MH i2c: E2 08 00 BC 19 80 13 01 00 00 00 00 00 52 [09:02:12]Write i2c OK [09:02:12]MH_I2C_Read... [09:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:12]Read from MH i2c: E2 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0E 00 [09:02:12]MH_I2C_Read... [09:02:12]Read from MH i2c: E2 0E 00 BC 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 40 [09:02:12]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:02:12]wFMCommunicate OK [09:02:12]SAM_PROTO_GetShiftState done [09:02:12]FM_GetShiftState done [09:02:12]req_shift_opened done [09:02:12]requested_item shift.open_date is exist - process it [09:02:12]req_shift_open_date [09:02:12]req_shift_open_date done [09:02:12]produce_requested_data done [09:02:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187543,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:02:12]process_action_free close_receipt [09:02:12]json_value_free [09:02:12]json_value_free done [09:02:12]process_json_proto returns [09:02:12]Send response to host [09:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187543,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:02:12]free response buf [09:02:12]execute_script done [09:02:12]execute_script returns [09:02:12]free content buf [09:02:12]Sock 7.Close socket [09:02:12]Sock 7.Thread stoped [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]accept exits with 9 [09:03:31]New connection [09:03:31]New thread 3067080036 created [09:03:31]Thread 3067223396 joined [09:03:31]Waiting for new connection... [09:03:31] Sock 9.Parse request [09:03:31]Sock 9.Check first char [09:03:31]Sock 9.First char is OK [09:03:31]request: POST /json_proto HTTP/1.0 [09:03:31]Method: POST [09:03:31]URL: /json_proto [09:03:31]Method is POST - this is cgi request [09:03:31]url: /json_proto [09:03:31]query_string will be loaded in cgi processing [09:03:31]execute_cgi json_proto POST (null) [09:03:31]execute_cgi path=json_proto method=POST [09:03:31]POST find Content-Length [09:03:31]Host: 172.17.46.131:8080 [09:03:31]Content-Length: 678 [09:03:31]Content-Type: application/json [09:03:31] [09:03:31]POST finish read [09:03:31]Found Content-Length = 678 [09:03:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:31]execute_script... [09:03: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)412701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:31]POST & json_proto [09:03:31]process_json_proto [09:03:31]json parsed OK: [09:03:31]protocol is kg_v1.0 [09:03:31]action value=close_receipt [09:03:31]process_action close_receipt [09:03:31]cmd_close_receipt [09:03:31]MH_GetDate [09:03:31]Write to MH i2c: F0 00 00 BD 19 C5 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: F0 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: F0 09 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: F0 09 00 BD 19 00 67 41 B8 67 7E 41 4F 65 08 [09:03:31]GetLastDocTimeStamp 1740128532 [09:03:31]current date 1740128615 [09:03:31]FM_GetShiftState [09:03:31]SAM_PROTO_GetShiftState [09:03:31]wFMCommunicate request_size=4 [09:03:31]MH_SAM_APDU [09:03:31]CAPDU: 80 13 01 00 [09:03:31]Write to MH i2c: E2 08 00 BE 19 80 13 01 00 00 00 00 00 54 [09:03:31]Write i2c OK [09:03:31]MH_I2C_Read... [09:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:31]Read from MH i2c: E2 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0E 00 [09:03:31]MH_I2C_Read... [09:03:31]Read from MH i2c: E2 0E 00 BE 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 42 [09:03:31]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:03:31]wFMCommunicate OK [09:03:31]SAM_PROTO_GetShiftState done [09:03:31]FM_GetShiftState done [09:03:31]opened in 1740098043 [09:03:31]opened+sec_in_day 1740184443 [09:03:31]quantity*price = 65034 [09:03:31]sum+1 = 65036 [09:03:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.06 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 38 21.02.2025 09:03 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187544 ФПД: 64949956169513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090335&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187544&fm=64949956169513&tin=02508201610067®Number=0000000000091857&sum=65000 [09:03:32]StoreToDocumentArchive [09:03:32]shift 649 fd 187544 [09:03:32]save to /storage/0649/doc_00187544 [09:03:32]save last doc name /storage/0649/doc_00187544 to /storage/kkm_last_doc_name [09:03:32]save OK [09:03:32]Clear old archive folders... [09:03:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:32]tlvbuf is 0206BB00 [09:03:32]SAM_PROTO_ClearQueue [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 09 00 00 [09:03:32]Write to MH i2c: E2 08 00 CB 19 80 09 00 00 00 00 00 00 56 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 03 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 03 00 CB 19 00 90 00 58 [09:03:32]RAPDU: 90 00 [09:03:32]wFMCommunicate OK [09:03:32]SAM_PROTO_ClearQueue done [09:03:32]KKMCreateOFDPacket [09:03:32]OFDProtocolAddRootSTLVToBuf [09:03:32]FM_MakeSignedData [09:03:32]FM_MakeSignedData [09:03:32]SAM_PROTO_SignData [09:03:32]wFMCommunicate request_size=4 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 0D 01 02 [09:03:32]Write to MH i2c: E2 08 00 CC 19 80 0D 01 02 00 00 00 00 5E [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:32]Read from MH i2c: E2 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 03 00 [09:03:32]MH_I2C_Read... [09:03:32]Read from MH i2c: E2 03 00 CC 19 00 90 00 59 [09:03:32]RAPDU: 90 00 [09:03:32]wFMCommunicate OK [09:03:32]wFMCommunicate request_size=255 [09:03:32]MH_SAM_APDU [09:03:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 67 41 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 DC 02 00 35 04 06 00 3B [09:03:32]Write to MH i2c: E2 02 01 CD 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 67 41 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 DC 02 00 35 04 06 00 3B 00 00 A1 [09:03:32]Write i2c OK [09:03:32]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 03 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 03 00 CD 19 00 90 00 5A [09:03:33]RAPDU: 90 00 [09:03:33]wFMCommunicate OK [09:03:33]wFMCommunicate request_size=10 [09:03:33]MH_SAM_APDU [09:03:33]CAPDU: 80 0D 02 02 05 12 57 10 CF 29 [09:03:33]Write to MH i2c: E2 0D 00 CE 19 80 0D 02 02 05 00 12 57 10 CF 29 00 00 DC [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 03 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 03 00 CE 19 00 90 00 5B [09:03:33]RAPDU: 90 00 [09:03:33]wFMCommunicate OK [09:03:33]wFMCommunicate request_size=4 [09:03:33]MH_SAM_APDU [09:03:33]CAPDU: 80 0D 03 02 [09:03:33]Write to MH i2c: E2 08 00 CF 19 80 0D 03 02 00 00 00 00 63 [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 0B 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 0B 00 CF 19 00 61 67 02 4A 02 E9 96 A9 90 00 A2 [09:03:33]RAPDU: 61 67 02 4A 02 E9 96 A9 90 00 [09:03:33]wFMCommunicate OK [09:03:33]SAM_PROTO_SignData done [09:03:33]FM_MakeSignedData done [09:03:33]CreateOFDProtocolMessage [09:03:33]wFMCommunicate request_size=4 [09:03:33]MH_SAM_APDU [09:03:33]CAPDU: 80 11 00 00 [09:03:33]Write to MH i2c: E2 08 00 D0 19 80 11 00 00 00 00 00 00 63 [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:33]Read from MH i2c: E2 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 17 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: E2 17 00 D0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [09:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:03:33]wFMCommunicate OK [09:03:33]CreateOFDProtocolMessage done [09:03:33]OFDSenderStorePacket 187544 [09:03:33]StoreOFDPacket docnum=187544 [09:03:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E4 38 07 01 ED 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 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 67 41 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 DC 02 00 35 04 06 00 3B 12 57 10 CF 29 61 67 02 4A 02 E9 96 A9 [09:03:33]CheckFolder [09:03:33]dirname=/storage/ofd_packets [09:03:33]CheckFolder done [09:03:33]ProducePacketName [09:03:33]name=ofd_packets/00187544 [09:03:33]NVStorageSaveData ofd_packets/00187544 [09:03:33]File name is /storage/ofd_packets/00187544 [09:03:33]Write 301 bytes [09:03:33]NVStorageSaveData done [09:03:33]OFDSenderStorePacket done [09:03:33]KKMCreateOFDPacket done [09:03:33]NVStorageSaveData kkm_last_timestamp [09:03:33]File name is /storage/kkm_last_timestamp [09:03:33]Write 4 bytes [09:03:33]NVStorageSaveData done [09:03:33]ExternCall_PrintAddStr [09:03:33]wPrintStart [09:03:33]Write to MH i2c: 01 00 00 D1 19 EA [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: 01 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: 01 07 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: 01 07 00 D1 19 00 00 00 00 00 FF 0F FF [09:03:33]RasterBufferAndPrint [09:03:33]line Счет N : (1)412701 [09:03:33]line ИНН: 02508201610067 [09:03:33]line Контрольно-Кассовый Чек [09:03:33]line ПРОДАЖА [09:03:33]line ТРК (МРК, ГНК) : 32 [09:03:33]line Товар: 2710124130 [09:03:33]line Аи-92-К-2 [09:03:33]line 10.130 * 64.20 [09:03:33]line = 650.35 [09:03:33]line НДС 12% НСП 1% [09:03:33]line > о реализуемом товаре [09:03:33]line ОКРУГЛЕНИЕ: -0.35 [09:03:33]line ИТОГО: 650.00 [09:03:33]line Внесено: 650.00 [09:03:33]line СДАЧА: 0.00 [09:03:33]line НСП 1% : 5.75 [09:03:33]line НДС 12% : 69.06 [09:03:33]line Наличными: 650.00 [09:03:33]line Безнал.: 0.00 [09:03:33]line Место: АЗС № 92 "Партнер Нефть" [09:03:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:03:33]line СНО: Общий режим [09:03:33]line Чек 38 21.02.2025 09:03 [09:03:33]line Смена: 649 ФФД: 1.0 [09:03:33]line ЗНМ: 0300000118 [09:03:33]line РНМ: 0000000000091857 [09:03:33]line Версия ККМ: 001 [09:03:33]line ФМ: 0000000000871826 [09:03:33]line ФД: 187544 [09:03:33]line ФПД: 64949956169513 [09:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090335&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187544&fm=64949956169513&tin=02508201610067®Number=0000000000091857&sum=65000 [09:03:33]written 0, free lines is 4095 [09:03:33]OFD Sender: Processing packet 187544 [packets to send 49, broken 48] [09:03:33]ProducePacketName [09:03:33]name=ofd_packets/00187544 [09:03:33]OFD Sender: To server: pG, [09:03:33]CommunicateWithHost lk.salyk.kg:30040 [09:03:33]ConnectInit lk.salyk.kg [09:03:33]Connected sock=10 [09:03:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E4 38 07 01 ED 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 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 67 41 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 DC 02 00 35 04 06 00 3B 12 57 10 CF 29 61 67 02 4A 02 E9 96 A9 [09:03:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 67 F6 47 00 72 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 DC 02 00 F4 03 04 00 B5 E7 B7 67 B6 04 01 00 00 51 BA CC 6D 11 64 6A 57 [09:03:33]CommunicateWithHost err = 0 [09:03:33]CheckOFDResponse [09:03:33]1017 (14) - 77093643461234 [09:03:33]1041 (16) - 0000000000871826 [09:03:33]1040 (4) - 187544 [09:03:33]1012 (4) - 21.02.2025 02:40 [09:03:33]1206 (1) - 0 [09:03:33]OFD Sender: Remove packet 187544 [09:03:33]ProducePacketName [09:03:33]name=ofd_packets/00187544 [09:03:33]NVStorageDeleteData [09:03:33]Write to MH i2c: 01 00 00 FC 19 15 [09:03:33]Write i2c OK [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: 01 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: 01 07 00 [09:03:33]MH_I2C_Read... [09:03:33]Read from MH i2c: 01 07 00 FC 19 00 00 00 00 00 F9 0C 21 [09:03:33]RasterBufferAndPrint [09:03:34]line [09:03:34]line [09:03:34]line [09:03:34]line [09:03:34]line [09:03:34]written 0, free lines is 3328 [09:03:34]MH_Cut [09:03:34]Write to MH i2c: D1 01 00 03 1A 01 EF [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: D1 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: D1 01 00 [09:03:34]MH_I2C_Read... [09:03:34]Read from MH i2c: D1 01 00 03 1A 00 EE [09:03:34]Write to MH i2c: 01 00 00 04 1A 1E [09:03:34]Write i2c OK [09:03:34]MH_I2C_Read... [09:03:34]OFD Sender: No OFD packet to send [09:03:34]*** Cut start [09:03:34]*** Partial cut [09:03:34]*** CUTSNS_PIN = 1 [09:03:34]*** CUTSNS_PIN = 0 [09:03:35]*** Brake cut motor [09:03:35]Read from MH i2c: 01 [09:03:35]MH_I2C_Read... [09:03:35]*** Stop cut motor [09:03:35]*** Cut end [09:03:35]Read from MH i2c: 01 07 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: 01 07 00 04 1A 00 00 00 00 00 FF 0F 33 [09:03:35]process_action close_receipt done [09:03:35]requested_data is exist [09:03:35]produce_requested_data [09:03:35]requested_item fm.sn is exist - process it [09:03:35]wFMCommunicate request_size=4 [09:03:35]MH_SAM_APDU [09:03:35]CAPDU: 80 11 00 00 [09:03:35]Write to MH i2c: E2 08 00 05 1A 80 11 00 00 00 00 00 00 99 [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:35]Read from MH i2c: E2 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 17 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 17 00 05 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EC [09:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:03:35]wFMCommunicate OK [09:03:35]requested_item fd.num is exist - process it [09:03:35]SAM_PROTO_GetFieldsCounters [09:03:35]wFMCommunicate request_size=4 [09:03:35]MH_SAM_APDU [09:03:35]CAPDU: 80 13 00 00 [09:03:35]Write to MH i2c: E2 08 00 06 1A 80 13 00 00 00 00 00 00 9C [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:35]Read from MH i2c: E2 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 62 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 62 00 06 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 98 DC 02 00 0E 04 04 00 89 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 35 [09:03:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 98 DC 02 00 0E 04 04 00 89 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:03:35]wFMCommunicate OK [09:03:35]SAM_PROTO_GetFieldsCounters done [09:03:35]requested_item shift.num is exist - process it [09:03:35]requested_item shift.opened is exist - process it [09:03:35]req_shift_opened [09:03:35]FM_GetShiftState [09:03:35]SAM_PROTO_GetShiftState [09:03:35]wFMCommunicate request_size=4 [09:03:35]MH_SAM_APDU [09:03:35]CAPDU: 80 13 01 00 [09:03:35]Write to MH i2c: E2 08 00 07 1A 80 13 01 00 00 00 00 00 9E [09:03:35]Write i2c OK [09:03:35]MH_I2C_Read... [09:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:35]Read from MH i2c: E2 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 0E 00 [09:03:35]MH_I2C_Read... [09:03:35]Read from MH i2c: E2 0E 00 07 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 8C [09:03:35]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:03:35]wFMCommunicate OK [09:03:35]SAM_PROTO_GetShiftState done [09:03:35]FM_GetShiftState done [09:03:35]req_shift_opened done [09:03:35]requested_item shift.open_date is exist - process it [09:03:35]req_shift_open_date [09:03:35]req_shift_open_date done [09:03:35]produce_requested_data done [09:03:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187544,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:03:35]process_action_free close_receipt [09:03:35]json_value_free [09:03:35]json_value_free done [09:03:35]process_json_proto returns [09:03:35]Send response to host [09:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187544,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:03:35]free response buf [09:03:35]execute_script done [09:03:35]execute_script returns [09:03:35]free content buf [09:03:35]Sock 9.Close socket [09:03:35]Sock 9.Thread stoped [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:33]accept exits with 7 [09:07:33]New connection [09:07:33]New thread 3067223396 created [09:07:33]Thread 3067080036 joined [09:07:33]Waiting for new connection... [09:07:33] Sock 7.Parse request [09:07:33]Sock 7.Check first char [09:07:33]Sock 7.First char is OK [09:07:33]request: POST /json_proto HTTP/1.0 [09:07:33]Method: POST [09:07:33]URL: /json_proto [09:07:33]Method is POST - this is cgi request [09:07:33]url: /json_proto [09:07:33]query_string will be loaded in cgi processing [09:07:33]execute_cgi json_proto POST (null) [09:07:33]execute_cgi path=json_proto method=POST [09:07:33]POST find Content-Length [09:07:33]Host: 172.17.46.131:8080 [09:07:33]Content-Length: 673 [09:07:33]Content-Type: application/json [09:07:33] [09:07:33]POST finish read [09:07:33]Found Content-Length = 673 [09:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:33]execute_script... [09:07:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:33]POST & json_proto [09:07:33]process_json_proto [09:07:33]json parsed OK: [09:07:33]protocol is kg_v1.0 [09:07:33]action value=close_receipt [09:07:33]process_action close_receipt [09:07:33]cmd_close_receipt [09:07:33]MH_GetDate [09:07:33]Write to MH i2c: F0 00 00 08 1A 11 [09:07:33]Write i2c OK [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: F0 [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: F0 09 00 [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: F0 09 00 08 1A 00 59 42 B8 67 7E 41 4F 65 47 [09:07:33]GetLastDocTimeStamp 1740128615 [09:07:33]current date 1740128857 [09:07:33]FM_GetShiftState [09:07:33]SAM_PROTO_GetShiftState [09:07:33]wFMCommunicate request_size=4 [09:07:33]MH_SAM_APDU [09:07:33]CAPDU: 80 13 01 00 [09:07:33]Write to MH i2c: E2 08 00 09 1A 80 13 01 00 00 00 00 00 A0 [09:07:33]Write i2c OK [09:07:33]MH_I2C_Read... [09:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:33]Read from MH i2c: E2 [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: E2 0E 00 [09:07:33]MH_I2C_Read... [09:07:33]Read from MH i2c: E2 0E 00 09 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 8E [09:07:33]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:07:33]wFMCommunicate OK [09:07:33]SAM_PROTO_GetShiftState done [09:07:33]FM_GetShiftState done [09:07:33]opened in 1740098043 [09:07:33]opened+sec_in_day 1740184443 [09:07:33]quantity*price = 50021 [09:07:33]sum+1 = 50022 [09:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 39 21.02.2025 09:07 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187545 ФПД: 6196201409802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090737&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187545&fm=6196201409802&tin=02508201610067®Number=0000000000091857&sum=50000 [09:07:34]StoreToDocumentArchive [09:07:34]shift 649 fd 187545 [09:07:34]save to /storage/0649/doc_00187545 [09:07:34]save last doc name /storage/0649/doc_00187545 to /storage/kkm_last_doc_name [09:07:34]save OK [09:07:34]Clear old archive folders... [09:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:07:34]tlvbuf is B6DEA5C0 [09:07:34]SAM_PROTO_ClearQueue [09:07:34]wFMCommunicate request_size=4 [09:07:34]MH_SAM_APDU [09:07:34]CAPDU: 80 09 00 00 [09:07:34]Write to MH i2c: E2 08 00 16 1A 80 09 00 00 00 00 00 00 A2 [09:07:34]Write i2c OK [09:07:34]MH_I2C_Read... [09:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:34]Read from MH i2c: E2 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 03 00 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 03 00 16 1A 00 90 00 A4 [09:07:34]RAPDU: 90 00 [09:07:34]wFMCommunicate OK [09:07:34]SAM_PROTO_ClearQueue done [09:07:34]KKMCreateOFDPacket [09:07:34]OFDProtocolAddRootSTLVToBuf [09:07:34]FM_MakeSignedData [09:07:34]FM_MakeSignedData [09:07:34]SAM_PROTO_SignData [09:07:34]wFMCommunicate request_size=4 [09:07:34]MH_SAM_APDU [09:07:34]CAPDU: 80 0D 01 02 [09:07:34]Write to MH i2c: E2 08 00 17 1A 80 0D 01 02 00 00 00 00 AA [09:07:34]Write i2c OK [09:07:34]MH_I2C_Read... [09:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:34]Read from MH i2c: E2 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 03 00 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 03 00 17 1A 00 90 00 A5 [09:07:34]RAPDU: 90 00 [09:07:34]wFMCommunicate OK [09:07:34]wFMCommunicate request_size=255 [09:07:34]MH_SAM_APDU [09:07:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 59 42 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 DC 02 00 35 04 06 00 05 A2 AA 62 [09:07:34]Write to MH i2c: E2 02 01 18 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 59 42 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 DC 02 00 35 04 06 00 05 A2 AA 62 00 00 FC [09:07:34]Write i2c OK [09:07:34]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 18 1A 00 90 00 A6 [09:07:35]RAPDU: 90 00 [09:07:35]wFMCommunicate OK [09:07:35]wFMCommunicate request_size=7 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 0D 02 02 02 4D 0A [09:07:35]Write to MH i2c: E2 0A 00 19 1A 80 0D 02 02 02 00 4D 0A 00 00 08 [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 03 00 19 1A 00 90 00 A7 [09:07:35]RAPDU: 90 00 [09:07:35]wFMCommunicate OK [09:07:35]wFMCommunicate request_size=4 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 0D 03 02 [09:07:35]Write to MH i2c: E2 08 00 1A 1A 80 0D 03 02 00 00 00 00 AF [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 0B 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 0B 00 1A 1A 00 EA B7 5B D3 12 E9 31 56 90 00 01 [09:07:35]RAPDU: EA B7 5B D3 12 E9 31 56 90 00 [09:07:35]wFMCommunicate OK [09:07:35]SAM_PROTO_SignData done [09:07:35]FM_MakeSignedData done [09:07:35]CreateOFDProtocolMessage [09:07:35]wFMCommunicate request_size=4 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 11 00 00 [09:07:35]Write to MH i2c: E2 08 00 1B 1A 80 11 00 00 00 00 00 00 AF [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 17 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 17 00 1B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 02 [09:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:07:35]wFMCommunicate OK [09:07:35]CreateOFDProtocolMessage done [09:07:35]OFDSenderStorePacket 187545 [09:07:35]StoreOFDPacket docnum=187545 [09:07:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 4D 4C 04 01 29 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 59 42 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 DC 02 00 35 04 06 00 05 A2 AA 62 4D 0A EA B7 5B D3 12 E9 31 56 [09:07:35]CheckFolder [09:07:35]dirname=/storage/ofd_packets [09:07:35]CheckFolder done [09:07:35]ProducePacketName [09:07:35]name=ofd_packets/00187545 [09:07:35]NVStorageSaveData ofd_packets/00187545 [09:07:35]File name is /storage/ofd_packets/00187545 [09:07:35]Write 298 bytes [09:07:35]NVStorageSaveData done [09:07:35]OFDSenderStorePacket done [09:07:35]KKMCreateOFDPacket done [09:07:35]NVStorageSaveData kkm_last_timestamp [09:07:35]File name is /storage/kkm_last_timestamp [09:07:35]Write 4 bytes [09:07:35]NVStorageSaveData done [09:07:35]ExternCall_PrintAddStr [09:07:35]wPrintStart [09:07:35]Write to MH i2c: 01 00 00 1C 1A 36 [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: 01 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: 01 07 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: 01 07 00 1C 1A 00 00 00 00 00 FF 0F 4B [09:07:35]RasterBufferAndPrint [09:07:35]line Счет N : (1)412702 [09:07:35]line ИНН: 02508201610067 [09:07:35]line Контрольно-Кассовый Чек [09:07:35]line ПРОДАЖА [09:07:35]line ТРК (МРК, ГНК) : 5 [09:07:35]line Товар: 2710194210 [09:07:35]line ДТ-К-5 [09:07:35]line 6.890 * 72.60 [09:07:35]line = 500.21 [09:07:35]line НДС 12% НСП 1% [09:07:35]line > о реализуемом товаре [09:07:35]line ОКРУГЛЕНИЕ: -0.21 [09:07:35]line ИТОГО: 500.00 [09:07:35]line Внесено: 500.00 [09:07:35]line СДАЧА: 0.00 [09:07:35]line НСП 1% : 4.43 [09:07:35]line НДС 12% : 53.12 [09:07:35]line Наличными: 500.00 [09:07:35]line Безнал.: 0.00 [09:07:35]line Место: АЗС № 92 "Партнер Нефть" [09:07:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:07:35]line СНО: Общий режим [09:07:35]line Чек 39 21.02.2025 09:07 [09:07:35]line Смена: 649 ФФД: 1.0 [09:07:35]line ЗНМ: 0300000118 [09:07:35]line РНМ: 0000000000091857 [09:07:35]line Версия ККМ: 001 [09:07:35]line ФМ: 0000000000871826 [09:07:35]line ФД: 187545 [09:07:35]line ФПД: 6196201409802 [09:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090737&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187545&fm=6196201409802&tin=02508201610067®Number=0000000000091857&sum=50000 [09:07:35]OFD Sender: Processing packet 187545 [packets to send 49, broken 48] [09:07:35]ProducePacketName [09:07:35]name=ofd_packets/00187545 [09:07:35]OFD Sender: To server: pG, [09:07:35]CommunicateWithHost lk.salyk.kg:30040 [09:07:35]ConnectInit lk.salyk.kg [09:07:35]written 0, free lines is 4095 [09:07:35]Connected sock=11 [09:07:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 4D 4C 04 01 29 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 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 59 42 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 DC 02 00 35 04 06 00 05 A2 AA 62 4D 0A EA B7 5B D3 12 E9 31 56 [09:07:36]Write to MH i2c: 01 00 00 47 1A 61 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 07 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 07 00 47 1A 00 00 00 00 00 EC 0C 60 [09:07:36]RasterBufferAndPrint [09:07:36]line [09:07:36]line [09:07:36]line [09:07:36]line [09:07:36]line [09:07:36]written 0, free lines is 3314 [09:07:36]MH_Cut [09:07:36]Write to MH i2c: D1 01 00 4E 1A 01 3A [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: D1 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: D1 01 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: D1 01 00 4E 1A 00 39 [09:07:36]Write to MH i2c: 01 00 00 4F 1A 69 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DF 2E 47 00 DB 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 DC 02 00 F4 03 04 00 A7 E8 B7 67 B6 04 01 00 00 AB E7 6F 4E 78 B7 D9 85 [09:07:36]CommunicateWithHost err = 0 [09:07:36]CheckOFDResponse [09:07:36]1017 (14) - 77093643461234 [09:07:36]1041 (16) - 0000000000871826 [09:07:36]1040 (4) - 187545 [09:07:36]1012 (4) - 21.02.2025 02:44 [09:07:36]1206 (1) - 0 [09:07:36]OFD Sender: Remove packet 187545 [09:07:36]ProducePacketName [09:07:36]name=ofd_packets/00187545 [09:07:36]NVStorageDeleteData [09:07:36]OFD Sender: No OFD packet to send [09:07:36]*** Cut start [09:07:36]*** Partial cut [09:07:36]*** CUTSNS_PIN = 1 [09:07:36]*** CUTSNS_PIN = 0 [09:07:37]*** Brake cut motor [09:07:37]Read from MH i2c: 01 [09:07:37]*** Stop cut motor [09:07:37]*** Cut end [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 07 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 07 00 4F 1A 00 00 00 00 00 FF 0F 7E [09:07:37]process_action close_receipt done [09:07:37]requested_data is exist [09:07:37]produce_requested_data [09:07:37]requested_item fm.sn is exist - process it [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 11 00 00 [09:07:37]Write to MH i2c: E2 08 00 50 1A 80 11 00 00 00 00 00 00 E4 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 17 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 17 00 50 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [09:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:07:37]wFMCommunicate OK [09:07:37]requested_item fd.num is exist - process it [09:07:37]SAM_PROTO_GetFieldsCounters [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 13 00 00 [09:07:37]Write to MH i2c: E2 08 00 51 1A 80 13 00 00 00 00 00 00 E7 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 62 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 62 00 51 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 99 DC 02 00 0E 04 04 00 89 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 84 [09:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 99 DC 02 00 0E 04 04 00 89 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:07:37]wFMCommunicate OK [09:07:37]SAM_PROTO_GetFieldsCounters done [09:07:37]requested_item shift.num is exist - process it [09:07:37]requested_item shift.opened is exist - process it [09:07:37]req_shift_opened [09:07:37]FM_GetShiftState [09:07:37]SAM_PROTO_GetShiftState [09:07:37]wFMCommunicate request_size=4 [09:07:37]MH_SAM_APDU [09:07:37]CAPDU: 80 13 01 00 [09:07:37]Write to MH i2c: E2 08 00 52 1A 80 13 01 00 00 00 00 00 E9 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:37]Read from MH i2c: E2 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 0E 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: E2 0E 00 52 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D7 [09:07:37]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:07:37]wFMCommunicate OK [09:07:37]SAM_PROTO_GetShiftState done [09:07:37]FM_GetShiftState done [09:07:37]req_shift_opened done [09:07:37]requested_item shift.open_date is exist - process it [09:07:37]req_shift_open_date [09:07:37]req_shift_open_date done [09:07:37]produce_requested_data done [09:07:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187545,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:07:37]process_action_free close_receipt [09:07:37]json_value_free [09:07:37]json_value_free done [09:07:37]process_json_proto returns [09:07:37]Send response to host [09:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187545,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:07:37]free response buf [09:07:37]execute_script done [09:07:37]execute_script returns [09:07:37]free content buf [09:07:37]Sock 7.Close socket [09:07:37]Sock 7.Thread stoped [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:45]accept exits with 9 [09:09:45]New connection [09:09:45]New thread 3067080036 created [09:09:45]Thread 3067223396 joined [09:09:45]Waiting for new connection... [09:09:45] Sock 9.Parse request [09:09:45]Sock 9.Check first char [09:09:45]Sock 9.First char is OK [09:09:45]request: POST /json_proto HTTP/1.0 [09:09:45]Method: POST [09:09:45]URL: /json_proto [09:09:45]Method is POST - this is cgi request [09:09:45]url: /json_proto [09:09:45]query_string will be loaded in cgi processing [09:09:45]execute_cgi json_proto POST (null) [09:09:45]execute_cgi path=json_proto method=POST [09:09:45]POST find Content-Length [09:09:45]Host: 172.17.46.131:8080 [09:09:45]Content-Length: 749 [09:09:45]Content-Type: application/json [09:09:45] [09:09:45]POST finish read [09:09:45]Found Content-Length = 749 [09:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 9.650, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:45]execute_script... [09: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)412703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 9.650, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:45]POST & json_proto [09:09:45]process_json_proto [09:09:45]json parsed OK: [09:09:45]protocol is kg_v1.0 [09:09:45]action value=close_receipt [09:09:45]process_action close_receipt [09:09:45]cmd_close_receipt [09:09:45]MH_GetDate [09:09:45]Write to MH i2c: F0 00 00 53 1A 5C [09:09:45]Write i2c OK [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: F0 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: F0 09 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: F0 09 00 53 1A 00 DD 42 B8 67 7E 41 4F 65 16 [09:09:45]GetLastDocTimeStamp 1740128857 [09:09:45]current date 1740128989 [09:09:45]FM_GetShiftState [09:09:45]SAM_PROTO_GetShiftState [09:09:45]wFMCommunicate request_size=4 [09:09:45]MH_SAM_APDU [09:09:45]CAPDU: 80 13 01 00 [09:09:45]Write to MH i2c: E2 08 00 54 1A 80 13 01 00 00 00 00 00 EB [09:09:45]Write i2c OK [09:09:45]MH_I2C_Read... [09:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:45]Read from MH i2c: E2 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 0E 00 [09:09:45]MH_I2C_Read... [09:09:45]Read from MH i2c: E2 0E 00 54 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D9 [09:09:45]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:09:45]wFMCommunicate OK [09:09:45]SAM_PROTO_GetShiftState done [09:09:45]FM_GetShiftState done [09:09:45]opened in 1740098043 [09:09:45]opened+sec_in_day 1740184443 [09:09:45]quantity*price = 0 [09:09:45]sum+1 = 1 [09:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 40 21.02.2025 09:09 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106530 ФМ: 0000000000871826 ФД: 187546 ФПД: 91575486423446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090949&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187546&fm=91575486423446&tin=02508201610067®Number=0000000000091857&sum=0 [09:09:47]StoreToDocumentArchive [09:09:47]shift 649 fd 187546 [09:09:47]save to /storage/0649/doc_00187546 [09:09:47]save last doc name /storage/0649/doc_00187546 to /storage/kkm_last_doc_name [09:09:47]save OK [09:09:47]Clear old archive folders... [09:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:09:47]tlvbuf is 0208DAE0 [09:09:47]SAM_PROTO_ClearQueue [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 09 00 00 [09:09:47]Write to MH i2c: E2 08 00 61 1A 80 09 00 00 00 00 00 00 ED [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 61 1A 00 90 00 EF [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]SAM_PROTO_ClearQueue done [09:09:47]KKMCreateOFDPacket [09:09:47]OFDProtocolAddRootSTLVToBuf [09:09:47]FM_MakeSignedData [09:09:47]FM_MakeSignedData [09:09:47]SAM_PROTO_SignData [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 0D 01 02 [09:09:47]Write to MH i2c: E2 08 00 62 1A 80 0D 01 02 00 00 00 00 F5 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 62 1A 00 90 00 F0 [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]wFMCommunicate request_size=255 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 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 28 00 00 00 F4 03 04 00 DD 42 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A DC 02 00 35 04 06 00 53 49 94 56 [09:09:47]Write to MH i2c: E2 02 01 63 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 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 28 00 00 00 F4 03 04 00 DD 42 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A DC 02 00 35 04 06 00 53 49 94 56 00 00 1D [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 63 1A 00 90 00 F1 [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]wFMCommunicate request_size=7 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 0D 02 02 02 A1 96 [09:09:47]Write to MH i2c: E2 0A 00 64 1A 80 0D 02 02 02 00 A1 96 00 00 33 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 64 1A 00 90 00 F2 [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 0D 03 02 [09:09:47]Write to MH i2c: E2 08 00 65 1A 80 0D 03 02 00 00 00 00 FA [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 0B 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 0B 00 65 1A 00 CC FF CA 49 8E A5 2A 53 90 00 89 [09:09:47]RAPDU: CC FF CA 49 8E A5 2A 53 90 00 [09:09:47]wFMCommunicate OK [09:09:47]SAM_PROTO_SignData done [09:09:47]FM_MakeSignedData done [09:09:47]CreateOFDProtocolMessage [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 11 00 00 [09:09:47]Write to MH i2c: E2 08 00 66 1A 80 11 00 00 00 00 00 00 FA [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 17 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 17 00 66 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [09:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:09:47]wFMCommunicate OK [09:09:47]CreateOFDProtocolMessage done [09:09:47]OFDSenderStorePacket 187546 [09:09:47]StoreOFDPacket docnum=187546 [09:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 70 42 04 01 E2 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 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 28 00 00 00 F4 03 04 00 DD 42 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A DC 02 00 35 04 06 00 53 49 94 56 A1 96 CC FF CA 49 8E A5 2A 53 [09:09:47]CheckFolder [09:09:47]dirname=/storage/ofd_packets [09:09:47]CheckFolder done [09:09:47]ProducePacketName [09:09:47]name=ofd_packets/00187546 [09:09:47]NVStorageSaveData ofd_packets/00187546 [09:09:47]File name is /storage/ofd_packets/00187546 [09:09:47]Write 298 bytes [09:09:47]NVStorageSaveData done [09:09:47]OFDSenderStorePacket done [09:09:47]KKMCreateOFDPacket done [09:09:47]NVStorageSaveData kkm_last_timestamp [09:09:47]File name is /storage/kkm_last_timestamp [09:09:47]Write 4 bytes [09:09:47]NVStorageSaveData done [09:09:47]ExternCall_PrintAddStr [09:09:47]wPrintStart [09:09:47]Write to MH i2c: 01 00 00 67 1A 81 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 07 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: 01 07 00 67 1A 00 00 00 00 00 FF 0F 96 [09:09:47]RasterBufferAndPrint [09:09:47]line Счет N : (1)412703 [09:09:47]line ИНН: 02508201610067 [09:09:47]line Контрольно-Кассовый Чек [09:09:47]line ПРОДАЖА [09:09:47]line ТРК (МРК, ГНК) : 5 [09:09:47]line Товар: 2710194210 [09:09:47]line ДТ-К-5 [09:09:47]line 9.650 * 0.00 [09:09:47]line = 0.00 [09:09:47]line НДС 12% НСП 1% [09:09:47]line > о реализуемом товаре [09:09:47]line ИТОГО: 0.00 [09:09:47]line НСП 1% : 0.00 [09:09:47]line НДС 12% : 0.00 [09:09:47]line Наличными: 0.00 [09:09:47]line Безнал.: 0.00 [09:09:47]line Место: АЗС № 92 "Партнер Нефть" [09:09:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:09:47]line СНО: Общий режим [09:09:47]line Чек 40 21.02.2025 09:09 [09:09:47]line Смена: 649 ФФД: 1.0 [09:09:47]line ЗНМ: 0300000118 [09:09:47]line РНМ: 0000000000091857 [09:09:47]line Версия ККМ: 001 [09:09:47]line Талоны: ТК ГПНА Online [09:09:47]line 30106530 [09:09:47]line ФМ: 0000000000871826 [09:09:47]line ФД: 187546 [09:09:47]line ФПД: 91575486423446 [09:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T090949&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187546&fm=91575486423446&tin=02508201610067®Number=0000000000091857&sum=0 [09:09:47]OFD Sender: Processing packet 187546 [packets to send 49, broken 48] [09:09:47]ProducePacketName [09:09:47]name=ofd_packets/00187546 [09:09:47]OFD Sender: To server: pG, [09:09:47]CommunicateWithHost lk.salyk.kg:30040 [09:09:47]ConnectInit lk.salyk.kg [09:09:47]written 0, free lines is 4095 [09:09:48]Connected sock=10 [09:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 70 42 04 01 E2 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 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 28 00 00 00 F4 03 04 00 DD 42 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A DC 02 00 35 04 06 00 53 49 94 56 A1 96 CC FF CA 49 8E A5 2A 53 [09:09:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FA EA 47 00 27 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A DC 02 00 F4 03 04 00 2B E9 B7 67 B6 04 01 00 00 68 05 55 0F A9 73 3D 59 [09:09:48]CommunicateWithHost err = 0 [09:09:48]CheckOFDResponse [09:09:48]1017 (14) - 77093643461234 [09:09:48]1041 (16) - 0000000000871826 [09:09:48]1040 (4) - 187546 [09:09:48]1012 (4) - 21.02.2025 02:47 [09:09:48]1206 (1) - 0 [09:09:48]OFD Sender: Remove packet 187546 [09:09:48]ProducePacketName [09:09:48]name=ofd_packets/00187546 [09:09:48]NVStorageDeleteData [09:09:48]Write to MH i2c: 01 00 00 91 1A AB [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 91 1A 00 00 00 00 00 00 0D BF [09:09:48]RasterBufferAndPrint [09:09:48]line [09:09:48]line [09:09:48]line [09:09:48]line [09:09:48]line [09:09:48]written 0, free lines is 3337 [09:09:48]MH_Cut [09:09:48]Write to MH i2c: D1 01 00 98 1A 01 84 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: D1 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: D1 01 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: D1 01 00 98 1A 00 83 [09:09:48]Write to MH i2c: 01 00 00 99 1A B3 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]OFD Sender: No OFD packet to send [09:09:49]*** Cut start [09:09:49]*** Partial cut [09:09:49]*** CUTSNS_PIN = 1 [09:09:49]*** CUTSNS_PIN = 0 [09:09:49]*** Brake cut motor [09:09:49]Read from MH i2c: 01 [09:09:49]MH_I2C_Read... [09:09:49]*** Stop cut motor [09:09:49]*** Cut end [09:09:49]Read from MH i2c: 01 07 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 07 00 99 1A 00 00 00 00 00 FF 0F C8 [09:09:49]process_action close_receipt done [09:09:49]requested_data is exist [09:09:49]produce_requested_data [09:09:49]requested_item fm.sn is exist - process it [09:09:49]wFMCommunicate request_size=4 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 11 00 00 [09:09:49]Write to MH i2c: E2 08 00 9A 1A 80 11 00 00 00 00 00 00 2E [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 [09:09:49]MH_I2C_Read... [09:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:49]Read from MH i2c: E2 17 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 17 00 9A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [09:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:09:49]wFMCommunicate OK [09:09:49]requested_item fd.num is exist - process it [09:09:49]SAM_PROTO_GetFieldsCounters [09:09:49]wFMCommunicate request_size=4 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 13 00 00 [09:09:49]Write to MH i2c: E2 08 00 9B 1A 80 13 00 00 00 00 00 00 31 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:49]Read from MH i2c: E2 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 62 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: E2 62 00 9B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9A DC 02 00 0E 04 04 00 89 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 D2 [09: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9A DC 02 00 0E 04 04 00 89 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:09:49]wFMCommunicate OK [09:09:49]SAM_PROTO_GetFieldsCounters done [09:09:49]requested_item shift.num is exist - process it [09:09:49]requested_item shift.opened is exist - process it [09:09:49]req_shift_opened [09:09:49]FM_GetShiftState [09:09:49]SAM_PROTO_GetShiftState [09:09:49]wFMCommunicate request_size=4 [09:09:49]MH_SAM_APDU [09:09:49]CAPDU: 80 13 01 00 [09:09:49]Write to MH i2c: E2 08 00 9C 1A 80 13 01 00 00 00 00 00 33 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 9C 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 21 [09:09:50]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:09:50]wFMCommunicate OK [09:09:50]SAM_PROTO_GetShiftState done [09:09:50]FM_GetShiftState done [09:09:50]req_shift_opened done [09:09:50]requested_item shift.open_date is exist - process it [09:09:50]req_shift_open_date [09:09:50]req_shift_open_date done [09:09:50]produce_requested_data done [09:09:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187546,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:09:50]process_action_free close_receipt [09:09:50]json_value_free [09:09:50]json_value_free done [09:09:50]process_json_proto returns [09:09:50]Send response to host [09:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187546,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:09:50]free response buf [09:09:50]execute_script done [09:09:50]execute_script returns [09:09:50]free content buf [09:09:50]Sock 9.Close socket [09:09:50]Sock 9.Thread stoped [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:47]accept exits with 7 [09:13:47]New connection [09:13:47]New thread 3067223396 created [09:13:47]Thread 3067080036 joined [09:13:47]Waiting for new connection... [09:13:47] Sock 7.Parse request [09:13:47]Sock 7.Check first char [09:13:47]Sock 7.First char is OK [09:13:47]request: POST /json_proto HTTP/1.0 [09:13:47]Method: POST [09:13:47]URL: /json_proto [09:13:47]Method is POST - this is cgi request [09:13:47]url: /json_proto [09:13:47]query_string will be loaded in cgi processing [09:13:47]execute_cgi json_proto POST (null) [09:13:47]execute_cgi path=json_proto method=POST [09:13:47]POST find Content-Length [09:13:47]Host: 172.17.46.131:8080 [09:13:47]Content-Length: 678 [09:13:47]Content-Type: application/json [09:13:47] [09:13:47]POST finish read [09:13:47]Found Content-Length = 678 [09:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:47]execute_script... [09:13: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)412704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:47]POST & json_proto [09:13:47]process_json_proto [09:13:47]json parsed OK: [09:13:47]protocol is kg_v1.0 [09:13:47]action value=close_receipt [09:13:47]process_action close_receipt [09:13:47]cmd_close_receipt [09:13:47]MH_GetDate [09:13:47]Write to MH i2c: F0 00 00 9D 1A A6 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: F0 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: F0 09 00 [09:13:47]MH_I2C_Read... [09:13:47]Read from MH i2c: F0 09 00 9D 1A 00 CF 43 B8 67 7E 41 4F 65 53 [09:13:47]GetLastDocTimeStamp 1740128989 [09:13:47]current date 1740129231 [09:13:47]FM_GetShiftState [09:13:47]SAM_PROTO_GetShiftState [09:13:47]wFMCommunicate request_size=4 [09:13:47]MH_SAM_APDU [09:13:47]CAPDU: 80 13 01 00 [09:13:47]Write to MH i2c: E2 08 00 9E 1A 80 13 01 00 00 00 00 00 35 [09:13:47]Write i2c OK [09:13:47]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0E 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0E 00 9E 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 23 [09:13:48]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:13:48]wFMCommunicate OK [09:13:48]SAM_PROTO_GetShiftState done [09:13:48]FM_GetShiftState done [09:13:48]opened in 1740098043 [09:13:48]opened+sec_in_day 1740184443 [09:13:48]quantity*price = 80057 [09:13:48]sum+1 = 80058 [09:13:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 41 21.02.2025 09:13 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187547 ФПД: 100043922679504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T091351&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187547&fm=100043922679504&tin=02508201610067®Number=0000000000091857&sum=80000 [09:13:49]StoreToDocumentArchive [09:13:49]shift 649 fd 187547 [09:13:49]save to /storage/0649/doc_00187547 [09:13:49]save last doc name /storage/0649/doc_00187547 to /storage/kkm_last_doc_name [09:13:49]save OK [09:13:49]Clear old archive folders... [09:13:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:49]tlvbuf is 0206DF40 [09:13:49]SAM_PROTO_ClearQueue [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 09 00 00 [09:13:49]Write to MH i2c: E2 08 00 AB 1A 80 09 00 00 00 00 00 00 37 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 AB 1A 00 90 00 39 [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]SAM_PROTO_ClearQueue done [09:13:49]KKMCreateOFDPacket [09:13:49]OFDProtocolAddRootSTLVToBuf [09:13:49]FM_MakeSignedData [09:13:49]FM_MakeSignedData [09:13:49]SAM_PROTO_SignData [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 01 02 [09:13:49]Write to MH i2c: E2 08 00 AC 1A 80 0D 01 02 00 00 00 00 3F [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 AC 1A 00 90 00 3A [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]wFMCommunicate request_size=255 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CF 43 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B DC 02 00 35 04 06 00 5A [09:13:49]Write to MH i2c: E2 02 01 AD 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CF 43 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B DC 02 00 35 04 06 00 5A 00 00 97 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 AD 1A 00 90 00 3B [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]wFMCommunicate request_size=10 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 02 02 05 FD 4A 79 26 D0 [09:13:49]Write to MH i2c: E2 0D 00 AE 1A 80 0D 02 02 05 00 FD 4A 79 26 D0 00 00 02 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 AE 1A 00 90 00 3C [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 03 02 [09:13:49]Write to MH i2c: E2 08 00 AF 1A 80 0D 03 02 00 00 00 00 44 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 0B 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 0B 00 AF 1A 00 01 79 CA 27 97 3E 4A 16 90 00 E5 [09:13:49]RAPDU: 01 79 CA 27 97 3E 4A 16 90 00 [09:13:49]wFMCommunicate OK [09:13:49]SAM_PROTO_SignData done [09:13:49]FM_MakeSignedData done [09:13:49]CreateOFDProtocolMessage [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 11 00 00 [09:13:49]Write to MH i2c: E2 08 00 B0 1A 80 11 00 00 00 00 00 00 44 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 17 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 17 00 B0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [09:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:13:49]wFMCommunicate OK [09:13:49]CreateOFDProtocolMessage done [09:13:49]OFDSenderStorePacket 187547 [09:13:49]StoreOFDPacket docnum=187547 [09:13:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AC 98 07 01 8A 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CF 43 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B DC 02 00 35 04 06 00 5A FD 4A 79 26 D0 01 79 CA 27 97 3E 4A 16 [09:13:49]CheckFolder [09:13:49]dirname=/storage/ofd_packets [09:13:49]CheckFolder done [09:13:49]ProducePacketName [09:13:49]name=ofd_packets/00187547 [09:13:49]NVStorageSaveData ofd_packets/00187547 [09:13:49]File name is /storage/ofd_packets/00187547 [09:13:49]Write 301 bytes [09:13:49]NVStorageSaveData done [09:13:49]OFDSenderStorePacket done [09:13:49]KKMCreateOFDPacket done [09:13:49]NVStorageSaveData kkm_last_timestamp [09:13:49]File name is /storage/kkm_last_timestamp [09:13:49]Write 4 bytes [09:13:49]NVStorageSaveData done [09:13:49]ExternCall_PrintAddStr [09:13:49]wPrintStart [09:13:49]Write to MH i2c: 01 00 00 B1 1A CB [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 07 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: 01 07 00 B1 1A 00 00 00 00 00 FF 0F E0 [09:13:49]RasterBufferAndPrint [09:13:49]line Счет N : (1)412704 [09:13:49]line ИНН: 02508201610067 [09:13:49]line Контрольно-Кассовый Чек [09:13:49]line ПРОДАЖА [09:13:49]line ТРК (МРК, ГНК) : 22 [09:13:49]line Товар: 2710124130 [09:13:49]line Аи-92-К-2 [09:13:49]line 12.470 * 64.20 [09:13:49]line = 800.57 [09:13:49]line НДС 12% НСП 1% [09:13:49]line > о реализуемом товаре [09:13:49]line ОКРУГЛЕНИЕ: -0.57 [09:13:49]line ИТОГО: 800.00 [09:13:49]line Внесено: 800.00 [09:13:49]line СДАЧА: 0.00 [09:13:49]line НСП 1% : 7.08 [09:13:49]line НДС 12% : 85.02 [09:13:49]line Наличными: 800.00 [09:13:49]line Безнал.: 0.00 [09:13:49]line Место: АЗС № 92 "Партнер Нефть" [09:13:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:13:49]line СНО: Общий режим [09:13:49]line Чек 41 21.02.2025 09:13 [09:13:49]line Смена: 649 ФФД: 1.0 [09:13:49]line ЗНМ: 0300000118 [09:13:49]line РНМ: 0000000000091857 [09:13:49]line Версия ККМ: 001 [09:13:49]line ФМ: 0000000000871826 [09:13:49]line ФД: 187547 [09:13:49]line ФПД: 100043922679504 [09:13:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T091351&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187547&fm=100043922679504&tin=02508201610067®Number=0000000000091857&sum=80000 [09:13:50]OFD Sender: Processing packet 187547 [packets to send 49, broken 48] [09:13:50]ProducePacketName [09:13:50]name=ofd_packets/00187547 [09:13:50]OFD Sender: To server: pG, [09:13:50]CommunicateWithHost lk.salyk.kg:30040 [09:13:50]ConnectInit lk.salyk.kg [09:13:50]written 0, free lines is 4095 [09:13:50]Connected sock=10 [09:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AC 98 07 01 8A 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 CF 43 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B DC 02 00 35 04 06 00 5A FD 4A 79 26 D0 01 79 CA 27 97 3E 4A 16 [09:13:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C3 BF 47 00 EA 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B DC 02 00 F4 03 04 00 1E EA B7 67 B6 04 01 00 00 0A C7 A8 68 1B 72 66 13 [09:13:50]CommunicateWithHost err = 0 [09:13:50]CheckOFDResponse [09:13:50]1017 (14) - 77093643461234 [09:13:50]1041 (16) - 0000000000871826 [09:13:50]1040 (4) - 187547 [09:13:50]1012 (4) - 21.02.2025 02:51 [09:13:50]1206 (1) - 0 [09:13:50]OFD Sender: Remove packet 187547 [09:13:50]ProducePacketName [09:13:50]name=ofd_packets/00187547 [09:13:50]NVStorageDeleteData [09:13:50]Write to MH i2c: 01 00 00 DC 1A F6 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 07 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 07 00 DC 1A 00 00 00 00 00 F5 0C FE [09:13:50]RasterBufferAndPrint [09:13:50]line [09:13:50]line [09:13:50]line [09:13:50]line [09:13:50]line [09:13:50]written 0, free lines is 3323 [09:13:50]MH_Cut [09:13:50]Write to MH i2c: D1 01 00 E3 1A 01 CF [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: D1 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: D1 01 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: D1 01 00 E3 1A 00 CE [09:13:50]Write to MH i2c: 01 00 00 E4 1A FE [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]OFD Sender: No OFD packet to send [09:13:51]*** Cut start [09:13:51]*** Partial cut [09:13:51]*** CUTSNS_PIN = 1 [09:13:51]*** CUTSNS_PIN = 0 [09:13:51]*** Brake cut motor [09:13:51]Read from MH i2c: 01 [09:13:51]MH_I2C_Read... [09:13:51]*** Stop cut motor [09:13:51]Read from MH i2c: 01 07 00 [09:13:51]MH_I2C_Read... [09:13:51]*** Cut end [09:13:51]Read from MH i2c: 01 07 00 E4 1A 00 00 00 00 00 FF 0F 13 [09:13:51]process_action close_receipt done [09:13:51]requested_data is exist [09:13:51]produce_requested_data [09:13:51]requested_item fm.sn is exist - process it [09:13:51]wFMCommunicate request_size=4 [09:13:51]MH_SAM_APDU [09:13:51]CAPDU: 80 11 00 00 [09:13:51]Write to MH i2c: E2 08 00 E5 1A 80 11 00 00 00 00 00 00 79 [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:51]Read from MH i2c: E2 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: E2 17 00 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: E2 17 00 E5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CC [09:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:13:51]wFMCommunicate OK [09:13:51]requested_item fd.num is exist - process it [09:13:51]SAM_PROTO_GetFieldsCounters [09:13:51]wFMCommunicate request_size=4 [09:13:51]MH_SAM_APDU [09:13:51]CAPDU: 80 13 00 00 [09:13:51]Write to MH i2c: E2 08 00 E6 1A 80 13 00 00 00 00 00 00 7C [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 62 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 62 00 E6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9B DC 02 00 0E 04 04 00 89 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 21 [09:13:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9B DC 02 00 0E 04 04 00 89 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:52]wFMCommunicate OK [09:13:52]SAM_PROTO_GetFieldsCounters done [09:13:52]requested_item shift.num is exist - process it [09:13:52]requested_item shift.opened is exist - process it [09:13:52]req_shift_opened [09:13:52]FM_GetShiftState [09:13:52]SAM_PROTO_GetShiftState [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 13 01 00 [09:13:52]Write to MH i2c: E2 08 00 E7 1A 80 13 01 00 00 00 00 00 7E [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 0E 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 0E 00 E7 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6C [09:13:52]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:13:52]wFMCommunicate OK [09:13:52]SAM_PROTO_GetShiftState done [09:13:52]FM_GetShiftState done [09:13:52]req_shift_opened done [09:13:52]requested_item shift.open_date is exist - process it [09:13:52]req_shift_open_date [09:13:52]req_shift_open_date done [09:13:52]produce_requested_data done [09:13:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187547,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:13:52]process_action_free close_receipt [09:13:52]json_value_free [09:13:52]json_value_free done [09:13:52]process_json_proto returns [09:13:52]Send response to host [09:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187547,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:13:52]free response buf [09:13:52]execute_script done [09:13:52]execute_script returns [09:13:52]free content buf [09:13:52]Sock 7.Close socket [09:13:52]Sock 7.Thread stoped [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:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:15]accept exits with 9 [09:18:15]New connection [09:18:15]New thread 3067080036 created [09:18:15]Thread 3067223396 joined [09:18:15]Waiting for new connection... [09:18:15] Sock 9.Parse request [09:18:15]Sock 9.Check first char [09:18:15]Sock 9.First char is OK [09:18:15]request: POST /json_proto HTTP/1.0 [09:18:15]Method: POST [09:18:15]URL: /json_proto [09:18:15]Method is POST - this is cgi request [09:18:15]url: /json_proto [09:18:15]query_string will be loaded in cgi processing [09:18:15]execute_cgi json_proto POST (null) [09:18:15]execute_cgi path=json_proto method=POST [09:18:15]POST find Content-Length [09:18:15]Host: 172.17.46.131:8080 [09:18:15]Content-Length: 800 [09:18:15]Content-Type: application/json [09:18:15] [09:18:15]POST finish read [09:18:15]Found Content-Length = 800 [09:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:15]execute_script... [09: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)412705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:15]POST & json_proto [09:18:15]process_json_proto [09:18:15]json parsed OK: [09:18:15]protocol is kg_v1.0 [09:18:15]action value=close_receipt [09:18:15]process_action close_receipt [09:18:15]cmd_close_receipt [09:18:15]MH_GetDate [09:18:15]Write to MH i2c: F0 00 00 E8 1A F1 [09:18:15]Write i2c OK [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: F0 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: F0 09 00 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: F0 09 00 E8 1A 00 DB 44 B8 67 7E 41 4F 65 AB [09:18:15]GetLastDocTimeStamp 1740129231 [09:18:15]current date 1740129499 [09:18:15]FM_GetShiftState [09:18:15]SAM_PROTO_GetShiftState [09:18:15]wFMCommunicate request_size=4 [09:18:15]MH_SAM_APDU [09:18:15]CAPDU: 80 13 01 00 [09:18:15]Write to MH i2c: E2 08 00 E9 1A 80 13 01 00 00 00 00 00 80 [09:18:15]Write i2c OK [09:18:15]MH_I2C_Read... [09:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:15]Read from MH i2c: E2 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 0E 00 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 0E 00 E9 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6E [09:18:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:18:15]wFMCommunicate OK [09:18:15]SAM_PROTO_GetShiftState done [09:18:15]FM_GetShiftState done [09:18:15]opened in 1740098043 [09:18:15]opened+sec_in_day 1740184443 [09:18:15]quantity*price = 50042 [09:18:15]sum+1 = 50043 [09:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.42 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 42 21.02.2025 09:18 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187548 ФПД: 52522446026621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T091819&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187548&fm=52522446026621&tin=02508201610067®Number=0000000000091857&sum=50042 [09:18:17]StoreToDocumentArchive [09:18:17]shift 649 fd 187548 [09:18:17]save to /storage/0649/doc_00187548 [09:18:17]save last doc name /storage/0649/doc_00187548 to /storage/kkm_last_doc_name [09:18:17]save OK [09:18:17]Clear old archive folders... [09:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:17]tlvbuf is 02044EC0 [09:18:17]SAM_PROTO_ClearQueue [09:18:17]wFMCommunicate request_size=4 [09:18:17]MH_SAM_APDU [09:18:17]CAPDU: 80 09 00 00 [09:18:17]Write to MH i2c: E2 08 00 F6 1A 80 09 00 00 00 00 00 00 82 [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:17]Read from MH i2c: E2 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 03 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 03 00 F6 1A 00 90 00 84 [09:18:17]RAPDU: 90 00 [09:18:17]wFMCommunicate OK [09:18:17]SAM_PROTO_ClearQueue done [09:18:17]KKMCreateOFDPacket [09:18:17]OFDProtocolAddRootSTLVToBuf [09:18:17]FM_MakeSignedData [09:18:17]FM_MakeSignedData [09:18:17]SAM_PROTO_SignData [09:18:17]wFMCommunicate request_size=4 [09:18:17]MH_SAM_APDU [09:18:17]CAPDU: 80 0D 01 02 [09:18:17]Write to MH i2c: E2 08 00 F7 1A 80 0D 01 02 00 00 00 00 8A [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:17]Read from MH i2c: E2 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 03 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 03 00 F7 1A 00 90 00 85 [09:18:17]RAPDU: 90 00 [09:18:17]wFMCommunicate OK [09:18:17]wFMCommunicate request_size=255 [09:18:17]MH_SAM_APDU [09:18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DB 44 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C DC 02 00 35 04 06 00 2F [09:18:17]Write to MH i2c: E2 02 01 F8 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DB 44 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C DC 02 00 35 04 06 00 2F 00 00 FF [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:17]Read from MH i2c: E2 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 03 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 03 00 F8 1A 00 90 00 86 [09:18:17]RAPDU: 90 00 [09:18:17]wFMCommunicate OK [09:18:17]wFMCommunicate request_size=10 [09:18:17]MH_SAM_APDU [09:18:17]CAPDU: 80 0D 02 02 05 C4 D5 BC F7 7D [09:18:17]Write to MH i2c: E2 0D 00 F9 1A 80 0D 02 02 05 00 C4 D5 BC F7 7D 00 00 60 [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:17]Read from MH i2c: E2 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 03 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 03 00 F9 1A 00 90 00 87 [09:18:17]RAPDU: 90 00 [09:18:17]wFMCommunicate OK [09:18:17]wFMCommunicate request_size=4 [09:18:17]MH_SAM_APDU [09:18:17]CAPDU: 80 0D 03 02 [09:18:17]Write to MH i2c: E2 08 00 FA 1A 80 0D 03 02 00 00 00 00 8F [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:17]Read from MH i2c: E2 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 0B 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 0B 00 FA 1A 00 88 76 F6 EE 64 61 A2 90 90 00 69 [09:18:17]RAPDU: 88 76 F6 EE 64 61 A2 90 90 00 [09:18:17]wFMCommunicate OK [09:18:17]SAM_PROTO_SignData done [09:18:17]FM_MakeSignedData done [09:18:17]CreateOFDProtocolMessage [09:18:17]wFMCommunicate request_size=4 [09:18:17]MH_SAM_APDU [09:18:17]CAPDU: 80 11 00 00 [09:18:17]Write to MH i2c: E2 08 00 FB 1A 80 11 00 00 00 00 00 00 8F [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:17]Read from MH i2c: E2 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 17 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 17 00 FB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [09:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:18:17]wFMCommunicate OK [09:18:17]CreateOFDProtocolMessage done [09:18:17]OFDSenderStorePacket 187548 [09:18:17]StoreOFDPacket docnum=187548 [09:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3F 7C 07 01 F0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DB 44 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C DC 02 00 35 04 06 00 2F C4 D5 BC F7 7D 88 76 F6 EE 64 61 A2 90 [09:18:17]CheckFolder [09:18:17]dirname=/storage/ofd_packets [09:18:17]CheckFolder done [09:18:17]ProducePacketName [09:18:17]name=ofd_packets/00187548 [09:18:17]NVStorageSaveData ofd_packets/00187548 [09:18:17]File name is /storage/ofd_packets/00187548 [09:18:17]Write 301 bytes [09:18:17]NVStorageSaveData done [09:18:17]OFDSenderStorePacket done [09:18:17]KKMCreateOFDPacket done [09:18:17]NVStorageSaveData kkm_last_timestamp [09:18:17]File name is /storage/kkm_last_timestamp [09:18:17]Write 4 bytes [09:18:17]NVStorageSaveData done [09:18:17]ExternCall_PrintAddStr [09:18:17]wPrintStart [09:18:17]Write to MH i2c: 01 00 00 FC 1A 16 [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: 01 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: 01 07 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: 01 07 00 FC 1A 00 00 00 00 00 FF 0F 2B [09:18:17]RasterBufferAndPrint [09:18:17]line Счет N : (1)412705 [09:18:17]line ИНН: 02508201610067 [09:18:17]line Контрольно-Кассовый Чек [09:18:17]line ПРОДАЖА [09:18:17]line ТРК (МРК, ГНК) : 43 [09:18:17]line Товар: 2710124500 [09:18:17]line Аи-95-К-5 [09:18:17]line 6.960 * 71.90 [09:18:17]line = 500.42 [09:18:17]line НДС 12% НСП 1% [09:18:17]line > о реализуемом товаре [09:18:17]line ИТОГО: 500.42 [09:18:17]line НСП 1% : 4.43 [09:18:17]line НДС 12% : 53.14 [09:18:17]line Наличными: 0.00 [09:18:17]line Безнал.: 500.42 [09:18:17]line Место: АЗС № 92 "Партнер Нефть" [09:18:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:18:17]line СНО: Общий режим [09:18:17]line Чек 42 21.02.2025 09:18 [09:18:17]line Смена: 649 ФФД: 1.0 [09:18:17]line ЗНМ: 0300000118 [09:18:17]line РНМ: 0000000000091857 [09:18:17]line Версия ККМ: 001 [09:18:17]line Платежная система: O! деньги [09:18:17]line ФМ: 0000000000871826 [09:18:17]line ФД: 187548 [09:18:17]line ФПД: 52522446026621 [09:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T091819&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187548&fm=52522446026621&tin=02508201610067®Number=0000000000091857&sum=50042 [09:18:17]OFD Sender: Processing packet 187548 [packets to send 49, broken 48] [09:18:17]ProducePacketName [09:18:17]name=ofd_packets/00187548 [09:18:17]OFD Sender: To server: pG, [09:18:17]CommunicateWithHost lk.salyk.kg:30040 [09:18:17]ConnectInit lk.salyk.kg [09:18:17]written 0, free lines is 4095 [09:18:18]Connected sock=10 [09:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3F 7C 07 01 F0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 DB 44 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C DC 02 00 35 04 06 00 2F C4 D5 BC F7 7D 88 76 F6 EE 64 61 A2 90 [09:18:18]Write to MH i2c: 01 00 00 26 1B 41 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: 01 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: 01 07 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: 01 07 00 26 1B 00 00 00 00 00 FD 0C 51 [09:18:18]RasterBufferAndPrint [09:18:18]line [09:18:18]line [09:18:18]line [09:18:18]line [09:18:18]line [09:18:18]written 0, free lines is 3331 [09:18:18]MH_Cut [09:18:18]Write to MH i2c: D1 01 00 2D 1B 01 1A [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: D1 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: D1 01 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: D1 01 00 2D 1B 00 19 [09:18:18]Write to MH i2c: 01 00 00 2E 1B 49 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09: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 38 32 36 4F 00 00 00 33 A2 47 00 80 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C DC 02 00 F4 03 04 00 2A EB B7 67 B6 04 01 00 00 60 2E EB 75 AF 9E 88 C0 [09:18:18]CommunicateWithHost err = 0 [09:18:18]CheckOFDResponse [09:18:18]1017 (14) - 77093643461234 [09:18:18]1041 (16) - 0000000000871826 [09:18:18]1040 (4) - 187548 [09:18:18]1012 (4) - 21.02.2025 02:55 [09:18:18]1206 (1) - 0 [09:18:18]OFD Sender: Remove packet 187548 [09:18:18]ProducePacketName [09:18:18]name=ofd_packets/00187548 [09:18:18]NVStorageDeleteData [09:18:18]OFD Sender: No OFD packet to send [09:18:19]*** Cut start [09:18:19]*** Partial cut [09:18:19]*** CUTSNS_PIN = 1 [09:18:19]*** CUTSNS_PIN = 0 [09:18:19]*** Brake cut motor [09:18:19]Read from MH i2c: 01 [09:18:19]MH_I2C_Read... [09:18:19]*** Stop cut motor [09:18:19]*** Cut end [09:18:19]Read from MH i2c: 01 07 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: 01 07 00 2E 1B 00 00 00 00 00 FF 0F 5E [09:18:19]process_action close_receipt done [09:18:19]requested_data is exist [09:18:19]produce_requested_data [09:18:19]requested_item fm.sn is exist - process it [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 11 00 00 [09:18:19]Write to MH i2c: E2 08 00 2F 1B 80 11 00 00 00 00 00 00 C4 [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 17 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 17 00 2F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [09:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:18:19]wFMCommunicate OK [09:18:19]requested_item fd.num is exist - process it [09:18:19]SAM_PROTO_GetFieldsCounters [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 13 00 00 [09:18:19]Write to MH i2c: E2 08 00 30 1B 80 13 00 00 00 00 00 00 C7 [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 62 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 62 00 30 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9C DC 02 00 0E 04 04 00 89 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 70 [09:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9C DC 02 00 0E 04 04 00 89 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:18:20]wFMCommunicate OK [09:18:20]SAM_PROTO_GetFieldsCounters done [09:18:20]requested_item shift.num is exist - process it [09:18:20]requested_item shift.opened is exist - process it [09:18:20]req_shift_opened [09:18:20]FM_GetShiftState [09:18:20]SAM_PROTO_GetShiftState [09:18:20]wFMCommunicate request_size=4 [09:18:20]MH_SAM_APDU [09:18:20]CAPDU: 80 13 01 00 [09:18:20]Write to MH i2c: E2 08 00 31 1B 80 13 01 00 00 00 00 00 C9 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:20]Read from MH i2c: E2 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0E 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: E2 0E 00 31 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B7 [09:18:20]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:18:20]wFMCommunicate OK [09:18:20]SAM_PROTO_GetShiftState done [09:18:20]FM_GetShiftState done [09:18:20]req_shift_opened done [09:18:20]requested_item shift.open_date is exist - process it [09:18:20]req_shift_open_date [09:18:20]req_shift_open_date done [09:18:20]produce_requested_data done [09:18:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187548,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:18:20]process_action_free close_receipt [09:18:20]json_value_free [09:18:20]json_value_free done [09:18:20]process_json_proto returns [09:18:20]Send response to host [09:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187548,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:18:20]free response buf [09:18:20]execute_script done [09:18:20]execute_script returns [09:18:20]free content buf [09:18:20]Sock 9.Close socket [09:18:20]Sock 9.Thread stoped [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:13]accept exits with 7 [09:22:13]New connection [09:22:13]New thread 3067223396 created [09:22:13]Thread 3067080036 joined [09:22:13]Waiting for new connection... [09:22:13] Sock 7.Parse request [09:22:13]Sock 7.Check first char [09:22:13]Sock 7.First char is OK [09:22:13]request: POST /json_proto HTTP/1.0 [09:22:13]Method: POST [09:22:13]URL: /json_proto [09:22:13]Method is POST - this is cgi request [09:22:13]url: /json_proto [09:22:13]query_string will be loaded in cgi processing [09:22:13]execute_cgi json_proto POST (null) [09:22:13]execute_cgi path=json_proto method=POST [09:22:13]POST find Content-Length [09:22:13]Host: 172.17.46.131:8080 [09:22:13]Content-Length: 677 [09:22:13]Content-Type: application/json [09:22:13] [09:22:13]POST finish read [09:22:13]Found Content-Length = 677 [09:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:13]execute_script... [09:22: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)412706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:13]POST & json_proto [09:22:13]process_json_proto [09:22:13]json parsed OK: [09:22:13]protocol is kg_v1.0 [09:22:13]action value=close_receipt [09:22:13]process_action close_receipt [09:22:13]cmd_close_receipt [09:22:13]MH_GetDate [09:22:13]Write to MH i2c: F0 00 00 32 1B 3C [09:22:13]Write i2c OK [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: F0 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: F0 09 00 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: F0 09 00 32 1B 00 C9 45 B8 67 7E 41 4F 65 E5 [09:22:13]GetLastDocTimeStamp 1740129499 [09:22:13]current date 1740129737 [09:22:13]FM_GetShiftState [09:22:13]SAM_PROTO_GetShiftState [09:22:13]wFMCommunicate request_size=4 [09:22:13]MH_SAM_APDU [09:22:13]CAPDU: 80 13 01 00 [09:22:13]Write to MH i2c: E2 08 00 33 1B 80 13 01 00 00 00 00 00 CB [09:22:13]Write i2c OK [09:22:13]MH_I2C_Read... [09:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:13]Read from MH i2c: E2 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: E2 0E 00 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: E2 0E 00 33 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B9 [09:22:13]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:22:13]wFMCommunicate OK [09:22:13]SAM_PROTO_GetShiftState done [09:22:13]FM_GetShiftState done [09:22:13]opened in 1740098043 [09:22:13]opened+sec_in_day 1740184443 [09:22:13]quantity*price = 30045 [09:22:13]sum+1 = 30047 [09:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 43 21.02.2025 09:22 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187549 ФПД: 139656101549417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092217&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187549&fm=139656101549417&tin=02508201610067®Number=0000000000091857&sum=30000 [09:22:14]StoreToDocumentArchive [09:22:14]shift 649 fd 187549 [09:22:14]save to /storage/0649/doc_00187549 [09:22:14]save last doc name /storage/0649/doc_00187549 to /storage/kkm_last_doc_name [09:22:14]save OK [09:22:14]Clear old archive folders... [09:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:14]tlvbuf is 02041040 [09:22:14]SAM_PROTO_ClearQueue [09:22:14]wFMCommunicate request_size=4 [09:22:14]MH_SAM_APDU [09:22:14]CAPDU: 80 09 00 00 [09:22:14]Write to MH i2c: E2 08 00 40 1B 80 09 00 00 00 00 00 00 CD [09:22:14]Write i2c OK [09:22:14]MH_I2C_Read... [09:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:14]Read from MH i2c: E2 [09:22:14]MH_I2C_Read... [09:22:14]Read from MH i2c: E2 03 00 [09:22:14]MH_I2C_Read... [09:22:14]Read from MH i2c: E2 03 00 40 1B 00 90 00 CF [09:22:14]RAPDU: 90 00 [09:22:14]wFMCommunicate OK [09:22:14]SAM_PROTO_ClearQueue done [09:22:14]KKMCreateOFDPacket [09:22:14]OFDProtocolAddRootSTLVToBuf [09:22:14]FM_MakeSignedData [09:22:14]FM_MakeSignedData [09:22:14]SAM_PROTO_SignData [09:22:14]wFMCommunicate request_size=4 [09:22:14]MH_SAM_APDU [09:22:14]CAPDU: 80 0D 01 02 [09:22:14]Write to MH i2c: E2 08 00 41 1B 80 0D 01 02 00 00 00 00 D5 [09:22:14]Write i2c OK [09:22:14]MH_I2C_Read... [09:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:14]Read from MH i2c: E2 [09:22:14]MH_I2C_Read... [09:22:14]Read from MH i2c: E2 03 00 [09:22:14]MH_I2C_Read... [09:22:14]Read from MH i2c: E2 03 00 41 1B 00 90 00 D0 [09:22:14]RAPDU: 90 00 [09:22:14]wFMCommunicate OK [09:22:14]wFMCommunicate request_size=255 [09:22:14]MH_SAM_APDU [09:22:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C9 45 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D DC 02 00 35 04 06 00 7F [09:22:14]Write to MH i2c: E2 02 01 42 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C9 45 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D DC 02 00 35 04 06 00 7F 00 00 F0 [09:22:14]Write i2c OK [09:22:14]MH_I2C_Read... [09:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:14]Read from MH i2c: E2 [09:22:14]MH_I2C_Read... [09:22:14]Read from MH i2c: E2 03 00 [09:22:14]MH_I2C_Read... [09:22:14]Read from MH i2c: E2 03 00 42 1B 00 90 00 D1 [09:22:14]RAPDU: 90 00 [09:22:14]wFMCommunicate OK [09:22:14]wFMCommunicate request_size=10 [09:22:14]MH_SAM_APDU [09:22:14]CAPDU: 80 0D 02 02 05 04 38 52 D5 69 [09:22:14]Write to MH i2c: E2 0D 00 43 1B 80 0D 02 02 05 00 04 38 52 D5 69 00 00 AE [09:22:14]Write i2c OK [09:22:14]MH_I2C_Read... [09:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:15]Read from MH i2c: E2 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 03 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [09:22:15]RAPDU: 90 00 [09:22:15]wFMCommunicate OK [09:22:15]wFMCommunicate request_size=4 [09:22:15]MH_SAM_APDU [09:22:15]CAPDU: 80 0D 03 02 [09:22:15]Write to MH i2c: E2 08 00 44 1B 80 0D 03 02 00 00 00 00 DA [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:15]Read from MH i2c: E2 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 0B 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 0B 00 44 1B 00 71 78 05 71 A0 97 B3 E9 90 00 0D [09:22:15]RAPDU: 71 78 05 71 A0 97 B3 E9 90 00 [09:22:15]wFMCommunicate OK [09:22:15]SAM_PROTO_SignData done [09:22:15]FM_MakeSignedData done [09:22:15]CreateOFDProtocolMessage [09:22:15]wFMCommunicate request_size=4 [09:22:15]MH_SAM_APDU [09:22:15]CAPDU: 80 11 00 00 [09:22:15]Write to MH i2c: E2 08 00 45 1B 80 11 00 00 00 00 00 00 DA [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:15]Read from MH i2c: E2 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 17 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 17 00 45 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2D [09:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:22:15]wFMCommunicate OK [09:22:15]CreateOFDProtocolMessage done [09:22:15]OFDSenderStorePacket 187549 [09:22:15]StoreOFDPacket docnum=187549 [09:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 30 83 07 01 F8 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C9 45 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D DC 02 00 35 04 06 00 7F 04 38 52 D5 69 71 78 05 71 A0 97 B3 E9 [09:22:15]CheckFolder [09:22:15]dirname=/storage/ofd_packets [09:22:15]CheckFolder done [09:22:15]ProducePacketName [09:22:15]name=ofd_packets/00187549 [09:22:15]NVStorageSaveData ofd_packets/00187549 [09:22:15]File name is /storage/ofd_packets/00187549 [09:22:15]Write 301 bytes [09:22:15]NVStorageSaveData done [09:22:15]OFDSenderStorePacket done [09:22:15]KKMCreateOFDPacket done [09:22:15]NVStorageSaveData kkm_last_timestamp [09:22:15]File name is /storage/kkm_last_timestamp [09:22:15]Write 4 bytes [09:22:15]NVStorageSaveData done [09:22:15]ExternCall_PrintAddStr [09:22:15]wPrintStart [09:22:15]Write to MH i2c: 01 00 00 46 1B 61 [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: 01 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: 01 07 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: 01 07 00 46 1B 00 00 00 00 00 FF 0F 76 [09:22:15]RasterBufferAndPrint [09:22:15]line Счет N : (1)412706 [09:22:15]line ИНН: 02508201610067 [09:22:15]line Контрольно-Кассовый Чек [09:22:15]line ПРОДАЖА [09:22:15]line ТРК (МРК, ГНК) : 32 [09:22:15]line Товар: 2710124130 [09:22:15]line Аи-92-К-2 [09:22:15]line 4.680 * 64.20 [09:22:15]line = 300.46 [09:22:15]line НДС 12% НСП 1% [09:22:15]line > о реализуемом товаре [09:22:15]line ОКРУГЛЕНИЕ: -0.46 [09:22:15]line ИТОГО: 300.00 [09:22:15]line Внесено: 300.00 [09:22:15]line СДАЧА: 0.00 [09:22:15]line НСП 1% : 2.66 [09:22:15]line НДС 12% : 31.91 [09:22:15]line Наличными: 300.00 [09:22:15]line Безнал.: 0.00 [09:22:15]line Место: АЗС № 92 "Партнер Нефть" [09:22:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:22:15]line СНО: Общий режим [09:22:15]line Чек 43 21.02.2025 09:22 [09:22:15]line Смена: 649 ФФД: 1.0 [09:22:15]line ЗНМ: 0300000118 [09:22:15]line РНМ: 0000000000091857 [09:22:15]line Версия ККМ: 001 [09:22:15]line ФМ: 0000000000871826 [09:22:15]line ФД: 187549 [09:22:15]line ФПД: 139656101549417 [09:22:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092217&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187549&fm=139656101549417&tin=02508201610067®Number=0000000000091857&sum=30000 [09:22:15]OFD Sender: Processing packet 187549 [packets to send 49, broken 48] [09:22:15]ProducePacketName [09:22:15]name=ofd_packets/00187549 [09:22:15]OFD Sender: To server: pG, [09:22:15]CommunicateWithHost lk.salyk.kg:30040 [09:22:15]ConnectInit lk.salyk.kg [09:22:15]written 0, free lines is 4095 [09:22:15]Write to MH i2c: 01 00 00 71 1B 8C [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: 01 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: 01 07 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: 01 07 00 71 1B 00 00 00 00 00 E4 0C 83 [09:22:15]RasterBufferAndPrint [09:22:15]line [09:22:15]line [09:22:15]line [09:22:15]line [09:22:15]line [09:22:15]written 0, free lines is 3306 [09:22:15]MH_Cut [09:22:15]Write to MH i2c: D1 01 00 78 1B 01 65 [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: D1 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: D1 01 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: D1 01 00 78 1B 00 64 [09:22:15]Write to MH i2c: 01 00 00 79 1B 94 [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:16]Connected sock=10 [09:22:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 30 83 07 01 F8 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C9 45 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D DC 02 00 35 04 06 00 7F 04 38 52 D5 69 71 78 05 71 A0 97 B3 E9 [09:22:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0D 5A 47 00 00 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D DC 02 00 F4 03 04 00 18 EC B7 67 B6 04 01 00 00 55 57 93 C3 82 48 79 42 [09:22:16]CommunicateWithHost err = 0 [09:22:16]CheckOFDResponse [09:22:16]1017 (14) - 77093643461234 [09:22:16]1041 (16) - 0000000000871826 [09:22:16]1040 (4) - 187549 [09:22:16]1012 (4) - 21.02.2025 02:59 [09:22:16]1206 (1) - 0 [09:22:16]OFD Sender: Remove packet 187549 [09:22:16]ProducePacketName [09:22:16]name=ofd_packets/00187549 [09:22:16]NVStorageDeleteData [09:22:16]*** Cut start [09:22:16]*** Partial cut [09:22:16]*** CUTSNS_PIN = 1 [09:22:16]*** CUTSNS_PIN = 0 [09:22:16]OFD Sender: No OFD packet to send [09:22:16]*** Brake cut motor [09:22:17]Read from MH i2c: 01 [09:22:17]MH_I2C_Read... [09:22:17]*** Stop cut motor [09:22:17]*** Cut end [09:22:17]Read from MH i2c: 01 07 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 79 1B 00 00 00 00 00 FF 0F A9 [09:22:17]process_action close_receipt done [09:22:17]requested_data is exist [09:22:17]produce_requested_data [09:22:17]requested_item fm.sn is exist - process it [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 11 00 00 [09:22:17]Write to MH i2c: E2 08 00 7A 1B 80 11 00 00 00 00 00 00 0F [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 17 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 17 00 7A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [09:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:22:17]wFMCommunicate OK [09:22:17]requested_item fd.num is exist - process it [09:22:17]SAM_PROTO_GetFieldsCounters [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 13 00 00 [09:22:17]Write to MH i2c: E2 08 00 7B 1B 80 13 00 00 00 00 00 00 12 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 62 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 62 00 7B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9D DC 02 00 0E 04 04 00 89 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 BF [09:22:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9D DC 02 00 0E 04 04 00 89 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:22:17]wFMCommunicate OK [09:22:17]SAM_PROTO_GetFieldsCounters done [09:22:17]requested_item shift.num is exist - process it [09:22:17]requested_item shift.opened is exist - process it [09:22:17]req_shift_opened [09:22:17]FM_GetShiftState [09:22:17]SAM_PROTO_GetShiftState [09:22:17]wFMCommunicate request_size=4 [09:22:17]MH_SAM_APDU [09:22:17]CAPDU: 80 13 01 00 [09:22:17]Write to MH i2c: E2 08 00 7C 1B 80 13 01 00 00 00 00 00 14 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:17]Read from MH i2c: E2 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 0E 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: E2 0E 00 7C 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 02 [09:22:17]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:22:17]wFMCommunicate OK [09:22:17]SAM_PROTO_GetShiftState done [09:22:17]FM_GetShiftState done [09:22:17]req_shift_opened done [09:22:17]requested_item shift.open_date is exist - process it [09:22:17]req_shift_open_date [09:22:17]req_shift_open_date done [09:22:17]produce_requested_data done [09:22:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187549,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:22:17]process_action_free close_receipt [09:22:17]json_value_free [09:22:17]json_value_free done [09:22:17]process_json_proto returns [09:22:17]Send response to host [09:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187549,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:22:17]free response buf [09:22:17]execute_script done [09:22:17]execute_script returns [09:22:17]free content buf [09:22:17]Sock 7.Close socket [09:22:17]Sock 7.Thread stoped [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]accept exits with 9 [09:24:01]New connection [09:24:01]New thread 3067080036 created [09:24:01]Thread 3067223396 joined [09:24:01]Waiting for new connection... [09:24:01] Sock 9.Parse request [09:24:01]Sock 9.Check first char [09:24:01]Sock 9.First char is OK [09:24:01]request: POST /json_proto HTTP/1.0 [09:24:01]Method: POST [09:24:01]URL: /json_proto [09:24:01]Method is POST - this is cgi request [09:24:01]url: /json_proto [09:24:01]query_string will be loaded in cgi processing [09:24:01]execute_cgi json_proto POST (null) [09:24:01]execute_cgi path=json_proto method=POST [09:24:01]POST find Content-Length [09:24:01]Host: 172.17.46.131:8080 [09:24:01]Content-Length: 799 [09:24:01]Content-Type: application/json [09:24:01] [09:24:01]POST finish read [09:24:01]Found Content-Length = 799 [09:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:01]execute_script... [09:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:01]POST & json_proto [09:24:01]process_json_proto [09:24:01]json parsed OK: [09:24:01]protocol is kg_v1.0 [09:24:01]action value=close_receipt [09:24:01]process_action close_receipt [09:24:01]cmd_close_receipt [09:24:01]MH_GetDate [09:24:01]Write to MH i2c: F0 00 00 7D 1B 87 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: F0 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: F0 09 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: F0 09 00 7D 1B 00 35 46 B8 67 7E 41 4F 65 9D [09:24:01]GetLastDocTimeStamp 1740129737 [09:24:01]current date 1740129845 [09:24:01]FM_GetShiftState [09:24:01]SAM_PROTO_GetShiftState [09:24:01]wFMCommunicate request_size=4 [09:24:01]MH_SAM_APDU [09:24:01]CAPDU: 80 13 01 00 [09:24:01]Write to MH i2c: E2 08 00 7E 1B 80 13 01 00 00 00 00 00 16 [09:24:01]Write i2c OK [09:24:01]MH_I2C_Read... [09:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:01]Read from MH i2c: E2 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 0E 00 [09:24:01]MH_I2C_Read... [09:24:01]Read from MH i2c: E2 0E 00 7E 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 04 [09:24:01]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:24:01]wFMCommunicate OK [09:24:01]SAM_PROTO_GetShiftState done [09:24:01]FM_GetShiftState done [09:24:01]opened in 1740098043 [09:24:01]opened+sec_in_day 1740184443 [09:24:01]quantity*price = 100042 [09:24:01]sum+1 = 100044 [09:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 44 21.02.2025 09:24 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187550 ФПД: 203694976238843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187550&fm=203694976238843&tin=02508201610067®Number=0000000000091857&sum=100043 [09:24:02]StoreToDocumentArchive [09:24:02]shift 649 fd 187550 [09:24:02]save to /storage/0649/doc_00187550 [09:24:02]save last doc name /storage/0649/doc_00187550 to /storage/kkm_last_doc_name [09:24:02]save OK [09:24:02]Clear old archive folders... [09:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:24:02]tlvbuf is 02082070 [09:24:02]SAM_PROTO_ClearQueue [09:24:02]wFMCommunicate request_size=4 [09:24:02]MH_SAM_APDU [09:24:02]CAPDU: 80 09 00 00 [09:24:02]Write to MH i2c: E2 08 00 8B 1B 80 09 00 00 00 00 00 00 18 [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:02]Read from MH i2c: E2 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 03 00 [09:24:02]MH_I2C_Read... [09:24:02]Read from MH i2c: E2 03 00 8B 1B 00 90 00 1A [09:24:02]RAPDU: 90 00 [09:24:02]wFMCommunicate OK [09:24:02]SAM_PROTO_ClearQueue done [09:24:02]KKMCreateOFDPacket [09:24:02]OFDProtocolAddRootSTLVToBuf [09:24:02]FM_MakeSignedData [09:24:02]FM_MakeSignedData [09:24:02]SAM_PROTO_SignData [09:24:02]wFMCommunicate request_size=4 [09:24:02]MH_SAM_APDU [09:24:02]CAPDU: 80 0D 01 02 [09:24:02]Write to MH i2c: E2 08 00 8C 1B 80 0D 01 02 00 00 00 00 20 [09:24:02]Write i2c OK [09:24:02]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 8C 1B 00 90 00 1B [09:24:03]RAPDU: 90 00 [09:24:03]wFMCommunicate OK [09:24:03]wFMCommunicate request_size=255 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 35 46 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E DC 02 00 35 04 06 00 B9 42 6E B3 [09:24:03]Write to MH i2c: E2 02 01 8D 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 35 46 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E DC 02 00 35 04 06 00 B9 42 6E B3 00 00 03 [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [09:24:03]RAPDU: 90 00 [09:24:03]wFMCommunicate OK [09:24:03]wFMCommunicate request_size=7 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 0D 02 02 02 84 FB [09:24:03]Write to MH i2c: E2 0A 00 8E 1B 80 0D 02 02 02 00 84 FB 00 00 A6 [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [09:24:03]RAPDU: 90 00 [09:24:03]wFMCommunicate OK [09:24:03]wFMCommunicate request_size=4 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 0D 03 02 [09:24:03]Write to MH i2c: E2 08 00 8F 1B 80 0D 03 02 00 00 00 00 25 [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 0B 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 0B 00 8F 1B 00 92 8E 25 2B 7C FA B3 F7 90 00 B6 [09:24:03]RAPDU: 92 8E 25 2B 7C FA B3 F7 90 00 [09:24:03]wFMCommunicate OK [09:24:03]SAM_PROTO_SignData done [09:24:03]FM_MakeSignedData done [09:24:03]CreateOFDProtocolMessage [09:24:03]wFMCommunicate request_size=4 [09:24:03]MH_SAM_APDU [09:24:03]CAPDU: 80 11 00 00 [09:24:03]Write to MH i2c: E2 08 00 90 1B 80 11 00 00 00 00 00 00 25 [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:03]Read from MH i2c: E2 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 17 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: E2 17 00 90 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 78 [09:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:24:03]wFMCommunicate OK [09:24:03]CreateOFDProtocolMessage done [09:24:03]OFDSenderStorePacket 187550 [09:24:03]StoreOFDPacket docnum=187550 [09:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8F 87 04 01 C3 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 35 46 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E DC 02 00 35 04 06 00 B9 42 6E B3 84 FB 92 8E 25 2B 7C FA B3 F7 [09:24:03]CheckFolder [09:24:03]dirname=/storage/ofd_packets [09:24:03]CheckFolder done [09:24:03]ProducePacketName [09:24:03]name=ofd_packets/00187550 [09:24:03]NVStorageSaveData ofd_packets/00187550 [09:24:03]File name is /storage/ofd_packets/00187550 [09:24:03]Write 298 bytes [09:24:03]NVStorageSaveData done [09:24:03]OFDSenderStorePacket done [09:24:03]KKMCreateOFDPacket done [09:24:03]NVStorageSaveData kkm_last_timestamp [09:24:03]File name is /storage/kkm_last_timestamp [09:24:03]Write 4 bytes [09:24:03]NVStorageSaveData done [09:24:03]ExternCall_PrintAddStr [09:24:03]wPrintStart [09:24:03]Write to MH i2c: 01 00 00 91 1B AC [09:24:03]Write i2c OK [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: 01 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: 01 07 00 [09:24:03]MH_I2C_Read... [09:24:03]Read from MH i2c: 01 07 00 91 1B 00 00 00 00 00 FF 0F C1 [09:24:03]RasterBufferAndPrint [09:24:03]line Счет N : (1)412707 [09:24:03]line ИНН: 02508201610067 [09:24:03]line Контрольно-Кассовый Чек [09:24:03]line ПРОДАЖА [09:24:03]line ТРК (МРК, ГНК) : 5 [09:24:03]line Товар: 2710194210 [09:24:03]line ДТ-К-5 [09:24:03]line 13.780 * 72.60 [09:24:03]line = 1000.43 [09:24:03]line НДС 12% НСП 1% [09:24:03]line > о реализуемом товаре [09:24:03]line ИТОГО: 1000.43 [09:24:03]line НСП 1% : 8.85 [09:24:03]line НДС 12% : 106.24 [09:24:03]line Наличными: 0.00 [09:24:03]line Безнал.: 1000.43 [09:24:03]line Место: АЗС № 92 "Партнер Нефть" [09:24:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:24:03]line СНО: Общий режим [09:24:03]line Чек 44 21.02.2025 09:24 [09:24:03]line Смена: 649 ФФД: 1.0 [09:24:03]line ЗНМ: 0300000118 [09:24:03]line РНМ: 0000000000091857 [09:24:03]line Версия ККМ: 001 [09:24:03]line Платежная система: O! деньги [09:24:03]line ФМ: 0000000000871826 [09:24:03]line ФД: 187550 [09:24:03]line ФПД: 203694976238843 [09:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187550&fm=203694976238843&tin=02508201610067®Number=0000000000091857&sum=100043 [09:24:03]OFD Sender: Processing packet 187550 [packets to send 49, broken 48] [09:24:03]ProducePacketName [09:24:03]name=ofd_packets/00187550 [09:24:03]OFD Sender: To server: pG, [09:24:03]CommunicateWithHost lk.salyk.kg:30040 [09:24:03]ConnectInit lk.salyk.kg [09:24:03]written 0, free lines is 4095 [09:24:03]Connected sock=10 [09:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8F 87 04 01 C3 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 35 46 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E DC 02 00 35 04 06 00 B9 42 6E B3 84 FB 92 8E 25 2B 7C FA B3 F7 [09:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 ED CB 47 00 A6 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E DC 02 00 F4 03 04 00 83 EC B7 67 B6 04 01 00 00 53 5A E0 53 F8 29 E4 06 [09:24:04]CommunicateWithHost err = 0 [09:24:04]CheckOFDResponse [09:24:04]1017 (14) - 77093643461234 [09:24:04]1041 (16) - 0000000000871826 [09:24:04]1040 (4) - 187550 [09:24:04]1012 (4) - 21.02.2025 03:01 [09:24:04]1206 (1) - 0 [09:24:04]OFD Sender: Remove packet 187550 [09:24:04]ProducePacketName [09:24:04]name=ofd_packets/00187550 [09:24:04]NVStorageDeleteData [09:24:04]Write to MH i2c: 01 00 00 BB 1B D6 [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: 01 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: 01 07 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: 01 07 00 BB 1B 00 00 00 00 00 18 0D 02 [09:24:04]RasterBufferAndPrint [09:24:04]line [09:24:04]line [09:24:04]line [09:24:04]line [09:24:04]line [09:24:04]written 0, free lines is 3358 [09:24:04]MH_Cut [09:24:04]Write to MH i2c: D1 01 00 C2 1B 01 AF [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: D1 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: D1 01 00 [09:24:04]MH_I2C_Read... [09:24:04]Read from MH i2c: D1 01 00 C2 1B 00 AE [09:24:04]Write to MH i2c: 01 00 00 C3 1B DE [09:24:04]Write i2c OK [09:24:04]MH_I2C_Read... [09:24:04]OFD Sender: No OFD packet to send [09:24:04]*** Cut start [09:24:04]*** Partial cut [09:24:04]*** CUTSNS_PIN = 1 [09:24:04]*** CUTSNS_PIN = 0 [09:24:05]*** Brake cut motor [09:24:05]Read from MH i2c: 01 [09:24:05]MH_I2C_Read... [09:24:05]*** Stop cut motor [09:24:05]*** Cut end [09:24:05]Read from MH i2c: 01 07 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: 01 07 00 C3 1B 00 00 00 00 00 FF 0F F3 [09:24:05]process_action close_receipt done [09:24:05]requested_data is exist [09:24:05]produce_requested_data [09:24:05]requested_item fm.sn is exist - process it [09:24:05]wFMCommunicate request_size=4 [09:24:05]MH_SAM_APDU [09:24:05]CAPDU: 80 11 00 00 [09:24:05]Write to MH i2c: E2 08 00 C4 1B 80 11 00 00 00 00 00 00 59 [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:05]Read from MH i2c: E2 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 17 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 17 00 C4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AC [09:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:24:05]wFMCommunicate OK [09:24:05]requested_item fd.num is exist - process it [09:24:05]SAM_PROTO_GetFieldsCounters [09:24:05]wFMCommunicate request_size=4 [09:24:05]MH_SAM_APDU [09:24:05]CAPDU: 80 13 00 00 [09:24:05]Write to MH i2c: E2 08 00 C5 1B 80 13 00 00 00 00 00 00 5C [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:05]Read from MH i2c: E2 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 62 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 62 00 C5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9E DC 02 00 0E 04 04 00 89 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 0D [09:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9E DC 02 00 0E 04 04 00 89 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:24:05]wFMCommunicate OK [09:24:05]SAM_PROTO_GetFieldsCounters done [09:24:05]requested_item shift.num is exist - process it [09:24:05]requested_item shift.opened is exist - process it [09:24:05]req_shift_opened [09:24:05]FM_GetShiftState [09:24:05]SAM_PROTO_GetShiftState [09:24:05]wFMCommunicate request_size=4 [09:24:05]MH_SAM_APDU [09:24:05]CAPDU: 80 13 01 00 [09:24:05]Write to MH i2c: E2 08 00 C6 1B 80 13 01 00 00 00 00 00 5E [09:24:05]Write i2c OK [09:24:05]MH_I2C_Read... [09:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:05]Read from MH i2c: E2 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 0E 00 [09:24:05]MH_I2C_Read... [09:24:05]Read from MH i2c: E2 0E 00 C6 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4C [09:24:05]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:24:05]wFMCommunicate OK [09:24:05]SAM_PROTO_GetShiftState done [09:24:05]FM_GetShiftState done [09:24:05]req_shift_opened done [09:24:05]requested_item shift.open_date is exist - process it [09:24:05]req_shift_open_date [09:24:05]req_shift_open_date done [09:24:05]produce_requested_data done [09:24:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187550,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:24:05]process_action_free close_receipt [09:24:05]json_value_free [09:24:05]json_value_free done [09:24:05]process_json_proto returns [09:24:05]Send response to host [09:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187550,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:24:05]free response buf [09:24:05]execute_script done [09:24:05]execute_script returns [09:24:05]free content buf [09:24:05]Sock 9.Close socket [09:24:05]Sock 9.Thread stoped [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:16]accept exits with 7 [09:28:16]New connection [09:28:16]New thread 3067223396 created [09:28:16]Thread 3067080036 joined [09:28:16]Waiting for new connection... [09:28:16] Sock 7.Parse request [09:28:16]Sock 7.Check first char [09:28:16]Sock 7.First char is OK [09:28:16]request: POST /json_proto HTTP/1.0 [09:28:16]Method: POST [09:28:16]URL: /json_proto [09:28:16]Method is POST - this is cgi request [09:28:16]url: /json_proto [09:28:16]query_string will be loaded in cgi processing [09:28:16]execute_cgi json_proto POST (null) [09:28:16]execute_cgi path=json_proto method=POST [09:28:16]POST find Content-Length [09:28:16]Host: 172.17.46.131:8080 [09:28:16]Content-Length: 677 [09:28:16]Content-Type: application/json [09:28:16] [09:28:16]POST finish read [09:28:16]Found Content-Length = 677 [09:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:16]execute_script... [09:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:16]POST & json_proto [09:28:16]process_json_proto [09:28:16]json parsed OK: [09:28:16]protocol is kg_v1.0 [09:28:16]action value=close_receipt [09:28:16]process_action close_receipt [09:28:16]cmd_close_receipt [09:28:16]MH_GetDate [09:28:16]Write to MH i2c: F0 00 00 C7 1B D1 [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: F0 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: F0 09 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: F0 09 00 C7 1B 00 34 47 B8 67 7E 41 4F 65 E7 [09:28:16]GetLastDocTimeStamp 1740129845 [09:28:16]current date 1740130100 [09:28:16]FM_GetShiftState [09:28:16]SAM_PROTO_GetShiftState [09:28:16]wFMCommunicate request_size=4 [09:28:16]MH_SAM_APDU [09:28:16]CAPDU: 80 13 01 00 [09:28:16]Write to MH i2c: E2 08 00 C8 1B 80 13 01 00 00 00 00 00 60 [09:28:16]Write i2c OK [09:28:16]MH_I2C_Read... [09:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:16]Read from MH i2c: E2 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 0E 00 [09:28:16]MH_I2C_Read... [09:28:16]Read from MH i2c: E2 0E 00 C8 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4E [09:28:16]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:28:16]wFMCommunicate OK [09:28:16]SAM_PROTO_GetShiftState done [09:28:16]FM_GetShiftState done [09:28:16]opened in 1740098043 [09:28:16]opened+sec_in_day 1740184443 [09:28:16]quantity*price = 50011 [09:28:16]sum+1 = 50013 [09:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 45 21.02.2025 09:28 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187551 ФПД: 19578674381502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092820&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187551&fm=19578674381502&tin=02508201610067®Number=0000000000091857&sum=50000 [09:28:17]StoreToDocumentArchive [09:28:17]shift 649 fd 187551 [09:28:17]save to /storage/0649/doc_00187551 [09:28:17]save last doc name /storage/0649/doc_00187551 to /storage/kkm_last_doc_name [09:28:17]save OK [09:28:17]Clear old archive folders... [09:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:17]tlvbuf is 0208DD50 [09:28:17]SAM_PROTO_ClearQueue [09:28:17]wFMCommunicate request_size=4 [09:28:17]MH_SAM_APDU [09:28:17]CAPDU: 80 09 00 00 [09:28:17]Write to MH i2c: E2 08 00 D5 1B 80 09 00 00 00 00 00 00 62 [09:28:17]Write i2c OK [09:28:17]MH_I2C_Read... [09:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:17]Read from MH i2c: E2 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 03 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 03 00 D5 1B 00 90 00 64 [09:28:17]RAPDU: 90 00 [09:28:17]wFMCommunicate OK [09:28:17]SAM_PROTO_ClearQueue done [09:28:17]KKMCreateOFDPacket [09:28:17]OFDProtocolAddRootSTLVToBuf [09:28:17]FM_MakeSignedData [09:28:17]FM_MakeSignedData [09:28:17]SAM_PROTO_SignData [09:28:17]wFMCommunicate request_size=4 [09:28:17]MH_SAM_APDU [09:28:17]CAPDU: 80 0D 01 02 [09:28:17]Write to MH i2c: E2 08 00 D6 1B 80 0D 01 02 00 00 00 00 6A [09:28:17]Write i2c OK [09:28:17]MH_I2C_Read... [09:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:17]Read from MH i2c: E2 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 03 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 03 00 D6 1B 00 90 00 65 [09:28:17]RAPDU: 90 00 [09:28:17]wFMCommunicate OK [09:28:17]wFMCommunicate request_size=255 [09:28:17]MH_SAM_APDU [09:28:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 34 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F DC 02 00 35 04 06 00 11 [09:28:17]Write to MH i2c: E2 02 01 D7 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 34 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F DC 02 00 35 04 06 00 11 00 00 E3 [09:28:17]Write i2c OK [09:28:17]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 D7 1B 00 90 00 66 [09:28:18]RAPDU: 90 00 [09:28:18]wFMCommunicate OK [09:28:18]wFMCommunicate request_size=10 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 0D 02 02 05 CE 83 EE 82 BE [09:28:18]Write to MH i2c: E2 0D 00 D8 1B 80 0D 02 02 05 00 CE 83 EE 82 BE 00 00 F6 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [09:28:18]RAPDU: 90 00 [09:28:18]wFMCommunicate OK [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 0D 03 02 [09:28:18]Write to MH i2c: E2 08 00 D9 1B 80 0D 03 02 00 00 00 00 6F [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0B 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 0B 00 D9 1B 00 EF B0 83 BC 44 49 61 C4 90 00 00 [09:28:18]RAPDU: EF B0 83 BC 44 49 61 C4 90 00 [09:28:18]wFMCommunicate OK [09:28:18]SAM_PROTO_SignData done [09:28:18]FM_MakeSignedData done [09:28:18]CreateOFDProtocolMessage [09:28:18]wFMCommunicate request_size=4 [09:28:18]MH_SAM_APDU [09:28:18]CAPDU: 80 11 00 00 [09:28:18]Write to MH i2c: E2 08 00 DA 1B 80 11 00 00 00 00 00 00 6F [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:18]Read from MH i2c: E2 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 17 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: E2 17 00 DA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C2 [09:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:28:18]wFMCommunicate OK [09:28:18]CreateOFDProtocolMessage done [09:28:18]OFDSenderStorePacket 187551 [09:28:18]StoreOFDPacket docnum=187551 [09:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D7 76 07 01 79 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 34 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F DC 02 00 35 04 06 00 11 CE 83 EE 82 BE EF B0 83 BC 44 49 61 C4 [09:28:18]CheckFolder [09:28:18]dirname=/storage/ofd_packets [09:28:18]CheckFolder done [09:28:18]ProducePacketName [09:28:18]name=ofd_packets/00187551 [09:28:18]NVStorageSaveData ofd_packets/00187551 [09:28:18]File name is /storage/ofd_packets/00187551 [09:28:18]Write 301 bytes [09:28:18]NVStorageSaveData done [09:28:18]OFDSenderStorePacket done [09:28:18]KKMCreateOFDPacket done [09:28:18]NVStorageSaveData kkm_last_timestamp [09:28:18]File name is /storage/kkm_last_timestamp [09:28:18]Write 4 bytes [09:28:18]NVStorageSaveData done [09:28:18]ExternCall_PrintAddStr [09:28:18]wPrintStart [09:28:18]Write to MH i2c: 01 00 00 DB 1B F6 [09:28:18]Write i2c OK [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: 01 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: 01 07 00 [09:28:18]MH_I2C_Read... [09:28:18]Read from MH i2c: 01 07 00 DB 1B 00 00 00 00 00 FF 0F 0B [09:28:18]RasterBufferAndPrint [09:28:18]line Счет N : (1)412710 [09:28:18]line ИНН: 02508201610067 [09:28:18]line Контрольно-Кассовый Чек [09:28:18]line ПРОДАЖА [09:28:18]line ТРК (МРК, ГНК) : 32 [09:28:18]line Товар: 2710124130 [09:28:18]line Аи-92-К-2 [09:28:18]line 7.790 * 64.20 [09:28:18]line = 500.12 [09:28:18]line НДС 12% НСП 1% [09:28:18]line > о реализуемом товаре [09:28:18]line ОКРУГЛЕНИЕ: -0.12 [09:28:18]line ИТОГО: 500.00 [09:28:18]line Внесено: 500.00 [09:28:18]line СДАЧА: 0.00 [09:28:18]line НСП 1% : 4.43 [09:28:18]line НДС 12% : 53.11 [09:28:18]line Наличными: 500.00 [09:28:18]line Безнал.: 0.00 [09:28:18]line Место: АЗС № 92 "Партнер Нефть" [09:28:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:28:18]line СНО: Общий режим [09:28:18]line Чек 45 21.02.2025 09:28 [09:28:18]line Смена: 649 ФФД: 1.0 [09:28:18]line ЗНМ: 0300000118 [09:28:18]line РНМ: 0000000000091857 [09:28:18]line Версия ККМ: 001 [09:28:18]line ФМ: 0000000000871826 [09:28:18]line ФД: 187551 [09:28:18]line ФПД: 19578674381502 [09:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092820&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187551&fm=19578674381502&tin=02508201610067®Number=0000000000091857&sum=50000 [09:28:18]written 0, free lines is 4095 [09:28:18]OFD Sender: Processing packet 187551 [packets to send 49, broken 48] [09:28:18]ProducePacketName [09:28:18]name=ofd_packets/00187551 [09:28:18]OFD Sender: To server: pG, [09:28:18]CommunicateWithHost lk.salyk.kg:30040 [09:28:18]ConnectInit lk.salyk.kg [09:28:18]Connected sock=10 [09:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D7 76 07 01 79 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 34 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F DC 02 00 35 04 06 00 11 CE 83 EE 82 BE EF B0 83 BC 44 49 61 C4 [09:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 87 C2 47 00 A0 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 38 32 36 10 04 04 00 9F DC 02 00 F4 03 04 00 82 ED B7 67 B6 04 01 00 00 AA D0 52 EF 04 AC E4 0D [09:28:19]CommunicateWithHost err = 0 [09:28:19]CheckOFDResponse [09:28:19]1017 (14) - 77093643461234 [09:28:19]1041 (16) - 0000000000871826 [09:28:19]1040 (4) - 187551 [09:28:19]1012 (4) - 21.02.2025 03:05 [09:28:19]1206 (1) - 0 [09:28:19]OFD Sender: Remove packet 187551 [09:28:19]ProducePacketName [09:28:19]name=ofd_packets/00187551 [09:28:19]NVStorageDeleteData [09:28:19]Write to MH i2c: 01 00 00 06 1C 22 [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: 01 07 00 06 1C 00 00 00 00 00 F3 0C 28 [09:28:19]RasterBufferAndPrint [09:28:19]line [09:28:19]line [09:28:19]line [09:28:19]line [09:28:19]line [09:28:19]written 0, free lines is 3321 [09:28:19]MH_Cut [09:28:19]Write to MH i2c: D1 01 00 0D 1C 01 FB [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: D1 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: D1 01 00 [09:28:19]MH_I2C_Read... [09:28:19]Read from MH i2c: D1 01 00 0D 1C 00 FA [09:28:19]Write to MH i2c: 01 00 00 0E 1C 2A [09:28:19]Write i2c OK [09:28:19]MH_I2C_Read... [09:28:19]OFD Sender: No OFD packet to send [09:28:19]*** Cut start [09:28:19]*** Partial cut [09:28:19]*** CUTSNS_PIN = 1 [09:28:19]*** CUTSNS_PIN = 0 [09:28:20]*** Brake cut motor [09:28:20]Read from MH i2c: 01 [09:28:20]MH_I2C_Read... [09:28:20]*** Stop cut motor [09:28:20]*** Cut end [09:28:20]Read from MH i2c: 01 07 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: 01 07 00 0E 1C 00 00 00 00 00 FF 0F 3F [09:28:20]process_action close_receipt done [09:28:20]requested_data is exist [09:28:20]produce_requested_data [09:28:20]requested_item fm.sn is exist - process it [09:28:20]wFMCommunicate request_size=4 [09:28:20]MH_SAM_APDU [09:28:20]CAPDU: 80 11 00 00 [09:28:20]Write to MH i2c: E2 08 00 0F 1C 80 11 00 00 00 00 00 00 A5 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:20]Read from MH i2c: E2 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 17 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 17 00 0F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [09:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:28:20]wFMCommunicate OK [09:28:20]requested_item fd.num is exist - process it [09:28:20]SAM_PROTO_GetFieldsCounters [09:28:20]wFMCommunicate request_size=4 [09:28:20]MH_SAM_APDU [09:28:20]CAPDU: 80 13 00 00 [09:28:20]Write to MH i2c: E2 08 00 10 1C 80 13 00 00 00 00 00 00 A8 [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:20]Read from MH i2c: E2 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 62 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 62 00 10 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9F DC 02 00 0E 04 04 00 89 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 5D [09:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9F DC 02 00 0E 04 04 00 89 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:28:20]wFMCommunicate OK [09:28:20]SAM_PROTO_GetFieldsCounters done [09:28:20]requested_item shift.num is exist - process it [09:28:20]requested_item shift.opened is exist - process it [09:28:20]req_shift_opened [09:28:20]FM_GetShiftState [09:28:20]SAM_PROTO_GetShiftState [09:28:20]wFMCommunicate request_size=4 [09:28:20]MH_SAM_APDU [09:28:20]CAPDU: 80 13 01 00 [09:28:20]Write to MH i2c: E2 08 00 11 1C 80 13 01 00 00 00 00 00 AA [09:28:20]Write i2c OK [09:28:20]MH_I2C_Read... [09:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:20]Read from MH i2c: E2 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 0E 00 [09:28:20]MH_I2C_Read... [09:28:20]Read from MH i2c: E2 0E 00 11 1C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 98 [09:28:20]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:28:20]wFMCommunicate OK [09:28:20]SAM_PROTO_GetShiftState done [09:28:20]FM_GetShiftState done [09:28:20]req_shift_opened done [09:28:20]requested_item shift.open_date is exist - process it [09:28:20]req_shift_open_date [09:28:20]req_shift_open_date done [09:28:20]produce_requested_data done [09:28:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187551,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:28:20]process_action_free close_receipt [09:28:20]json_value_free [09:28:20]json_value_free done [09:28:20]process_json_proto returns [09:28:20]Send response to host [09:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187551,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:28:20]free response buf [09:28:20]execute_script done [09:28:20]execute_script returns [09:28:20]free content buf [09:28:20]Sock 7.Close socket [09:28:20]Sock 7.Thread stoped [09:28:21]accept exits with 9 [09:28:21]New connection [09:28:21]New thread 3067080036 created [09:28:21]Thread 3067223396 joined [09:28:21]Waiting for new connection... [09:28:21] Sock 9.Parse request [09:28:21]Sock 9.Check first char [09:28:21]Sock 9.First char is OK [09:28:21]request: POST /json_proto HTTP/1.0 [09:28:21]Method: POST [09:28:21]URL: /json_proto [09:28:21]Method is POST - this is cgi request [09:28:21]url: /json_proto [09:28:21]query_string will be loaded in cgi processing [09:28:21]execute_cgi json_proto POST (null) [09:28:21]execute_cgi path=json_proto method=POST [09:28:21]POST find Content-Length [09:28:21]Host: 172.17.46.131:8080 [09:28:21]Content-Length: 677 [09:28:21]Content-Type: application/json [09:28:21] [09:28:21]POST finish read [09:28:21]Found Content-Length = 677 [09:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:21]execute_script... [09:28:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:21]POST & json_proto [09:28:21]process_json_proto [09:28:21]json parsed OK: [09:28:21]protocol is kg_v1.0 [09:28:21]action value=close_receipt [09:28:21]process_action close_receipt [09:28:21]cmd_close_receipt [09:28:21]MH_GetDate [09:28:21]Write to MH i2c: F0 00 00 12 1C 1D [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: F0 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: F0 09 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: F0 09 00 12 1C 00 39 47 B8 67 7E 41 4F 65 38 [09:28:21]GetLastDocTimeStamp 1740130100 [09:28:21]current date 1740130105 [09:28:21]FM_GetShiftState [09:28:21]SAM_PROTO_GetShiftState [09:28:21]wFMCommunicate request_size=4 [09:28:21]MH_SAM_APDU [09:28:21]CAPDU: 80 13 01 00 [09:28:21]Write to MH i2c: E2 08 00 13 1C 80 13 01 00 00 00 00 00 AC [09:28:21]Write i2c OK [09:28:21]MH_I2C_Read... [09:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:21]Read from MH i2c: E2 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 0E 00 [09:28:21]MH_I2C_Read... [09:28:21]Read from MH i2c: E2 0E 00 13 1C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 9A [09:28:21]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:28:21]wFMCommunicate OK [09:28:21]SAM_PROTO_GetShiftState done [09:28:21]FM_GetShiftState done [09:28:21]opened in 1740098043 [09:28:21]opened+sec_in_day 1740184443 [09:28:21]quantity*price = 50011 [09:28:21]sum+1 = 50013 [09:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 46 21.02.2025 09:28 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187552 ФПД: 238627957895588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092825&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187552&fm=238627957895588&tin=02508201610067®Number=0000000000091857&sum=50000 [09:28:22]StoreToDocumentArchive [09:28:22]shift 649 fd 187552 [09:28:22]save to /storage/0649/doc_00187552 [09:28:22]save last doc name /storage/0649/doc_00187552 to /storage/kkm_last_doc_name [09:28:22]save OK [09:28:22]Clear old archive folders... [09:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:22]tlvbuf is 02117180 [09:28:22]SAM_PROTO_ClearQueue [09:28:22]wFMCommunicate request_size=4 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 09 00 00 [09:28:22]Write to MH i2c: E2 08 00 20 1C 80 09 00 00 00 00 00 00 AE [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [09:28:22]RAPDU: 90 00 [09:28:22]wFMCommunicate OK [09:28:22]SAM_PROTO_ClearQueue done [09:28:22]KKMCreateOFDPacket [09:28:22]OFDProtocolAddRootSTLVToBuf [09:28:22]FM_MakeSignedData [09:28:22]FM_MakeSignedData [09:28:22]SAM_PROTO_SignData [09:28:22]wFMCommunicate request_size=4 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 0D 01 02 [09:28:22]Write to MH i2c: E2 08 00 21 1C 80 0D 01 02 00 00 00 00 B6 [09:28:22]Write i2c OK [09:28:22]MH_I2C_Read... [09:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:22]Read from MH i2c: E2 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 [09:28:22]MH_I2C_Read... [09:28:22]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [09:28:22]RAPDU: 90 00 [09:28:22]wFMCommunicate OK [09:28:22]wFMCommunicate request_size=255 [09:28:22]MH_SAM_APDU [09:28:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 39 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 DC 02 00 35 04 06 00 D9 [09:28:22]Write to MH i2c: E2 02 01 22 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 39 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 DC 02 00 35 04 06 00 D9 00 00 FE [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:23]Read from MH i2c: E2 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 03 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 03 00 22 1C 00 90 00 B2 [09:28:23]RAPDU: 90 00 [09:28:23]wFMCommunicate OK [09:28:23]wFMCommunicate request_size=10 [09:28:23]MH_SAM_APDU [09:28:23]CAPDU: 80 0D 02 02 05 07 E6 A9 F1 A4 [09:28:23]Write to MH i2c: E2 0D 00 23 1C 80 0D 02 02 05 00 07 E6 A9 F1 A4 00 00 EE [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:23]Read from MH i2c: E2 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 03 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 03 00 23 1C 00 90 00 B3 [09:28:23]RAPDU: 90 00 [09:28:23]wFMCommunicate OK [09:28:23]wFMCommunicate request_size=4 [09:28:23]MH_SAM_APDU [09:28:23]CAPDU: 80 0D 03 02 [09:28:23]Write to MH i2c: E2 08 00 24 1C 80 0D 03 02 00 00 00 00 BB [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:23]Read from MH i2c: E2 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 0B 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 0B 00 24 1C 00 CC 91 C5 5E DA C5 A3 4F 90 00 CD [09:28:23]RAPDU: CC 91 C5 5E DA C5 A3 4F 90 00 [09:28:23]wFMCommunicate OK [09:28:23]SAM_PROTO_SignData done [09:28:23]FM_MakeSignedData done [09:28:23]CreateOFDProtocolMessage [09:28:23]wFMCommunicate request_size=4 [09:28:23]MH_SAM_APDU [09:28:23]CAPDU: 80 11 00 00 [09:28:23]Write to MH i2c: E2 08 00 25 1C 80 11 00 00 00 00 00 00 BB [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:23]Read from MH i2c: E2 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 17 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: E2 17 00 25 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0E [09:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:28:23]wFMCommunicate OK [09:28:23]CreateOFDProtocolMessage done [09:28:23]OFDSenderStorePacket 187552 [09:28:23]StoreOFDPacket docnum=187552 [09:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1C 96 07 01 8E 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 39 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 DC 02 00 35 04 06 00 D9 07 E6 A9 F1 A4 CC 91 C5 5E DA C5 A3 4F [09:28:23]CheckFolder [09:28:23]dirname=/storage/ofd_packets [09:28:23]CheckFolder done [09:28:23]ProducePacketName [09:28:23]name=ofd_packets/00187552 [09:28:23]NVStorageSaveData ofd_packets/00187552 [09:28:23]File name is /storage/ofd_packets/00187552 [09:28:23]Write 301 bytes [09:28:23]NVStorageSaveData done [09:28:23]OFDSenderStorePacket done [09:28:23]KKMCreateOFDPacket done [09:28:23]NVStorageSaveData kkm_last_timestamp [09:28:23]File name is /storage/kkm_last_timestamp [09:28:23]Write 4 bytes [09:28:23]NVStorageSaveData done [09:28:23]ExternCall_PrintAddStr [09:28:23]wPrintStart [09:28:23]Write to MH i2c: 01 00 00 26 1C 42 [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: 01 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: 01 07 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: 01 07 00 26 1C 00 00 00 00 00 FF 0F 57 [09:28:23]RasterBufferAndPrint [09:28:23]line Счет N : (1)412708 [09:28:23]line ИНН: 02508201610067 [09:28:23]line Контрольно-Кассовый Чек [09:28:23]line ПРОДАЖА [09:28:23]line ТРК (МРК, ГНК) : 42 [09:28:23]line Товар: 2710124130 [09:28:23]line Аи-92-К-2 [09:28:23]line 7.790 * 64.20 [09:28:23]line = 500.12 [09:28:23]line НДС 12% НСП 1% [09:28:23]line > о реализуемом товаре [09:28:23]line ОКРУГЛЕНИЕ: -0.12 [09:28:23]line ИТОГО: 500.00 [09:28:23]line Внесено: 500.00 [09:28:23]line СДАЧА: 0.00 [09:28:23]line НСП 1% : 4.43 [09:28:23]line НДС 12% : 53.11 [09:28:23]line Наличными: 500.00 [09:28:23]line Безнал.: 0.00 [09:28:23]line Место: АЗС № 92 "Партнер Нефть" [09:28:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:28:23]line СНО: Общий режим [09:28:23]line Чек 46 21.02.2025 09:28 [09:28:23]line Смена: 649 ФФД: 1.0 [09:28:23]line ЗНМ: 0300000118 [09:28:23]line РНМ: 0000000000091857 [09:28:23]line Версия ККМ: 001 [09:28:23]line ФМ: 0000000000871826 [09:28:23]line ФД: 187552 [09:28:23]line ФПД: 238627957895588 [09:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092825&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187552&fm=238627957895588&tin=02508201610067®Number=0000000000091857&sum=50000 [09:28:23]written 0, free lines is 4095 [09:28:23]OFD Sender: Processing packet 187552 [packets to send 49, broken 48] [09:28:23]ProducePacketName [09:28:23]name=ofd_packets/00187552 [09:28:23]OFD Sender: To server: pG, [09:28:23]CommunicateWithHost lk.salyk.kg:30040 [09:28:23]ConnectInit lk.salyk.kg [09:28:23]Connected sock=7 [09:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1C 96 07 01 8E 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 39 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 DC 02 00 35 04 06 00 D9 07 E6 A9 F1 A4 CC 91 C5 5E DA C5 A3 4F [09:28:23]Write to MH i2c: 01 00 00 51 1C 6D [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: 01 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: 01 07 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: 01 07 00 51 1C 00 00 00 00 00 FC 0C 7C [09:28:23]RasterBufferAndPrint [09:28:23]line [09:28:23]line [09:28:23]line [09:28:23]line [09:28:23]line [09:28:23]written 0, free lines is 3339 [09:28:23]MH_Cut [09:28:23]Write to MH i2c: D1 01 00 58 1C 01 46 [09:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 29 2E 47 00 D3 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 DC 02 00 F4 03 04 00 87 ED B7 67 B6 04 01 00 00 83 48 7C 66 DE B7 F9 0B [09:28:23]CommunicateWithHost err = 0 [09:28:23]CheckOFDResponse [09:28:23]1017 (14) - 77093643461234 [09:28:23]1041 (16) - 0000000000871826 [09:28:23]1040 (4) - 187552 [09:28:23]1012 (4) - 21.02.2025 03:05 [09:28:23]1206 (1) - 0 [09:28:23]OFD Sender: Remove packet 187552 [09:28:23]ProducePacketName [09:28:23]name=ofd_packets/00187552 [09:28:23]NVStorageDeleteData [09:28:23]Write i2c OK [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: D1 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: D1 01 00 [09:28:23]MH_I2C_Read... [09:28:23]Read from MH i2c: D1 01 00 58 1C 00 45 [09:28:23]Write to MH i2c: 01 00 00 59 1C 75 [09:28:24]Write i2c OK [09:28:24]MH_I2C_Read... [09:28:24]OFD Sender: No OFD packet to send [09:28:24]*** Cut start [09:28:24]*** Partial cut [09:28:24]*** CUTSNS_PIN = 1 [09:28:24]*** CUTSNS_PIN = 0 [09:28:24]*** Brake cut motor [09:28:25]Read from MH i2c: 01 [09:28:25]MH_I2C_Read... [09:28:25]*** Stop cut motor [09:28:25]*** Cut end [09:28:25]Read from MH i2c: 01 07 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: 01 07 00 59 1C 00 00 00 00 00 FF 0F 8A [09:28:25]process_action close_receipt done [09:28:25]requested_data is exist [09:28:25]produce_requested_data [09:28:25]requested_item fm.sn is exist - process it [09:28:25]wFMCommunicate request_size=4 [09:28:25]MH_SAM_APDU [09:28:25]CAPDU: 80 11 00 00 [09:28:25]Write to MH i2c: E2 08 00 5A 1C 80 11 00 00 00 00 00 00 F0 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 17 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 17 00 5A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 43 [09:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:28:25]wFMCommunicate OK [09:28:25]requested_item fd.num is exist - process it [09:28:25]SAM_PROTO_GetFieldsCounters [09:28:25]wFMCommunicate request_size=4 [09:28:25]MH_SAM_APDU [09:28:25]CAPDU: 80 13 00 00 [09:28:25]Write to MH i2c: E2 08 00 5B 1C 80 13 00 00 00 00 00 00 F3 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 62 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 62 00 5B 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A0 DC 02 00 0E 04 04 00 89 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 AC [09:28:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A0 DC 02 00 0E 04 04 00 89 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:28:25]wFMCommunicate OK [09:28:25]SAM_PROTO_GetFieldsCounters done [09:28:25]requested_item shift.num is exist - process it [09:28:25]requested_item shift.opened is exist - process it [09:28:25]req_shift_opened [09:28:25]FM_GetShiftState [09:28:25]SAM_PROTO_GetShiftState [09:28:25]wFMCommunicate request_size=4 [09:28:25]MH_SAM_APDU [09:28:25]CAPDU: 80 13 01 00 [09:28:25]Write to MH i2c: E2 08 00 5C 1C 80 13 01 00 00 00 00 00 F5 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0E 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0E 00 5C 1C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E3 [09:28:25]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:28:25]wFMCommunicate OK [09:28:25]SAM_PROTO_GetShiftState done [09:28:25]FM_GetShiftState done [09:28:25]req_shift_opened done [09:28:25]requested_item shift.open_date is exist - process it [09:28:25]req_shift_open_date [09:28:25]req_shift_open_date done [09:28:25]produce_requested_data done [09:28:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187552,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:28:25]process_action_free close_receipt [09:28:25]json_value_free [09:28:25]json_value_free done [09:28:25]process_json_proto returns [09:28:25]Send response to host [09:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187552,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:28:25]free response buf [09:28:25]execute_script done [09:28:25]execute_script returns [09:28:25]free content buf [09:28:25]Sock 9.Close socket [09:28:25]Sock 9.Thread stoped [09:28:25]accept exits with 10 [09:28:25]New connection [09:28:25]New thread 3067223396 created [09:28:25]Thread 3067080036 joined [09:28:25]Waiting for new connection... [09:28:25] Sock 10.Parse request [09:28:25]Sock 10.Check first char [09:28:25]Sock 10.First char is OK [09:28:25]request: POST /json_proto HTTP/1.0 [09:28:25]Method: POST [09:28:25]URL: /json_proto [09:28:25]Method is POST - this is cgi request [09:28:25]url: /json_proto [09:28:25]query_string will be loaded in cgi processing [09:28:25]execute_cgi json_proto POST (null) [09:28:25]execute_cgi path=json_proto method=POST [09:28:25]POST find Content-Length [09:28:25]Host: 172.17.46.131:8080 [09:28:25]Content-Length: 682 [09:28:25]Content-Type: application/json [09:28:25] [09:28:25]POST finish read [09:28:25]Found Content-Length = 682 [09:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:25]execute_script... [09:28: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)412709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:25]POST & json_proto [09:28:25]process_json_proto [09:28:25]json parsed OK: [09:28:25]protocol is kg_v1.0 [09:28:25]action value=close_receipt [09:28:25]process_action close_receipt [09:28:25]cmd_close_receipt [09:28:25]MH_GetDate [09:28:25]Write to MH i2c: F0 00 00 5D 1C 68 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: F0 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: F0 09 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: F0 09 00 5D 1C 00 3D 47 B8 67 7E 41 4F 65 87 [09:28:25]GetLastDocTimeStamp 1740130105 [09:28:25]current date 1740130109 [09:28:25]FM_GetShiftState [09:28:25]SAM_PROTO_GetShiftState [09:28:25]wFMCommunicate request_size=4 [09:28:25]MH_SAM_APDU [09:28:25]CAPDU: 80 13 01 00 [09:28:25]Write to MH i2c: E2 08 00 5E 1C 80 13 01 00 00 00 00 00 F7 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0E 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0E 00 5E 1C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E5 [09:28:25]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:28:25]wFMCommunicate OK [09:28:25]SAM_PROTO_GetShiftState done [09:28:25]FM_GetShiftState done [09:28:25]opened in 1740098043 [09:28:25]opened+sec_in_day 1740184443 [09:28:25]quantity*price = 100012 [09:28:25]sum+1 = 100014 [09:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 47 21.02.2025 09:28 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187553 ФПД: 162472224124056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092829&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187553&fm=162472224124056&tin=02508201610067®Number=0000000000091857&sum=100000 [09:28:26]StoreToDocumentArchive [09:28:26]shift 649 fd 187553 [09:28:26]save to /storage/0649/doc_00187553 [09:28:26]save last doc name /storage/0649/doc_00187553 to /storage/kkm_last_doc_name [09:28:26]save OK [09:28:26]Clear old archive folders... [09:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:26]tlvbuf is 0208DDC0 [09:28:26]SAM_PROTO_ClearQueue [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 09 00 00 [09:28:26]Write to MH i2c: E2 08 00 6B 1C 80 09 00 00 00 00 00 00 F9 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 6B 1C 00 90 00 FB [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_ClearQueue done [09:28:27]KKMCreateOFDPacket [09:28:27]OFDProtocolAddRootSTLVToBuf [09:28:27]FM_MakeSignedData [09:28:27]FM_MakeSignedData [09:28:27]SAM_PROTO_SignData [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 01 02 [09:28:27]Write to MH i2c: E2 08 00 6C 1C 80 0D 01 02 00 00 00 00 01 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 6C 1C 00 90 00 FC [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=255 [09:28:27]MH_SAM_APDU [09:28: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 3D 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 DC 02 00 35 04 06 00 93 [09:28:27]Write to MH i2c: E2 02 01 6D 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 3D 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 DC 02 00 35 04 06 00 93 00 00 E1 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 6D 1C 00 90 00 FD [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=10 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 02 02 05 C4 83 34 6C 98 [09:28:27]Write to MH i2c: E2 0D 00 6E 1C 80 0D 02 02 05 00 C4 83 34 6C 98 00 00 8D [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 6E 1C 00 90 00 FE [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 03 02 [09:28:27]Write to MH i2c: E2 08 00 6F 1C 80 0D 03 02 00 00 00 00 06 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0B 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0B 00 6F 1C 00 65 36 34 12 00 9F D6 C4 90 00 21 [09:28:27]RAPDU: 65 36 34 12 00 9F D6 C4 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_SignData done [09:28:27]FM_MakeSignedData done [09:28:27]CreateOFDProtocolMessage [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 11 00 00 [09:28:27]Write to MH i2c: E2 08 00 70 1C 80 11 00 00 00 00 00 00 06 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 17 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 17 00 70 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 59 [09:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:28:28]wFMCommunicate OK [09:28:28]CreateOFDProtocolMessage done [09:28:28]OFDSenderStorePacket 187553 [09:28:28]StoreOFDPacket docnum=187553 [09:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 14 07 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 3D 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 DC 02 00 35 04 06 00 93 C4 83 34 6C 98 65 36 34 12 00 9F D6 C4 [09:28:28]CheckFolder [09:28:28]dirname=/storage/ofd_packets [09:28:28]CheckFolder done [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00187553 [09:28:28]NVStorageSaveData ofd_packets/00187553 [09:28:28]File name is /storage/ofd_packets/00187553 [09:28:28]Write 301 bytes [09:28:28]NVStorageSaveData done [09:28:28]OFDSenderStorePacket done [09:28:28]KKMCreateOFDPacket done [09:28:28]NVStorageSaveData kkm_last_timestamp [09:28:28]File name is /storage/kkm_last_timestamp [09:28:28]Write 4 bytes [09:28:28]NVStorageSaveData done [09:28:28]ExternCall_PrintAddStr [09:28:28]wPrintStart [09:28:28]Write to MH i2c: 01 00 00 71 1C 8D [09:28:28]OFD Sender: Processing packet 187553 [packets to send 49, broken 48] [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00187553 [09:28:28]OFD Sender: To server: pG, [09:28:28]CommunicateWithHost lk.salyk.kg:30040 [09:28:28]ConnectInit lk.salyk.kg [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 71 1C 00 00 00 00 00 FF 0F A2 [09:28:28]RasterBufferAndPrint [09:28:28]line Счет N : (1)412709 [09:28:28]line ИНН: 02508201610067 [09:28:28]line Контрольно-Кассовый Чек [09:28:28]line ПРОДАЖА [09:28:28]line ТРК (МРК, ГНК) : 23 [09:28:28]line Товар: 2710124500 [09:28:28]line Аи-95-К-5 [09:28:28]line 13.910 * 71.90 [09:28:28]line = 1000.13 [09:28:28]line НДС 12% НСП 1% [09:28:28]line > о реализуемом товаре [09:28:28]line ОКРУГЛЕНИЕ: -0.13 [09:28:28]line ИТОГО: 1000.00 [09:28:28]line Внесено: 1000.00 [09:28:28]line СДАЧА: 0.00 [09:28:28]line НСП 1% : 8.85 [09:28:28]line НДС 12% : 106.21 [09:28:28]line Наличными: 1000.00 [09:28:28]line Безнал.: 0.00 [09:28:28]line Место: АЗС № 92 "Партнер Нефть" [09:28:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:28:28]line СНО: Общий режим [09:28:28]line Чек 47 21.02.2025 09:28 [09:28:28]line Смена: 649 ФФД: 1.0 [09:28:28]line ЗНМ: 0300000118 [09:28:28]line РНМ: 0000000000091857 [09:28:28]line Версия ККМ: 001 [09:28:28]line ФМ: 0000000000871826 [09:28:28]line ФД: 187553 [09:28:28]line ФПД: 162472224124056 [09:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T092829&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187553&fm=162472224124056&tin=02508201610067®Number=0000000000091857&sum=100000 [09:28:28]written 0, free lines is 4095 [09:28:28]Connected sock=9 [09:28:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 14 07 01 4B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 3D 47 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 DC 02 00 35 04 06 00 93 C4 83 34 6C 98 65 36 34 12 00 9F D6 C4 [09:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 99 29 47 00 1F 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 DC 02 00 F4 03 04 00 8C ED B7 67 B6 04 01 00 00 BD 3A 3D C7 DB 77 79 63 [09:28:28]CommunicateWithHost err = 0 [09:28:28]CheckOFDResponse [09:28:28]1017 (14) - 77093643461234 [09:28:28]1041 (16) - 0000000000871826 [09:28:28]1040 (4) - 187553 [09:28:28]1012 (4) - 21.02.2025 03:05 [09:28:28]1206 (1) - 0 [09:28:28]OFD Sender: Remove packet 187553 [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00187553 [09:28:28]NVStorageDeleteData [09:28:28]Write to MH i2c: 01 00 00 9C 1C B8 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 9C 1C 00 00 00 00 00 FB 0C C6 [09:28:28]RasterBufferAndPrint [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]written 0, free lines is 3347 [09:28:28]MH_Cut [09:28:28]Write to MH i2c: D1 01 00 A3 1C 01 91 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: D1 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: D1 01 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: D1 01 00 A3 1C 00 90 [09:28:28]Write to MH i2c: 01 00 00 A4 1C C0 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]OFD Sender: No OFD packet to send [09:28:29]*** Cut start [09:28:29]*** Partial cut [09:28:29]*** CUTSNS_PIN = 1 [09:28:29]*** CUTSNS_PIN = 0 [09:28:29]*** Brake cut motor [09:28:29]Read from MH i2c: 01 [09:28:29]MH_I2C_Read... [09:28:29]*** Stop cut motor [09:28:29]*** Cut end [09:28:29]Read from MH i2c: 01 07 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: 01 07 00 A4 1C 00 00 00 00 00 FF 0F D5 [09:28:29]process_action close_receipt done [09:28:29]requested_data is exist [09:28:29]produce_requested_data [09:28:29]requested_item fm.sn is exist - process it [09:28:29]wFMCommunicate request_size=4 [09:28:29]MH_SAM_APDU [09:28:29]CAPDU: 80 11 00 00 [09:28:29]Write to MH i2c: E2 08 00 A5 1C 80 11 00 00 00 00 00 00 3B [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:29]Read from MH i2c: E2 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 17 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 17 00 A5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8E [09:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:28:29]wFMCommunicate OK [09:28:29]requested_item fd.num is exist - process it [09:28:29]SAM_PROTO_GetFieldsCounters [09:28:29]wFMCommunicate request_size=4 [09:28:29]MH_SAM_APDU [09:28:29]CAPDU: 80 13 00 00 [09:28:29]Write to MH i2c: E2 08 00 A6 1C 80 13 00 00 00 00 00 00 3E [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 62 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 62 00 A6 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A1 DC 02 00 0E 04 04 00 89 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 FB [09:28:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A1 DC 02 00 0E 04 04 00 89 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:28:30]wFMCommunicate OK [09:28:30]SAM_PROTO_GetFieldsCounters done [09:28:30]requested_item shift.num is exist - process it [09:28:30]requested_item shift.opened is exist - process it [09:28:30]req_shift_opened [09:28:30]FM_GetShiftState [09:28:30]SAM_PROTO_GetShiftState [09:28:30]wFMCommunicate request_size=4 [09:28:30]MH_SAM_APDU [09:28:30]CAPDU: 80 13 01 00 [09:28:30]Write to MH i2c: E2 08 00 A7 1C 80 13 01 00 00 00 00 00 40 [09:28:30]Write i2c OK [09:28:30]MH_I2C_Read... [09:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:30]Read from MH i2c: E2 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 [09:28:30]MH_I2C_Read... [09:28:30]Read from MH i2c: E2 0E 00 A7 1C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2E [09:28:30]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:28:30]wFMCommunicate OK [09:28:30]SAM_PROTO_GetShiftState done [09:28:30]FM_GetShiftState done [09:28:30]req_shift_opened done [09:28:30]requested_item shift.open_date is exist - process it [09:28:30]req_shift_open_date [09:28:30]req_shift_open_date done [09:28:30]produce_requested_data done [09:28:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187553,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:28:30]process_action_free close_receipt [09:28:30]json_value_free [09:28:30]json_value_free done [09:28:30]process_json_proto returns [09:28:30]Send response to host [09:28:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187553,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:28:30]free response buf [09:28:30]execute_script done [09:28:30]execute_script returns [09:28:30]free content buf [09:28:30]Sock 10.Close socket [09:28:30]Sock 10.Thread stoped [09:28:33]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:55]accept exits with 7 [09:32:55]New connection [09:32:55]New thread 3067080036 created [09:32:55]Thread 3067223396 joined [09:32:55]Waiting for new connection... [09:32:55] Sock 7.Parse request [09:32:55]Sock 7.Check first char [09:32:55]Sock 7.First char is OK [09:32:55]request: POST /json_proto HTTP/1.0 [09:32:55]Method: POST [09:32:55]URL: /json_proto [09:32:55]Method is POST - this is cgi request [09:32:55]url: /json_proto [09:32:55]query_string will be loaded in cgi processing [09:32:55]execute_cgi json_proto POST (null) [09:32:55]execute_cgi path=json_proto method=POST [09:32:55]POST find Content-Length [09:32:55]Host: 172.17.46.131:8080 [09:32:55]Content-Length: 800 [09:32:55]Content-Type: application/json [09:32:55] [09:32:55]POST finish read [09:32:55]Found Content-Length = 800 [09:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A5020918", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:55]execute_script... [09:32: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)412711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A5020918", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:55]POST & json_proto [09:32:55]process_json_proto [09:32:55]json parsed OK: [09:32:55]protocol is kg_v1.0 [09:32:55]action value=close_receipt [09:32:55]process_action close_receipt [09:32:55]cmd_close_receipt [09:32:55]MH_GetDate [09:32:55]Write to MH i2c: F0 00 00 A8 1C B3 [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: F0 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: F0 09 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: F0 09 00 A8 1C 00 4A 48 B8 67 7E 41 4F 65 E0 [09:32:55]GetLastDocTimeStamp 1740130109 [09:32:55]current date 1740130378 [09:32:55]FM_GetShiftState [09:32:55]SAM_PROTO_GetShiftState [09:32:55]wFMCommunicate request_size=4 [09:32:55]MH_SAM_APDU [09:32:55]CAPDU: 80 13 01 00 [09:32:55]Write to MH i2c: E2 08 00 A9 1C 80 13 01 00 00 00 00 00 42 [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:55]Read from MH i2c: E2 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 0E 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: E2 0E 00 A9 1C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 30 [09:32:55]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:32:55]wFMCommunicate OK [09:32:55]SAM_PROTO_GetShiftState done [09:32:55]FM_GetShiftState done [09:32:55]opened in 1740098043 [09:32:55]opened+sec_in_day 1740184443 [09:32:55]quantity*price = 0 [09:32:55]sum+1 = 1 [09:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 48 21.02.2025 09:32 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 5020918 ФМ: 0000000000871826 ФД: 187554 ФПД: 74809139653856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093258&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187554&fm=74809139653856&tin=02508201610067®Number=0000000000091857&sum=0 [09:32:56]StoreToDocumentArchive [09:32:56]shift 649 fd 187554 [09:32:56]save to /storage/0649/doc_00187554 [09:32:56]save last doc name /storage/0649/doc_00187554 to /storage/kkm_last_doc_name [09:32:56]save OK [09:32:56]Clear old archive folders... [09:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:56]tlvbuf is 020866B0 [09:32:56]SAM_PROTO_ClearQueue [09:32:56]wFMCommunicate request_size=4 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 09 00 00 [09:32:56]Write to MH i2c: E2 08 00 B6 1C 80 09 00 00 00 00 00 00 44 [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 03 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 03 00 B6 1C 00 90 00 46 [09:32:56]RAPDU: 90 00 [09:32:56]wFMCommunicate OK [09:32:56]SAM_PROTO_ClearQueue done [09:32:56]KKMCreateOFDPacket [09:32:56]OFDProtocolAddRootSTLVToBuf [09:32:56]FM_MakeSignedData [09:32:56]FM_MakeSignedData [09:32:56]SAM_PROTO_SignData [09:32:56]wFMCommunicate request_size=4 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 0D 01 02 [09:32:56]Write to MH i2c: E2 08 00 B7 1C 80 0D 01 02 00 00 00 00 4C [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 03 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 03 00 B7 1C 00 90 00 47 [09:32:56]RAPDU: 90 00 [09:32:56]wFMCommunicate OK [09:32:56]wFMCommunicate request_size=255 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 4A 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DC 02 00 35 04 06 00 44 [09:32:56]Write to MH i2c: E2 02 01 B8 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 4A 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DC 02 00 35 04 06 00 44 00 00 BF [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 03 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 03 00 B8 1C 00 90 00 48 [09:32:56]RAPDU: 90 00 [09:32:56]wFMCommunicate OK [09:32:56]wFMCommunicate request_size=10 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 0D 02 02 05 09 DC 31 EC E0 [09:32:56]Write to MH i2c: E2 0D 00 B9 1C 80 0D 02 02 05 00 09 DC 31 EC E0 00 00 3B [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 03 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [09:32:56]RAPDU: 90 00 [09:32:56]wFMCommunicate OK [09:32:56]wFMCommunicate request_size=4 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 0D 03 02 [09:32:56]Write to MH i2c: E2 08 00 BA 1C 80 0D 03 02 00 00 00 00 51 [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 0B 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 0B 00 BA 1C 00 A0 EC 12 12 93 1B 6D D8 90 00 F5 [09:32:56]RAPDU: A0 EC 12 12 93 1B 6D D8 90 00 [09:32:56]wFMCommunicate OK [09:32:56]SAM_PROTO_SignData done [09:32:56]FM_MakeSignedData done [09:32:56]CreateOFDProtocolMessage [09:32:56]wFMCommunicate request_size=4 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 11 00 00 [09:32:56]Write to MH i2c: E2 08 00 BB 1C 80 11 00 00 00 00 00 00 51 [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 17 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 17 00 BB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A4 [09:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:32:56]wFMCommunicate OK [09:32:56]CreateOFDProtocolMessage done [09:32:56]OFDSenderStorePacket 187554 [09:32:56]StoreOFDPacket docnum=187554 [09:32:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C5 29 07 01 FA 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 4A 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DC 02 00 35 04 06 00 44 09 DC 31 EC E0 A0 EC 12 12 93 1B 6D D8 [09:32:56]CheckFolder [09:32:56]dirname=/storage/ofd_packets [09:32:56]CheckFolder done [09:32:56]ProducePacketName [09:32:56]name=ofd_packets/00187554 [09:32:56]NVStorageSaveData ofd_packets/00187554 [09:32:56]File name is /storage/ofd_packets/00187554 [09:32:56]Write 301 bytes [09:32:56]NVStorageSaveData done [09:32:56]OFDSenderStorePacket done [09:32:56]KKMCreateOFDPacket done [09:32:56]NVStorageSaveData kkm_last_timestamp [09:32:56]File name is /storage/kkm_last_timestamp [09:32:56]Write 4 bytes [09:32:56]NVStorageSaveData done [09:32:56]ExternCall_PrintAddStr [09:32:56]wPrintStart [09:32:56]Write to MH i2c: 01 00 00 BC 1C D8 [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: 01 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: 01 07 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: 01 07 00 BC 1C 00 00 00 00 00 FF 0F ED [09:32:56]RasterBufferAndPrint [09:32:56]line Счет N : (1)412711 [09:32:56]line ИНН: 02508201610067 [09:32:56]line Контрольно-Кассовый Чек [09:32:56]line ПРОДАЖА [09:32:56]line ТРК (МРК, ГНК) : 42 [09:32:56]line Товар: 2710124130 [09:32:56]line Аи-92-К-2 [09:32:56]line 10.000 * 0.00 [09:32:56]line = 0.00 [09:32:56]line НДС 12% НСП 1% [09:32:56]line > о реализуемом товаре [09:32:56]line ИТОГО: 0.00 [09:32:56]line НСП 1% : 0.00 [09:32:56]line НДС 12% : 0.00 [09:32:56]line Наличными: 0.00 [09:32:56]line Безнал.: 0.00 [09:32:56]line Место: АЗС № 92 "Партнер Нефть" [09:32:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:32:56]line СНО: Общий режим [09:32:56]line Чек 48 21.02.2025 09:32 [09:32:56]line Смена: 649 ФФД: 1.0 [09:32:56]line ЗНМ: 0300000118 [09:32:56]line РНМ: 0000000000091857 [09:32:56]line Версия ККМ: 001 [09:32:56]line Талоны: Топливные Талоны [09:32:56]line 5020918 [09:32:56]line ФМ: 0000000000871826 [09:32:56]line ФД: 187554 [09:32:56]line ФПД: 74809139653856 [09:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093258&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187554&fm=74809139653856&tin=02508201610067®Number=0000000000091857&sum=0 [09:32:57]OFD Sender: Processing packet 187554 [packets to send 49, broken 48] [09:32:57]ProducePacketName [09:32:57]name=ofd_packets/00187554 [09:32:57]OFD Sender: To server: pG, [09:32:57]CommunicateWithHost lk.salyk.kg:30040 [09:32:57]ConnectInit lk.salyk.kg [09:32:57]written 0, free lines is 4095 [09:32:57]Connected sock=10 [09:32:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C5 29 07 01 FA 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 4A 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DC 02 00 35 04 06 00 44 09 DC 31 EC E0 A0 EC 12 12 93 1B 6D D8 [09:32:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EB D5 47 00 30 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 DC 02 00 F4 03 04 00 99 EE B7 67 B6 04 01 00 00 2E 62 69 F8 5A B6 66 86 [09:32:57]CommunicateWithHost err = 0 [09:32:57]CheckOFDResponse [09:32:57]1017 (14) - 77093643461234 [09:32:57]1041 (16) - 0000000000871826 [09:32:57]1040 (4) - 187554 [09:32:57]1012 (4) - 21.02.2025 03:10 [09:32:57]1206 (1) - 0 [09:32:57]OFD Sender: Remove packet 187554 [09:32:57]ProducePacketName [09:32:57]name=ofd_packets/00187554 [09:32:57]NVStorageDeleteData [09:32:57]Write to MH i2c: 01 00 00 E6 1C 02 [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: 01 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: 01 07 00 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: 01 07 00 E6 1C 00 00 00 00 00 F8 0C 0D [09:32:57]RasterBufferAndPrint [09:32:57]line [09:32:57]line [09:32:57]line [09:32:57]line [09:32:57]line [09:32:57]written 0, free lines is 3326 [09:32:57]MH_Cut [09:32:57]Write to MH i2c: D1 01 00 ED 1C 01 DB [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: D1 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: D1 01 00 [09:32:57]MH_I2C_Read... [09:32:57]Read from MH i2c: D1 01 00 ED 1C 00 DA [09:32:57]Write to MH i2c: 01 00 00 EE 1C 0A [09:32:57]Write i2c OK [09:32:57]MH_I2C_Read... [09:32:58]OFD Sender: No OFD packet to send [09:32:58]*** Cut start [09:32:58]*** Partial cut [09:32:58]*** CUTSNS_PIN = 1 [09:32:58]*** CUTSNS_PIN = 0 [09:32:58]*** Brake cut motor [09:32:58]Read from MH i2c: 01 [09:32:58]MH_I2C_Read... [09:32:58]*** Stop cut motor [09:32:58]*** Cut end [09:32:58]Read from MH i2c: 01 07 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: 01 07 00 EE 1C 00 00 00 00 00 FF 0F 1F [09:32:58]process_action close_receipt done [09:32:58]requested_data is exist [09:32:58]produce_requested_data [09:32:58]requested_item fm.sn is exist - process it [09:32:58]wFMCommunicate request_size=4 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 11 00 00 [09:32:58]Write to MH i2c: E2 08 00 EF 1C 80 11 00 00 00 00 00 00 85 [09:32:58]Write i2c OK [09:32:58]MH_I2C_Read... [09:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:58]Read from MH i2c: E2 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 17 00 [09:32:58]MH_I2C_Read... [09:32:58]Read from MH i2c: E2 17 00 EF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [09:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:32:58]wFMCommunicate OK [09:32:58]requested_item fd.num is exist - process it [09:32:58]SAM_PROTO_GetFieldsCounters [09:32:58]wFMCommunicate request_size=4 [09:32:58]MH_SAM_APDU [09:32:58]CAPDU: 80 13 00 00 [09:32:58]Write to MH i2c: E2 08 00 F0 1C 80 13 00 00 00 00 00 00 88 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 62 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 62 00 F0 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A2 DC 02 00 0E 04 04 00 89 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 49 [09:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A2 DC 02 00 0E 04 04 00 89 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:32:59]wFMCommunicate OK [09:32:59]SAM_PROTO_GetFieldsCounters done [09:32:59]requested_item shift.num is exist - process it [09:32:59]requested_item shift.opened is exist - process it [09:32:59]req_shift_opened [09:32:59]FM_GetShiftState [09:32:59]SAM_PROTO_GetShiftState [09:32:59]wFMCommunicate request_size=4 [09:32:59]MH_SAM_APDU [09:32:59]CAPDU: 80 13 01 00 [09:32:59]Write to MH i2c: E2 08 00 F1 1C 80 13 01 00 00 00 00 00 8A [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:59]Read from MH i2c: E2 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 0E 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: E2 0E 00 F1 1C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 78 [09:32:59]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:32:59]wFMCommunicate OK [09:32:59]SAM_PROTO_GetShiftState done [09:32:59]FM_GetShiftState done [09:32:59]req_shift_opened done [09:32:59]requested_item shift.open_date is exist - process it [09:32:59]req_shift_open_date [09:32:59]req_shift_open_date done [09:32:59]produce_requested_data done [09:32:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187554,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:32:59]process_action_free close_receipt [09:32:59]json_value_free [09:32:59]json_value_free done [09:32:59]process_json_proto returns [09:32:59]Send response to host [09:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187554,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:32:59]free response buf [09:32:59]execute_script done [09:32:59]execute_script returns [09:32:59]free content buf [09:32:59]Sock 7.Close socket [09:32:59]Sock 7.Thread stoped [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:57]accept exits with 9 [09:33:57]New connection [09:33:57]New thread 3067223396 created [09:33:57]Thread 3067080036 joined [09:33:57]Waiting for new connection... [09:33:57] Sock 9.Parse request [09:33:57]Sock 9.Check first char [09:33:57]Sock 9.First char is OK [09:33:57]request: POST /json_proto HTTP/1.0 [09:33:57]Method: POST [09:33:57]URL: /json_proto [09:33:57]Method is POST - this is cgi request [09:33:57]url: /json_proto [09:33:57]query_string will be loaded in cgi processing [09:33:57]execute_cgi json_proto POST (null) [09:33:57]execute_cgi path=json_proto method=POST [09:33:57]POST find Content-Length [09:33:57]Host: 172.17.46.131:8080 [09:33:57]Content-Length: 792 [09:33:57]Content-Type: application/json [09:33:57] [09:33:57]POST finish read [09:33:57]Found Content-Length = 792 [09:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 12.460, "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\u000A97908", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:57]execute_script... [09:33:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 12.460, "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\u000A97908", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:57]POST & json_proto [09:33:57]process_json_proto [09:33:57]json parsed OK: [09:33:57]protocol is kg_v1.0 [09:33:57]action value=close_receipt [09:33:57]process_action close_receipt [09:33:57]cmd_close_receipt [09:33:57]MH_GetDate [09:33:57]Write to MH i2c: F0 00 00 F2 1C FD [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: F0 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: F0 09 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: F0 09 00 F2 1C 00 89 48 B8 67 7E 41 4F 65 69 [09:33:57]GetLastDocTimeStamp 1740130378 [09:33:57]current date 1740130441 [09:33:57]FM_GetShiftState [09:33:57]SAM_PROTO_GetShiftState [09:33:57]wFMCommunicate request_size=4 [09:33:57]MH_SAM_APDU [09:33:57]CAPDU: 80 13 01 00 [09:33:57]Write to MH i2c: E2 08 00 F3 1C 80 13 01 00 00 00 00 00 8C [09:33:57]Write i2c OK [09:33:57]MH_I2C_Read... [09:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:57]Read from MH i2c: E2 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 0E 00 [09:33:57]MH_I2C_Read... [09:33:57]Read from MH i2c: E2 0E 00 F3 1C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7A [09:33:57]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:33:57]wFMCommunicate OK [09:33:57]SAM_PROTO_GetShiftState done [09:33:57]FM_GetShiftState done [09:33:57]opened in 1740098043 [09:33:57]opened+sec_in_day 1740184443 [09:33:57]quantity*price = 0 [09:33:57]sum+1 = 1 [09:33:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 49 21.02.2025 09:34 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 97908 ФМ: 0000000000871826 ФД: 187555 ФПД: 27058551074847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093401&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187555&fm=27058551074847&tin=02508201610067®Number=0000000000091857&sum=0 [09:33:58]StoreToDocumentArchive [09:33:58]shift 649 fd 187555 [09:33:58]save to /storage/0649/doc_00187555 [09:33:58]save last doc name /storage/0649/doc_00187555 to /storage/kkm_last_doc_name [09:33:58]save OK [09:33:58]Clear old archive folders... [09:33:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:58]tlvbuf is B6EEA1E0 [09:33:58]SAM_PROTO_ClearQueue [09:33:58]wFMCommunicate request_size=4 [09:33:58]MH_SAM_APDU [09:33:58]CAPDU: 80 09 00 00 [09:33:58]Write to MH i2c: E2 08 00 00 1D 80 09 00 00 00 00 00 00 8F [09:33:58]Write i2c OK [09:33:58]MH_I2C_Read... [09:33:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:58]Read from MH i2c: E2 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 03 00 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 03 00 00 1D 00 90 00 91 [09:33:58]RAPDU: 90 00 [09:33:58]wFMCommunicate OK [09:33:58]SAM_PROTO_ClearQueue done [09:33:58]KKMCreateOFDPacket [09:33:58]OFDProtocolAddRootSTLVToBuf [09:33:58]FM_MakeSignedData [09:33:58]FM_MakeSignedData [09:33:58]SAM_PROTO_SignData [09:33:58]wFMCommunicate request_size=4 [09:33:58]MH_SAM_APDU [09:33:58]CAPDU: 80 0D 01 02 [09:33:58]Write to MH i2c: E2 08 00 01 1D 80 0D 01 02 00 00 00 00 97 [09:33:58]Write i2c OK [09:33:58]MH_I2C_Read... [09:33:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:58]Read from MH i2c: E2 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 03 00 [09:33:58]MH_I2C_Read... [09:33:58]Read from MH i2c: E2 03 00 01 1D 00 90 00 92 [09:33:58]RAPDU: 90 00 [09:33:58]wFMCommunicate OK [09:33:58]wFMCommunicate request_size=255 [09:33:58]MH_SAM_APDU [09:33:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AC 30 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 31 00 00 00 F4 03 04 00 89 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 DC 02 00 35 04 06 00 18 [09:33:58]Write to MH i2c: E2 02 01 02 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AC 30 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 31 00 00 00 F4 03 04 00 89 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 DC 02 00 35 04 06 00 18 00 00 C4 [09:33:58]Write i2c OK [09:33:58]MH_I2C_Read... [09:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:59]Read from MH i2c: E2 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 03 00 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 03 00 02 1D 00 90 00 93 [09:33:59]RAPDU: 90 00 [09:33:59]wFMCommunicate OK [09:33:59]wFMCommunicate request_size=10 [09:33:59]MH_SAM_APDU [09:33:59]CAPDU: 80 0D 02 02 05 9C 0F 53 30 1F [09:33:59]Write to MH i2c: E2 0D 00 03 1D 80 0D 02 02 05 00 9C 0F 53 30 1F 00 00 F1 [09:33:59]Write i2c OK [09:33:59]MH_I2C_Read... [09:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:59]Read from MH i2c: E2 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 03 00 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 03 00 03 1D 00 90 00 94 [09:33:59]RAPDU: 90 00 [09:33:59]wFMCommunicate OK [09:33:59]wFMCommunicate request_size=4 [09:33:59]MH_SAM_APDU [09:33:59]CAPDU: 80 0D 03 02 [09:33:59]Write to MH i2c: E2 08 00 04 1D 80 0D 03 02 00 00 00 00 9C [09:33:59]Write i2c OK [09:33:59]MH_I2C_Read... [09:33:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:59]Read from MH i2c: E2 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 0B 00 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 0B 00 04 1D 00 40 86 A6 FD 24 1A 7B F0 90 00 AF [09:33:59]RAPDU: 40 86 A6 FD 24 1A 7B F0 90 00 [09:33:59]wFMCommunicate OK [09:33:59]SAM_PROTO_SignData done [09:33:59]FM_MakeSignedData done [09:33:59]CreateOFDProtocolMessage [09:33:59]wFMCommunicate request_size=4 [09:33:59]MH_SAM_APDU [09:33:59]CAPDU: 80 11 00 00 [09:33:59]Write to MH i2c: E2 08 00 05 1D 80 11 00 00 00 00 00 00 9C [09:33:59]Write i2c OK [09:33:59]MH_I2C_Read... [09:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:59]Read from MH i2c: E2 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 17 00 [09:33:59]MH_I2C_Read... [09:33:59]Read from MH i2c: E2 17 00 05 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EF [09:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:33:59]wFMCommunicate OK [09:33:59]CreateOFDProtocolMessage done [09:33:59]OFDSenderStorePacket 187555 [09:33:59]StoreOFDPacket docnum=187555 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F1 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057254C (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 40437592+1699692926=1740130518 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33560624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F2 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 D7 48 B8 67 7E 41 4F 65 B0 [09:35:19]Current date/time: 21.02.2025 09:35 [09:35:19]FM_Init [09:35:19]wFMConnect [09:35:19]MH_SAM_On [09:35:19]Write to MH i2c: E0 00 00 08 00 E7 [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_init finished! [09:35:19]*** atr: [09:35:19]*** 0F 3B D5 18 FF 81 91 FE [09:35:19]*** 1F C3 80 73 C8 21 10 0A [09:35:19]*** 00 00 00 00 00 00 00 00 [09:35:19]*** 00 00 00 00 00 00 00 00 [09:35:19]*** 00 00 00 00 00 00 00 00 [09:35:19]*** 00 00 00 00 00 00 00 00 [09:35:19]*** 00 00 00 00 00 00 00 00 [09:35:19]*** 00 00 00 00 00 00 00 00 [09:35:19]Read from MH i2c: E0 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E0 10 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:35:19]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:35:19]wFMCommunicate request_size=10 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:35:19]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 03 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:35:19]RAPDU: 90 00 [09:35:19]wFMCommunicate OK [09:35:19]wFMCommunicate request_size=4 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 80 11 00 00 [09:35:19]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 17 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [09:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:35:19]wFMCommunicate OK [09:35:19]Detected FM SN is 0000000000871826 [09:35:19]Stored FM SN is 0000000000871826 [09:35:19]wFMCommunicate request_size=9 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 80 16 00 00 04 3B 45 00 00 [09:35:19]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3B 45 00 00 00 00 12 [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 03 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:35:19]RAPDU: 90 00 [09:35:19]wFMCommunicate OK [09:35:19]FM PIN OK [09:35:19]wFMCommunicate request_size=8 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 80 14 04 00 03 02 00 01 [09:35:19]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 03 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:35:19]RAPDU: 90 00 [09:35:19]wFMCommunicate OK [09:35:19]wFMCommunicate request_size=13 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:35:19]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 03 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:35:19]RAPDU: 90 00 [09:35:19]wFMCommunicate OK [09:35:19]wFMCommunicate request_size=4 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 80 11 00 00 [09:35:19]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 17 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [09:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:35:19]wFMCommunicate OK [09:35:19]DocumentArchiveInit [09:35:19]Start Httpd... [09:35:19]Httpd thread 3067366756 created [09:35:19]Write to MH i2c: 01 00 00 0F 00 0F [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: 01 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: 01 07 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:35:19]Allocated Socket 5 [09:35:19]Bind OK [09:35:19]Listen OK [09:35:19]httpd running on port 8080 [09:35:19]Waiting for new connection... [09:35:19]MH Int Process started [09:35:19]OFD Sender: Processing packet 187555 [packets to send 49, broken 48] [09:35:19]ProducePacketName [09:35:19]name=ofd_packets/00187555 [09:35:19]OFD Sender: To server: pG, [09:35:19]CommunicateWithHost lk.salyk.kg:30040 [09:35:19]ConnectInit lk.salyk.kg [09:35:19]Connected sock=8 [09:35:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F5 0B 07 01 09 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AC 30 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 31 00 00 00 F4 03 04 00 89 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 DC 02 00 35 04 06 00 18 9C 0F 53 30 1F 40 86 A6 FD 24 1A 7B F0 [09:35:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 81 1A 47 00 4D D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 DC 02 00 F4 03 04 00 23 EF B7 67 B6 04 01 00 00 D0 43 92 24 74 76 0C EC [09:35:19]CommunicateWithHost err = 0 [09:35:19]CheckOFDResponse [09:35:19]1017 (14) - 77093643461234 [09:35:19]1041 (16) - 0000000000871826 [09:35:19]1040 (4) - 187555 [09:35:19]1012 (4) - 21.02.2025 03:12 [09:35:19]1206 (1) - 0 [09:35:19]OFD Sender: Remove packet 187555 [09:35:19]ProducePacketName [09:35:19]name=ofd_packets/00187555 [09:35:19]NVStorageDeleteData [09:35:20]OFD Sender: No OFD packet to send [09:35:21]accept exits with 6 [09:35:21]New connection [09:35:21]New thread 3067080036 created [09:35:21]Waiting for new connection... [09:35:21] Sock 6.Parse request [09:35:21]Sock 6.Check first char [09:35:21]Sock 6.First char is OK [09:35:21]request: POST /json_proto HTTP/1.0 [09:35:21]Method: POST [09:35:21]URL: /json_proto [09:35:21]Method is POST - this is cgi request [09:35:21]url: /json_proto [09:35:21]query_string will be loaded in cgi processing [09:35:21]execute_cgi json_proto POST (null) [09:35:21]execute_cgi path=json_proto method=POST [09:35:21]POST find Content-Length [09:35:21]Host: 172.17.46.131:8080 [09:35:21]Content-Length: 215 [09:35:21]Content-Type: application/json [09:35:21] [09:35:21]POST finish read [09:35:21]Found Content-Length = 215 [09:35: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" ] } } [09:35:21]execute_script... [09:35: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" ] } } [09:35:21]POST & json_proto [09:35:21]process_json_proto [09:35:21]json parsed OK: [09:35:21]protocol is kg_v1.0 [09:35:21]action value=get_value [09:35:21]process_action get_value [09:35:21]cmd_get_value [09:35:21]process_action get_value done [09:35:21]requested_data is exist [09:35:21]produce_requested_data [09:35:21]requested_item kkm.sn is exist - process it [09:35:21]requested_item kkm.ver is exist - process it [09:35:21]requested_item fm.sn is exist - process it [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 11 00 00 [09:35:21]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 17 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [09:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:35:21]wFMCommunicate OK [09:35:21]requested_item fd.num is exist - process it [09:35:21]SAM_PROTO_GetFieldsCounters [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 13 00 00 [09:35:21]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 62 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A3 DC 02 00 0E 04 04 00 89 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 52 [09:35:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A3 DC 02 00 0E 04 04 00 89 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:35:21]wFMCommunicate OK [09:35:21]SAM_PROTO_GetFieldsCounters done [09:35:21]requested_item shift.num is exist - process it [09:35:21]requested_item shift.opened is exist - process it [09:35:21]req_shift_opened [09:35:21]FM_GetShiftState [09:35:21]SAM_PROTO_GetShiftState [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 13 01 00 [09:35:21]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 0E 00 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7D [09:35:21]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:35:21]wFMCommunicate OK [09:35:21]SAM_PROTO_GetShiftState done [09:35:21]FM_GetShiftState done [09:35:21]req_shift_opened done [09:35:21]requested_item shift.open_date is exist - process it [09:35:21]req_shift_open_date [09:35:21]req_shift_open_date done [09:35:21]produce_requested_data done [09:35:21]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187555,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:35:21]process_action_free get_value [09:35:21]json_value_free [09:35:21]json_value_free done [09:35:21]process_json_proto returns [09:35:21]Send response to host [09:35:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187555,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:35:21]free response buf [09:35:21]execute_script done [09:35:21]execute_script returns [09:35:21]free content buf [09:35:21]Sock 6.Close socket [09:35:21]Sock 6.Thread stoped [09:35:21]accept exits with 8 [09:35:21]New connection [09:35:21]New thread 3066936676 created [09:35:21]Thread 3067080036 joined [09:35:21]Waiting for new connection... [09:35:21] Sock 8.Parse request [09:35:21]Sock 8.Check first char [09:35:21]Sock 8.First char is OK [09:35:21]request: POST /json_proto HTTP/1.0 [09:35:21]Method: POST [09:35:21]URL: /json_proto [09:35:21]Method is POST - this is cgi request [09:35:21]url: /json_proto [09:35:21]query_string will be loaded in cgi processing [09:35:21]execute_cgi json_proto POST (null) [09:35:21]execute_cgi path=json_proto method=POST [09:35:21]POST find Content-Length [09:35:21]Host: 172.17.46.131:8080 [09:35:21]Content-Length: 331 [09:35:21]Content-Type: application/json [09:35:21] [09:35:21]POST finish read [09:35:21]Found Content-Length = 331 [09:35: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" ] } } [09:35:21]execute_script... [09:35:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:35:21]POST & json_proto [09:35:21]process_json_proto [09:35:21]json parsed OK: [09:35:21]protocol is kg_v1.0 [09:35:21]action value=get_value [09:35:21]process_action get_value [09:35:21]cmd_get_value [09:35:21]process_action get_value done [09:35:21]requested_data is exist [09:35:21]produce_requested_data [09:35:21]requested_item fm.sale.total is exist - process it [09:35:21]SAM_PROTO_GetFMData [09:35:21]wFMCommunicate request_size=4 [09:35:21]MH_SAM_APDU [09:35:21]CAPDU: 80 13 03 00 [09:35:21]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:35:21]Write i2c OK [09:35:21]MH_I2C_Read... [09:35:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:35:21]Read from MH i2c: E2 [09:35:21]MH_I2C_Read... [09:35:21]Read from MH i2c: E2 FD 00 [09:35:21]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 91 D7 02 00 69 04 A3 00 6F 04 04 00 7E D7 02 00 B1 04 05 00 80 56 A9 1D 04 70 04 05 00 C0 51 08 9C 03 72 04 04 00 C0 04 A1 81 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 5E ED 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 94 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 90 [09:35:22]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 91 D7 02 00 69 04 A3 00 6F 04 04 00 7E D7 02 00 B1 04 05 00 80 56 A9 1D 04 70 04 05 00 C0 51 08 9C 03 72 04 04 00 C0 04 A1 81 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 5E ED 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 94 53 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 17 00 00 [09:35:22]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 FD 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 5D [09:35:22]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 17 00 00 [09:35:22]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 FD 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [09:35:22]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 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 17 00 00 [09:35:22]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:22]Read from MH i2c: E2 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 FD 00 [09:35:22]MH_I2C_Read... [09:35:22]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [09:35:22]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 [09:35:22]wFMCommunicate OK [09:35:22]wFMCommunicate request_size=4 [09:35:22]MH_SAM_APDU [09:35:22]CAPDU: 80 17 00 00 [09:35:22]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:35:22]Write i2c OK [09:35:22]MH_I2C_Read... [09:35:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [09:35:23]Read from MH i2c: E2 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 DE 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [09:35: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 [09:35:23]wFMCommunicate OK [09:35:23]SAM_PROTO_GetFMData done [09:35:23]requested_item fm.sale_refund.total is exist - process it [09:35:23]requested_item fm.buy.total is exist - process it [09:35:23]requested_item shift.sale.total is exist - process it [09:35:23]SAM_PROTO_GetShiftData [09:35:23]wFMCommunicate request_size=4 [09:35:23]MH_SAM_APDU [09:35:23]CAPDU: 80 13 02 00 [09:35:23]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:35:23]Read from MH i2c: E2 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 FD 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 31 00 00 00 69 04 9B 00 6F 04 04 00 31 00 00 00 B1 04 03 00 15 AC 34 70 04 03 00 A4 D7 24 72 04 03 00 71 D4 0F 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 64 98 05 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 5D 77 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 76 [09:35:23]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 31 00 00 00 69 04 9B 00 6F 04 04 00 31 00 00 00 B1 04 03 00 15 AC 34 70 04 03 00 A4 D7 24 72 04 03 00 71 D4 0F 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 64 98 05 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 5D 77 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:35:23]wFMCommunicate OK [09:35:23]wFMCommunicate request_size=4 [09:35:23]MH_SAM_APDU [09:35:23]CAPDU: 80 17 00 00 [09:35:23]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:23]Read from MH i2c: E2 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 FD 00 [09:35:23]MH_I2C_Read... [09:35:23]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [09:35:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:35:23]wFMCommunicate OK [09:35:23]wFMCommunicate request_size=4 [09:35:23]MH_SAM_APDU [09:35:23]CAPDU: 80 17 00 00 [09:35:23]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:35:23]Write i2c OK [09:35:23]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 FD 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [09:35:24]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:35:24]wFMCommunicate OK [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 17 00 00 [09:35:24]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 FD 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [09:35:24]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:35:24]wFMCommunicate OK [09:35:24]wFMCommunicate request_size=4 [09:35:24]MH_SAM_APDU [09:35:24]CAPDU: 80 17 00 00 [09:35:24]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:35:24]Write i2c OK [09:35:24]MH_I2C_Read... [09:35:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:35:24]Read from MH i2c: E2 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 CB 00 [09:35:24]MH_I2C_Read... [09:35:24]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [09:35:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:35:24]wFMCommunicate OK [09:35:24]SAM_PROTO_GetShiftData done [09:35:24]requested_item shift.sale.total_cash is exist - process it [09:35:24]requested_item shift.sale_refund.total is exist - process it [09:35:24]requested_item shift.sale_refund.total_cash is exist - process it [09:35:24]requested_item shift.buy.total is exist - process it [09:35:24]requested_item shift.buy.total_cash is exist - process it [09:35:24]produce_requested_data done [09:35:24]produce_requested_data return {"fm.sale.total":176775061.76,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":34519.25,"shift.sale.total_cash":24145.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:35:24]process_action_free get_value [09:35:24]json_value_free [09:35:24]json_value_free done [09:35:24]process_json_proto returns [09:35:24]Send response to host [09:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176775061.76,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":34519.25,"shift.sale.total_cash":24145.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:35:24]free response buf [09:35:24]execute_script done [09:35:24]execute_script returns [09:35:24]free content buf [09:35:24]Sock 8.Close socket [09:35:24]Sock 8.Thread stoped [09:35:25]accept exits with 6 [09:35:25]New connection [09:35:25]New thread 3067080036 created [09:35:25]Thread 3066936676 joined [09:35:25]Waiting for new connection... [09:35:25] Sock 6.Parse request [09:35:25]Sock 6.Check first char [09:35:25]Sock 6.First char is OK [09:35:25]request: POST /json_proto HTTP/1.0 [09:35:25]Method: POST [09:35:25]URL: /json_proto [09:35:25]Method is POST - this is cgi request [09:35:25]url: /json_proto [09:35:25]query_string will be loaded in cgi processing [09:35:25]execute_cgi json_proto POST (null) [09:35:25]execute_cgi path=json_proto method=POST [09:35:25]POST find Content-Length [09:35:25]Host: 172.17.46.131:8080 [09:35:25]Content-Length: 677 [09:35:25]Content-Type: application/json [09:35:25] [09:35:25]POST finish read [09:35:25]Found Content-Length = 677 [09:35:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:25]execute_script... [09:35: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)412713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:25]POST & json_proto [09:35:25]process_json_proto [09:35:25]json parsed OK: [09:35:25]protocol is kg_v1.0 [09:35:25]action value=close_receipt [09:35:25]process_action close_receipt [09:35:25]cmd_close_receipt [09:35:25]MH_GetDate [09:35:25]Write to MH i2c: F0 00 00 1D 00 0C [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: F0 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: F0 09 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: F0 09 00 1D 00 00 DD 48 B8 67 7E 41 4F 65 CC [09:35:25]GetLastDocTimeStamp 1740130441 [09:35:25]current date 1740130525 [09:35:25]FM_GetShiftState [09:35:25]SAM_PROTO_GetShiftState [09:35:25]wFMCommunicate request_size=4 [09:35:25]MH_SAM_APDU [09:35:25]CAPDU: 80 13 01 00 [09:35:25]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [09:35:25]OFD Sender: No OFD packet to send [09:35:25]Write i2c OK [09:35:25]MH_I2C_Read... [09:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:25]Read from MH i2c: E2 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 0E 00 [09:35:25]MH_I2C_Read... [09:35:25]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 89 [09:35:25]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:35:25]wFMCommunicate OK [09:35:25]SAM_PROTO_GetShiftState done [09:35:25]FM_GetShiftState done [09:35:25]opened in 1740098043 [09:35:25]opened+sec_in_day 1740184443 [09:35:25]quantity*price = 50011 [09:35:25]sum+1 = 50013 [09:35:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 50 21.02.2025 09:35 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187556 ФПД: 42080707222308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093525&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187556&fm=42080707222308&tin=02508201610067®Number=0000000000091857&sum=50000 [09:35:26]StoreToDocumentArchive [09:35:26]shift 649 fd 187556 [09:35:26]save to /storage/0649/doc_00187556 [09:35:26]save last doc name /storage/0649/doc_00187556 to /storage/kkm_last_doc_name [09:35:26]save OK [09:35:26]Clear old archive folders... [09:35:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:26]tlvbuf is 01E7F3E0 [09:35:26]SAM_PROTO_ClearQueue [09:35:26]wFMCommunicate request_size=4 [09:35:26]MH_SAM_APDU [09:35:26]CAPDU: 80 09 00 00 [09:35:26]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:35:26]Write i2c OK [09:35:26]MH_I2C_Read... [09:35:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:26]Read from MH i2c: E2 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 03 00 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:35:26]RAPDU: 90 00 [09:35:26]wFMCommunicate OK [09:35:26]SAM_PROTO_ClearQueue done [09:35:26]KKMCreateOFDPacket [09:35:26]OFDProtocolAddRootSTLVToBuf [09:35:26]FM_MakeSignedData [09:35:26]FM_MakeSignedData [09:35:26]SAM_PROTO_SignData [09:35:26]wFMCommunicate request_size=4 [09:35:26]MH_SAM_APDU [09:35:26]CAPDU: 80 0D 01 02 [09:35:26]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:35:26]Write i2c OK [09:35:26]MH_I2C_Read... [09:35:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:26]Read from MH i2c: E2 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 03 00 [09:35:26]MH_I2C_Read... [09:35:26]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:35:26]RAPDU: 90 00 [09:35:26]wFMCommunicate OK [09:35:26]wFMCommunicate request_size=255 [09:35:26]MH_SAM_APDU [09:35:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DD 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 DC 02 00 35 04 06 00 26 [09:35:27]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DD 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 DC 02 00 35 04 06 00 26 00 00 E7 [09:35:27]Write i2c OK [09:35:27]MH_I2C_Read... [09:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:27]Read from MH i2c: E2 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: E2 03 00 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:35:27]RAPDU: 90 00 [09:35:27]wFMCommunicate OK [09:35:27]wFMCommunicate request_size=10 [09:35:27]MH_SAM_APDU [09:35:27]CAPDU: 80 0D 02 02 05 45 AD 9B 1B 24 [09:35:27]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 45 AD 9B 1B 24 00 00 7E [09:35:27]Write i2c OK [09:35:27]MH_I2C_Read... [09:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:27]Read from MH i2c: E2 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: E2 03 00 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:35:27]RAPDU: 90 00 [09:35:27]wFMCommunicate OK [09:35:27]wFMCommunicate request_size=4 [09:35:27]MH_SAM_APDU [09:35:27]CAPDU: 80 0D 03 02 [09:35:27]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:35:27]Write i2c OK [09:35:27]MH_I2C_Read... [09:35:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:27]Read from MH i2c: E2 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: E2 0B 00 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: E2 0B 00 2F 00 00 BD FA 4E 89 7F 60 86 A4 90 00 42 [09:35:27]RAPDU: BD FA 4E 89 7F 60 86 A4 90 00 [09:35:27]wFMCommunicate OK [09:35:27]SAM_PROTO_SignData done [09:35:27]FM_MakeSignedData done [09:35:27]CreateOFDProtocolMessage [09:35:27]wFMCommunicate request_size=4 [09:35:27]MH_SAM_APDU [09:35:27]CAPDU: 80 11 00 00 [09:35:27]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:35:27]Write i2c OK [09:35:27]MH_I2C_Read... [09:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:27]Read from MH i2c: E2 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: E2 17 00 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [09:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:35:27]wFMCommunicate OK [09:35:27]CreateOFDProtocolMessage done [09:35:27]OFDSenderStorePacket 187556 [09:35:27]StoreOFDPacket docnum=187556 [09:35:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 03 7F 07 01 51 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DD 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 DC 02 00 35 04 06 00 26 45 AD 9B 1B 24 BD FA 4E 89 7F 60 86 A4 [09:35:27]CheckFolder [09:35:27]dirname=/storage/ofd_packets [09:35:27]CheckFolder done [09:35:27]ProducePacketName [09:35:27]name=ofd_packets/00187556 [09:35:27]NVStorageSaveData ofd_packets/00187556 [09:35:27]File name is /storage/ofd_packets/00187556 [09:35:27]Write 301 bytes [09:35:27]NVStorageSaveData done [09:35:27]OFDSenderStorePacket done [09:35:27]KKMCreateOFDPacket done [09:35:27]NVStorageSaveData kkm_last_timestamp [09:35:27]File name is /storage/kkm_last_timestamp [09:35:27]Write 4 bytes [09:35:27]NVStorageSaveData done [09:35:27]ExternCall_PrintAddStr [09:35:27]wPrintStart [09:35:27]Write to MH i2c: 01 00 00 31 00 31 [09:35:27]Write i2c OK [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: 01 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: 01 07 00 [09:35:27]MH_I2C_Read... [09:35:27]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:35:27]RasterBufferAndPrint [09:35:27]line Счет N : (1)412713 [09:35:27]OFD Sender: Processing packet 187556 [packets to send 49, broken 48] [09:35:27]ProducePacketName [09:35:27]name=ofd_packets/00187556 [09:35:27]OFD Sender: To server: pG, [09:35:27]CommunicateWithHost lk.salyk.kg:30040 [09:35:27]ConnectInit lk.salyk.kg [09:35:27]line ИНН: 02508201610067 [09:35:27]line Контрольно-Кассовый Чек [09:35:27]line ПРОДАЖА [09:35:27]line ТРК (МРК, ГНК) : 32 [09:35:27]line Товар: 2710124130 [09:35:27]line Аи-92-К-2 [09:35:27]line 7.790 * 64.20 [09:35:27]line = 500.12 [09:35:27]line НДС 12% НСП 1% [09:35:27]line > о реализуемом товаре [09:35:27]line ОКРУГЛЕНИЕ: -0.12 [09:35:27]line ИТОГО: 500.00 [09:35:27]line Внесено: 500.00 [09:35:27]line СДАЧА: 0.00 [09:35:27]line НСП 1% : 4.43 [09:35:27]line НДС 12% : 53.11 [09:35:27]line Наличными: 500.00 [09:35:27]line Безнал.: 0.00 [09:35:27]line Место: АЗС № 92 "Партнер Нефть" [09:35:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:35:27]line СНО: Общий режим [09:35:27]line Чек 50 21.02.2025 09:35 [09:35:27]line Смена: 649 ФФД: 1.0 [09:35:27]line ЗНМ: 0300000118 [09:35:27]line РНМ: 0000000000091857 [09:35:27]line Версия ККМ: 001 [09:35:27]line ФМ: 0000000000871826 [09:35:27]line ФД: 187556 [09:35:27]line ФПД: 42080707222308 [09:35:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093525&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187556&fm=42080707222308&tin=02508201610067®Number=0000000000091857&sum=50000 [09:35:27]written 0, free lines is 4095 [09:35:27]Connected sock=10 [09:35:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 03 7F 07 01 51 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DD 48 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 DC 02 00 35 04 06 00 26 45 AD 9B 1B 24 BD FA 4E 89 7F 60 86 A4 [09:35:28]Write to MH i2c: 01 00 00 5C 00 5C [09:35:28]Write i2c OK [09:35:28]MH_I2C_Read... [09:35:28]Read from MH i2c: 01 [09:35:28]MH_I2C_Read... [09:35:28]Read from MH i2c: 01 07 00 [09:35:28]MH_I2C_Read... [09:35:28]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 0F 0D 7F [09:35:28]RasterBufferAndPrint [09:35:28]line [09:35:28]line [09:35:28]line [09:35:28]line [09:35:28]line [09:35:28]written 0, free lines is 3370 [09:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C0 BC 47 00 BA 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 DC 02 00 F4 03 04 00 2C EF B7 67 B6 04 01 00 00 24 79 82 47 B4 6B 00 15 [09:35:28]CommunicateWithHost err = 0 [09:35:28]CheckOFDResponse [09:35:28]1017 (14) - 77093643461234 [09:35:28]1041 (16) - 0000000000871826 [09:35:28]1040 (4) - 187556 [09:35:28]1012 (4) - 21.02.2025 03:12 [09:35:28]1206 (1) - 0 [09:35:28]OFD Sender: Remove packet 187556 [09:35:28]ProducePacketName [09:35:28]name=ofd_packets/00187556 [09:35:28]NVStorageDeleteData [09:35:28]MH_Cut [09:35:28]Write to MH i2c: D1 01 00 63 00 01 35 [09:35:28]Write i2c OK [09:35:28]MH_I2C_Read... [09:35:28]Read from MH i2c: D1 [09:35:28]MH_I2C_Read... [09:35:28]Read from MH i2c: D1 01 00 [09:35:28]MH_I2C_Read... [09:35:28]Read from MH i2c: D1 01 00 63 00 00 34 [09:35:28]Write to MH i2c: 01 00 00 64 00 64 [09:35:28]Write i2c OK [09:35:28]MH_I2C_Read... [09:35:28]OFD Sender: No OFD packet to send [09:35:28]*** Cut start [09:35:28]*** Partial cut [09:35:28]*** CUTSNS_PIN = 1 [09:35:28]*** CUTSNS_PIN = 0 [09:35:29]*** Brake cut motor [09:35:29]Read from MH i2c: *** Stop cut motor [09:35:29]01 *** Cut end [09:35:29] [09:35:29]MH_I2C_Read... [09:35:29]Read from MH i2c: 01 07 00 [09:35:29]MH_I2C_Read... [09:35:29]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [09:35:29]process_action close_receipt done [09:35:29]requested_data is exist [09:35:29]produce_requested_data [09:35:29]requested_item fm.sn is exist - process it [09:35:29]wFMCommunicate request_size=4 [09:35:29]MH_SAM_APDU [09:35:29]CAPDU: 80 11 00 00 [09:35:29]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [09:35:29]Write i2c OK [09:35:29]MH_I2C_Read... [09:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:29]Read from MH i2c: E2 [09:35:29]MH_I2C_Read... [09:35:29]Read from MH i2c: E2 17 00 [09:35:29]MH_I2C_Read... [09:35:29]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [09:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:35:29]wFMCommunicate OK [09:35:29]requested_item fd.num is exist - process it [09:35:29]SAM_PROTO_GetFieldsCounters [09:35:29]wFMCommunicate request_size=4 [09:35:29]MH_SAM_APDU [09:35:29]CAPDU: 80 13 00 00 [09:35:29]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [09:35:29]Write i2c OK [09:35:29]MH_I2C_Read... [09:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:29]Read from MH i2c: E2 [09:35:29]MH_I2C_Read... [09:35:29]Read from MH i2c: E2 62 00 [09:35:29]MH_I2C_Read... [09:35:29]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A4 DC 02 00 0E 04 04 00 89 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 AB [09:35:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A4 DC 02 00 0E 04 04 00 89 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:35:29]wFMCommunicate OK [09:35:29]SAM_PROTO_GetFieldsCounters done [09:35:29]requested_item shift.num is exist - process it [09:35:29]requested_item shift.opened is exist - process it [09:35:29]req_shift_opened [09:35:29]FM_GetShiftState [09:35:29]SAM_PROTO_GetShiftState [09:35:29]wFMCommunicate request_size=4 [09:35:29]MH_SAM_APDU [09:35:29]CAPDU: 80 13 01 00 [09:35:29]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [09:35:29]Write i2c OK [09:35:29]MH_I2C_Read... [09:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:29]Read from MH i2c: E2 [09:35:29]MH_I2C_Read... [09:35:29]Read from MH i2c: E2 0E 00 [09:35:29]MH_I2C_Read... [09:35:29]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D2 [09:35:29]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:35:29]wFMCommunicate OK [09:35:29]SAM_PROTO_GetShiftState done [09:35:29]FM_GetShiftState done [09:35:29]req_shift_opened done [09:35:29]requested_item shift.open_date is exist - process it [09:35:29]req_shift_open_date [09:35:29]req_shift_open_date done [09:35:29]produce_requested_data done [09:35:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187556,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:35:29]process_action_free close_receipt [09:35:29]json_value_free [09:35:29]json_value_free done [09:35:29]process_json_proto returns [09:35:29]Send response to host [09:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187556,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:35:29]free response buf [09:35:29]execute_script done [09:35:29]execute_script returns [09:35:29]free content buf [09:35:29]Sock 6.Close socket [09:35:29]Sock 6.Thread stoped [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:31]accept exits with 8 [09:36:31]New connection [09:36:31]New thread 3066936676 created [09:36:31]Thread 3067080036 joined [09:36:31]Waiting for new connection... [09:36:31] Sock 8.Parse request [09:36:31]Sock 8.Check first char [09:36:31]Sock 8.First char is OK [09:36:31]request: POST /json_proto HTTP/1.0 [09:36:31]Method: POST [09:36:31]URL: /json_proto [09:36:31]Method is POST - this is cgi request [09:36:31]url: /json_proto [09:36:31]query_string will be loaded in cgi processing [09:36:31]execute_cgi json_proto POST (null) [09:36:31]execute_cgi path=json_proto method=POST [09:36:31]POST find Content-Length [09:36:31]Host: 172.17.46.131:8080 [09:36:31]Content-Length: 678 [09:36:31]Content-Type: application/json [09:36:31] [09:36:31]POST finish read [09:36:31]Found Content-Length = 678 [09:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:31]execute_script... [09:36: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)412714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:31]POST & json_proto [09:36:31]process_json_proto [09:36:31]json parsed OK: [09:36:31]protocol is kg_v1.0 [09:36:31]action value=close_receipt [09:36:31]process_action close_receipt [09:36:31]cmd_close_receipt [09:36:31]MH_GetDate [09:36:31]Write to MH i2c: F0 00 00 68 00 57 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: F0 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: F0 09 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: F0 09 00 68 00 00 1F 49 B8 67 7E 41 4F 65 5A [09:36:31]GetLastDocTimeStamp 1740130525 [09:36:31]current date 1740130591 [09:36:31]FM_GetShiftState [09:36:31]SAM_PROTO_GetShiftState [09:36:31]wFMCommunicate request_size=4 [09:36:31]MH_SAM_APDU [09:36:31]CAPDU: 80 13 01 00 [09:36:31]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [09:36:31]Write i2c OK [09:36:31]MH_I2C_Read... [09:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:31]Read from MH i2c: E2 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 0E 00 [09:36:31]MH_I2C_Read... [09:36:31]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D4 [09:36:31]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:36:31]wFMCommunicate OK [09:36:31]SAM_PROTO_GetShiftState done [09:36:31]FM_GetShiftState done [09:36:31]opened in 1740098043 [09:36:31]opened+sec_in_day 1740184443 [09:36:31]quantity*price = 70042 [09:36:31]sum+1 = 70043 [09:36:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 51 21.02.2025 09:36 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187557 ФПД: 256398493728814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093631&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187557&fm=256398493728814&tin=02508201610067®Number=0000000000091857&sum=70000 [09:36:32]StoreToDocumentArchive [09:36:32]shift 649 fd 187557 [09:36:32]save to /storage/0649/doc_00187557 [09:36:32]save last doc name /storage/0649/doc_00187557 to /storage/kkm_last_doc_name [09:36:32]save OK [09:36:32]Clear old archive folders... [09:36:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:32]tlvbuf is 01E81D70 [09:36:32]SAM_PROTO_ClearQueue [09:36:32]wFMCommunicate request_size=4 [09:36:32]MH_SAM_APDU [09:36:32]CAPDU: 80 09 00 00 [09:36:32]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [09:36:32]Write i2c OK [09:36:32]MH_I2C_Read... [09:36:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:32]Read from MH i2c: E2 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 03 00 [09:36:32]MH_I2C_Read... [09:36:32]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:36:32]RAPDU: 90 00 [09:36:32]wFMCommunicate OK [09:36:32]SAM_PROTO_ClearQueue done [09:36:32]KKMCreateOFDPacket [09:36:32]OFDProtocolAddRootSTLVToBuf [09:36:32]FM_MakeSignedData [09:36:32]FM_MakeSignedData [09:36:32]SAM_PROTO_SignData [09:36:32]wFMCommunicate request_size=4 [09:36:32]MH_SAM_APDU [09:36:32]CAPDU: 80 0D 01 02 [09:36:32]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [09:36:32]Write i2c OK [09:36:32]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]wFMCommunicate request_size=255 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1F 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 DC 02 00 35 04 06 00 E9 [09:36:33]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1F 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 DC 02 00 35 04 06 00 E9 00 00 EB [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]wFMCommunicate request_size=10 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 02 02 05 31 6D 23 C0 2E [09:36:33]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 31 6D 23 C0 2E 00 00 AC [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [09:36:33]RAPDU: 90 00 [09:36:33]wFMCommunicate OK [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 0D 03 02 [09:36:33]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 0B 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 0B 00 7A 00 00 C2 8C A6 31 A3 FE BE 1C 90 00 96 [09:36:33]RAPDU: C2 8C A6 31 A3 FE BE 1C 90 00 [09:36:33]wFMCommunicate OK [09:36:33]SAM_PROTO_SignData done [09:36:33]FM_MakeSignedData done [09:36:33]CreateOFDProtocolMessage [09:36:33]wFMCommunicate request_size=4 [09:36:33]MH_SAM_APDU [09:36:33]CAPDU: 80 11 00 00 [09:36:33]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:33]Read from MH i2c: E2 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 17 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [09:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:36:33]wFMCommunicate OK [09:36:33]CreateOFDProtocolMessage done [09:36:33]OFDSenderStorePacket 187557 [09:36:33]StoreOFDPacket docnum=187557 [09:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 43 C9 07 01 94 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1F 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 DC 02 00 35 04 06 00 E9 31 6D 23 C0 2E C2 8C A6 31 A3 FE BE 1C [09:36:33]CheckFolder [09:36:33]dirname=/storage/ofd_packets [09:36:33]CheckFolder done [09:36:33]ProducePacketName [09:36:33]name=ofd_packets/00187557 [09:36:33]NVStorageSaveData ofd_packets/00187557 [09:36:33]File name is /storage/ofd_packets/00187557 [09:36:33]Write 301 bytes [09:36:33]NVStorageSaveData done [09:36:33]OFDSenderStorePacket done [09:36:33]KKMCreateOFDPacket done [09:36:33]NVStorageSaveData kkm_last_timestamp [09:36:33]File name is /storage/kkm_last_timestamp [09:36:33]Write 4 bytes [09:36:33]NVStorageSaveData done [09:36:33]ExternCall_PrintAddStr [09:36:33]wPrintStart [09:36:33]Write to MH i2c: 01 00 00 7C 00 7C [09:36:33]Write i2c OK [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 07 00 [09:36:33]MH_I2C_Read... [09:36:33]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [09:36:33]RasterBufferAndPrint [09:36:33]line Счет N : (1)412714 [09:36:33]line ИНН: 02508201610067 [09:36:33]line Контрольно-Кассовый Чек [09:36:33]line ПРОДАЖА [09:36:33]line ТРК (МРК, ГНК) : 42 [09:36:33]line Товар: 2710124130 [09:36:33]line Аи-92-К-2 [09:36:33]line 10.910 * 64.20 [09:36:33]line = 700.42 [09:36:33]line НДС 12% НСП 1% [09:36:33]line > о реализуемом товаре [09:36:33]line ОКРУГЛЕНИЕ: -0.42 [09:36:33]line ИТОГО: 700.00 [09:36:33]line Внесено: 700.00 [09:36:33]line СДАЧА: 0.00 [09:36:33]line НСП 1% : 6.20 [09:36:33]line НДС 12% : 74.38 [09:36:33]line Наличными: 700.00 [09:36:33]line Безнал.: 0.00 [09:36:33]line Место: АЗС № 92 "Партнер Нефть" [09:36:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:36:33]line СНО: Общий режим [09:36:33]line Чек 51 21.02.2025 09:36 [09:36:33]line Смена: 649 ФФД: 1.0 [09:36:33]line ЗНМ: 0300000118 [09:36:33]line РНМ: 0000000000091857 [09:36:33]line Версия ККМ: 001 [09:36:33]line ФМ: 0000000000871826 [09:36:33]line ФД: 187557 [09:36:33]line ФПД: 256398493728814 [09:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093631&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187557&fm=256398493728814&tin=02508201610067®Number=0000000000091857&sum=70000 [09:36:33]written 0, free lines is 4095 [09:36:33]OFD Sender: Processing packet 187557 [packets to send 49, broken 48] [09:36:33]ProducePacketName [09:36:33]name=ofd_packets/00187557 [09:36:33]OFD Sender: To server: pG, [09:36:33]CommunicateWithHost lk.salyk.kg:30040 [09:36:33]ConnectInit lk.salyk.kg [09:36:33]Connected sock=10 [09:36:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 43 C9 07 01 94 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1F 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 DC 02 00 35 04 06 00 E9 31 6D 23 C0 2E C2 8C A6 31 A3 FE BE 1C [09:36:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D 43 47 00 71 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 DC 02 00 F4 03 04 00 6E EF B7 67 B6 04 01 00 00 EC B7 18 76 4B 22 AE 82 [09:36:34]CommunicateWithHost err = 0 [09:36:34]CheckOFDResponse [09:36:34]1017 (14) - 77093643461234 [09:36:34]1041 (16) - 0000000000871826 [09:36:34]1040 (4) - 187557 [09:36:34]1012 (4) - 21.02.2025 03:13 [09:36:34]1206 (1) - 0 [09:36:34]OFD Sender: Remove packet 187557 [09:36:34]ProducePacketName [09:36:34]name=ofd_packets/00187557 [09:36:34]NVStorageDeleteData [09:36:34]Write to MH i2c: 01 00 00 A7 00 A7 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 07 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 F4 0C AE [09:36:34]RasterBufferAndPrint [09:36:34]line [09:36:34]line [09:36:34]line [09:36:34]line [09:36:34]line [09:36:34]written 0, free lines is 3323 [09:36:34]MH_Cut [09:36:34]Write to MH i2c: D1 01 00 AE 00 01 80 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: D1 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: D1 01 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: D1 01 00 AE 00 00 7F [09:36:34]Write to MH i2c: 01 00 00 AF 00 AF [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]OFD Sender: No OFD packet to send [09:36:34]*** Cut start [09:36:34]*** Partial cut [09:36:34]*** CUTSNS_PIN = 1 [09:36:34]*** CUTSNS_PIN = 0 [09:36:35]*** Brake cut motor [09:36:35]Read from MH i2c: 01 [09:36:35]MH_I2C_Read... [09:36:35]*** Stop cut motor [09:36:35]*** Cut end [09:36:35]Read from MH i2c: 01 07 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [09:36:35]process_action close_receipt done [09:36:35]requested_data is exist [09:36:35]produce_requested_data [09:36:35]requested_item fm.sn is exist - process it [09:36:35]wFMCommunicate request_size=4 [09:36:35]MH_SAM_APDU [09:36:35]CAPDU: 80 11 00 00 [09:36:35]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:35]Read from MH i2c: E2 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 17 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [09:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:36:35]wFMCommunicate OK [09:36:35]requested_item fd.num is exist - process it [09:36:35]SAM_PROTO_GetFieldsCounters [09:36:35]wFMCommunicate request_size=4 [09:36:35]MH_SAM_APDU [09:36:35]CAPDU: 80 13 00 00 [09:36:35]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:35]Read from MH i2c: E2 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 62 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A5 DC 02 00 0E 04 04 00 89 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 FA [09:36:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A5 DC 02 00 0E 04 04 00 89 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:36:35]wFMCommunicate OK [09:36:35]SAM_PROTO_GetFieldsCounters done [09:36:35]requested_item shift.num is exist - process it [09:36:35]requested_item shift.opened is exist - process it [09:36:35]req_shift_opened [09:36:35]FM_GetShiftState [09:36:35]SAM_PROTO_GetShiftState [09:36:35]wFMCommunicate request_size=4 [09:36:35]MH_SAM_APDU [09:36:35]CAPDU: 80 13 01 00 [09:36:35]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:35]Read from MH i2c: E2 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 0E 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1D [09:36:35]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:36:35]wFMCommunicate OK [09:36:35]SAM_PROTO_GetShiftState done [09:36:35]FM_GetShiftState done [09:36:35]req_shift_opened done [09:36:35]requested_item shift.open_date is exist - process it [09:36:35]req_shift_open_date [09:36:35]req_shift_open_date done [09:36:35]produce_requested_data done [09:36:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187557,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:36:35]process_action_free close_receipt [09:36:35]json_value_free [09:36:35]json_value_free done [09:36:35]process_json_proto returns [09:36:35]Send response to host [09:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187557,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:36:35]free response buf [09:36:35]execute_script done [09:36:35]execute_script returns [09:36:35]free content buf [09:36:35]Sock 8.Close socket [09:36:35]Sock 8.Thread stoped [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:08]accept exits with 9 [09:37:08]New connection [09:37:08]New thread 3067080036 created [09:37:08]Thread 3066936676 joined [09:37:08]Waiting for new connection... [09:37:08] Sock 9.Parse request [09:37:08]Sock 9.Check first char [09:37:08]Sock 9.First char is OK [09:37:08]request: POST /json_proto HTTP/1.0 [09:37:08]Method: POST [09:37:08]URL: /json_proto [09:37:08]Method is POST - this is cgi request [09:37:08]url: /json_proto [09:37:08]query_string will be loaded in cgi processing [09:37:08]execute_cgi json_proto POST (null) [09:37:08]execute_cgi path=json_proto method=POST [09:37:08]POST find Content-Length [09:37:08]Host: 172.17.46.131:8080 [09:37:08]Content-Length: 678 [09:37:08]Content-Type: application/json [09:37:08] [09:37:08]POST finish read [09:37:08]Found Content-Length = 678 [09:37:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:08]execute_script... [09:37:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:08]POST & json_proto [09:37:08]process_json_proto [09:37:08]json parsed OK: [09:37:08]protocol is kg_v1.0 [09:37:08]action value=close_receipt [09:37:08]process_action close_receipt [09:37:08]cmd_close_receipt [09:37:08]MH_GetDate [09:37:08]Write to MH i2c: F0 00 00 B3 00 A2 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: F0 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: F0 09 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: F0 09 00 B3 00 00 44 49 B8 67 7E 41 4F 65 CA [09:37:08]GetLastDocTimeStamp 1740130591 [09:37:08]current date 1740130628 [09:37:08]FM_GetShiftState [09:37:08]SAM_PROTO_GetShiftState [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 13 01 00 [09:37:08]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 0E 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1F [09:37:08]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:37:08]wFMCommunicate OK [09:37:08]SAM_PROTO_GetShiftState done [09:37:08]FM_GetShiftState done [09:37:08]opened in 1740098043 [09:37:08]opened+sec_in_day 1740184443 [09:37:08]quantity*price = 100042 [09:37:08]sum+1 = 100044 [09:37:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 52 21.02.2025 09:37 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187558 ФПД: 123737640343836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093708&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187558&fm=123737640343836&tin=02508201610067®Number=0000000000091857&sum=100000 [09:37:09]StoreToDocumentArchive [09:37:09]shift 649 fd 187558 [09:37:09]save to /storage/0649/doc_00187558 [09:37:09]save last doc name /storage/0649/doc_00187558 to /storage/kkm_last_doc_name [09:37:09]save OK [09:37:09]Clear old archive folders... [09:37:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:37:09]tlvbuf is 01E81940 [09:37:09]SAM_PROTO_ClearQueue [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 09 00 00 [09:37:09]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:37:09]RAPDU: 90 00 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_ClearQueue done [09:37:09]KKMCreateOFDPacket [09:37:09]OFDProtocolAddRootSTLVToBuf [09:37:09]FM_MakeSignedData [09:37:09]FM_MakeSignedData [09:37:09]SAM_PROTO_SignData [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 0D 01 02 [09:37:09]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:37:09]RAPDU: 90 00 [09:37:09]wFMCommunicate OK [09:37:09]wFMCommunicate request_size=255 [09:37:09]MH_SAM_APDU [09:37: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 44 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 DC 02 00 35 04 06 00 70 89 EA 19 [09:37:09]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 44 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 DC 02 00 35 04 06 00 70 89 EA 19 00 00 CA [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]OFD Sender: No OFD packet to send [09:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [09:37:09]RAPDU: 90 00 [09:37:09]wFMCommunicate OK [09:37:09]wFMCommunicate request_size=7 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 0D 02 02 02 19 1C [09:37:09]Write to MH i2c: E2 0A 00 C4 00 80 0D 02 02 02 00 19 1C 00 00 77 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [09:37:09]RAPDU: 90 00 [09:37:09]wFMCommunicate OK [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 0D 03 02 [09:37:09]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0B 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0B 00 C5 00 00 F9 42 31 BB 8F 5F 00 33 90 00 89 [09:37:09]RAPDU: F9 42 31 BB 8F 5F 00 33 90 00 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_SignData done [09:37:09]FM_MakeSignedData done [09:37:09]CreateOFDProtocolMessage [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 11 00 00 [09:37:09]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [09:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:37:09]wFMCommunicate OK [09:37:09]CreateOFDProtocolMessage done [09:37:09]OFDSenderStorePacket 187558 [09:37:09]StoreOFDPacket docnum=187558 [09:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 ED 91 04 01 6C 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 44 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 DC 02 00 35 04 06 00 70 89 EA 19 19 1C F9 42 31 BB 8F 5F 00 33 [09:37:09]CheckFolder [09:37:09]dirname=/storage/ofd_packets [09:37:09]CheckFolder done [09:37:09]ProducePacketName [09:37:09]name=ofd_packets/00187558 [09:37:09]NVStorageSaveData ofd_packets/00187558 [09:37:09]File name is /storage/ofd_packets/00187558 [09:37:09]Write 298 bytes [09:37:09]NVStorageSaveData done [09:37:09]OFDSenderStorePacket done [09:37:09]KKMCreateOFDPacket done [09:37:09]NVStorageSaveData kkm_last_timestamp [09:37:09]File name is /storage/kkm_last_timestamp [09:37:09]Write 4 bytes [09:37:09]NVStorageSaveData done [09:37:09]ExternCall_PrintAddStr [09:37:09]wPrintStart [09:37:09]Write to MH i2c: 01 00 00 C7 00 C7 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [09:37:09]RasterBufferAndPrint [09:37:09]line Счет N : (1)412715 [09:37:09]line ИНН: 02508201610067 [09:37:09]line Контрольно-Кассовый Чек [09:37:09]line ПРОДАЖА [09:37:09]line ТРК (МРК, ГНК) : 6 [09:37:09]line Товар: 2710194210 [09:37:09]line ДТ-К-5 [09:37:09]line 13.780 * 72.60 [09:37:09]line = 1000.43 [09:37:09]line НДС 12% НСП 1% [09:37:09]line > о реализуемом товаре [09:37:09]line ОКРУГЛЕНИЕ: -0.43 [09:37:09]line ИТОГО: 1000.00 [09:37:09]line Внесено: 1000.00 [09:37:09]line СДАЧА: 0.00 [09:37:09]line НСП 1% : 8.85 [09:37:09]line НДС 12% : 106.24 [09:37:09]line Наличными: 1000.00 [09:37:09]line Безнал.: 0.00 [09:37:09]line Место: АЗС № 92 "Партнер Нефть" [09:37:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:37:09]line СНО: Общий режим [09:37:09]line Чек 52 21.02.2025 09:37 [09:37:09]line Смена: 649 ФФД: 1.0 [09:37:09]line ЗНМ: 0300000118 [09:37:09]line РНМ: 0000000000091857 [09:37:09]line Версия ККМ: 001 [09:37:09]line ФМ: 0000000000871826 [09:37:09]line ФД: 187558 [09:37:09]line ФПД: 123737640343836 [09:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093708&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187558&fm=123737640343836&tin=02508201610067®Number=0000000000091857&sum=100000 [09:37:09]written 0, free lines is 4095 [09:37:10]OFD Sender: Processing packet 187558 [packets to send 49, broken 48] [09:37:10]ProducePacketName [09:37:10]name=ofd_packets/00187558 [09:37:10]OFD Sender: To server: pG, [09:37:10]CommunicateWithHost lk.salyk.kg:30040 [09:37:10]ConnectInit lk.salyk.kg [09:37:10]Connected sock=10 [09:37:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 ED 91 04 01 6C 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 44 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 DC 02 00 35 04 06 00 70 89 EA 19 19 1C F9 42 31 BB 8F 5F 00 33 [09:37:10]Write to MH i2c: 01 00 00 F2 00 F2 [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 07 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 F6 0C FB [09:37:10]RasterBufferAndPrint [09:37:10]line [09:37:10]line [09:37:10]line [09:37:10]line [09:37:10]line [09:37:10]written 0, free lines is 3324 [09:37:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 46 CC 47 00 42 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 DC 02 00 F4 03 04 00 92 EF B7 67 B6 04 01 00 00 18 C0 B9 A0 89 1F 51 B4 [09:37:10]CommunicateWithHost err = 0 [09:37:10]CheckOFDResponse [09:37:10]1017 (14) - 77093643461234 [09:37:10]1041 (16) - 0000000000871826 [09:37:10]1040 (4) - 187558 [09:37:10]1012 (4) - 21.02.2025 03:14 [09:37:10]1206 (1) - 0 [09:37:10]OFD Sender: Remove packet 187558 [09:37:10]ProducePacketName [09:37:10]name=ofd_packets/00187558 [09:37:10]NVStorageDeleteData [09:37:10]MH_Cut [09:37:10]Write to MH i2c: D1 01 00 F9 00 01 CB [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: D1 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: D1 01 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: D1 01 00 F9 00 00 CA [09:37:10]Write to MH i2c: 01 00 00 FA 00 FA [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]OFD Sender: No OFD packet to send [09:37:11]*** Cut start [09:37:11]*** Partial cut [09:37:11]*** CUTSNS_PIN = 1 [09:37:11]*** CUTSNS_PIN = 0 [09:37:11]*** Brake cut motor [09:37:11]Read from MH i2c: 01 [09:37:11]MH_I2C_Read... [09:37:11]*** Stop cut motor [09:37:11]*** Cut end [09:37:11]Read from MH i2c: 01 07 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [09:37:11]process_action close_receipt done [09:37:11]requested_data is exist [09:37:11]produce_requested_data [09:37:11]requested_item fm.sn is exist - process it [09:37:11]wFMCommunicate request_size=4 [09:37:11]MH_SAM_APDU [09:37:11]CAPDU: 80 11 00 00 [09:37:11]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:11]Read from MH i2c: E2 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 17 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C8 [09:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:37:11]wFMCommunicate OK [09:37:11]requested_item fd.num is exist - process it [09:37:11]SAM_PROTO_GetFieldsCounters [09:37:11]wFMCommunicate request_size=4 [09:37:11]MH_SAM_APDU [09:37:11]CAPDU: 80 13 00 00 [09:37:11]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:12]Read from MH i2c: E2 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 62 00 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A6 DC 02 00 0E 04 04 00 89 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 49 [09:37:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A6 DC 02 00 0E 04 04 00 89 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:37:12]wFMCommunicate OK [09:37:12]SAM_PROTO_GetFieldsCounters done [09:37:12]requested_item shift.num is exist - process it [09:37:12]requested_item shift.opened is exist - process it [09:37:12]req_shift_opened [09:37:12]FM_GetShiftState [09:37:12]SAM_PROTO_GetShiftState [09:37:12]wFMCommunicate request_size=4 [09:37:12]MH_SAM_APDU [09:37:12]CAPDU: 80 13 01 00 [09:37:12]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [09:37:12]Write i2c OK [09:37:12]MH_I2C_Read... [09:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:12]Read from MH i2c: E2 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 0E 00 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 68 [09:37:12]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:37:12]wFMCommunicate OK [09:37:12]SAM_PROTO_GetShiftState done [09:37:12]FM_GetShiftState done [09:37:12]req_shift_opened done [09:37:12]requested_item shift.open_date is exist - process it [09:37:12]req_shift_open_date [09:37:12]req_shift_open_date done [09:37:12]produce_requested_data done [09:37:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187558,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:37:12]process_action_free close_receipt [09:37:12]json_value_free [09:37:12]json_value_free done [09:37:12]process_json_proto returns [09:37:12]Send response to host [09:37:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187558,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:37:12]free response buf [09:37:12]execute_script done [09:37:12]execute_script returns [09:37:12]free content buf [09:37:12]Sock 9.Close socket [09:37:12]Sock 9.Thread stoped [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:37]accept exits with 8 [09:39:37]New connection [09:39:37]New thread 3066936676 created [09:39:37]Thread 3067080036 joined [09:39:37]Waiting for new connection... [09:39:37] Sock 8.Parse request [09:39:37]Sock 8.Check first char [09:39:37]Sock 8.First char is OK [09:39:37]request: POST /json_proto HTTP/1.0 [09:39:37]Method: POST [09:39:37]URL: /json_proto [09:39:37]Method is POST - this is cgi request [09:39:37]url: /json_proto [09:39:37]query_string will be loaded in cgi processing [09:39:37]execute_cgi json_proto POST (null) [09:39:37]execute_cgi path=json_proto method=POST [09:39:37]POST find Content-Length [09:39:37]Host: 172.17.46.131:8080 [09:39:37]Content-Length: 682 [09:39:37]Content-Type: application/json [09:39:37] [09:39:37]POST finish read [09:39:37]Found Content-Length = 682 [09:39:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:37]execute_script... [09:39: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)412716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:37]POST & json_proto [09:39:37]process_json_proto [09:39:37]json parsed OK: [09:39:37]protocol is kg_v1.0 [09:39:37]action value=close_receipt [09:39:37]process_action close_receipt [09:39:37]cmd_close_receipt [09:39:37]MH_GetDate [09:39:37]Write to MH i2c: F0 00 00 FE 00 ED [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: F0 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: F0 09 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: F0 09 00 FE 00 00 D9 49 B8 67 7E 41 4F 65 AA [09:39:37]GetLastDocTimeStamp 1740130628 [09:39:37]current date 1740130777 [09:39:37]FM_GetShiftState [09:39:37]SAM_PROTO_GetShiftState [09:39:37]wFMCommunicate request_size=4 [09:39:37]MH_SAM_APDU [09:39:37]CAPDU: 80 13 01 00 [09:39:37]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [09:39:37]Write i2c OK [09:39:37]MH_I2C_Read... [09:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:37]Read from MH i2c: E2 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 0E 00 [09:39:37]MH_I2C_Read... [09:39:37]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6A [09:39:37]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:39:37]wFMCommunicate OK [09:39:37]SAM_PROTO_GetShiftState done [09:39:37]FM_GetShiftState done [09:39:37]opened in 1740098043 [09:39:37]opened+sec_in_day 1740184443 [09:39:37]quantity*price = 100023 [09:39:37]sum+1 = 100025 [09:39:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 53 21.02.2025 09:39 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187559 ФПД: 51605206804095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093937&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187559&fm=51605206804095&tin=02508201610067®Number=0000000000091857&sum=100000 [09:39:38]StoreToDocumentArchive [09:39:38]shift 649 fd 187559 [09:39:38]save to /storage/0649/doc_00187559 [09:39:38]save last doc name /storage/0649/doc_00187559 to /storage/kkm_last_doc_name [09:39:38]save OK [09:39:38]Clear old archive folders... [09:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:38]tlvbuf is 01EA91C0 [09:39:38]SAM_PROTO_ClearQueue [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 09 00 00 [09:39:38]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]SAM_PROTO_ClearQueue done [09:39:38]KKMCreateOFDPacket [09:39:38]OFDProtocolAddRootSTLVToBuf [09:39:38]FM_MakeSignedData [09:39:38]FM_MakeSignedData [09:39:38]SAM_PROTO_SignData [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 01 02 [09:39:38]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=255 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D9 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 DC 02 00 35 04 06 00 2E [09:39:38]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D9 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 DC 02 00 35 04 06 00 2E 00 00 38 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=10 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 02 02 05 EF 46 05 26 7F [09:39:38]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 EF 46 05 26 7F 00 00 73 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [09:39:38]RAPDU: 90 00 [09:39:38]wFMCommunicate OK [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 0D 03 02 [09:39:38]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 0B 00 10 01 00 07 D7 4B 1C 6D 02 3D 8E 90 00 0C [09:39:38]RAPDU: 07 D7 4B 1C 6D 02 3D 8E 90 00 [09:39:38]wFMCommunicate OK [09:39:38]SAM_PROTO_SignData done [09:39:38]FM_MakeSignedData done [09:39:38]CreateOFDProtocolMessage [09:39:38]wFMCommunicate request_size=4 [09:39:38]MH_SAM_APDU [09:39:38]CAPDU: 80 11 00 00 [09:39:38]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:38]Read from MH i2c: E2 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [09:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:39:38]wFMCommunicate OK [09:39:38]CreateOFDProtocolMessage done [09:39:38]OFDSenderStorePacket 187559 [09:39:38]StoreOFDPacket docnum=187559 [09:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 46 09 07 01 A2 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D9 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 DC 02 00 35 04 06 00 2E EF 46 05 26 7F 07 D7 4B 1C 6D 02 3D 8E [09:39:38]CheckFolder [09:39:38]dirname=/storage/ofd_packets [09:39:38]CheckFolder done [09:39:38]ProducePacketName [09:39:38]name=ofd_packets/00187559 [09:39:38]NVStorageSaveData ofd_packets/00187559 [09:39:38]File name is /storage/ofd_packets/00187559 [09:39:38]Write 301 bytes [09:39:38]NVStorageSaveData done [09:39:38]OFDSenderStorePacket done [09:39:38]KKMCreateOFDPacket done [09:39:38]NVStorageSaveData kkm_last_timestamp [09:39:38]File name is /storage/kkm_last_timestamp [09:39:38]Write 4 bytes [09:39:38]NVStorageSaveData done [09:39:38]ExternCall_PrintAddStr [09:39:38]wPrintStart [09:39:38]Write to MH i2c: 01 00 00 12 01 13 [09:39:38]Write i2c OK [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 [09:39:38]MH_I2C_Read... [09:39:38]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [09:39:38]RasterBufferAndPrint [09:39:38]line Счет N : (1)412716 [09:39:38]line ИНН: 02508201610067 [09:39:38]line Контрольно-Кассовый Чек [09:39:38]line ПРОДАЖА [09:39:38]line ТРК (МРК, ГНК) : 12 [09:39:38]line Товар: 2710124130 [09:39:38]line Аи-92-К-2 [09:39:38]line 15.580 * 64.20 [09:39:38]line = 1000.24 [09:39:38]line НДС 12% НСП 1% [09:39:38]line > о реализуемом товаре [09:39:38]line ОКРУГЛЕНИЕ: -0.24 [09:39:38]line ИТОГО: 1000.00 [09:39:38]line Внесено: 1000.00 [09:39:38]line СДАЧА: 0.00 [09:39:38]line НСП 1% : 8.85 [09:39:38]line НДС 12% : 106.22 [09:39:38]line Наличными: 1000.00 [09:39:38]line Безнал.: 0.00 [09:39:38]line Место: АЗС № 92 "Партнер Нефть" [09:39:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:39:38]line СНО: Общий режим [09:39:38]line Чек 53 21.02.2025 09:39 [09:39:38]line Смена: 649 ФФД: 1.0 [09:39:38]line ЗНМ: 0300000118 [09:39:38]line РНМ: 0000000000091857 [09:39:38]line Версия ККМ: 001 [09:39:38]line ФМ: 0000000000871826 [09:39:38]line ФД: 187559 [09:39:38]line ФПД: 51605206804095 [09:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T093937&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187559&fm=51605206804095&tin=02508201610067®Number=0000000000091857&sum=100000 [09:39:39]written 0, free lines is 4095 [09:39:39]OFD Sender: Processing packet 187559 [packets to send 49, broken 48] [09:39:39]ProducePacketName [09:39:39]name=ofd_packets/00187559 [09:39:39]OFD Sender: To server: pG, [09:39:39]CommunicateWithHost lk.salyk.kg:30040 [09:39:39]ConnectInit lk.salyk.kg [09:39:39]Connected sock=10 [09:39:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 46 09 07 01 A2 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D9 49 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 DC 02 00 35 04 06 00 2E EF 46 05 26 7F 07 D7 4B 1C 6D 02 3D 8E [09:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 79 84 47 00 ED 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 38 32 36 10 04 04 00 A7 DC 02 00 F4 03 04 00 27 F0 B7 67 B6 04 01 00 00 D2 DE 46 E6 AF 61 06 A5 [09:39:39]CommunicateWithHost err = 0 [09:39:39]CheckOFDResponse [09:39:39]1017 (14) - 77093643461234 [09:39:39]1041 (16) - 0000000000871826 [09:39:39]1040 (4) - 187559 [09:39:39]1012 (4) - 21.02.2025 03:16 [09:39:39]1206 (1) - 0 [09:39:39]OFD Sender: Remove packet 187559 [09:39:39]ProducePacketName [09:39:39]name=ofd_packets/00187559 [09:39:39]NVStorageDeleteData [09:39:39]Write to MH i2c: 01 00 00 3D 01 3E [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 07 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 FF 0C 50 [09:39:39]RasterBufferAndPrint [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]line [09:39:39]written 0, free lines is 3333 [09:39:39]MH_Cut [09:39:39]Write to MH i2c: D1 01 00 44 01 01 17 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 01 00 [09:39:39]MH_I2C_Read... [09:39:39]Read from MH i2c: D1 01 00 44 01 00 16 [09:39:39]Write to MH i2c: 01 00 00 45 01 46 [09:39:39]Write i2c OK [09:39:39]MH_I2C_Read... [09:39:40]OFD Sender: No OFD packet to send [09:39:40]*** Cut start [09:39:40]*** Partial cut [09:39:40]*** CUTSNS_PIN = 1 [09:39:40]*** CUTSNS_PIN = 0 [09:39:40]*** Brake cut motor [09:39:41]Read from MH i2c: 01 [09:39:41]MH_I2C_Read... [09:39:41]*** Stop cut motor [09:39:41]*** Cut end [09:39:41]Read from MH i2c: 01 07 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [09:39:41]process_action close_receipt done [09:39:41]requested_data is exist [09:39:41]produce_requested_data [09:39:41]requested_item fm.sn is exist - process it [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 11 00 00 [09:39:41]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 17 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [09:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:39:41]wFMCommunicate OK [09:39:41]requested_item fd.num is exist - process it [09:39:41]SAM_PROTO_GetFieldsCounters [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 13 00 00 [09:39:41]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 62 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A7 DC 02 00 0E 04 04 00 89 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 99 [09:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A7 DC 02 00 0E 04 04 00 89 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:39:41]wFMCommunicate OK [09:39:41]SAM_PROTO_GetFieldsCounters done [09:39:41]requested_item shift.num is exist - process it [09:39:41]requested_item shift.opened is exist - process it [09:39:41]req_shift_opened [09:39:41]FM_GetShiftState [09:39:41]SAM_PROTO_GetShiftState [09:39:41]wFMCommunicate request_size=4 [09:39:41]MH_SAM_APDU [09:39:41]CAPDU: 80 13 01 00 [09:39:41]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [09:39:41]Write i2c OK [09:39:41]MH_I2C_Read... [09:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:41]Read from MH i2c: E2 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 0E 00 [09:39:41]MH_I2C_Read... [09:39:41]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B4 [09:39:41]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:39:41]wFMCommunicate OK [09:39:41]SAM_PROTO_GetShiftState done [09:39:41]FM_GetShiftState done [09:39:41]req_shift_opened done [09:39:41]requested_item shift.open_date is exist - process it [09:39:41]req_shift_open_date [09:39:41]req_shift_open_date done [09:39:41]produce_requested_data done [09:39:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187559,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:39:41]process_action_free close_receipt [09:39:41]json_value_free [09:39:41]json_value_free done [09:39:41]process_json_proto returns [09:39:41]Send response to host [09:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187559,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:39:41]free response buf [09:39:41]execute_script done [09:39:41]execute_script returns [09:39:41]free content buf [09:39:41]Sock 8.Close socket [09:39:41]Sock 8.Thread stoped [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:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:20]accept exits with 9 [09:46:20]New connection [09:46:20]New thread 3067080036 created [09:46:20]Thread 3066936676 joined [09:46:20]Waiting for new connection... [09:46:20] Sock 9.Parse request [09:46:20]Sock 9.Check first char [09:46:20]Sock 9.First char is OK [09:46:20]request: POST /json_proto HTTP/1.0 [09:46:20]Method: POST [09:46:20]URL: /json_proto [09:46:20]Method is POST - this is cgi request [09:46:20]url: /json_proto [09:46:20]query_string will be loaded in cgi processing [09:46:20]execute_cgi json_proto POST (null) [09:46:20]execute_cgi path=json_proto method=POST [09:46:20]POST find Content-Length [09:46:20]Host: 172.17.46.131:8080 [09:46:20]Content-Length: 750 [09:46:20]Content-Type: application/json [09:46:20] [09:46:20]POST finish read [09:46:20]Found Content-Length = 750 [09:46:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.670, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:20]execute_script... [09: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)412717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 19.670, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:20]POST & json_proto [09:46:20]process_json_proto [09:46:20]json parsed OK: [09:46:20]protocol is kg_v1.0 [09:46:20]action value=close_receipt [09:46:20]process_action close_receipt [09:46:20]cmd_close_receipt [09:46:20]MH_GetDate [09:46:20]Write to MH i2c: F0 00 00 49 01 39 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: F0 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: F0 09 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: F0 09 00 49 01 00 6D 4B B8 67 7E 41 4F 65 8C [09:46:20]GetLastDocTimeStamp 1740130777 [09:46:20]current date 1740131181 [09:46:20]FM_GetShiftState [09:46:20]SAM_PROTO_GetShiftState [09:46:20]wFMCommunicate request_size=4 [09:46:20]MH_SAM_APDU [09:46:20]CAPDU: 80 13 01 00 [09:46:20]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [09:46:20]Write i2c OK [09:46:20]MH_I2C_Read... [09:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:20]Read from MH i2c: E2 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 0E 00 [09:46:20]MH_I2C_Read... [09:46:20]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B6 [09:46:20]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:46:20]wFMCommunicate OK [09:46:20]SAM_PROTO_GetShiftState done [09:46:20]FM_GetShiftState done [09:46:20]opened in 1740098043 [09:46:20]opened+sec_in_day 1740184443 [09:46:20]quantity*price = 0 [09:46:20]sum+1 = 1 [09:46:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 54 21.02.2025 09:46 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106530 ФМ: 0000000000871826 ФД: 187560 ФПД: 67833736240244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T094621&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187560&fm=67833736240244&tin=02508201610067®Number=0000000000091857&sum=0 [09:46:22]StoreToDocumentArchive [09:46:22]shift 649 fd 187560 [09:46:22]save to /storage/0649/doc_00187560 [09:46:22]save last doc name /storage/0649/doc_00187560 to /storage/kkm_last_doc_name [09:46:22]save OK [09:46:22]Clear old archive folders... [09:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:22]tlvbuf is B6F775F0 [09:46:22]SAM_PROTO_ClearQueue [09:46:22]wFMCommunicate request_size=4 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 09 00 00 [09:46:22]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:22]Read from MH i2c: E2 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [09:46:22]RAPDU: 90 00 [09:46:22]wFMCommunicate OK [09:46:22]SAM_PROTO_ClearQueue done [09:46:22]KKMCreateOFDPacket [09:46:22]OFDProtocolAddRootSTLVToBuf [09:46:22]FM_MakeSignedData [09:46:22]FM_MakeSignedData [09:46:22]SAM_PROTO_SignData [09:46:22]wFMCommunicate request_size=4 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 0D 01 02 [09:46:22]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:22]Read from MH i2c: E2 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [09:46:22]RAPDU: 90 00 [09:46:22]wFMCommunicate OK [09:46:22]wFMCommunicate request_size=255 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 6D 4B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 DC 02 00 35 04 06 00 3D B1 C5 C0 [09:46:22]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 6D 4B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 DC 02 00 35 04 06 00 3D B1 C5 C0 00 00 E7 [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:22]Read from MH i2c: E2 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [09:46:22]RAPDU: 90 00 [09:46:22]wFMCommunicate OK [09:46:22]wFMCommunicate request_size=7 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 0D 02 02 02 9C 74 [09:46:22]Write to MH i2c: E2 0A 00 5A 01 80 0D 02 02 02 00 9C 74 00 00 E9 [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:22]Read from MH i2c: E2 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [09:46:22]RAPDU: 90 00 [09:46:22]wFMCommunicate OK [09:46:22]wFMCommunicate request_size=4 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 0D 03 02 [09:46:22]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:22]Read from MH i2c: E2 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 0B 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 0B 00 5B 01 00 F8 DD 2D 5D 3D 59 99 D9 90 00 3F [09:46:22]RAPDU: F8 DD 2D 5D 3D 59 99 D9 90 00 [09:46:22]wFMCommunicate OK [09:46:22]SAM_PROTO_SignData done [09:46:22]FM_MakeSignedData done [09:46:22]CreateOFDProtocolMessage [09:46:22]wFMCommunicate request_size=4 [09:46:22]MH_SAM_APDU [09:46:22]CAPDU: 80 11 00 00 [09:46:22]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:22]Read from MH i2c: E2 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 17 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [09:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:46:22]wFMCommunicate OK [09:46:22]CreateOFDProtocolMessage done [09:46:22]OFDSenderStorePacket 187560 [09:46:22]StoreOFDPacket docnum=187560 [09:46:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 80 24 04 01 37 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 6D 4B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 DC 02 00 35 04 06 00 3D B1 C5 C0 9C 74 F8 DD 2D 5D 3D 59 99 D9 [09:46:22]CheckFolder [09:46:22]dirname=/storage/ofd_packets [09:46:22]CheckFolder done [09:46:22]ProducePacketName [09:46:22]name=ofd_packets/00187560 [09:46:22]NVStorageSaveData ofd_packets/00187560 [09:46:22]File name is /storage/ofd_packets/00187560 [09:46:22]Write 298 bytes [09:46:22]NVStorageSaveData done [09:46:22]OFDSenderStorePacket done [09:46:22]KKMCreateOFDPacket done [09:46:22]NVStorageSaveData kkm_last_timestamp [09:46:22]File name is /storage/kkm_last_timestamp [09:46:22]Write 4 bytes [09:46:22]NVStorageSaveData done [09:46:22]ExternCall_PrintAddStr [09:46:22]wPrintStart [09:46:22]Write to MH i2c: 01 00 00 5D 01 5E [09:46:22]Write i2c OK [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: 01 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: 01 07 00 [09:46:22]MH_I2C_Read... [09:46:22]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [09:46:22]RasterBufferAndPrint [09:46:22]line Счет N : (1)412717 [09:46:22]line ИНН: 02508201610067 [09:46:22]line Контрольно-Кассовый Чек [09:46:22]line ПРОДАЖА [09:46:22]line ТРК (МРК, ГНК) : 5 [09:46:22]line Товар: 2710194210 [09:46:22]line ДТ-К-5 [09:46:22]line 19.670 * 0.00 [09:46:22]line = 0.00 [09:46:22]line НДС 12% НСП 1% [09:46:22]line > о реализуемом товаре [09:46:22]line ИТОГО: 0.00 [09:46:22]line НСП 1% : 0.00 [09:46:22]line НДС 12% : 0.00 [09:46:22]line Наличными: 0.00 [09:46:22]line Безнал.: 0.00 [09:46:22]line Место: АЗС № 92 "Партнер Нефть" [09:46:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:46:22]line СНО: Общий режим [09:46:22]line Чек 54 21.02.2025 09:46 [09:46:22]line Смена: 649 ФФД: 1.0 [09:46:22]line ЗНМ: 0300000118 [09:46:22]line РНМ: 0000000000091857 [09:46:22]line Версия ККМ: 001 [09:46:22]line Талоны: ТК ГПНА Online [09:46:22]line 30106530 [09:46:22]line ФМ: 0000000000871826 [09:46:22]line ФД: 187560 [09:46:22]line ФПД: 67833736240244 [09:46:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T094621&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187560&fm=67833736240244&tin=02508201610067®Number=0000000000091857&sum=0 [09:46:22]OFD Sender: Processing packet 187560 [packets to send 49, broken 48] [09:46:22]ProducePacketName [09:46:22]name=ofd_packets/00187560 [09:46:22]OFD Sender: To server: pG, [09:46:22]CommunicateWithHost lk.salyk.kg:30040 [09:46:22]ConnectInit lk.salyk.kg [09:46:22]written 0, free lines is 4095 [09:46:23]Connected sock=10 [09:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 80 24 04 01 37 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 6D 4B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 DC 02 00 35 04 06 00 3D B1 C5 C0 9C 74 F8 DD 2D 5D 3D 59 99 D9 [09:46:23]Write to MH i2c: 01 00 00 87 01 88 [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: 01 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: 01 07 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 F9 0C 94 [09:46:23]RasterBufferAndPrint [09:46:23]line [09:46:23]line [09:46:23]line [09:46:23]line [09:46:23]line [09:46:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 43 C6 47 00 5D F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 DC 02 00 F4 03 04 00 BB F1 B7 67 B6 04 01 00 00 25 19 9E 64 7A 0D 12 F0 [09:46:23]CommunicateWithHost err = 0 [09:46:23]CheckOFDResponse [09:46:23]1017 (14) - 77093643461234 [09:46:23]1041 (16) - 0000000000871826 [09:46:23]1040 (4) - 187560 [09:46:23]1012 (4) - 21.02.2025 03:23 [09:46:23]1206 (1) - 0 [09:46:23]OFD Sender: Remove packet 187560 [09:46:23]ProducePacketName [09:46:23]name=ofd_packets/00187560 [09:46:23]NVStorageDeleteData [09:46:23]written 0, free lines is 3327 [09:46:23]MH_Cut [09:46:23]Write to MH i2c: D1 01 00 8E 01 01 61 [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: D1 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: D1 01 00 [09:46:23]MH_I2C_Read... [09:46:23]Read from MH i2c: D1 01 00 8E 01 00 60 [09:46:23]Write to MH i2c: 01 00 00 8F 01 90 [09:46:23]Write i2c OK [09:46:23]MH_I2C_Read... [09:46:23]OFD Sender: No OFD packet to send [09:46:24]*** Cut start [09:46:24]*** Partial cut [09:46:24]*** CUTSNS_PIN = 1 [09:46:24]*** CUTSNS_PIN = 0 [09:46:24]*** Brake cut motor [09:46:24]Read from MH i2c: 01 [09:46:24]MH_I2C_Read... [09:46:24]*** Stop cut motor [09:46:24]*** Cut end [09:46:24]Read from MH i2c: 01 07 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [09:46:24]process_action close_receipt done [09:46:24]requested_data is exist [09:46:24]produce_requested_data [09:46:24]requested_item fm.sn is exist - process it [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 11 00 00 [09:46:24]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 17 00 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [09:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:46:24]wFMCommunicate OK [09:46:24]requested_item fd.num is exist - process it [09:46:24]SAM_PROTO_GetFieldsCounters [09:46:24]wFMCommunicate request_size=4 [09:46:24]MH_SAM_APDU [09:46:24]CAPDU: 80 13 00 00 [09:46:24]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [09:46:24]Write i2c OK [09:46:24]MH_I2C_Read... [09:46:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:24]Read from MH i2c: E2 [09:46:24]MH_I2C_Read... [09:46:24]Read from MH i2c: E2 62 00 [09:46:24]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A8 DC 02 00 0E 04 04 00 89 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 E7 [09:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A8 DC 02 00 0E 04 04 00 89 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:46:25]wFMCommunicate OK [09:46:25]SAM_PROTO_GetFieldsCounters done [09:46:25]requested_item shift.num is exist - process it [09:46:25]requested_item shift.opened is exist - process it [09:46:25]req_shift_opened [09:46:25]FM_GetShiftState [09:46:25]SAM_PROTO_GetShiftState [09:46:25]wFMCommunicate request_size=4 [09:46:25]MH_SAM_APDU [09:46:25]CAPDU: 80 13 01 00 [09:46:25]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [09:46:25]Write i2c OK [09:46:25]MH_I2C_Read... [09:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:25]Read from MH i2c: E2 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 0E 00 [09:46:25]MH_I2C_Read... [09:46:25]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FE [09:46:25]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:46:25]wFMCommunicate OK [09:46:25]SAM_PROTO_GetShiftState done [09:46:25]FM_GetShiftState done [09:46:25]req_shift_opened done [09:46:25]requested_item shift.open_date is exist - process it [09:46:25]req_shift_open_date [09:46:25]req_shift_open_date done [09:46:25]produce_requested_data done [09:46:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187560,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:46:25]process_action_free close_receipt [09:46:25]json_value_free [09:46:25]json_value_free done [09:46:25]process_json_proto returns [09:46:25]Send response to host [09:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187560,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:46:25]free response buf [09:46:25]execute_script done [09:46:25]execute_script returns [09:46:25]free content buf [09:46:25]Sock 9.Close socket [09:46:25]Sock 9.Thread stoped [09:46: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:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:23]accept exits with 8 [09:53:23]New connection [09:53:23]New thread 3066936676 created [09:53:23]Thread 3067080036 joined [09:53:23]Waiting for new connection... [09:53:23] Sock 8.Parse request [09:53:23]Sock 8.Check first char [09:53:23]Sock 8.First char is OK [09:53:23]request: POST /json_proto HTTP/1.0 [09:53:23]Method: POST [09:53:23]URL: /json_proto [09:53:23]Method is POST - this is cgi request [09:53:23]url: /json_proto [09:53:23]query_string will be loaded in cgi processing [09:53:23]execute_cgi json_proto POST (null) [09:53:23]execute_cgi path=json_proto method=POST [09:53:23]POST find Content-Length [09:53:23]Host: 172.17.46.131:8080 [09:53:23]Content-Length: 682 [09:53:23]Content-Type: application/json [09:53:23] [09:53:23]POST finish read [09:53:23]Found Content-Length = 682 [09:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:23]execute_script... [09:53:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:23]POST & json_proto [09:53:23]process_json_proto [09:53:23]json parsed OK: [09:53:23]protocol is kg_v1.0 [09:53:23]action value=close_receipt [09:53:23]process_action close_receipt [09:53:23]cmd_close_receipt [09:53:23]MH_GetDate [09:53:23]Write to MH i2c: F0 00 00 93 01 83 [09:53:23]Write i2c OK [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: F0 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: F0 09 00 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: F0 09 00 93 01 00 13 4D B8 67 7E 41 4F 65 7E [09:53:23]GetLastDocTimeStamp 1740131181 [09:53:23]current date 1740131603 [09:53:23]FM_GetShiftState [09:53:23]SAM_PROTO_GetShiftState [09:53:23]wFMCommunicate request_size=4 [09:53:23]MH_SAM_APDU [09:53:23]CAPDU: 80 13 01 00 [09:53:23]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [09:53:23]Write i2c OK [09:53:23]MH_I2C_Read... [09:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:23]Read from MH i2c: E2 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 0E 00 [09:53:23]MH_I2C_Read... [09:53:23]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 00 [09:53:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:53:23]wFMCommunicate OK [09:53:23]SAM_PROTO_GetShiftState done [09:53:23]FM_GetShiftState done [09:53:23]opened in 1740098043 [09:53:23]opened+sec_in_day 1740184443 [09:53:23]quantity*price = 100023 [09:53:23]sum+1 = 100025 [09:53:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 55 21.02.2025 09:53 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187561 ФПД: 259580011709891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T095323&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187561&fm=259580011709891&tin=02508201610067®Number=0000000000091857&sum=100000 [09:53:24]StoreToDocumentArchive [09:53:24]shift 649 fd 187561 [09:53:24]save to /storage/0649/doc_00187561 [09:53:24]save last doc name /storage/0649/doc_00187561 to /storage/kkm_last_doc_name [09:53:24]save OK [09:53:24]Clear old archive folders... [09:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:24]tlvbuf is 01EB0A20 [09:53:24]SAM_PROTO_ClearQueue [09:53:24]wFMCommunicate request_size=4 [09:53:24]MH_SAM_APDU [09:53:24]CAPDU: 80 09 00 00 [09:53:24]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:24]Read from MH i2c: E2 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 03 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [09:53:24]RAPDU: 90 00 [09:53:24]wFMCommunicate OK [09:53:24]SAM_PROTO_ClearQueue done [09:53:24]KKMCreateOFDPacket [09:53:24]OFDProtocolAddRootSTLVToBuf [09:53:24]FM_MakeSignedData [09:53:24]FM_MakeSignedData [09:53:24]SAM_PROTO_SignData [09:53:24]wFMCommunicate request_size=4 [09:53:24]MH_SAM_APDU [09:53:24]CAPDU: 80 0D 01 02 [09:53:24]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:24]Read from MH i2c: E2 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 03 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [09:53:24]RAPDU: 90 00 [09:53:24]wFMCommunicate OK [09:53:24]wFMCommunicate request_size=255 [09:53:24]MH_SAM_APDU [09:53:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 13 4D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 DC 02 00 35 04 06 00 EC [09:53:24]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 13 4D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 DC 02 00 35 04 06 00 EC 00 00 CD [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:24]Read from MH i2c: E2 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 03 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [09:53:24]RAPDU: 90 00 [09:53:24]wFMCommunicate OK [09:53:24]wFMCommunicate request_size=10 [09:53:24]MH_SAM_APDU [09:53:24]CAPDU: 80 0D 02 02 05 16 2E 63 85 C3 [09:53:24]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 16 2E 63 85 C3 00 00 18 [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:24]Read from MH i2c: E2 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 03 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [09:53:24]RAPDU: 90 00 [09:53:24]wFMCommunicate OK [09:53:24]wFMCommunicate request_size=4 [09:53:24]MH_SAM_APDU [09:53:24]CAPDU: 80 0D 03 02 [09:53:24]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:24]Read from MH i2c: E2 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 0B 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 0B 00 A5 01 00 80 E8 1E E7 B2 2A 09 D2 90 00 46 [09:53:24]RAPDU: 80 E8 1E E7 B2 2A 09 D2 90 00 [09:53:24]wFMCommunicate OK [09:53:24]SAM_PROTO_SignData done [09:53:24]FM_MakeSignedData done [09:53:24]CreateOFDProtocolMessage [09:53:24]wFMCommunicate request_size=4 [09:53:24]MH_SAM_APDU [09:53:24]CAPDU: 80 11 00 00 [09:53:24]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:24]Read from MH i2c: E2 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 17 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [09:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:53:24]wFMCommunicate OK [09:53:24]CreateOFDProtocolMessage done [09:53:24]OFDSenderStorePacket 187561 [09:53:24]StoreOFDPacket docnum=187561 [09:53:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D4 23 07 01 9D 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 13 4D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 DC 02 00 35 04 06 00 EC 16 2E 63 85 C3 80 E8 1E E7 B2 2A 09 D2 [09:53:24]CheckFolder [09:53:24]dirname=/storage/ofd_packets [09:53:24]CheckFolder done [09:53:24]ProducePacketName [09:53:24]name=ofd_packets/00187561 [09:53:24]NVStorageSaveData ofd_packets/00187561 [09:53:24]File name is /storage/ofd_packets/00187561 [09:53:24]Write 301 bytes [09:53:24]NVStorageSaveData done [09:53:24]OFDSenderStorePacket done [09:53:24]KKMCreateOFDPacket done [09:53:24]NVStorageSaveData kkm_last_timestamp [09:53:24]File name is /storage/kkm_last_timestamp [09:53:24]Write 4 bytes [09:53:24]NVStorageSaveData done [09:53:24]ExternCall_PrintAddStr [09:53:24]wPrintStart [09:53:24]Write to MH i2c: 01 00 00 A7 01 A8 [09:53:24]Write i2c OK [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: 01 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: 01 07 00 [09:53:24]MH_I2C_Read... [09:53:24]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [09:53:24]RasterBufferAndPrint [09:53:24]line Счет N : (1)412718 [09:53:24]line ИНН: 02508201610067 [09:53:24]line Контрольно-Кассовый Чек [09:53:24]line ПРОДАЖА [09:53:24]line ТРК (МРК, ГНК) : 22 [09:53:24]line Товар: 2710124130 [09:53:24]line Аи-92-К-2 [09:53:24]line 15.580 * 64.20 [09:53:24]line = 1000.24 [09:53:24]line НДС 12% НСП 1% [09:53:24]line > о реализуемом товаре [09:53:24]line ОКРУГЛЕНИЕ: -0.24 [09:53:24]line ИТОГО: 1000.00 [09:53:24]line Внесено: 1000.00 [09:53:24]line СДАЧА: 0.00 [09:53:24]line НСП 1% : 8.85 [09:53:24]line НДС 12% : 106.22 [09:53:24]line Наличными: 1000.00 [09:53:24]line Безнал.: 0.00 [09:53:24]line Место: АЗС № 92 "Партнер Нефть" [09:53:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:53:24]line СНО: Общий режим [09:53:24]line Чек 55 21.02.2025 09:53 [09:53:24]line Смена: 649 ФФД: 1.0 [09:53:24]line ЗНМ: 0300000118 [09:53:24]line РНМ: 0000000000091857 [09:53:24]line Версия ККМ: 001 [09:53:24]line ФМ: 0000000000871826 [09:53:24]line ФД: 187561 [09:53:24]line ФПД: 259580011709891 [09:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T095323&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187561&fm=259580011709891&tin=02508201610067®Number=0000000000091857&sum=100000 [09:53:25]OFD Sender: Processing packet 187561 [packets to send 49, broken 48] [09:53:25]ProducePacketName [09:53:25]name=ofd_packets/00187561 [09:53:25]OFD Sender: To server: pG, [09:53:25]CommunicateWithHost lk.salyk.kg:30040 [09:53:25]ConnectInit lk.salyk.kg [09:53:25]written 0, free lines is 4095 [09:53:25]Connected sock=10 [09:53:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D4 23 07 01 9D 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 13 4D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 DC 02 00 35 04 06 00 EC 16 2E 63 85 C3 80 E8 1E E7 B2 2A 09 D2 [09:53:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F5 0D 47 00 34 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 DC 02 00 F4 03 04 00 61 F3 B7 67 B6 04 01 00 00 B0 CB A3 37 77 60 D7 8E [09:53:25]CommunicateWithHost err = 0 [09:53:25]CheckOFDResponse [09:53:25]1017 (14) - 77093643461234 [09:53:25]1041 (16) - 0000000000871826 [09:53:25]1040 (4) - 187561 [09:53:25]1012 (4) - 21.02.2025 03:30 [09:53:25]1206 (1) - 0 [09:53:25]OFD Sender: Remove packet 187561 [09:53:25]ProducePacketName [09:53:25]name=ofd_packets/00187561 [09:53:25]NVStorageDeleteData [09:53:25]Write to MH i2c: 01 00 00 D2 01 D3 [09:53:25]Write i2c OK [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: 01 [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: 01 07 00 [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 F3 0C D9 [09:53:25]RasterBufferAndPrint [09:53:25]line [09:53:25]line [09:53:25]line [09:53:25]line [09:53:25]line [09:53:25]written 0, free lines is 3321 [09:53:25]MH_Cut [09:53:25]Write to MH i2c: D1 01 00 D9 01 01 AC [09:53:25]Write i2c OK [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: D1 [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: D1 01 00 [09:53:25]MH_I2C_Read... [09:53:25]Read from MH i2c: D1 01 00 D9 01 00 AB [09:53:25]Write to MH i2c: 01 00 00 DA 01 DB [09:53:25]Write i2c OK [09:53:25]MH_I2C_Read... [09:53:26]OFD Sender: No OFD packet to send [09:53:26]*** Cut start [09:53:26]*** Partial cut [09:53:26]*** CUTSNS_PIN = 1 [09:53:26]*** CUTSNS_PIN = 0 [09:53:26]*** Brake cut motor [09:53:27]Read from MH i2c: 01 [09:53:27]MH_I2C_Read... [09:53:27]*** Stop cut motor [09:53:27]*** Cut end [09:53:27]Read from MH i2c: 01 07 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [09:53:27]process_action close_receipt done [09:53:27]requested_data is exist [09:53:27]produce_requested_data [09:53:27]requested_item fm.sn is exist - process it [09:53:27]wFMCommunicate request_size=4 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 11 00 00 [09:53:27]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 17 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [09:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:53:27]wFMCommunicate OK [09:53:27]requested_item fd.num is exist - process it [09:53:27]SAM_PROTO_GetFieldsCounters [09:53:27]wFMCommunicate request_size=4 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 13 00 00 [09:53:27]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 62 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A9 DC 02 00 0E 04 04 00 89 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 36 [09:53:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A9 DC 02 00 0E 04 04 00 89 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:53:27]wFMCommunicate OK [09:53:27]SAM_PROTO_GetFieldsCounters done [09:53:27]requested_item shift.num is exist - process it [09:53:27]requested_item shift.opened is exist - process it [09:53:27]req_shift_opened [09:53:27]FM_GetShiftState [09:53:27]SAM_PROTO_GetShiftState [09:53:27]wFMCommunicate request_size=4 [09:53:27]MH_SAM_APDU [09:53:27]CAPDU: 80 13 01 00 [09:53:27]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [09:53:27]Write i2c OK [09:53:27]MH_I2C_Read... [09:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:27]Read from MH i2c: E2 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 0E 00 [09:53:27]MH_I2C_Read... [09:53:27]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 49 [09:53:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:53:27]wFMCommunicate OK [09:53:27]SAM_PROTO_GetShiftState done [09:53:27]FM_GetShiftState done [09:53:27]req_shift_opened done [09:53:27]requested_item shift.open_date is exist - process it [09:53:27]req_shift_open_date [09:53:27]req_shift_open_date done [09:53:27]produce_requested_data done [09:53:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187561,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:53:27]process_action_free close_receipt [09:53:27]json_value_free [09:53:27]json_value_free done [09:53:27]process_json_proto returns [09:53:27]Send response to host [09:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187561,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:53:27]free response buf [09:53:27]execute_script done [09:53:27]execute_script returns [09:53:27]free content buf [09:53:27]Sock 8.Close socket [09:53:27]Sock 8.Thread stoped [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:56]OFD Sender: No OFD packet to send [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:21]accept exits with 9 [09:56:21]New connection [09:56:21]New thread 3067080036 created [09:56:21]Thread 3066936676 joined [09:56:21]Waiting for new connection... [09:56:21] Sock 9.Parse request [09:56:21]Sock 9.Check first char [09:56:21]Sock 9.First char is OK [09:56:21]request: POST /json_proto HTTP/1.0 [09:56:21]Method: POST [09:56:21]URL: /json_proto [09:56:21]Method is POST - this is cgi request [09:56:21]url: /json_proto [09:56:21]query_string will be loaded in cgi processing [09:56:21]execute_cgi json_proto POST (null) [09:56:21]execute_cgi path=json_proto method=POST [09:56:21]POST find Content-Length [09:56:21]Host: 172.17.46.131:8080 [09:56:21]Content-Length: 678 [09:56:21]Content-Type: application/json [09:56:21] [09:56:21]POST finish read [09:56:21]Found Content-Length = 678 [09:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:21]execute_script... [09:56: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)412719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:21]POST & json_proto [09:56:21]process_json_proto [09:56:21]json parsed OK: [09:56:21]protocol is kg_v1.0 [09:56:21]action value=close_receipt [09:56:21]process_action close_receipt [09:56:21]cmd_close_receipt [09:56:21]MH_GetDate [09:56:21]Write to MH i2c: F0 00 00 DE 01 CE [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: F0 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: F0 09 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: F0 09 00 DE 01 00 C6 4D B8 67 7E 41 4F 65 7C [09:56:21]GetLastDocTimeStamp 1740131603 [09:56:21]current date 1740131782 [09:56:21]FM_GetShiftState [09:56:21]SAM_PROTO_GetShiftState [09:56:21]wFMCommunicate request_size=4 [09:56:21]MH_SAM_APDU [09:56:21]CAPDU: 80 13 01 00 [09:56:21]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:21]Read from MH i2c: E2 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 0E 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4B [09:56:21]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:56:21]wFMCommunicate OK [09:56:21]SAM_PROTO_GetShiftState done [09:56:21]FM_GetShiftState done [09:56:21]opened in 1740098043 [09:56:21]opened+sec_in_day 1740184443 [09:56:21]quantity*price = 65034 [09:56:21]sum+1 = 65036 [09:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.06 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 56 21.02.2025 09:56 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187562 ФПД: 158737332575140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T095622&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187562&fm=158737332575140&tin=02508201610067®Number=0000000000091857&sum=65000 [09:56:23]StoreToDocumentArchive [09:56:23]shift 649 fd 187562 [09:56:23]save to /storage/0649/doc_00187562 [09:56:23]save last doc name /storage/0649/doc_00187562 to /storage/kkm_last_doc_name [09:56:23]save OK [09:56:23]Clear old archive folders... [09:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:23]tlvbuf is 01E14E40 [09:56:23]SAM_PROTO_ClearQueue [09:56:23]wFMCommunicate request_size=4 [09:56:23]MH_SAM_APDU [09:56:23]CAPDU: 80 09 00 00 [09:56:23]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:23]Read from MH i2c: E2 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 03 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [09:56:23]RAPDU: 90 00 [09:56:23]wFMCommunicate OK [09:56:23]SAM_PROTO_ClearQueue done [09:56:23]KKMCreateOFDPacket [09:56:23]OFDProtocolAddRootSTLVToBuf [09:56:23]FM_MakeSignedData [09:56:23]FM_MakeSignedData [09:56:23]SAM_PROTO_SignData [09:56:23]wFMCommunicate request_size=4 [09:56:23]MH_SAM_APDU [09:56:23]CAPDU: 80 0D 01 02 [09:56:23]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:23]Read from MH i2c: E2 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 03 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [09:56:23]RAPDU: 90 00 [09:56:23]wFMCommunicate OK [09:56:23]wFMCommunicate request_size=255 [09:56:23]MH_SAM_APDU [09:56:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C6 4D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA DC 02 00 35 04 06 00 90 [09:56:23]Write to MH i2c: E2 02 01 EE 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C6 4D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA DC 02 00 35 04 06 00 90 00 00 8E [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:23]Read from MH i2c: E2 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 03 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [09:56:23]RAPDU: 90 00 [09:56:23]wFMCommunicate OK [09:56:23]wFMCommunicate request_size=10 [09:56:23]MH_SAM_APDU [09:56:23]CAPDU: 80 0D 02 02 05 5E EA 52 1B A4 [09:56:23]Write to MH i2c: E2 0D 00 EF 01 80 0D 02 02 05 00 5E EA 52 1B A4 00 00 CD [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:23]Read from MH i2c: E2 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 03 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [09:56:23]RAPDU: 90 00 [09:56:23]wFMCommunicate OK [09:56:23]wFMCommunicate request_size=4 [09:56:23]MH_SAM_APDU [09:56:23]CAPDU: 80 0D 03 02 [09:56:23]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:23]Read from MH i2c: E2 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 0B 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 0B 00 F0 01 00 3B 97 D0 67 D0 E3 2C E8 90 00 3D [09:56:23]RAPDU: 3B 97 D0 67 D0 E3 2C E8 90 00 [09:56:23]wFMCommunicate OK [09:56:23]SAM_PROTO_SignData done [09:56:23]FM_MakeSignedData done [09:56:23]CreateOFDProtocolMessage [09:56:23]wFMCommunicate request_size=4 [09:56:23]MH_SAM_APDU [09:56:23]CAPDU: 80 11 00 00 [09:56:23]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:23]Read from MH i2c: E2 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 17 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [09:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:56:23]wFMCommunicate OK [09:56:23]CreateOFDProtocolMessage done [09:56:23]OFDSenderStorePacket 187562 [09:56:23]StoreOFDPacket docnum=187562 [09:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D8 E0 07 01 48 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C6 4D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA DC 02 00 35 04 06 00 90 5E EA 52 1B A4 3B 97 D0 67 D0 E3 2C E8 [09:56:23]CheckFolder [09:56:23]dirname=/storage/ofd_packets [09:56:23]CheckFolder done [09:56:23]ProducePacketName [09:56:23]name=ofd_packets/00187562 [09:56:23]NVStorageSaveData ofd_packets/00187562 [09:56:23]File name is /storage/ofd_packets/00187562 [09:56:23]Write 301 bytes [09:56:23]NVStorageSaveData done [09:56:23]OFDSenderStorePacket done [09:56:23]KKMCreateOFDPacket done [09:56:23]NVStorageSaveData kkm_last_timestamp [09:56:23]File name is /storage/kkm_last_timestamp [09:56:23]Write 4 bytes [09:56:23]NVStorageSaveData done [09:56:23]ExternCall_PrintAddStr [09:56:23]wPrintStart [09:56:23]Write to MH i2c: 01 00 00 F2 01 F3 [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: 01 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: 01 07 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [09:56:23]RasterBufferAndPrint [09:56:23]line Счет N : (1)412719 [09:56:23]line ИНН: 02508201610067 [09:56:23]line Контрольно-Кассовый Чек [09:56:23]line ПРОДАЖА [09:56:23]line ТРК (МРК, ГНК) : 42 [09:56:23]line Товар: 2710124130 [09:56:23]line Аи-92-К-2 [09:56:23]line 10.130 * 64.20 [09:56:23]line = 650.35 [09:56:23]line НДС 12% НСП 1% [09:56:23]line > о реализуемом товаре [09:56:23]line ОКРУГЛЕНИЕ: -0.35 [09:56:23]line ИТОГО: 650.00 [09:56:23]line Внесено: 650.00 [09:56:23]line СДАЧА: 0.00 [09:56:23]line НСП 1% : 5.75 [09:56:23]line НДС 12% : 69.06 [09:56:23]line Наличными: 650.00 [09:56:23]line Безнал.: 0.00 [09:56:23]line Место: АЗС № 92 "Партнер Нефть" [09:56:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:56:23]line СНО: Общий режим [09:56:23]line Чек 56 21.02.2025 09:56 [09:56:23]line Смена: 649 ФФД: 1.0 [09:56:23]line ЗНМ: 0300000118 [09:56:23]line РНМ: 0000000000091857 [09:56:23]line Версия ККМ: 001 [09:56:23]line ФМ: 0000000000871826 [09:56:23]line ФД: 187562 [09:56:23]line ФПД: 158737332575140 [09:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T095622&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187562&fm=158737332575140&tin=02508201610067®Number=0000000000091857&sum=65000 [09:56:23]OFD Sender: Processing packet 187562 [packets to send 49, broken 48] [09:56:23]ProducePacketName [09:56:23]name=ofd_packets/00187562 [09:56:23]OFD Sender: To server: pG, [09:56:23]CommunicateWithHost lk.salyk.kg:30040 [09:56:23]ConnectInit lk.salyk.kg [09:56:23]written 0, free lines is 4095 [09:56:24]Connected sock=8 [09:56:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D8 E0 07 01 48 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 C6 4D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA DC 02 00 35 04 06 00 90 5E EA 52 1B A4 3B 97 D0 67 D0 E3 2C E8 [09:56:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1A 3C 47 00 CF 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA DC 02 00 F4 03 04 00 14 F4 B7 67 B6 04 01 00 00 97 0A 24 34 5D 84 19 0B [09:56:24]CommunicateWithHost err = 0 [09:56:24]CheckOFDResponse [09:56:24]1017 (14) - 77093643461234 [09:56:24]1041 (16) - 0000000000871826 [09:56:24]1040 (4) - 187562 [09:56:24]1012 (4) - 21.02.2025 03:33 [09:56:24]1206 (1) - 0 [09:56:24]OFD Sender: Remove packet 187562 [09:56:24]ProducePacketName [09:56:24]name=ofd_packets/00187562 [09:56:24]NVStorageDeleteData [09:56:24]Write to MH i2c: 01 00 00 1D 02 1F [09:56:24]Write i2c OK [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: 01 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: 01 07 00 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 FC 0C 2E [09:56:24]RasterBufferAndPrint [09:56:24]line [09:56:24]line [09:56:24]line [09:56:24]line [09:56:24]line [09:56:24]written 0, free lines is 3330 [09:56:24]MH_Cut [09:56:24]Write to MH i2c: D1 01 00 24 02 01 F8 [09:56:24]Write i2c OK [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: D1 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: D1 01 00 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: D1 01 00 24 02 00 F7 [09:56:24]Write to MH i2c: 01 00 00 25 02 27 [09:56:24]Write i2c OK [09:56:24]MH_I2C_Read... [09:56:24]OFD Sender: No OFD packet to send [09:56:25]*** Cut start [09:56:25]*** Partial cut [09:56:25]*** CUTSNS_PIN = 1 [09:56:25]*** CUTSNS_PIN = 0 [09:56:25]*** Brake cut motor [09:56:25]Read from MH i2c: 01 [09:56:25]MH_I2C_Read... [09:56:25]*** Stop cut motor [09:56:25]*** Cut end [09:56:25]Read from MH i2c: 01 07 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [09:56:25]process_action close_receipt done [09:56:25]requested_data is exist [09:56:25]produce_requested_data [09:56:25]requested_item fm.sn is exist - process it [09:56:25]wFMCommunicate request_size=4 [09:56:25]MH_SAM_APDU [09:56:25]CAPDU: 80 11 00 00 [09:56:25]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:25]Read from MH i2c: E2 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 17 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [09:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:56:25]wFMCommunicate OK [09:56:25]requested_item fd.num is exist - process it [09:56:25]SAM_PROTO_GetFieldsCounters [09:56:25]wFMCommunicate request_size=4 [09:56:25]MH_SAM_APDU [09:56:25]CAPDU: 80 13 00 00 [09:56:25]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:26]Read from MH i2c: E2 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 62 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AA DC 02 00 0E 04 04 00 89 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 86 [09:56:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AA DC 02 00 0E 04 04 00 89 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:56:26]wFMCommunicate OK [09:56:26]SAM_PROTO_GetFieldsCounters done [09:56:26]requested_item shift.num is exist - process it [09:56:26]requested_item shift.opened is exist - process it [09:56:26]req_shift_opened [09:56:26]FM_GetShiftState [09:56:26]SAM_PROTO_GetShiftState [09:56:26]wFMCommunicate request_size=4 [09:56:26]MH_SAM_APDU [09:56:26]CAPDU: 80 13 01 00 [09:56:26]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [09:56:26]Write i2c OK [09:56:26]MH_I2C_Read... [09:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:26]Read from MH i2c: E2 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 0E 00 [09:56:26]MH_I2C_Read... [09:56:26]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 95 [09:56:26]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:56:26]wFMCommunicate OK [09:56:26]SAM_PROTO_GetShiftState done [09:56:26]FM_GetShiftState done [09:56:26]req_shift_opened done [09:56:26]requested_item shift.open_date is exist - process it [09:56:26]req_shift_open_date [09:56:26]req_shift_open_date done [09:56:26]produce_requested_data done [09:56:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187562,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:56:26]process_action_free close_receipt [09:56:26]json_value_free [09:56:26]json_value_free done [09:56:26]process_json_proto returns [09:56:26]Send response to host [09:56:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187562,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:56:26]free response buf [09:56:26]execute_script done [09:56:26]execute_script returns [09:56:26]free content buf [09:56:26]Sock 9.Close socket [09:56:26]Sock 9.Thread stoped [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [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:09]accept exits with 10 [09:59:09]New connection [09:59:09]New thread 3066936676 created [09:59:09]Thread 3067080036 joined [09:59:09]Waiting for new connection... [09:59:09] Sock 10.Parse request [09:59:09]Sock 10.Check first char [09:59:09]Sock 10.First char is OK [09:59:09]request: POST /json_proto HTTP/1.0 [09:59:09]Method: POST [09:59:09]URL: /json_proto [09:59:09]Method is POST - this is cgi request [09:59:09]url: /json_proto [09:59:09]query_string will be loaded in cgi processing [09:59:09]execute_cgi json_proto POST (null) [09:59:09]execute_cgi path=json_proto method=POST [09:59:09]POST find Content-Length [09:59:09]Host: 172.17.46.131:8080 [09:59:09]Content-Length: 682 [09:59:09]Content-Type: application/json [09:59:09] [09:59:09]POST finish read [09:59:09]Found Content-Length = 682 [09:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:09]execute_script... [09:59: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)412720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:09]POST & json_proto [09:59:09]process_json_proto [09:59:09]json parsed OK: [09:59:09]protocol is kg_v1.0 [09:59:09]action value=close_receipt [09:59:09]process_action close_receipt [09:59:09]cmd_close_receipt [09:59:09]MH_GetDate [09:59:09]Write to MH i2c: F0 00 00 29 02 1A [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: F0 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: F0 09 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: F0 09 00 29 02 00 6D 4E B8 67 7E 41 4F 65 70 [09:59:09]GetLastDocTimeStamp 1740131782 [09:59:09]current date 1740131949 [09:59:09]FM_GetShiftState [09:59:09]SAM_PROTO_GetShiftState [09:59:09]wFMCommunicate request_size=4 [09:59:09]MH_SAM_APDU [09:59:09]CAPDU: 80 13 01 00 [09:59:09]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [09:59:09]Write i2c OK [09:59:09]MH_I2C_Read... [09:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:09]Read from MH i2c: E2 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 0E 00 [09:59:09]MH_I2C_Read... [09:59:09]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 97 [09:59:09]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:59:09]wFMCommunicate OK [09:59:09]SAM_PROTO_GetShiftState done [09:59:09]FM_GetShiftState done [09:59:09]opened in 1740098043 [09:59:09]opened+sec_in_day 1740184443 [09:59:09]quantity*price = 100023 [09:59:09]sum+1 = 100025 [09:59:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 57 21.02.2025 09:59 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187563 ФПД: 118979587812241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T095909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187563&fm=118979587812241&tin=02508201610067®Number=0000000000091857&sum=100000 [09:59:10]StoreToDocumentArchive [09:59:10]shift 649 fd 187563 [09:59:10]save to /storage/0649/doc_00187563 [09:59:10]save last doc name /storage/0649/doc_00187563 to /storage/kkm_last_doc_name [09:59:10]save OK [09:59:10]Clear old archive folders... [09:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:10]tlvbuf is 01E16770 [09:59:10]SAM_PROTO_ClearQueue [09:59:10]wFMCommunicate request_size=4 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 09 00 00 [09:59:10]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [09:59:10]RAPDU: 90 00 [09:59:10]wFMCommunicate OK [09:59:10]SAM_PROTO_ClearQueue done [09:59:10]KKMCreateOFDPacket [09:59:10]OFDProtocolAddRootSTLVToBuf [09:59:10]FM_MakeSignedData [09:59:10]FM_MakeSignedData [09:59:10]SAM_PROTO_SignData [09:59:10]wFMCommunicate request_size=4 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 0D 01 02 [09:59:10]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [09:59:10]RAPDU: 90 00 [09:59:10]wFMCommunicate OK [09:59:10]wFMCommunicate request_size=255 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6D 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB DC 02 00 35 04 06 00 6C [09:59:10]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6D 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB DC 02 00 35 04 06 00 6C 00 00 43 [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [09:59:10]RAPDU: 90 00 [09:59:10]wFMCommunicate OK [09:59:10]wFMCommunicate request_size=10 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 0D 02 02 05 36 18 11 2B 91 [09:59:10]Write to MH i2c: E2 0D 00 3A 02 80 0D 02 02 05 00 36 18 11 2B 91 00 00 DB [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [09:59:10]RAPDU: 90 00 [09:59:10]wFMCommunicate OK [09:59:10]wFMCommunicate request_size=4 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 0D 03 02 [09:59:10]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 0B 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 0B 00 3B 02 00 90 A7 32 48 F9 3D 65 DC 90 00 E1 [09:59:10]RAPDU: 90 A7 32 48 F9 3D 65 DC 90 00 [09:59:10]wFMCommunicate OK [09:59:10]SAM_PROTO_SignData done [09:59:10]FM_MakeSignedData done [09:59:10]CreateOFDProtocolMessage [09:59:10]wFMCommunicate request_size=4 [09:59:10]MH_SAM_APDU [09:59:10]CAPDU: 80 11 00 00 [09:59:10]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:10]Read from MH i2c: E2 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 17 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [09:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:59:10]wFMCommunicate OK [09:59:10]CreateOFDProtocolMessage done [09:59:10]OFDSenderStorePacket 187563 [09:59:10]StoreOFDPacket docnum=187563 [09:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 81 73 07 01 4C BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6D 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB DC 02 00 35 04 06 00 6C 36 18 11 2B 91 90 A7 32 48 F9 3D 65 DC [09:59:10]CheckFolder [09:59:10]dirname=/storage/ofd_packets [09:59:10]CheckFolder done [09:59:10]ProducePacketName [09:59:10]name=ofd_packets/00187563 [09:59:10]NVStorageSaveData ofd_packets/00187563 [09:59:10]File name is /storage/ofd_packets/00187563 [09:59:10]Write 301 bytes [09:59:10]NVStorageSaveData done [09:59:10]OFDSenderStorePacket done [09:59:10]KKMCreateOFDPacket done [09:59:10]NVStorageSaveData kkm_last_timestamp [09:59:10]File name is /storage/kkm_last_timestamp [09:59:10]Write 4 bytes [09:59:10]NVStorageSaveData done [09:59:10]ExternCall_PrintAddStr [09:59:10]wPrintStart [09:59:10]Write to MH i2c: 01 00 00 3D 02 3F [09:59:10]Write i2c OK [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 07 00 [09:59:10]MH_I2C_Read... [09:59:10]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [09:59:10]RasterBufferAndPrint [09:59:10]line Счет N : (1)412720 [09:59:10]line ИНН: 02508201610067 [09:59:10]line Контрольно-Кассовый Чек [09:59:10]line ПРОДАЖА [09:59:10]line ТРК (МРК, ГНК) : 32 [09:59:10]line Товар: 2710124130 [09:59:10]line Аи-92-К-2 [09:59:10]line 15.580 * 64.20 [09:59:10]line = 1000.24 [09:59:10]line НДС 12% НСП 1% [09:59:10]line > о реализуемом товаре [09:59:10]line ОКРУГЛЕНИЕ: -0.24 [09:59:10]line ИТОГО: 1000.00 [09:59:10]line Внесено: 1000.00 [09:59:10]line СДАЧА: 0.00 [09:59:10]line НСП 1% : 8.85 [09:59:10]line НДС 12% : 106.22 [09:59:10]line Наличными: 1000.00 [09:59:10]line Безнал.: 0.00 [09:59:10]line Место: АЗС № 92 "Партнер Нефть" [09:59:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:59:10]line СНО: Общий режим [09:59:10]line Чек 57 21.02.2025 09:59 [09:59:10]line Смена: 649 ФФД: 1.0 [09:59:10]line ЗНМ: 0300000118 [09:59:10]line РНМ: 0000000000091857 [09:59:10]line Версия ККМ: 001 [09:59:10]line ФМ: 0000000000871826 [09:59:10]line ФД: 187563 [09:59:10]line ФПД: 118979587812241 [09:59:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T095909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187563&fm=118979587812241&tin=02508201610067®Number=0000000000091857&sum=100000 [09:59:11]OFD Sender: Processing packet 187563 [packets to send 49, broken 48] [09:59:11]ProducePacketName [09:59:11]name=ofd_packets/00187563 [09:59:11]OFD Sender: To server: pG, [09:59:11]CommunicateWithHost lk.salyk.kg:30040 [09:59:11]ConnectInit lk.salyk.kg [09:59:11]written 0, free lines is 4095 [09:59:11]Connected sock=8 [09:59:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 81 73 07 01 4C BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 6D 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB DC 02 00 35 04 06 00 6C 36 18 11 2B 91 90 A7 32 48 F9 3D 65 DC [09:59:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C2 47 47 00 01 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB DC 02 00 F4 03 04 00 BB F4 B7 67 B6 04 01 00 00 7A 9E B1 53 BB 10 81 F6 [09:59:11]CommunicateWithHost err = 0 [09:59:11]CheckOFDResponse [09:59:11]1017 (14) - 77093643461234 [09:59:11]1041 (16) - 0000000000871826 [09:59:11]1040 (4) - 187563 [09:59:11]1012 (4) - 21.02.2025 03:36 [09:59:11]1206 (1) - 0 [09:59:11]OFD Sender: Remove packet 187563 [09:59:11]ProducePacketName [09:59:11]name=ofd_packets/00187563 [09:59:11]NVStorageDeleteData [09:59:11]Write to MH i2c: 01 00 00 68 02 6A [09:59:11]Write i2c OK [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: 01 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: 01 07 00 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 F4 0C 71 [09:59:11]RasterBufferAndPrint [09:59:11]line [09:59:11]line [09:59:11]line [09:59:11]line [09:59:11]line [09:59:11]written 0, free lines is 3322 [09:59:11]MH_Cut [09:59:11]Write to MH i2c: D1 01 00 6F 02 01 43 [09:59:11]Write i2c OK [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: D1 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: D1 01 00 [09:59:11]MH_I2C_Read... [09:59:11]Read from MH i2c: D1 01 00 6F 02 00 42 [09:59:11]Write to MH i2c: 01 00 00 70 02 72 [09:59:11]Write i2c OK [09:59:11]MH_I2C_Read... [09:59:12]OFD Sender: No OFD packet to send [09:59:12]*** Cut start [09:59:12]*** Partial cut [09:59:12]*** CUTSNS_PIN = 1 [09:59:12]*** CUTSNS_PIN = 0 [09:59:12]*** Brake cut motor [09:59:13]Read from MH i2c: 01 [09:59:13]MH_I2C_Read... [09:59:13]*** Stop cut motor [09:59:13]*** Cut end [09:59:13]Read from MH i2c: 01 07 00 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [09:59:13]process_action close_receipt done [09:59:13]requested_data is exist [09:59:13]produce_requested_data [09:59:13]requested_item fm.sn is exist - process it [09:59:13]wFMCommunicate request_size=4 [09:59:13]MH_SAM_APDU [09:59:13]CAPDU: 80 11 00 00 [09:59:13]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [09:59:13]Write i2c OK [09:59:13]MH_I2C_Read... [09:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:13]Read from MH i2c: E2 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 17 00 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [09:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:59:13]wFMCommunicate OK [09:59:13]requested_item fd.num is exist - process it [09:59:13]SAM_PROTO_GetFieldsCounters [09:59:13]wFMCommunicate request_size=4 [09:59:13]MH_SAM_APDU [09:59:13]CAPDU: 80 13 00 00 [09:59:13]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [09:59:13]Write i2c OK [09:59:13]MH_I2C_Read... [09:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:13]Read from MH i2c: E2 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 62 00 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AB DC 02 00 0E 04 04 00 89 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 D5 [09:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AB DC 02 00 0E 04 04 00 89 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:59:13]wFMCommunicate OK [09:59:13]SAM_PROTO_GetFieldsCounters done [09:59:13]requested_item shift.num is exist - process it [09:59:13]requested_item shift.opened is exist - process it [09:59:13]req_shift_opened [09:59:13]FM_GetShiftState [09:59:13]SAM_PROTO_GetShiftState [09:59:13]wFMCommunicate request_size=4 [09:59:13]MH_SAM_APDU [09:59:13]CAPDU: 80 13 01 00 [09:59:13]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [09:59:13]Write i2c OK [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 [09:59:13]MH_I2C_Read... [09:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:13]Read from MH i2c: E2 0E 00 [09:59:13]MH_I2C_Read... [09:59:13]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E0 [09:59:13]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [09:59:13]wFMCommunicate OK [09:59:13]SAM_PROTO_GetShiftState done [09:59:13]FM_GetShiftState done [09:59:13]req_shift_opened done [09:59:13]requested_item shift.open_date is exist - process it [09:59:13]req_shift_open_date [09:59:13]req_shift_open_date done [09:59:13]produce_requested_data done [09:59:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187563,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [09:59:13]process_action_free close_receipt [09:59:13]json_value_free [09:59:13]json_value_free done [09:59:13]process_json_proto returns [09:59:13]Send response to host [09:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187563,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [09:59:13]free response buf [09:59:13]execute_script done [09:59:13]execute_script returns [09:59:13]free content buf [09:59:13]Sock 10.Close socket [09:59:13]Sock 10.Thread stoped [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]accept exits with 9 [10:01:02]New connection [10:01:02]New thread 3067080036 created [10:01:02]Thread 3066936676 joined [10:01:02]Waiting for new connection... [10:01:02] Sock 9.Parse request [10:01:02]Sock 9.Check first char [10:01:02]Sock 9.First char is OK [10:01:02]request: POST /json_proto HTTP/1.0 [10:01:02]Method: POST [10:01:02]URL: /json_proto [10:01:02]Method is POST - this is cgi request [10:01:02]url: /json_proto [10:01:02]query_string will be loaded in cgi processing [10:01:02]execute_cgi json_proto POST (null) [10:01:02]execute_cgi path=json_proto method=POST [10:01:02]POST find Content-Length [10:01:02]Host: 172.17.46.131:8080 [10:01:02]Content-Length: 678 [10:01:02]Content-Type: application/json [10:01:02] [10:01:02]POST finish read [10:01:02]Found Content-Length = 678 [10:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:02]execute_script... [10:01:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:02]POST & json_proto [10:01:02]process_json_proto [10:01:02]json parsed OK: [10:01:02]protocol is kg_v1.0 [10:01:02]action value=close_receipt [10:01:02]process_action close_receipt [10:01:02]cmd_close_receipt [10:01:02]MH_GetDate [10:01:02]Write to MH i2c: F0 00 00 74 02 65 [10:01:02]Write i2c OK [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: F0 [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: F0 09 00 [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: F0 09 00 74 02 00 DE 4E B8 67 7E 41 4F 65 2C [10:01:02]GetLastDocTimeStamp 1740131949 [10:01:02]current date 1740132062 [10:01:02]FM_GetShiftState [10:01:02]SAM_PROTO_GetShiftState [10:01:02]wFMCommunicate request_size=4 [10:01:02]MH_SAM_APDU [10:01:02]CAPDU: 80 13 01 00 [10:01:02]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [10:01:02]Write i2c OK [10:01:02]MH_I2C_Read... [10:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:02]Read from MH i2c: E2 [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: E2 0E 00 [10:01:02]MH_I2C_Read... [10:01:02]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E2 [10:01:02]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:01:02]wFMCommunicate OK [10:01:02]SAM_PROTO_GetShiftState done [10:01:02]FM_GetShiftState done [10:01:02]opened in 1740098043 [10:01:02]opened+sec_in_day 1740184443 [10:01:02]quantity*price = 200013 [10:01:02]sum+1 = 200014 [10:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 58 21.02.2025 10:01 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187564 ФПД: 114348844126610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100102&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187564&fm=114348844126610&tin=02508201610067®Number=0000000000091857&sum=200000 [10:01:03]StoreToDocumentArchive [10:01:03]shift 649 fd 187564 [10:01:03]save to /storage/0649/doc_00187564 [10:01:03]save last doc name /storage/0649/doc_00187564 to /storage/kkm_last_doc_name [10:01:03]save OK [10:01:03]Clear old archive folders... [10:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:03]tlvbuf is 01EB18D0 [10:01:03]SAM_PROTO_ClearQueue [10:01:03]wFMCommunicate request_size=4 [10:01:03]MH_SAM_APDU [10:01:03]CAPDU: 80 09 00 00 [10:01:03]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:03]Read from MH i2c: E2 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [10:01:03]RAPDU: 90 00 [10:01:03]wFMCommunicate OK [10:01:03]SAM_PROTO_ClearQueue done [10:01:03]KKMCreateOFDPacket [10:01:03]OFDProtocolAddRootSTLVToBuf [10:01:03]FM_MakeSignedData [10:01:03]FM_MakeSignedData [10:01:03]SAM_PROTO_SignData [10:01:03]wFMCommunicate request_size=4 [10:01:03]MH_SAM_APDU [10:01:03]CAPDU: 80 0D 01 02 [10:01:03]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:03]Read from MH i2c: E2 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [10:01:03]RAPDU: 90 00 [10:01:03]wFMCommunicate OK [10:01:03]wFMCommunicate request_size=255 [10:01:03]MH_SAM_APDU [10:01: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 DE 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC DC 02 00 35 04 06 00 67 FF EA 3C [10:01:03]Write to MH i2c: E2 02 01 84 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 DE 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC DC 02 00 35 04 06 00 67 FF EA 3C 00 00 3E [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 [10:01:03]MH_I2C_Read... [10:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:03]Read from MH i2c: E2 03 00 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [10:01:03]RAPDU: 90 00 [10:01:03]wFMCommunicate OK [10:01:03]wFMCommunicate request_size=7 [10:01:03]MH_SAM_APDU [10:01:03]CAPDU: 80 0D 02 02 02 11 92 [10:01:03]Write to MH i2c: E2 0A 00 85 02 80 0D 02 02 02 00 11 92 00 00 A8 [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:03]Read from MH i2c: E2 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [10:01:03]RAPDU: 90 00 [10:01:03]wFMCommunicate OK [10:01:03]wFMCommunicate request_size=4 [10:01:03]MH_SAM_APDU [10:01:03]CAPDU: 80 0D 03 02 [10:01:03]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:03]Read from MH i2c: E2 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 0B 00 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 0B 00 86 02 00 A0 6A 36 18 09 5F C8 B7 90 00 43 [10:01:03]RAPDU: A0 6A 36 18 09 5F C8 B7 90 00 [10:01:03]wFMCommunicate OK [10:01:03]SAM_PROTO_SignData done [10:01:03]FM_MakeSignedData done [10:01:03]CreateOFDProtocolMessage [10:01:03]wFMCommunicate request_size=4 [10:01:03]MH_SAM_APDU [10:01:03]CAPDU: 80 11 00 00 [10:01:03]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:03]Read from MH i2c: E2 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 17 00 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 56 [10:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:03]wFMCommunicate OK [10:01:03]CreateOFDProtocolMessage done [10:01:03]OFDSenderStorePacket 187564 [10:01:03]StoreOFDPacket docnum=187564 [10:01:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A6 E9 04 01 D2 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 DE 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC DC 02 00 35 04 06 00 67 FF EA 3C 11 92 A0 6A 36 18 09 5F C8 B7 [10:01:03]CheckFolder [10:01:03]dirname=/storage/ofd_packets [10:01:03]CheckFolder done [10:01:03]ProducePacketName [10:01:03]name=ofd_packets/00187564 [10:01:03]NVStorageSaveData ofd_packets/00187564 [10:01:03]File name is /storage/ofd_packets/00187564 [10:01:03]Write 298 bytes [10:01:03]NVStorageSaveData done [10:01:03]OFDSenderStorePacket done [10:01:03]KKMCreateOFDPacket done [10:01:03]NVStorageSaveData kkm_last_timestamp [10:01:03]File name is /storage/kkm_last_timestamp [10:01:03]Write 4 bytes [10:01:03]NVStorageSaveData done [10:01:03]ExternCall_PrintAddStr [10:01:03]wPrintStart [10:01:03]Write to MH i2c: 01 00 00 88 02 8A [10:01:03]Write i2c OK [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: 01 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: 01 07 00 [10:01:03]MH_I2C_Read... [10:01:03]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [10:01:03]RasterBufferAndPrint [10:01:03]line Счет N : (1)412721 [10:01:03]line ИНН: 02508201610067 [10:01:03]line Контрольно-Кассовый Чек [10:01:03]line ПРОДАЖА [10:01:03]line ТРК (МРК, ГНК) : 6 [10:01:03]line Товар: 2710194210 [10:01:03]line ДТ-К-5 [10:01:03]line 27.550 * 72.60 [10:01:03]line = 2000.13 [10:01:03]line НДС 12% НСП 1% [10:01:03]line > о реализуемом товаре [10:01:03]line ОКРУГЛЕНИЕ: -0.13 [10:01:03]line ИТОГО: 2000.00 [10:01:03]line Внесено: 2000.00 [10:01:03]line СДАЧА: 0.00 [10:01:03]line НСП 1% : 17.70 [10:01:03]line НДС 12% : 212.40 [10:01:03]line Наличными: 2000.00 [10:01:03]line Безнал.: 0.00 [10:01:03]line Место: АЗС № 92 "Партнер Нефть" [10:01:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:01:03]line СНО: Общий режим [10:01:03]line Чек 58 21.02.2025 10:01 [10:01:03]line Смена: 649 ФФД: 1.0 [10:01:03]line ЗНМ: 0300000118 [10:01:03]line РНМ: 0000000000091857 [10:01:03]line Версия ККМ: 001 [10:01:03]line ФМ: 0000000000871826 [10:01:03]line ФД: 187564 [10:01:03]line ФПД: 114348844126610 [10:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100102&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187564&fm=114348844126610&tin=02508201610067®Number=0000000000091857&sum=200000 [10:01:04]OFD Sender: Processing packet 187564 [packets to send 49, broken 48] [10:01:04]ProducePacketName [10:01:04]name=ofd_packets/00187564 [10:01:04]OFD Sender: To server: pG, [10:01:04]CommunicateWithHost lk.salyk.kg:30040 [10:01:04]ConnectInit lk.salyk.kg [10:01:04]written 0, free lines is 4095 [10:01:04]Connected sock=10 [10:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A6 E9 04 01 D2 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 DE 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC DC 02 00 35 04 06 00 67 FF EA 3C 11 92 A0 6A 36 18 09 5F C8 B7 [10: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 38 32 36 4F 00 00 00 76 78 47 00 1F 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC DC 02 00 F4 03 04 00 2C F5 B7 67 B6 04 01 00 00 B8 DA 95 F0 AB 84 4B 28 [10:01:04]CommunicateWithHost err = 0 [10:01:04]CheckOFDResponse [10:01:04]1017 (14) - 77093643461234 [10:01:04]1041 (16) - 0000000000871826 [10:01:04]1040 (4) - 187564 [10:01:04]1012 (4) - 21.02.2025 03:38 [10:01:04]1206 (1) - 0 [10:01:04]OFD Sender: Remove packet 187564 [10:01:04]ProducePacketName [10:01:04]name=ofd_packets/00187564 [10:01:04]NVStorageDeleteData [10:01:04]Write to MH i2c: 01 00 00 B3 02 B5 [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: 01 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: 01 07 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 F9 0C C1 [10:01:04]RasterBufferAndPrint [10:01:04]line [10:01:04]line [10:01:04]line [10:01:04]line [10:01:04]line [10:01:04]written 0, free lines is 3327 [10:01:04]MH_Cut [10:01:04]Write to MH i2c: D1 01 00 BA 02 01 8E [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: D1 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: D1 01 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: D1 01 00 BA 02 00 8D [10:01:04]Write to MH i2c: 01 00 00 BB 02 BD [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:05]OFD Sender: No OFD packet to send [10:01:05]*** Cut start [10:01:05]*** Partial cut [10:01:05]*** CUTSNS_PIN = 1 [10:01:05]*** CUTSNS_PIN = 0 [10:01:05]*** Brake cut motor [10:01:06]Read from MH i2c: 01 [10:01:06]MH_I2C_Read... [10:01:06]*** Stop cut motor [10:01:06]*** Cut end [10:01:06]Read from MH i2c: 01 07 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [10:01:06]process_action close_receipt done [10:01:06]requested_data is exist [10:01:06]produce_requested_data [10:01:06]requested_item fm.sn is exist - process it [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 11 00 00 [10:01:06]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 17 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [10:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:06]wFMCommunicate OK [10:01:06]requested_item fd.num is exist - process it [10:01:06]SAM_PROTO_GetFieldsCounters [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 13 00 00 [10:01:06]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 62 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AC DC 02 00 0E 04 04 00 89 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 24 [10:01:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AC DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:06]wFMCommunicate OK [10:01:06]SAM_PROTO_GetFieldsCounters done [10:01:06]requested_item shift.num is exist - process it [10:01:06]requested_item shift.opened is exist - process it [10:01:06]req_shift_opened [10:01:06]FM_GetShiftState [10:01:06]SAM_PROTO_GetShiftState [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 13 01 00 [10:01:06]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0E 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2B [10:01:06]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:01:06]wFMCommunicate OK [10:01:06]SAM_PROTO_GetShiftState done [10:01:06]FM_GetShiftState done [10:01:06]req_shift_opened done [10:01:06]requested_item shift.open_date is exist - process it [10:01:06]req_shift_open_date [10:01:06]req_shift_open_date done [10:01:06]produce_requested_data done [10:01:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187564,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:01:06]process_action_free close_receipt [10:01:06]json_value_free [10:01:06]json_value_free done [10:01:06]process_json_proto returns [10:01:06]Send response to host [10:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187564,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:01:06]free response buf [10:01:06]execute_script done [10:01:06]execute_script returns [10:01:06]free content buf [10:01:06]Sock 9.Close socket [10:01:06]Sock 9.Thread stoped [10:01:06]accept exits with 8 [10:01:06]New connection [10:01:06]New thread 3066936676 created [10:01:06]Thread 3067080036 joined [10:01:06]Waiting for new connection... [10:01:06] Sock 8.Parse request [10:01:06]Sock 8.Check first char [10:01:06]Sock 8.First char is OK [10:01:06]request: POST /json_proto HTTP/1.0 [10:01:06]Method: POST [10:01:06]URL: /json_proto [10:01:06]Method is POST - this is cgi request [10:01:06]url: /json_proto [10:01:06]query_string will be loaded in cgi processing [10:01:06]execute_cgi json_proto POST (null) [10:01:06]execute_cgi path=json_proto method=POST [10:01:06]POST find Content-Length [10:01:06]Host: 172.17.46.131:8080 [10:01:06]Content-Length: 677 [10:01:06]Content-Type: application/json [10:01:06] [10:01:06]POST finish read [10:01:06]Found Content-Length = 677 [10:01:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:06]execute_script... [10:01: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)412722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:06]POST & json_proto [10:01:06]process_json_proto [10:01:06]json parsed OK: [10:01:06]protocol is kg_v1.0 [10:01:06]action value=close_receipt [10:01:06]process_action close_receipt [10:01:06]cmd_close_receipt [10:01:06]MH_GetDate [10:01:06]Write to MH i2c: F0 00 00 BF 02 B0 [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: F0 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: F0 09 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: F0 09 00 BF 02 00 E2 4E B8 67 7E 41 4F 65 7B [10:01:06]GetLastDocTimeStamp 1740132062 [10:01:06]current date 1740132066 [10:01:06]FM_GetShiftState [10:01:06]SAM_PROTO_GetShiftState [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 13 01 00 [10:01:06]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0E 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2D [10:01:06]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:01:06]wFMCommunicate OK [10:01:06]SAM_PROTO_GetShiftState done [10:01:06]FM_GetShiftState done [10:01:06]opened in 1740098043 [10:01:06]opened+sec_in_day 1740184443 [10:01:06]quantity*price = 40060 [10:01:06]sum+1 = 40062 [10:01:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 59 21.02.2025 10:01 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187565 ФПД: 109369059161057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100106&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187565&fm=109369059161057&tin=02508201610067®Number=0000000000091857&sum=40000 [10:01:07]StoreToDocumentArchive [10:01:07]shift 649 fd 187565 [10:01:07]save to /storage/0649/doc_00187565 [10:01:07]save last doc name /storage/0649/doc_00187565 to /storage/kkm_last_doc_name [10:01:07]save OK [10:01:07]Clear old archive folders... [10:01:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:07]tlvbuf is B6EE0D40 [10:01:07]SAM_PROTO_ClearQueue [10:01:07]wFMCommunicate request_size=4 [10:01:07]MH_SAM_APDU [10:01:07]CAPDU: 80 09 00 00 [10:01:07]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [10:01:08]RAPDU: 90 00 [10:01:08]wFMCommunicate OK [10:01:08]SAM_PROTO_ClearQueue done [10:01:08]KKMCreateOFDPacket [10:01:08]OFDProtocolAddRootSTLVToBuf [10:01:08]FM_MakeSignedData [10:01:08]FM_MakeSignedData [10:01:08]SAM_PROTO_SignData [10:01:08]wFMCommunicate request_size=4 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 0D 01 02 [10:01:08]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [10:01:08]RAPDU: 90 00 [10:01:08]wFMCommunicate OK [10:01:08]wFMCommunicate request_size=255 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E2 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD DC 02 00 35 04 06 00 63 [10:01:08]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E2 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD DC 02 00 35 04 06 00 63 00 00 DF [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [10:01:08]RAPDU: 90 00 [10:01:08]wFMCommunicate OK [10:01:08]wFMCommunicate request_size=10 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 0D 02 02 05 78 77 EB B3 E1 [10:01:08]Write to MH i2c: E2 0D 00 D0 02 80 0D 02 02 05 00 78 77 EB B3 E1 00 00 C4 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [10:01:08]RAPDU: 90 00 [10:01:08]wFMCommunicate OK [10:01:08]wFMCommunicate request_size=4 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 0D 03 02 [10:01:08]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 0B 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 0B 00 D1 02 00 A3 7F 0B D9 DD 6A DD 72 90 00 EB [10:01:08]RAPDU: A3 7F 0B D9 DD 6A DD 72 90 00 [10:01:08]wFMCommunicate OK [10:01:08]SAM_PROTO_SignData done [10:01:08]FM_MakeSignedData done [10:01:08]CreateOFDProtocolMessage [10:01:09]wFMCommunicate request_size=4 [10:01:09]MH_SAM_APDU [10:01:09]CAPDU: 80 11 00 00 [10:01:09]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:09]Read from MH i2c: E2 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 17 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A1 [10:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:09]wFMCommunicate OK [10:01:09]CreateOFDProtocolMessage done [10:01:09]OFDSenderStorePacket 187565 [10:01:09]StoreOFDPacket docnum=187565 [10:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7C F0 07 01 D4 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E2 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD DC 02 00 35 04 06 00 63 78 77 EB B3 E1 A3 7F 0B D9 DD 6A DD 72 [10:01:09]CheckFolder [10:01:09]dirname=/storage/ofd_packets [10:01:09]CheckFolder done [10:01:09]ProducePacketName [10:01:09]name=ofd_packets/00187565 [10:01:09]NVStorageSaveData ofd_packets/00187565 [10:01:09]File name is /storage/ofd_packets/00187565 [10:01:09]Write 301 bytes [10:01:09]NVStorageSaveData done [10:01:09]OFDSenderStorePacket done [10:01:09]KKMCreateOFDPacket done [10:01:09]NVStorageSaveData kkm_last_timestamp [10:01:09]File name is /storage/kkm_last_timestamp [10:01:09]Write 4 bytes [10:01:09]NVStorageSaveData done [10:01:09]ExternCall_PrintAddStr [10:01:09]wPrintStart [10:01:09]Write to MH i2c: 01 00 00 D3 02 D5 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 07 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [10:01:09]RasterBufferAndPrint [10:01:09]line Счет N : (1)412722 [10:01:09]line ИНН: 02508201610067 [10:01:09]line Контрольно-Кассовый Чек [10:01:09]line ПРОДАЖА [10:01:09]line ТРК (МРК, ГНК) : 22 [10:01:09]line Товар: 2710124130 [10:01:09]line Аи-92-К-2 [10:01:09]line 6.240 * 64.20 [10:01:09]line = 400.61 [10:01:09]line НДС 12% НСП 1% [10:01:09]line > о реализуемом товаре [10:01:09]line ОКРУГЛЕНИЕ: -0.61 [10:01:09]line ИТОГО: 400.00 [10:01:09]line Внесено: 400.00 [10:01:09]line СДАЧА: 0.00 [10:01:09]line НСП 1% : 3.54 [10:01:09]line НДС 12% : 42.54 [10:01:09]line Наличными: 400.00 [10:01:09]line Безнал.: 0.00 [10:01:09]line Место: АЗС № 92 "Партнер Нефть" [10:01:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:01:09]line СНО: Общий режим [10:01:09]line Чек 59 21.02.2025 10:01 [10:01:09]line Смена: 649 ФФД: 1.0 [10:01:09]line ЗНМ: 0300000118 [10:01:09]line РНМ: 0000000000091857 [10:01:09]line Версия ККМ: 001 [10:01:09]line ФМ: 0000000000871826 [10:01:09]line ФД: 187565 [10:01:09]line ФПД: 109369059161057 [10:01:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100106&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187565&fm=109369059161057&tin=02508201610067®Number=0000000000091857&sum=40000 [10:01:09]written 0, free lines is 4095 [10:01:09]OFD Sender: Processing packet 187565 [packets to send 49, broken 48] [10:01:09]ProducePacketName [10:01:09]name=ofd_packets/00187565 [10:01:09]OFD Sender: To server: pG, [10:01:09]CommunicateWithHost lk.salyk.kg:30040 [10:01:09]ConnectInit lk.salyk.kg [10:01:09]Connected sock=10 [10:01:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7C F0 07 01 D4 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E2 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD DC 02 00 35 04 06 00 63 78 77 EB B3 E1 A3 7F 0B D9 DD 6A DD 72 [10:01:09]Write to MH i2c: 01 00 00 FE 02 00 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 07 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FA 0C 0D [10:01:09]RasterBufferAndPrint [10:01:09]line [10:01:09]line [10:01:09]line [10:01:09]line [10:01:09]line [10:01:09]written 0, free lines is 3334 [10:01:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8D 20 47 00 26 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD DC 02 00 F4 03 04 00 31 F5 B7 67 B6 04 01 00 00 9F 1F C5 63 3F 74 27 C5 [10:01:09]CommunicateWithHost err = 0 [10:01:09]CheckOFDResponse [10:01:09]1017 (14) - 77093643461234 [10:01:09]1041 (16) - 0000000000871826 [10:01:09]1040 (4) - 187565 [10:01:09]1012 (4) - 21.02.2025 03:38 [10:01:09]1206 (1) - 0 [10:01:09]OFD Sender: Remove packet 187565 [10:01:09]ProducePacketName [10:01:09]name=ofd_packets/00187565 [10:01:09]NVStorageDeleteData [10:01:09]MH_Cut [10:01:09]Write to MH i2c: D1 01 00 05 03 01 DA [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: D1 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: D1 01 00 [10:01:09]MH_I2C_Read... [10:01:09]Read from MH i2c: D1 01 00 05 03 00 D9 [10:01:09]Write to MH i2c: 01 00 00 06 03 09 [10:01:09]Write i2c OK [10:01:09]MH_I2C_Read... [10:01:10]OFD Sender: No OFD packet to send [10:01:10]*** Cut start [10:01:10]*** Partial cut [10:01:10]*** CUTSNS_PIN = 1 [10:01:10]*** CUTSNS_PIN = 0 [10:01:10]*** Brake cut motor [10:01:10]Read from MH i2c: 01 [10:01:10]MH_I2C_Read... [10:01:10]*** Stop cut motor [10:01:10]*** Cut end [10:01:10]Read from MH i2c: 01 07 00 [10:01:10]MH_I2C_Read... [10:01:10]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [10:01:10]process_action close_receipt done [10:01:10]requested_data is exist [10:01:10]produce_requested_data [10:01:10]requested_item fm.sn is exist - process it [10:01:10]wFMCommunicate request_size=4 [10:01:10]MH_SAM_APDU [10:01:10]CAPDU: 80 11 00 00 [10:01:10]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [10:01:10]Write i2c OK [10:01:10]MH_I2C_Read... [10:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:11]Read from MH i2c: E2 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 17 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [10:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:11]wFMCommunicate OK [10:01:11]requested_item fd.num is exist - process it [10:01:11]SAM_PROTO_GetFieldsCounters [10:01:11]wFMCommunicate request_size=4 [10:01:11]MH_SAM_APDU [10:01:11]CAPDU: 80 13 00 00 [10:01:11]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:11]Read from MH i2c: E2 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 62 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 62 00 08 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AD DC 02 00 0E 04 04 00 89 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 74 [10:01:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AD DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:11]wFMCommunicate OK [10:01:11]SAM_PROTO_GetFieldsCounters done [10:01:11]requested_item shift.num is exist - process it [10:01:11]requested_item shift.opened is exist - process it [10:01:11]req_shift_opened [10:01:11]FM_GetShiftState [10:01:11]SAM_PROTO_GetShiftState [10:01:11]wFMCommunicate request_size=4 [10:01:11]MH_SAM_APDU [10:01:11]CAPDU: 80 13 01 00 [10:01:11]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:11]Read from MH i2c: E2 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 77 [10:01:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:01:11]wFMCommunicate OK [10:01:11]SAM_PROTO_GetShiftState done [10:01:11]FM_GetShiftState done [10:01:11]req_shift_opened done [10:01:11]requested_item shift.open_date is exist - process it [10:01:11]req_shift_open_date [10:01:11]req_shift_open_date done [10:01:11]produce_requested_data done [10:01:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187565,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:01:11]process_action_free close_receipt [10:01:11]json_value_free [10:01:11]json_value_free done [10:01:11]process_json_proto returns [10:01:11]Send response to host [10:01:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187565,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:01:11]free response buf [10:01:11]execute_script done [10:01:11]execute_script returns [10:01:11]free content buf [10:01:11]Sock 8.Close socket [10:01:11]Sock 8.Thread stoped [10:01:11]accept exits with 9 [10:01:11]New connection [10:01:11]New thread 3067080036 created [10:01:11]Thread 3066936676 joined [10:01:11]Waiting for new connection... [10:01:11] Sock 9.Parse request [10:01:11]Sock 9.Check first char [10:01:11]Sock 9.First char is OK [10:01:11]request: POST /json_proto HTTP/1.0 [10:01:11]Method: POST [10:01:11]URL: /json_proto [10:01:11]Method is POST - this is cgi request [10:01:11]url: /json_proto [10:01:11]query_string will be loaded in cgi processing [10:01:11]execute_cgi json_proto POST (null) [10:01:11]execute_cgi path=json_proto method=POST [10:01:11]POST find Content-Length [10:01:11]Host: 172.17.46.131:8080 [10:01:11]Content-Length: 682 [10:01:11]Content-Type: application/json [10:01:11] [10:01:11]POST finish read [10:01:11]Found Content-Length = 682 [10:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:11]execute_script... [10:01:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:11]POST & json_proto [10:01:11]process_json_proto [10:01:11]json parsed OK: [10:01:11]protocol is kg_v1.0 [10:01:11]action value=close_receipt [10:01:11]process_action close_receipt [10:01:11]cmd_close_receipt [10:01:11]MH_GetDate [10:01:11]Write to MH i2c: F0 00 00 0A 03 FC [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 09 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: F0 09 00 0A 03 00 E7 4E B8 67 7E 41 4F 65 CC [10:01:11]GetLastDocTimeStamp 1740132066 [10:01:11]current date 1740132071 [10:01:11]FM_GetShiftState [10:01:11]SAM_PROTO_GetShiftState [10:01:11]wFMCommunicate request_size=4 [10:01:11]MH_SAM_APDU [10:01:11]CAPDU: 80 13 01 00 [10:01:11]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [10:01:11]Write i2c OK [10:01:11]MH_I2C_Read... [10:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:11]Read from MH i2c: E2 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 [10:01:11]MH_I2C_Read... [10:01:11]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 79 [10:01:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:01:11]wFMCommunicate OK [10:01:11]SAM_PROTO_GetShiftState done [10:01:11]FM_GetShiftState done [10:01:11]opened in 1740098043 [10:01:11]opened+sec_in_day 1740184443 [10:01:11]quantity*price = 100023 [10:01:11]sum+1 = 100025 [10:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 60 21.02.2025 10:01 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187566 ФПД: 33581814822416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100111&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187566&fm=33581814822416&tin=02508201610067®Number=0000000000091857&sum=100000 [10:01:12]StoreToDocumentArchive [10:01:12]shift 649 fd 187566 [10:01:12]save to /storage/0649/doc_00187566 [10:01:12]save last doc name /storage/0649/doc_00187566 to /storage/kkm_last_doc_name [10:01:12]save OK [10:01:12]Clear old archive folders... [10:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:12]tlvbuf is 01E48AB0 [10:01:12]SAM_PROTO_ClearQueue [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 09 00 00 [10:01:12]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [10:01:12]RAPDU: 90 00 [10:01:12]wFMCommunicate OK [10:01:12]SAM_PROTO_ClearQueue done [10:01:12]KKMCreateOFDPacket [10:01:12]OFDProtocolAddRootSTLVToBuf [10:01:12]FM_MakeSignedData [10:01:12]FM_MakeSignedData [10:01:12]SAM_PROTO_SignData [10:01:12]wFMCommunicate request_size=4 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 0D 01 02 [10:01:12]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [10:01:12]Write i2c OK [10:01:12]MH_I2C_Read... [10:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:12]Read from MH i2c: E2 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 [10:01:12]MH_I2C_Read... [10:01:12]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [10:01:12]RAPDU: 90 00 [10:01:12]wFMCommunicate OK [10:01:12]wFMCommunicate request_size=255 [10:01:12]MH_SAM_APDU [10:01:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E7 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE DC 02 00 35 04 06 00 1E [10:01:12]Write to MH i2c: E2 02 01 1A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E7 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE DC 02 00 35 04 06 00 1E 00 00 57 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=10 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 02 02 05 8A E0 24 B6 10 [10:01:13]Write to MH i2c: E2 0D 00 1B 03 80 0D 02 02 05 00 8A E0 24 B6 10 00 00 F6 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [10:01:13]RAPDU: 90 00 [10:01:13]wFMCommunicate OK [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 0D 03 02 [10:01:13]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0B 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0B 00 1C 03 00 5C FC F4 47 F3 4D BE 37 90 00 63 [10:01:13]RAPDU: 5C FC F4 47 F3 4D BE 37 90 00 [10:01:13]wFMCommunicate OK [10:01:13]SAM_PROTO_SignData done [10:01:13]FM_MakeSignedData done [10:01:13]CreateOFDProtocolMessage [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 11 00 00 [10:01:13]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 17 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 17 00 1D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 ED [10:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:13]wFMCommunicate OK [10:01:13]CreateOFDProtocolMessage done [10:01:13]OFDSenderStorePacket 187566 [10:01:13]StoreOFDPacket docnum=187566 [10:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A AB 07 01 D8 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E7 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE DC 02 00 35 04 06 00 1E 8A E0 24 B6 10 5C FC F4 47 F3 4D BE 37 [10:01:13]CheckFolder [10:01:13]dirname=/storage/ofd_packets [10:01:13]CheckFolder done [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00187566 [10:01:13]NVStorageSaveData ofd_packets/00187566 [10:01:13]File name is /storage/ofd_packets/00187566 [10:01:13]Write 301 bytes [10:01:13]NVStorageSaveData done [10:01:13]OFDSenderStorePacket done [10:01:13]KKMCreateOFDPacket done [10:01:13]NVStorageSaveData kkm_last_timestamp [10:01:13]File name is /storage/kkm_last_timestamp [10:01:13]Write 4 bytes [10:01:13]NVStorageSaveData done [10:01:13]ExternCall_PrintAddStr [10:01:13]wPrintStart [10:01:13]Write to MH i2c: 01 00 00 1E 03 21 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 07 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [10:01:13]RasterBufferAndPrint [10:01:13]line Счет N : (1)412723 [10:01:13]line ИНН: 02508201610067 [10:01:13]line Контрольно-Кассовый Чек [10:01:13]line ПРОДАЖА [10:01:13]line ТРК (МРК, ГНК) : 12 [10:01:13]line Товар: 2710124130 [10:01:13]line Аи-92-К-2 [10:01:13]line 15.580 * 64.20 [10:01:13]line = 1000.24 [10:01:13]line НДС 12% НСП 1% [10:01:13]line > о реализуемом товаре [10:01:13]line ОКРУГЛЕНИЕ: -0.24 [10:01:13]line ИТОГО: 1000.00 [10:01:13]line Внесено: 1000.00 [10:01:13]line СДАЧА: 0.00 [10:01:13]line НСП 1% : 8.85 [10:01:13]line НДС 12% : 106.22 [10:01:13]line Наличными: 1000.00 [10:01:13]line Безнал.: 0.00 [10:01:13]line Место: АЗС № 92 "Партнер Нефть" [10:01:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:01:13]line СНО: Общий режим [10:01:13]line Чек 60 21.02.2025 10:01 [10:01:13]line Смена: 649 ФФД: 1.0 [10:01:13]line ЗНМ: 0300000118 [10:01:13]line РНМ: 0000000000091857 [10:01:13]line Версия ККМ: 001 [10:01:13]line ФМ: 0000000000871826 [10:01:13]line ФД: 187566 [10:01:13]line ФПД: 33581814822416 [10:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100111&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187566&fm=33581814822416&tin=02508201610067®Number=0000000000091857&sum=100000 [10:01:13]written 0, free lines is 4095 [10:01:13]OFD Sender: Processing packet 187566 [packets to send 49, broken 48] [10:01:13]ProducePacketName [10:01:13]name=ofd_packets/00187566 [10:01:13]OFD Sender: To server: pG, [10:01:13]CommunicateWithHost lk.salyk.kg:30040 [10:01:13]ConnectInit lk.salyk.kg [10:01:13]Connected sock=10 [10:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A AB 07 01 D8 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 E7 4E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE DC 02 00 35 04 06 00 1E 8A E0 24 B6 10 5C FC F4 47 F3 4D BE 37 [10:01:14]Write to MH i2c: 01 00 00 49 03 4C [10:01:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 47 D6 47 00 D5 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE DC 02 00 F4 03 04 00 36 F5 B7 67 B6 04 01 00 00 FC 6B 6A 93 61 49 F0 1B [10:01:14]CommunicateWithHost err = 0 [10:01:14]CheckOFDResponse [10:01:14]1017 (14) - 77093643461234 [10:01:14]1041 (16) - 0000000000871826 [10:01:14]1040 (4) - 187566 [10:01:14]1012 (4) - 21.02.2025 03:38 [10:01:14]1206 (1) - 0 [10:01:14]OFD Sender: Remove packet 187566 [10:01:14]ProducePacketName [10:01:14]name=ofd_packets/00187566 [10:01:14]NVStorageDeleteData [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 07 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FA 0C 59 [10:01:14]RasterBufferAndPrint [10:01:14]line [10:01:14]line [10:01:14]line [10:01:14]line [10:01:14]line [10:01:14]written 0, free lines is 3441 [10:01:14]MH_Cut [10:01:14]Write to MH i2c: D1 01 00 50 03 01 25 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: D1 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: D1 01 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: D1 01 00 50 03 00 24 [10:01:14]Write to MH i2c: 01 00 00 51 03 54 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]OFD Sender: No OFD packet to send [10:01:14]*** Cut start [10:01:14]*** Partial cut [10:01:14]*** CUTSNS_PIN = 1 [10:01:15]*** CUTSNS_PIN = 0 [10:01:15]*** Brake cut motor [10:01:15]Read from MH i2c: 01 [10:01:15]MH_I2C_Read... [10:01:15]*** Stop cut motor [10:01:15]*** Cut end [10:01:15]Read from MH i2c: 01 07 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [10:01:15]process_action close_receipt done [10:01:15]requested_data is exist [10:01:15]produce_requested_data [10:01:15]requested_item fm.sn is exist - process it [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 11 00 00 [10:01:15]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 22 [10:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:15]wFMCommunicate OK [10:01:15]requested_item fd.num is exist - process it [10:01:15]SAM_PROTO_GetFieldsCounters [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 13 00 00 [10:01:15]Write to MH i2c: E2 08 00 53 03 80 13 00 00 00 00 00 00 D2 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 62 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 62 00 53 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AE DC 02 00 0E 04 04 00 89 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 C3 [10:01:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AE DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_GetFieldsCounters done [10:01:15]requested_item shift.num is exist - process it [10:01:15]requested_item shift.opened is exist - process it [10:01:15]req_shift_opened [10:01:15]FM_GetShiftState [10:01:15]SAM_PROTO_GetShiftState [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 13 01 00 [10:01:15]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0E 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C2 [10:01:16]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:01:16]wFMCommunicate OK [10:01:16]SAM_PROTO_GetShiftState done [10:01:16]FM_GetShiftState done [10:01:16]req_shift_opened done [10:01:16]requested_item shift.open_date is exist - process it [10:01:16]req_shift_open_date [10:01:16]req_shift_open_date done [10:01:16]produce_requested_data done [10:01:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187566,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:01:16]process_action_free close_receipt [10:01:16]json_value_free [10:01:16]json_value_free done [10:01:16]process_json_proto returns [10:01:16]Send response to host [10:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187566,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:01:16]free response buf [10:01:16]execute_script done [10:01:16]execute_script returns [10:01:16]free content buf [10:01:16]Sock 9.Close socket [10:01:16]Sock 9.Thread stoped [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:16]accept exits with 8 [10:03:16]New connection [10:03:16]New thread 3066936676 created [10:03:16]Thread 3067080036 joined [10:03:16]Waiting for new connection... [10:03:16] Sock 8.Parse request [10:03:16]Sock 8.Check first char [10:03:16]Sock 8.First char is OK [10:03:16]request: POST /json_proto HTTP/1.0 [10:03:16]Method: POST [10:03:16]URL: /json_proto [10:03:16]Method is POST - this is cgi request [10:03:16]url: /json_proto [10:03:16]query_string will be loaded in cgi processing [10:03:16]execute_cgi json_proto POST (null) [10:03:16]execute_cgi path=json_proto method=POST [10:03:16]POST find Content-Length [10:03:16]Host: 172.17.46.131:8080 [10:03:16]Content-Length: 804 [10:03:16]Content-Type: application/json [10:03:16] [10:03:16]POST finish read [10:03:16]Found Content-Length = 804 [10:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4785459.4785458", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:16]execute_script... [10:03: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)412724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4785459.4785458", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:16]POST & json_proto [10:03:16]process_json_proto [10:03:16]json parsed OK: [10:03:16]protocol is kg_v1.0 [10:03:16]action value=close_receipt [10:03:16]process_action close_receipt [10:03:16]cmd_close_receipt [10:03:16]MH_GetDate [10:03:16]Write to MH i2c: F0 00 00 55 03 47 [10:03:16]Write i2c OK [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: F0 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: F0 09 00 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: F0 09 00 55 03 00 64 4F B8 67 7E 41 4F 65 95 [10:03:16]GetLastDocTimeStamp 1740132071 [10:03:16]current date 1740132196 [10:03:16]FM_GetShiftState [10:03:16]SAM_PROTO_GetShiftState [10:03:16]wFMCommunicate request_size=4 [10:03:16]MH_SAM_APDU [10:03:16]CAPDU: 80 13 01 00 [10:03:16]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [10:03:16]Write i2c OK [10:03:16]MH_I2C_Read... [10:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:16]Read from MH i2c: E2 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 0E 00 [10:03:16]MH_I2C_Read... [10:03:16]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C4 [10:03:16]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:03:16]wFMCommunicate OK [10:03:16]SAM_PROTO_GetShiftState done [10:03:16]FM_GetShiftState done [10:03:16]opened in 1740098043 [10:03:16]opened+sec_in_day 1740184443 [10:03:16]quantity*price = 0 [10:03:16]sum+1 = 1 [10:03:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 61 21.02.2025 10:03 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4785459.4785458 ФМ: 0000000000871826 ФД: 187567 ФПД: 116958111258790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100316&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187567&fm=116958111258790&tin=02508201610067®Number=0000000000091857&sum=0 [10:03:17]StoreToDocumentArchive [10:03:17]shift 649 fd 187567 [10:03:17]save to /storage/0649/doc_00187567 [10:03:17]save last doc name /storage/0649/doc_00187567 to /storage/kkm_last_doc_name [10:03:17]save OK [10:03:17]Clear old archive folders... [10:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:03:17]tlvbuf is 01DF7970 [10:03:17]SAM_PROTO_ClearQueue [10:03:17]wFMCommunicate request_size=4 [10:03:17]MH_SAM_APDU [10:03:17]CAPDU: 80 09 00 00 [10:03:17]Write to MH i2c: E2 08 00 63 03 80 09 00 00 00 00 00 00 D8 [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:17]Read from MH i2c: E2 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 03 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [10:03:17]RAPDU: 90 00 [10:03:17]wFMCommunicate OK [10:03:17]SAM_PROTO_ClearQueue done [10:03:17]KKMCreateOFDPacket [10:03:17]OFDProtocolAddRootSTLVToBuf [10:03:17]FM_MakeSignedData [10:03:17]FM_MakeSignedData [10:03:17]SAM_PROTO_SignData [10:03:17]wFMCommunicate request_size=4 [10:03:17]MH_SAM_APDU [10:03:17]CAPDU: 80 0D 01 02 [10:03:17]Write to MH i2c: E2 08 00 64 03 80 0D 01 02 00 00 00 00 E0 [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 [10:03:17]MH_I2C_Read... [10:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:17]Read from MH i2c: E2 03 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [10:03:17]RAPDU: 90 00 [10:03:17]wFMCommunicate OK [10:03:17]wFMCommunicate request_size=255 [10:03:17]MH_SAM_APDU [10:03: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 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 3D 00 00 00 F4 03 04 00 64 4F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF DC 02 00 35 04 06 00 6A 5F 6E AC [10:03:17]Write to MH i2c: E2 02 01 65 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 64 4F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF DC 02 00 35 04 06 00 6A 5F 6E AC 00 00 28 [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:17]Read from MH i2c: E2 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 03 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [10:03:17]RAPDU: 90 00 [10:03:17]wFMCommunicate OK [10:03:17]wFMCommunicate request_size=7 [10:03:17]MH_SAM_APDU [10:03:17]CAPDU: 80 0D 02 02 02 D8 A6 [10:03:17]Write to MH i2c: E2 0A 00 66 03 80 0D 02 02 02 00 D8 A6 00 00 65 [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:17]Read from MH i2c: E2 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 03 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [10:03:17]RAPDU: 90 00 [10:03:17]wFMCommunicate OK [10:03:17]wFMCommunicate request_size=4 [10:03:17]MH_SAM_APDU [10:03:17]CAPDU: 80 0D 03 02 [10:03:17]Write to MH i2c: E2 08 00 67 03 80 0D 03 02 00 00 00 00 E5 [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:17]Read from MH i2c: E2 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 0B 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 0B 00 67 03 00 06 EB 7F FD 7A A5 B5 62 90 00 89 [10:03:17]RAPDU: 06 EB 7F FD 7A A5 B5 62 90 00 [10:03:17]wFMCommunicate OK [10:03:17]SAM_PROTO_SignData done [10:03:17]FM_MakeSignedData done [10:03:17]CreateOFDProtocolMessage [10:03:17]wFMCommunicate request_size=4 [10:03:17]MH_SAM_APDU [10:03:17]CAPDU: 80 11 00 00 [10:03:17]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:17]Read from MH i2c: E2 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 17 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 38 [10:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:03:17]wFMCommunicate OK [10:03:17]CreateOFDProtocolMessage done [10:03:17]OFDSenderStorePacket 187567 [10:03:17]StoreOFDPacket docnum=187567 [10:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8A 33 04 01 ED DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 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 3D 00 00 00 F4 03 04 00 64 4F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF DC 02 00 35 04 06 00 6A 5F 6E AC D8 A6 06 EB 7F FD 7A A5 B5 62 [10:03:17]CheckFolder [10:03:17]dirname=/storage/ofd_packets [10:03:17]CheckFolder done [10:03:17]ProducePacketName [10:03:17]name=ofd_packets/00187567 [10:03:17]NVStorageSaveData ofd_packets/00187567 [10:03:17]File name is /storage/ofd_packets/00187567 [10:03:17]Write 298 bytes [10:03:17]NVStorageSaveData done [10:03:17]OFDSenderStorePacket done [10:03:17]KKMCreateOFDPacket done [10:03:17]NVStorageSaveData kkm_last_timestamp [10:03:17]File name is /storage/kkm_last_timestamp [10:03:17]Write 4 bytes [10:03:17]NVStorageSaveData done [10:03:17]ExternCall_PrintAddStr [10:03:17]wPrintStart [10:03:17]Write to MH i2c: 01 00 00 69 03 6C [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: 01 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: 01 07 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 FF 0F 81 [10:03:17]RasterBufferAndPrint [10:03:17]line Счет N : (1)412724 [10:03:17]line ИНН: 02508201610067 [10:03:17]line Контрольно-Кассовый Чек [10:03:17]line ПРОДАЖА [10:03:17]line ТРК (МРК, ГНК) : 5 [10:03:17]line Товар: 2710194210 [10:03:17]line ДТ-К-5 [10:03:17]line 40.000 * 0.00 [10:03:17]line = 0.00 [10:03:17]line НДС 12% НСП 1% [10:03:17]line > о реализуемом товаре [10:03:17]line ИТОГО: 0.00 [10:03:17]line НСП 1% : 0.00 [10:03:17]line НДС 12% : 0.00 [10:03:17]line Наличными: 0.00 [10:03:17]line Безнал.: 0.00 [10:03:17]line Место: АЗС № 92 "Партнер Нефть" [10:03:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:03:17]line СНО: Общий режим [10:03:17]line Чек 61 21.02.2025 10:03 [10:03:17]line Смена: 649 ФФД: 1.0 [10:03:17]line ЗНМ: 0300000118 [10:03:17]line РНМ: 0000000000091857 [10:03:17]line Версия ККМ: 001 [10:03:17]line Талоны: Топливные Талоны [10:03:17]line 4785459.4785458 [10:03:17]line ФМ: 0000000000871826 [10:03:17]line ФД: 187567 [10:03:17]line ФПД: 116958111258790 [10:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100316&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187567&fm=116958111258790&tin=02508201610067®Number=0000000000091857&sum=0 [10:03:17]written 0, free lines is 4095 [10:03:17]OFD Sender: Processing packet 187567 [packets to send 49, broken 48] [10:03:17]ProducePacketName [10:03:17]name=ofd_packets/00187567 [10:03:17]OFD Sender: To server: pG, [10:03:17]CommunicateWithHost lk.salyk.kg:30040 [10:03:17]ConnectInit lk.salyk.kg [10:03:18]Connected sock=10 [10:03:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8A 33 04 01 ED DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 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 3D 00 00 00 F4 03 04 00 64 4F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF DC 02 00 35 04 06 00 6A 5F 6E AC D8 A6 06 EB 7F FD 7A A5 B5 62 [10:03:18]Write to MH i2c: 01 00 00 93 03 96 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: 01 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: 01 07 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 00 0D AA [10:03:18]RasterBufferAndPrint [10:03:18]line [10:03:18]line [10:03:18]line [10:03:18]line [10:03:18]line [10:03:18]written 0, free lines is 3334 [10:03:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F2 59 47 00 81 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF DC 02 00 F4 03 04 00 B2 F5 B7 67 B6 04 01 00 00 64 A2 C9 2B BE 8E 23 09 [10:03:18]CommunicateWithHost err = 0 [10:03:18]CheckOFDResponse [10:03:18]1017 (14) - 77093643461234 [10:03:18]1041 (16) - 0000000000871826 [10:03:18]1040 (4) - 187567 [10:03:18]1012 (4) - 21.02.2025 03:40 [10:03:18]1206 (1) - 0 [10:03:18]OFD Sender: Remove packet 187567 [10:03:18]ProducePacketName [10:03:18]name=ofd_packets/00187567 [10:03:18]NVStorageDeleteData [10:03:18]MH_Cut [10:03:18]Write to MH i2c: D1 01 00 9A 03 01 6F [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: D1 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: D1 01 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: D1 01 00 9A 03 00 6E [10:03:18]Write to MH i2c: 01 00 00 9B 03 9E [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]OFD Sender: No OFD packet to send [10:03:18]*** Cut start [10:03:18]*** Partial cut [10:03:18]*** CUTSNS_PIN = 1 [10:03:19]*** CUTSNS_PIN = 0 [10:03:19]*** Brake cut motor [10:03:19]Read from MH i2c: 01 [10:03:19]MH_I2C_Read... [10:03:19]*** Stop cut motor [10:03:19]*** Cut end [10:03:19]Read from MH i2c: 01 07 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [10:03:19]process_action close_receipt done [10:03:19]requested_data is exist [10:03:19]produce_requested_data [10:03:19]requested_item fm.sn is exist - process it [10:03:19]wFMCommunicate request_size=4 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 11 00 00 [10:03:19]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 17 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6C [10:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:03:19]wFMCommunicate OK [10:03:19]requested_item fd.num is exist - process it [10:03:19]SAM_PROTO_GetFieldsCounters [10:03:19]wFMCommunicate request_size=4 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 13 00 00 [10:03:19]Write to MH i2c: E2 08 00 9D 03 80 13 00 00 00 00 00 00 1C [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 62 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 62 00 9D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AF DC 02 00 0E 04 04 00 89 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 11 [10:03:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AF DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:19]wFMCommunicate OK [10:03:19]SAM_PROTO_GetFieldsCounters done [10:03:19]requested_item shift.num is exist - process it [10:03:19]requested_item shift.opened is exist - process it [10:03:19]req_shift_opened [10:03:19]FM_GetShiftState [10:03:19]SAM_PROTO_GetShiftState [10:03:19]wFMCommunicate request_size=4 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 13 01 00 [10:03:19]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 0E 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0C [10:03:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:03:19]wFMCommunicate OK [10:03:19]SAM_PROTO_GetShiftState done [10:03:19]FM_GetShiftState done [10:03:19]req_shift_opened done [10:03:19]requested_item shift.open_date is exist - process it [10:03:19]req_shift_open_date [10:03:19]req_shift_open_date done [10:03:19]produce_requested_data done [10:03:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187567,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:03:19]process_action_free close_receipt [10:03:19]json_value_free [10:03:19]json_value_free done [10:03:19]process_json_proto returns [10:03:19]Send response to host [10:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187567,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:03:19]free response buf [10:03:19]execute_script done [10:03:19]execute_script returns [10:03:19]free content buf [10:03:19]Sock 8.Close socket [10:03:19]Sock 8.Thread stoped [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:11]accept exits with 9 [10:06:11]New connection [10:06:11]New thread 3067080036 created [10:06:11]Thread 3066936676 joined [10:06:11]Waiting for new connection... [10:06:11] Sock 9.Parse request [10:06:11]Sock 9.Check first char [10:06:11]Sock 9.First char is OK [10:06:11]request: POST /json_proto HTTP/1.0 [10:06:11]Method: POST [10:06:11]URL: /json_proto [10:06:11]Method is POST - this is cgi request [10:06:11]url: /json_proto [10:06:11]query_string will be loaded in cgi processing [10:06:11]execute_cgi json_proto POST (null) [10:06:11]execute_cgi path=json_proto method=POST [10:06:11]POST find Content-Length [10:06:11]Host: 172.17.46.131:8080 [10:06:11]Content-Length: 678 [10:06:11]Content-Type: application/json [10:06:11] [10:06:11]POST finish read [10:06:11]Found Content-Length = 678 [10:06:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:11]execute_script... [10:06: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)412725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:11]POST & json_proto [10:06:11]process_json_proto [10:06:11]json parsed OK: [10:06:11]protocol is kg_v1.0 [10:06:11]action value=close_receipt [10:06:11]process_action close_receipt [10:06:11]cmd_close_receipt [10:06:11]MH_GetDate [10:06:11]Write to MH i2c: F0 00 00 9F 03 91 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: F0 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: F0 09 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: F0 09 00 9F 03 00 13 50 B8 67 7E 41 4F 65 8F [10:06:11]GetLastDocTimeStamp 1740132196 [10:06:11]current date 1740132371 [10:06:11]FM_GetShiftState [10:06:11]SAM_PROTO_GetShiftState [10:06:11]wFMCommunicate request_size=4 [10:06:11]MH_SAM_APDU [10:06:11]CAPDU: 80 13 01 00 [10:06:11]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [10:06:11]Write i2c OK [10:06:11]MH_I2C_Read... [10:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:11]Read from MH i2c: E2 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 0E 00 [10:06:11]MH_I2C_Read... [10:06:11]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0E [10:06:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:06:11]wFMCommunicate OK [10:06:11]SAM_PROTO_GetShiftState done [10:06:11]FM_GetShiftState done [10:06:11]opened in 1740098043 [10:06:11]opened+sec_in_day 1740184443 [10:06:11]quantity*price = 80057 [10:06:11]sum+1 = 80058 [10:06:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 62 21.02.2025 10:06 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187568 ФПД: 24609439689502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100611&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187568&fm=24609439689502&tin=02508201610067®Number=0000000000091857&sum=80000 [10:06:12]StoreToDocumentArchive [10:06:12]shift 649 fd 187568 [10:06:12]save to /storage/0649/doc_00187568 [10:06:12]save last doc name /storage/0649/doc_00187568 to /storage/kkm_last_doc_name [10:06:12]save OK [10:06:12]Clear old archive folders... [10:06:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:12]tlvbuf is 01EAFF90 [10:06:12]SAM_PROTO_ClearQueue [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 09 00 00 [10:06:12]Write to MH i2c: E2 08 00 AD 03 80 09 00 00 00 00 00 00 22 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [10:06:12]RAPDU: 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_ClearQueue done [10:06:12]KKMCreateOFDPacket [10:06:12]OFDProtocolAddRootSTLVToBuf [10:06:12]FM_MakeSignedData [10:06:12]FM_MakeSignedData [10:06:12]SAM_PROTO_SignData [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 0D 01 02 [10:06:12]Write to MH i2c: E2 08 00 AE 03 80 0D 01 02 00 00 00 00 2A [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [10:06:12]RAPDU: 90 00 [10:06:12]wFMCommunicate OK [10:06:12]wFMCommunicate request_size=255 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 13 50 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 DC 02 00 35 04 06 00 16 [10:06:12]Write to MH i2c: E2 02 01 AF 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 13 50 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 DC 02 00 35 04 06 00 16 00 00 B9 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [10:06:12]RAPDU: 90 00 [10:06:12]wFMCommunicate OK [10:06:12]wFMCommunicate request_size=10 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 0D 02 02 05 61 D4 E9 2B 1E [10:06:12]Write to MH i2c: E2 0D 00 B0 03 80 0D 02 02 05 00 61 D4 E9 2B 1E 00 00 9E [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [10:06:12]RAPDU: 90 00 [10:06:12]wFMCommunicate OK [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 0D 03 02 [10:06:12]Write to MH i2c: E2 08 00 B1 03 80 0D 03 02 00 00 00 00 2F [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0B 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 0B 00 B1 03 00 27 4B D7 2A 51 4E C7 D4 90 00 DD [10:06:12]RAPDU: 27 4B D7 2A 51 4E C7 D4 90 00 [10:06:12]wFMCommunicate OK [10:06:12]SAM_PROTO_SignData done [10:06:12]FM_MakeSignedData done [10:06:12]CreateOFDProtocolMessage [10:06:12]wFMCommunicate request_size=4 [10:06:12]MH_SAM_APDU [10:06:12]CAPDU: 80 11 00 00 [10:06:12]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:12]Read from MH i2c: E2 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 17 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: E2 17 00 B2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [10:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:06:12]wFMCommunicate OK [10:06:12]CreateOFDProtocolMessage done [10:06:12]OFDSenderStorePacket 187568 [10:06:12]StoreOFDPacket docnum=187568 [10:06:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 39 4A 07 01 46 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 13 50 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 DC 02 00 35 04 06 00 16 61 D4 E9 2B 1E 27 4B D7 2A 51 4E C7 D4 [10:06:12]CheckFolder [10:06:12]dirname=/storage/ofd_packets [10:06:12]CheckFolder done [10:06:12]ProducePacketName [10:06:12]name=ofd_packets/00187568 [10:06:12]NVStorageSaveData ofd_packets/00187568 [10:06:12]File name is /storage/ofd_packets/00187568 [10:06:12]Write 301 bytes [10:06:12]NVStorageSaveData done [10:06:12]OFDSenderStorePacket done [10:06:12]KKMCreateOFDPacket done [10:06:12]NVStorageSaveData kkm_last_timestamp [10:06:12]File name is /storage/kkm_last_timestamp [10:06:12]Write 4 bytes [10:06:12]NVStorageSaveData done [10:06:12]ExternCall_PrintAddStr [10:06:12]wPrintStart [10:06:12]Write to MH i2c: 01 00 00 B3 03 B6 [10:06:12]Write i2c OK [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: 01 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: 01 07 00 [10:06:12]MH_I2C_Read... [10:06:12]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 FF 0F CB [10:06:12]RasterBufferAndPrint [10:06:12]line Счет N : (1)412725 [10:06:12]line ИНН: 02508201610067 [10:06:12]line Контрольно-Кассовый Чек [10:06:12]line ПРОДАЖА [10:06:12]line ТРК (МРК, ГНК) : 22 [10:06:12]line Товар: 2710124130 [10:06:12]line Аи-92-К-2 [10:06:12]line 12.470 * 64.20 [10:06:12]line = 800.57 [10:06:12]line НДС 12% НСП 1% [10:06:12]line > о реализуемом товаре [10:06:12]line ОКРУГЛЕНИЕ: -0.57 [10:06:12]line ИТОГО: 800.00 [10:06:12]line Внесено: 800.00 [10:06:12]line СДАЧА: 0.00 [10:06:12]line НСП 1% : 7.08 [10:06:12]line НДС 12% : 85.02 [10:06:12]line Наличными: 800.00 [10:06:12]line Безнал.: 0.00 [10:06:12]line Место: АЗС № 92 "Партнер Нефть" [10:06:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:06:12]line СНО: Общий режим [10:06:12]line Чек 62 21.02.2025 10:06 [10:06:12]line Смена: 649 ФФД: 1.0 [10:06:12]line ЗНМ: 0300000118 [10:06:12]line РНМ: 0000000000091857 [10:06:12]line Версия ККМ: 001 [10:06:12]line ФМ: 0000000000871826 [10:06:12]line ФД: 187568 [10:06:12]line ФПД: 24609439689502 [10:06:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T100611&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187568&fm=24609439689502&tin=02508201610067®Number=0000000000091857&sum=80000 [10:06:13]OFD Sender: Processing packet 187568 [packets to send 49, broken 48] [10:06:13]ProducePacketName [10:06:13]name=ofd_packets/00187568 [10:06:13]OFD Sender: To server: pG, [10:06:13]CommunicateWithHost lk.salyk.kg:30040 [10:06:13]ConnectInit lk.salyk.kg [10:06:13]written 0, free lines is 4095 [10:06:13]Connected sock=10 [10:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 39 4A 07 01 46 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 13 50 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 DC 02 00 35 04 06 00 16 61 D4 E9 2B 1E 27 4B D7 2A 51 4E C7 D4 [10:06:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 20 88 47 00 4B CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 DC 02 00 F4 03 04 00 61 F6 B7 67 B6 04 01 00 00 92 99 99 48 C7 C4 C7 E6 [10:06:13]CommunicateWithHost err = 0 [10:06:13]CheckOFDResponse [10:06:13]1017 (14) - 77093643461234 [10:06:13]1041 (16) - 0000000000871826 [10:06:13]1040 (4) - 187568 [10:06:13]1012 (4) - 21.02.2025 03:43 [10:06:13]1206 (1) - 0 [10:06:13]OFD Sender: Remove packet 187568 [10:06:13]ProducePacketName [10:06:13]name=ofd_packets/00187568 [10:06:13]NVStorageDeleteData [10:06:13]Write to MH i2c: 01 00 00 DE 03 E1 [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: 01 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: 01 07 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 EE 0C E2 [10:06:13]RasterBufferAndPrint [10:06:13]line [10:06:13]line [10:06:13]line [10:06:13]line [10:06:13]line [10:06:13]written 0, free lines is 3316 [10:06:13]MH_Cut [10:06:13]Write to MH i2c: D1 01 00 E5 03 01 BA [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: D1 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: D1 01 00 [10:06:13]MH_I2C_Read... [10:06:13]Read from MH i2c: D1 01 00 E5 03 00 B9 [10:06:13]Write to MH i2c: 01 00 00 E6 03 E9 [10:06:13]Write i2c OK [10:06:13]MH_I2C_Read... [10:06:14]OFD Sender: No OFD packet to send [10:06:14]*** Cut start [10:06:14]*** Partial cut [10:06:14]*** CUTSNS_PIN = 1 [10:06:14]*** CUTSNS_PIN = 0 [10:06:14]*** Brake cut motor [10:06:15]Read from MH i2c: 01 [10:06:15]MH_I2C_Read... [10:06:15]*** Stop cut motor [10:06:15]*** Cut end [10:06:15]Read from MH i2c: 01 07 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [10:06:15]process_action close_receipt done [10:06:15]requested_data is exist [10:06:15]produce_requested_data [10:06:15]requested_item fm.sn is exist - process it [10:06:15]wFMCommunicate request_size=4 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 11 00 00 [10:06:15]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 17 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B7 [10:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:06:15]wFMCommunicate OK [10:06:15]requested_item fd.num is exist - process it [10:06:15]SAM_PROTO_GetFieldsCounters [10:06:15]wFMCommunicate request_size=4 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 13 00 00 [10:06:15]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 62 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 62 00 E8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B0 DC 02 00 0E 04 04 00 89 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 60 [10:06:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B0 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:15]wFMCommunicate OK [10:06:15]SAM_PROTO_GetFieldsCounters done [10:06:15]requested_item shift.num is exist - process it [10:06:15]requested_item shift.opened is exist - process it [10:06:15]req_shift_opened [10:06:15]FM_GetShiftState [10:06:15]SAM_PROTO_GetShiftState [10:06:15]wFMCommunicate request_size=4 [10:06:15]MH_SAM_APDU [10:06:15]CAPDU: 80 13 01 00 [10:06:15]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [10:06:15]Write i2c OK [10:06:15]MH_I2C_Read... [10:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:15]Read from MH i2c: E2 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 0E 00 [10:06:15]MH_I2C_Read... [10:06:15]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 57 [10:06:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:06:15]wFMCommunicate OK [10:06:15]SAM_PROTO_GetShiftState done [10:06:15]FM_GetShiftState done [10:06:15]req_shift_opened done [10:06:15]requested_item shift.open_date is exist - process it [10:06:15]req_shift_open_date [10:06:15]req_shift_open_date done [10:06:15]produce_requested_data done [10:06:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187568,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:06:15]process_action_free close_receipt [10:06:15]json_value_free [10:06:15]json_value_free done [10:06:15]process_json_proto returns [10:06:15]Send response to host [10:06:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187568,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:06:15]free response buf [10:06:15]execute_script done [10:06:15]execute_script returns [10:06:15]free content buf [10:06:15]Sock 9.Close socket [10:06:15]Sock 9.Thread stoped [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:33]accept exits with 8 [10:10:33]New connection [10:10:33]New thread 3066936676 created [10:10:33]Thread 3067080036 joined [10:10:33]Waiting for new connection... [10:10:33] Sock 8.Parse request [10:10:33]Sock 8.Check first char [10:10:33]Sock 8.First char is OK [10:10:33]request: POST /json_proto HTTP/1.0 [10:10:33]Method: POST [10:10:33]URL: /json_proto [10:10:33]Method is POST - this is cgi request [10:10:33]url: /json_proto [10:10:33]query_string will be loaded in cgi processing [10:10:33]execute_cgi json_proto POST (null) [10:10:33]execute_cgi path=json_proto method=POST [10:10:33]POST find Content-Length [10:10:33]Host: 172.17.46.131:8080 [10:10:33]Content-Length: 678 [10:10:33]Content-Type: application/json [10:10:33] [10:10:33]POST finish read [10:10:33]Found Content-Length = 678 [10:10:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 38.570, "sum" : 2800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:33]execute_script... [10:10: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)412726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 38.570, "sum" : 2800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:33]POST & json_proto [10:10:33]process_json_proto [10:10:33]json parsed OK: [10:10:33]protocol is kg_v1.0 [10:10:33]action value=close_receipt [10:10:33]process_action close_receipt [10:10:33]cmd_close_receipt [10:10:33]MH_GetDate [10:10:33]Write to MH i2c: F0 00 00 EA 03 DC [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: F0 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: F0 09 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: F0 09 00 EA 03 00 19 51 B8 67 7E 41 4F 65 E1 [10:10:33]GetLastDocTimeStamp 1740132371 [10:10:33]current date 1740132633 [10:10:33]FM_GetShiftState [10:10:33]SAM_PROTO_GetShiftState [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 13 01 00 [10:10:33]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0E 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 59 [10:10:33]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:10:33]wFMCommunicate OK [10:10:33]SAM_PROTO_GetShiftState done [10:10:33]FM_GetShiftState done [10:10:33]opened in 1740098043 [10:10:33]opened+sec_in_day 1740184443 [10:10:33]quantity*price = 280018 [10:10:33]sum+1 = 280019 [10:10:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.36 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 63 21.02.2025 10:10 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187569 ФПД: 195642402574451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101033&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187569&fm=195642402574451&tin=02508201610067®Number=0000000000091857&sum=280000 [10:10:34]StoreToDocumentArchive [10:10:34]shift 649 fd 187569 [10:10:34]save to /storage/0649/doc_00187569 [10:10:34]save last doc name /storage/0649/doc_00187569 to /storage/kkm_last_doc_name [10:10:34]save OK [10:10:34]Clear old archive folders... [10:10:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:10:34]tlvbuf is B6EC7E90 [10:10:34]SAM_PROTO_ClearQueue [10:10:34]wFMCommunicate request_size=4 [10:10:34]MH_SAM_APDU [10:10:34]CAPDU: 80 09 00 00 [10:10:34]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:34]Read from MH i2c: E2 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 03 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [10:10:34]RAPDU: 90 00 [10:10:34]wFMCommunicate OK [10:10:34]SAM_PROTO_ClearQueue done [10:10:34]KKMCreateOFDPacket [10:10:34]OFDProtocolAddRootSTLVToBuf [10:10:34]FM_MakeSignedData [10:10:34]FM_MakeSignedData [10:10:34]SAM_PROTO_SignData [10:10:34]wFMCommunicate request_size=4 [10:10:34]MH_SAM_APDU [10:10:34]CAPDU: 80 0D 01 02 [10:10:34]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:34]Read from MH i2c: E2 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 03 00 [10:10:34]MH_I2C_Read... [10:10:34]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [10:10:34]RAPDU: 90 00 [10:10:34]wFMCommunicate OK [10:10:34]wFMCommunicate request_size=255 [10:10:34]MH_SAM_APDU [10:10: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 AA 96 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 D2 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 74 00 00 00 00 07 04 06 00 C0 45 04 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 19 51 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 DC 02 00 35 04 06 00 B1 EF 8B E8 [10:10:34]Write to MH i2c: E2 02 01 FA 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 D2 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 74 00 00 00 00 07 04 06 00 C0 45 04 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 19 51 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 DC 02 00 35 04 06 00 B1 EF 8B E8 00 00 04 [10:10:34]Write i2c OK [10:10:34]MH_I2C_Read... [10:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:35]Read from MH i2c: E2 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 03 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [10:10:35]RAPDU: 90 00 [10:10:35]wFMCommunicate OK [10:10:35]wFMCommunicate request_size=7 [10:10:35]MH_SAM_APDU [10:10:35]CAPDU: 80 0D 02 02 02 90 73 [10:10:35]Write to MH i2c: E2 0A 00 FB 03 80 0D 02 02 02 00 90 73 00 00 7F [10:10:35]Write i2c OK [10:10:35]MH_I2C_Read... [10:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:35]Read from MH i2c: E2 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 03 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [10:10:35]RAPDU: 90 00 [10:10:35]wFMCommunicate OK [10:10:35]wFMCommunicate request_size=4 [10:10:35]MH_SAM_APDU [10:10:35]CAPDU: 80 0D 03 02 [10:10:35]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [10:10:35]Write i2c OK [10:10:35]MH_I2C_Read... [10:10:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:35]Read from MH i2c: E2 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 0B 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 0B 00 FC 03 00 C0 D8 C4 2F 9E 0E 77 88 90 00 B1 [10:10:35]RAPDU: C0 D8 C4 2F 9E 0E 77 88 90 00 [10:10:35]wFMCommunicate OK [10:10:35]SAM_PROTO_SignData done [10:10:35]FM_MakeSignedData done [10:10:35]CreateOFDProtocolMessage [10:10:35]wFMCommunicate request_size=4 [10:10:35]MH_SAM_APDU [10:10:35]CAPDU: 80 11 00 00 [10:10:35]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [10:10:35]Write i2c OK [10:10:35]MH_I2C_Read... [10:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:35]Read from MH i2c: E2 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 17 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [10:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:10:35]wFMCommunicate OK [10:10:35]CreateOFDProtocolMessage done [10:10:35]OFDSenderStorePacket 187569 [10:10:35]StoreOFDPacket docnum=187569 [10:10:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A6 BC 04 01 19 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 D2 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 74 00 00 00 00 07 04 06 00 C0 45 04 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 19 51 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 DC 02 00 35 04 06 00 B1 EF 8B E8 90 73 C0 D8 C4 2F 9E 0E 77 88 [10:10:35]CheckFolder [10:10:35]dirname=/storage/ofd_packets [10:10:35]CheckFolder done [10:10:35]ProducePacketName [10:10:35]name=ofd_packets/00187569 [10:10:35]NVStorageSaveData ofd_packets/00187569 [10:10:35]File name is /storage/ofd_packets/00187569 [10:10:35]Write 298 bytes [10:10:35]NVStorageSaveData done [10:10:35]OFDSenderStorePacket done [10:10:35]KKMCreateOFDPacket done [10:10:35]NVStorageSaveData kkm_last_timestamp [10:10:35]File name is /storage/kkm_last_timestamp [10:10:35]Write 4 bytes [10:10:35]NVStorageSaveData done [10:10:35]ExternCall_PrintAddStr [10:10:35]wPrintStart [10:10:35]Write to MH i2c: 01 00 00 FE 03 01 [10:10:35]Write i2c OK [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: 01 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: 01 07 00 [10:10:35]MH_I2C_Read... [10:10:35]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FF 0F 16 [10:10:35]RasterBufferAndPrint [10:10:35]line Счет N : (1)412726 [10:10:35]line ИНН: 02508201610067 [10:10:35]line Контрольно-Кассовый Чек [10:10:35]line ПРОДАЖА [10:10:35]line ТРК (МРК, ГНК) : 5 [10:10:35]line Товар: 2710194210 [10:10:35]line ДТ-К-5 [10:10:35]line 38.570 * 72.60 [10:10:35]line = 2800.18 [10:10:35]line НДС 12% НСП 1% [10:10:35]line > о реализуемом товаре [10:10:35]line ОКРУГЛЕНИЕ: -0.18 [10:10:35]line ИТОГО: 2800.00 [10:10:35]line Внесено: 2800.00 [10:10:35]line СДАЧА: 0.00 [10:10:35]line НСП 1% : 24.78 [10:10:35]line НДС 12% : 297.36 [10:10:35]line Наличными: 2800.00 [10:10:35]line Безнал.: 0.00 [10:10:35]line Место: АЗС № 92 "Партнер Нефть" [10:10:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:10:35]line СНО: Общий режим [10:10:35]line Чек 63 21.02.2025 10:10 [10:10:35]line Смена: 649 ФФД: 1.0 [10:10:35]line ЗНМ: 0300000118 [10:10:35]line РНМ: 0000000000091857 [10:10:35]line Версия ККМ: 001 [10:10:35]line ФМ: 0000000000871826 [10:10:35]line ФД: 187569 [10:10:35]line ФПД: 195642402574451 [10:10:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101033&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187569&fm=195642402574451&tin=02508201610067®Number=0000000000091857&sum=280000 [10:10:35]OFD Sender: Processing packet 187569 [packets to send 49, broken 48] [10:10:35]ProducePacketName [10:10:35]name=ofd_packets/00187569 [10:10:35]OFD Sender: To server: pG, [10:10:35]CommunicateWithHost lk.salyk.kg:30040 [10:10:35]ConnectInit lk.salyk.kg [10:10:35]written 0, free lines is 4095 [10:10:35]Connected sock=10 [10:10:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A6 BC 04 01 19 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 D2 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 74 00 00 00 00 07 04 06 00 C0 45 04 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 19 51 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 DC 02 00 35 04 06 00 B1 EF 8B E8 90 73 C0 D8 C4 2F 9E 0E 77 88 [10:10:36]Write to MH i2c: 01 00 00 29 04 2D [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 F0 0C 30 [10:10:36]RasterBufferAndPrint [10:10:36]line [10:10:36]line [10:10:36]line [10:10:36]line [10:10:36]line [10:10:36]written 0, free lines is 3318 [10:10:36]MH_Cut [10:10:36]Write to MH i2c: D1 01 00 30 04 01 06 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: D1 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: D1 01 00 [10:10:36]MH_I2C_Read... [10:10:36]Read from MH i2c: D1 01 00 30 04 00 05 [10:10:36]Write to MH i2c: 01 00 00 31 04 35 [10:10:36]Write i2c OK [10:10:36]MH_I2C_Read... [10: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 38 32 36 4F 00 00 00 61 9F 47 00 A3 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 38 32 36 10 04 04 00 B1 DC 02 00 F4 03 04 00 68 F7 B7 67 B6 04 01 00 00 3F 2E 36 F2 82 52 E2 DA [10:10:36]CommunicateWithHost err = 0 [10:10:36]CheckOFDResponse [10:10:36]1017 (14) - 77093643461234 [10:10:36]1041 (16) - 0000000000871826 [10:10:36]1040 (4) - 187569 [10:10:36]1012 (4) - 21.02.2025 03:47 [10:10:36]1206 (1) - 0 [10:10:36]OFD Sender: Remove packet 187569 [10:10:36]ProducePacketName [10:10:36]name=ofd_packets/00187569 [10:10:36]NVStorageDeleteData [10:10:36]OFD Sender: No OFD packet to send [10:10:36]*** Cut start [10:10:36]*** Partial cut [10:10:36]*** CUTSNS_PIN = 1 [10:10:36]*** CUTSNS_PIN = 0 [10:10:37]*** Brake cut motor [10:10:37]Read from MH i2c: 01 [10:10:37]MH_I2C_Read... [10:10:37]*** Stop cut motor [10:10:37]*** Cut end [10:10:37]Read from MH i2c: 01 07 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [10:10:37]process_action close_receipt done [10:10:37]requested_data is exist [10:10:37]produce_requested_data [10:10:37]requested_item fm.sn is exist - process it [10:10:37]wFMCommunicate request_size=4 [10:10:37]MH_SAM_APDU [10:10:37]CAPDU: 80 11 00 00 [10:10:37]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 17 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [10:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:10:37]wFMCommunicate OK [10:10:37]requested_item fd.num is exist - process it [10:10:37]SAM_PROTO_GetFieldsCounters [10:10:37]wFMCommunicate request_size=4 [10:10:37]MH_SAM_APDU [10:10:37]CAPDU: 80 13 00 00 [10:10:37]Write to MH i2c: E2 08 00 33 04 80 13 00 00 00 00 00 00 B3 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 62 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 62 00 33 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B1 DC 02 00 0E 04 04 00 89 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 B0 [10:10:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B1 DC 02 00 0E 04 04 00 89 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:10:37]wFMCommunicate OK [10:10:37]SAM_PROTO_GetFieldsCounters done [10:10:37]requested_item shift.num is exist - process it [10:10:37]requested_item shift.opened is exist - process it [10:10:37]req_shift_opened [10:10:37]FM_GetShiftState [10:10:37]SAM_PROTO_GetShiftState [10:10:37]wFMCommunicate request_size=4 [10:10:37]MH_SAM_APDU [10:10:37]CAPDU: 80 13 01 00 [10:10:37]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [10:10:37]Write i2c OK [10:10:37]MH_I2C_Read... [10:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:37]Read from MH i2c: E2 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 0E 00 [10:10:37]MH_I2C_Read... [10:10:37]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A3 [10:10:37]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:10:37]wFMCommunicate OK [10:10:37]SAM_PROTO_GetShiftState done [10:10:37]FM_GetShiftState done [10:10:37]req_shift_opened done [10:10:37]requested_item shift.open_date is exist - process it [10:10:37]req_shift_open_date [10:10:37]req_shift_open_date done [10:10:37]produce_requested_data done [10:10:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187569,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:10:37]process_action_free close_receipt [10:10:37]json_value_free [10:10:37]json_value_free done [10:10:37]process_json_proto returns [10:10:37]Send response to host [10:10:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187569,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:10:37]free response buf [10:10:37]execute_script done [10:10:37]execute_script returns [10:10:37]free content buf [10:10:37]Sock 8.Close socket [10:10:37]Sock 8.Thread stoped [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:29]accept exits with 9 [10:13:29]New connection [10:13:29]New thread 3067080036 created [10:13:29]Thread 3066936676 joined [10:13:29]Waiting for new connection... [10:13:29] Sock 9.Parse request [10:13:29]Sock 9.Check first char [10:13:29]Sock 9.First char is OK [10:13:29]request: POST /json_proto HTTP/1.0 [10:13:29]Method: POST [10:13:29]URL: /json_proto [10:13:29]Method is POST - this is cgi request [10:13:29]url: /json_proto [10:13:29]query_string will be loaded in cgi processing [10:13:29]execute_cgi json_proto POST (null) [10:13:29]execute_cgi path=json_proto method=POST [10:13:29]POST find Content-Length [10:13:29]Host: 172.17.46.131:8080 [10:13:29]Content-Length: 792 [10:13:29]Content-Type: application/json [10:13:29] [10:13:29]POST finish read [10:13:29]Found Content-Length = 792 [10:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:29]execute_script... [10:13: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)412727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:29]POST & json_proto [10:13:29]process_json_proto [10:13:29]json parsed OK: [10:13:29]protocol is kg_v1.0 [10:13:29]action value=close_receipt [10:13:29]process_action close_receipt [10:13:29]cmd_close_receipt [10:13:29]MH_GetDate [10:13:29]Write to MH i2c: F0 00 00 35 04 28 [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: F0 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: F0 09 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: F0 09 00 35 04 00 C9 51 B8 67 7E 41 4F 65 DD [10:13:29]GetLastDocTimeStamp 1740132633 [10:13:29]current date 1740132809 [10:13:29]FM_GetShiftState [10:13:29]SAM_PROTO_GetShiftState [10:13:29]wFMCommunicate request_size=4 [10:13:29]MH_SAM_APDU [10:13:29]CAPDU: 80 13 01 00 [10:13:29]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [10:13:29]Write i2c OK [10:13:29]MH_I2C_Read... [10:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:29]Read from MH i2c: E2 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 0E 00 [10:13:29]MH_I2C_Read... [10:13:29]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A5 [10:13:29]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:13:29]wFMCommunicate OK [10:13:29]SAM_PROTO_GetShiftState done [10:13:29]FM_GetShiftState done [10:13:29]opened in 1740098043 [10:13:29]opened+sec_in_day 1740184443 [10:13:29]quantity*price = 0 [10:13:29]sum+1 = 1 [10:13:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 64 21.02.2025 10:13 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 68912 ФМ: 0000000000871826 ФД: 187570 ФПД: 242534839370465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101329&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187570&fm=242534839370465&tin=02508201610067®Number=0000000000091857&sum=0 [10:13:30]StoreToDocumentArchive [10:13:30]shift 649 fd 187570 [10:13:30]save to /storage/0649/doc_00187570 [10:13:30]save last doc name /storage/0649/doc_00187570 to /storage/kkm_last_doc_name [10:13:30]save OK [10:13:30]Clear old archive folders... [10:13:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:30]tlvbuf is 01E11030 [10:13:30]SAM_PROTO_ClearQueue [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 09 00 00 [10:13:30]Write to MH i2c: E2 08 00 43 04 80 09 00 00 00 00 00 00 B9 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [10:13:30]RAPDU: 90 00 [10:13:30]wFMCommunicate OK [10:13:30]SAM_PROTO_ClearQueue done [10:13:30]KKMCreateOFDPacket [10:13:30]OFDProtocolAddRootSTLVToBuf [10:13:30]FM_MakeSignedData [10:13:30]FM_MakeSignedData [10:13:30]SAM_PROTO_SignData [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 0D 01 02 [10:13:30]Write to MH i2c: E2 08 00 44 04 80 0D 01 02 00 00 00 00 C1 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [10:13:30]RAPDU: 90 00 [10:13:30]wFMCommunicate OK [10:13:30]wFMCommunicate request_size=255 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 40 00 00 00 F4 03 04 00 C9 51 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 DC 02 00 35 04 06 00 DC [10:13:30]Write to MH i2c: E2 02 01 45 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 40 00 00 00 F4 03 04 00 C9 51 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 DC 02 00 35 04 06 00 DC 00 00 19 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [10:13:30]RAPDU: 90 00 [10:13:30]wFMCommunicate OK [10:13:30]wFMCommunicate request_size=10 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 0D 02 02 05 95 8A F2 42 E1 [10:13:30]Write to MH i2c: E2 0D 00 46 04 80 0D 02 02 05 00 95 8A F2 42 E1 00 00 02 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [10:13:30]RAPDU: 90 00 [10:13:30]wFMCommunicate OK [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 0D 03 02 [10:13:30]Write to MH i2c: E2 08 00 47 04 80 0D 03 02 00 00 00 00 C6 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 0B 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 0B 00 47 04 00 37 AF 42 23 F3 D3 97 C0 90 00 2F [10:13:30]RAPDU: 37 AF 42 23 F3 D3 97 C0 90 00 [10:13:30]wFMCommunicate OK [10:13:30]SAM_PROTO_SignData done [10:13:30]FM_MakeSignedData done [10:13:30]CreateOFDProtocolMessage [10:13:30]wFMCommunicate request_size=4 [10:13:30]MH_SAM_APDU [10:13:30]CAPDU: 80 11 00 00 [10:13:30]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:30]Read from MH i2c: E2 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 17 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [10:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:13:30]wFMCommunicate OK [10:13:30]CreateOFDProtocolMessage done [10:13:30]OFDSenderStorePacket 187570 [10:13:30]StoreOFDPacket docnum=187570 [10:13:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9D 06 07 01 34 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C9 51 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 DC 02 00 35 04 06 00 DC 95 8A F2 42 E1 37 AF 42 23 F3 D3 97 C0 [10:13:30]CheckFolder [10:13:30]dirname=/storage/ofd_packets [10:13:30]CheckFolder done [10:13:30]ProducePacketName [10:13:30]name=ofd_packets/00187570 [10:13:30]NVStorageSaveData ofd_packets/00187570 [10:13:30]File name is /storage/ofd_packets/00187570 [10:13:30]Write 301 bytes [10:13:30]NVStorageSaveData done [10:13:30]OFDSenderStorePacket done [10:13:30]KKMCreateOFDPacket done [10:13:30]NVStorageSaveData kkm_last_timestamp [10:13:30]File name is /storage/kkm_last_timestamp [10:13:30]Write 4 bytes [10:13:30]NVStorageSaveData done [10:13:30]ExternCall_PrintAddStr [10:13:30]wPrintStart [10:13:30]Write to MH i2c: 01 00 00 49 04 4D [10:13:30]Write i2c OK [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: 01 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: 01 07 00 [10:13:30]MH_I2C_Read... [10:13:30]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [10:13:30]RasterBufferAndPrint [10:13:30]line Счет N : (1)412727 [10:13:30]line ИНН: 02508201610067 [10:13:30]line Контрольно-Кассовый Чек [10:13:30]line ПРОДАЖА [10:13:30]line ТРК (МРК, ГНК) : 32 [10:13:30]line Товар: 2710124130 [10:13:30]line Аи-92-К-2 [10:13:30]line 40.000 * 0.00 [10:13:30]line = 0.00 [10:13:30]line НДС 12% НСП 1% [10:13:30]line > о реализуемом товаре [10:13:30]line ИТОГО: 0.00 [10:13:30]line НСП 1% : 0.00 [10:13:30]line НДС 12% : 0.00 [10:13:30]line Наличными: 0.00 [10:13:30]line Безнал.: 0.00 [10:13:30]line Место: АЗС № 92 "Партнер Нефть" [10:13:30]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:13:30]line СНО: Общий режим [10:13:30]line Чек 64 21.02.2025 10:13 [10:13:30]line Смена: 649 ФФД: 1.0 [10:13:30]line ЗНМ: 0300000118 [10:13:30]line РНМ: 0000000000091857 [10:13:30]line Версия ККМ: 001 [10:13:30]line Талоны: Топливная Карта [10:13:30]line 68912 [10:13:30]line ФМ: 0000000000871826 [10:13:30]line ФД: 187570 [10:13:30]line ФПД: 242534839370465 [10:13:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101329&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187570&fm=242534839370465&tin=02508201610067®Number=0000000000091857&sum=0 [10:13:30]written 0, free lines is 4095 [10:13:30]OFD Sender: Processing packet 187570 [packets to send 49, broken 48] [10:13:30]ProducePacketName [10:13:30]name=ofd_packets/00187570 [10:13:30]OFD Sender: To server: pG, [10:13:30]CommunicateWithHost lk.salyk.kg:30040 [10:13:30]ConnectInit lk.salyk.kg [10:13:30]Connected sock=10 [10:13:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9D 06 07 01 34 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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 C9 51 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 DC 02 00 35 04 06 00 DC 95 8A F2 42 E1 37 AF 42 23 F3 D3 97 C0 [10:13:31]Write to MH i2c: 01 00 00 73 04 77 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: 01 07 00 73 04 00 00 00 00 00 07 0D 92 [10:13:31]RasterBufferAndPrint [10:13:31]line [10:13:31]line [10:13:31]line [10:13:31]line [10:13:31]line [10:13:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 03 83 47 00 A0 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 DC 02 00 F4 03 04 00 17 F8 B7 67 B6 04 01 00 00 12 71 03 98 8E E2 B3 27 [10:13:31]CommunicateWithHost err = 0 [10:13:31]CheckOFDResponse [10:13:31]1017 (14) - 77093643461234 [10:13:31]1041 (16) - 0000000000871826 [10:13:31]1040 (4) - 187570 [10:13:31]1012 (4) - 21.02.2025 03:50 [10:13:31]1206 (1) - 0 [10:13:31]OFD Sender: Remove packet 187570 [10:13:31]ProducePacketName [10:13:31]name=ofd_packets/00187570 [10:13:31]NVStorageDeleteData [10:13:31]written 0, free lines is 3359 [10:13:31]MH_Cut [10:13:31]Write to MH i2c: D1 01 00 7A 04 01 50 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: D1 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: D1 01 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: D1 01 00 7A 04 00 4F [10:13:31]Write to MH i2c: 01 00 00 7B 04 7F [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]OFD Sender: No OFD packet to send [10:13:31]*** Cut start [10:13:31]*** Partial cut [10:13:31]*** CUTSNS_PIN = 1 [10:13:32]*** CUTSNS_PIN = 0 [10:13:32]*** Brake cut motor [10:13:32]Read from MH i2c: 01 [10:13:32]MH_I2C_Read... [10:13:32]*** Stop cut motor [10:13:32]*** Cut end [10:13:32]Read from MH i2c: 01 07 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 FF 0F 94 [10:13:32]process_action close_receipt done [10:13:32]requested_data is exist [10:13:32]produce_requested_data [10:13:32]requested_item fm.sn is exist - process it [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 11 00 00 [10:13:32]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 17 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [10:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:13:32]wFMCommunicate OK [10:13:32]requested_item fd.num is exist - process it [10:13:32]SAM_PROTO_GetFieldsCounters [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 13 00 00 [10:13:32]Write to MH i2c: E2 08 00 7D 04 80 13 00 00 00 00 00 00 FD [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 62 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 62 00 7D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B2 DC 02 00 0E 04 04 00 89 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 FE [10:13:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B2 DC 02 00 0E 04 04 00 89 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:13:32]wFMCommunicate OK [10:13:32]SAM_PROTO_GetFieldsCounters done [10:13:32]requested_item shift.num is exist - process it [10:13:32]requested_item shift.opened is exist - process it [10:13:32]req_shift_opened [10:13:32]FM_GetShiftState [10:13:32]SAM_PROTO_GetShiftState [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 13 01 00 [10:13:32]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 0E 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 ED [10:13:32]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:13:32]wFMCommunicate OK [10:13:32]SAM_PROTO_GetShiftState done [10:13:32]FM_GetShiftState done [10:13:32]req_shift_opened done [10:13:32]requested_item shift.open_date is exist - process it [10:13:32]req_shift_open_date [10:13:32]req_shift_open_date done [10:13:32]produce_requested_data done [10:13:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187570,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:13:32]process_action_free close_receipt [10:13:32]json_value_free [10:13:32]json_value_free done [10:13:32]process_json_proto returns [10:13:32]Send response to host [10:13:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187570,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:13:32]free response buf [10:13:32]execute_script done [10:13:32]execute_script returns [10:13:32]free content buf [10:13:32]Sock 9.Close socket [10:13:32]Sock 9.Thread stoped [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:50]accept exits with 8 [10:15:50]New connection [10:15:50]New thread 3066936676 created [10:15:50]Thread 3067080036 joined [10:15:50]Waiting for new connection... [10:15:50] Sock 8.Parse request [10:15:50]Sock 8.Check first char [10:15:50]Sock 8.First char is OK [10:15:50]request: POST /json_proto HTTP/1.0 [10:15:50]Method: POST [10:15:50]URL: /json_proto [10:15:50]Method is POST - this is cgi request [10:15:50]url: /json_proto [10:15:50]query_string will be loaded in cgi processing [10:15:50]execute_cgi json_proto POST (null) [10:15:50]execute_cgi path=json_proto method=POST [10:15:50]POST find Content-Length [10:15:50]Host: 172.17.46.131:8080 [10:15:50]Content-Length: 677 [10:15:50]Content-Type: application/json [10:15:50] [10:15:50]POST finish read [10:15:50]Found Content-Length = 677 [10:15:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:50]execute_script... [10:15: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)412729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:50]POST & json_proto [10:15:50]process_json_proto [10:15:50]json parsed OK: [10:15:50]protocol is kg_v1.0 [10:15:50]action value=close_receipt [10:15:50]process_action close_receipt [10:15:50]cmd_close_receipt [10:15:50]MH_GetDate [10:15:50]Write to MH i2c: F0 00 00 7F 04 72 [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: F0 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: F0 09 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: F0 09 00 7F 04 00 56 52 B8 67 7E 41 4F 65 B5 [10:15:50]GetLastDocTimeStamp 1740132809 [10:15:50]current date 1740132950 [10:15:50]FM_GetShiftState [10:15:50]SAM_PROTO_GetShiftState [10:15:50]wFMCommunicate request_size=4 [10:15:50]MH_SAM_APDU [10:15:50]CAPDU: 80 13 01 00 [10:15:50]Write to MH i2c: E2 08 00 80 04 80 13 01 00 00 00 00 00 01 [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:50]Read from MH i2c: E2 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 0E 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 0E 00 80 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 EF [10:15:50]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:15:50]wFMCommunicate OK [10:15:50]SAM_PROTO_GetShiftState done [10:15:50]FM_GetShiftState done [10:15:50]opened in 1740098043 [10:15:50]opened+sec_in_day 1740184443 [10:15:50]quantity*price = 60027 [10:15:50]sum+1 = 60028 [10:15:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 65 21.02.2025 10:15 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187571 ФПД: 175190248926657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187571&fm=175190248926657&tin=02508201610067®Number=0000000000091857&sum=60000 [10:15:51]StoreToDocumentArchive [10:15:51]shift 649 fd 187571 [10:15:51]save to /storage/0649/doc_00187571 [10:15:51]save last doc name /storage/0649/doc_00187571 to /storage/kkm_last_doc_name [10:15:51]save OK [10:15:51]Clear old archive folders... [10:15:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:51]tlvbuf is B6F77670 [10:15:51]SAM_PROTO_ClearQueue [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 09 00 00 [10:15:51]Write to MH i2c: E2 08 00 8D 04 80 09 00 00 00 00 00 00 03 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [10:15:51]RAPDU: 90 00 [10:15:51]wFMCommunicate OK [10:15:51]SAM_PROTO_ClearQueue done [10:15:51]KKMCreateOFDPacket [10:15:51]OFDProtocolAddRootSTLVToBuf [10:15:51]FM_MakeSignedData [10:15:51]FM_MakeSignedData [10:15:51]SAM_PROTO_SignData [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 0D 01 02 [10:15:51]Write to MH i2c: E2 08 00 8E 04 80 0D 01 02 00 00 00 00 0B [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [10:15:51]RAPDU: 90 00 [10:15:51]wFMCommunicate OK [10:15:51]wFMCommunicate request_size=255 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 56 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 DC 02 00 35 04 06 00 9F [10:15:51]Write to MH i2c: E2 02 01 8F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 56 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 DC 02 00 35 04 06 00 9F 00 00 BD [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [10:15:51]RAPDU: 90 00 [10:15:51]wFMCommunicate OK [10:15:51]wFMCommunicate request_size=10 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 0D 02 02 05 55 A8 8E 2D C1 [10:15:51]Write to MH i2c: E2 0D 00 90 04 80 0D 02 02 05 00 55 A8 8E 2D C1 00 00 91 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [10:15:51]RAPDU: 90 00 [10:15:51]wFMCommunicate OK [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 0D 03 02 [10:15:51]Write to MH i2c: E2 08 00 91 04 80 0D 03 02 00 00 00 00 10 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0B 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0B 00 91 04 00 F2 80 9F 12 D1 B7 26 27 90 00 09 [10:15:51]RAPDU: F2 80 9F 12 D1 B7 26 27 90 00 [10:15:51]wFMCommunicate OK [10:15:51]SAM_PROTO_SignData done [10:15:51]FM_MakeSignedData done [10:15:51]CreateOFDProtocolMessage [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 11 00 00 [10:15:51]Write to MH i2c: E2 08 00 92 04 80 11 00 00 00 00 00 00 10 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 17 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 17 00 92 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 63 [10:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:15:51]wFMCommunicate OK [10:15:51]CreateOFDProtocolMessage done [10:15:51]OFDSenderStorePacket 187571 [10:15:51]StoreOFDPacket docnum=187571 [10:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 65 C4 07 01 CB 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 56 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 DC 02 00 35 04 06 00 9F 55 A8 8E 2D C1 F2 80 9F 12 D1 B7 26 27 [10:15:51]CheckFolder [10:15:51]dirname=/storage/ofd_packets [10:15:51]CheckFolder done [10:15:51]ProducePacketName [10:15:51]name=ofd_packets/00187571 [10:15:51]NVStorageSaveData ofd_packets/00187571 [10:15:51]File name is /storage/ofd_packets/00187571 [10:15:51]Write 301 bytes [10:15:51]NVStorageSaveData done [10:15:51]OFDSenderStorePacket done [10:15:51]KKMCreateOFDPacket done [10:15:51]NVStorageSaveData kkm_last_timestamp [10:15:51]File name is /storage/kkm_last_timestamp [10:15:51]Write 4 bytes [10:15:51]NVStorageSaveData done [10:15:51]ExternCall_PrintAddStr [10:15:51]wPrintStart [10:15:51]Write to MH i2c: 01 00 00 93 04 97 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 07 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 FF 0F AC [10:15:51]RasterBufferAndPrint [10:15:51]line Счет N : (1)412729 [10:15:51]line ИНН: 02508201610067 [10:15:51]line Контрольно-Кассовый Чек [10:15:51]line ПРОДАЖА [10:15:51]line ТРК (МРК, ГНК) : 12 [10:15:51]line Товар: 2710124130 [10:15:51]line Аи-92-К-2 [10:15:51]line 9.350 * 64.20 [10:15:51]line = 600.27 [10:15:51]line НДС 12% НСП 1% [10:15:51]line > о реализуемом товаре [10:15:51]line ОКРУГЛЕНИЕ: -0.27 [10:15:51]line ИТОГО: 600.00 [10:15:51]line Внесено: 600.00 [10:15:51]line СДАЧА: 0.00 [10:15:51]line НСП 1% : 5.31 [10:15:51]line НДС 12% : 63.74 [10:15:51]line Наличными: 600.00 [10:15:51]line Безнал.: 0.00 [10:15:51]line Место: АЗС № 92 "Партнер Нефть" [10:15:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:15:51]line СНО: Общий режим [10:15:51]line Чек 65 21.02.2025 10:15 [10:15:51]line Смена: 649 ФФД: 1.0 [10:15:51]line ЗНМ: 0300000118 [10:15:51]line РНМ: 0000000000091857 [10:15:51]line Версия ККМ: 001 [10:15:51]line ФМ: 0000000000871826 [10:15:51]line ФД: 187571 [10:15:51]line ФПД: 175190248926657 [10:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187571&fm=175190248926657&tin=02508201610067®Number=0000000000091857&sum=60000 [10:15:52]written 0, free lines is 4095 [10:15:52]OFD Sender: Processing packet 187571 [packets to send 49, broken 48] [10:15:52]ProducePacketName [10:15:52]name=ofd_packets/00187571 [10:15:52]OFD Sender: To server: pG, [10:15:52]CommunicateWithHost lk.salyk.kg:30040 [10:15:52]ConnectInit lk.salyk.kg [10:15:52]Connected sock=10 [10:15:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 65 C4 07 01 CB 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 56 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 DC 02 00 35 04 06 00 9F 55 A8 8E 2D C1 F2 80 9F 12 D1 B7 26 27 [10:15:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 41 98 47 00 92 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 DC 02 00 F4 03 04 00 A4 F8 B7 67 B6 04 01 00 00 D6 F9 6B 4F 21 55 F6 62 [10:15:52]CommunicateWithHost err = 0 [10:15:52]CheckOFDResponse [10:15:52]1017 (14) - 77093643461234 [10:15:52]1041 (16) - 0000000000871826 [10:15:52]1040 (4) - 187571 [10:15:52]1012 (4) - 21.02.2025 03:53 [10:15:52]1206 (1) - 0 [10:15:52]OFD Sender: Remove packet 187571 [10:15:52]ProducePacketName [10:15:52]name=ofd_packets/00187571 [10:15:52]NVStorageDeleteData [10:15:52]Write to MH i2c: 01 00 00 BE 04 C2 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: 01 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: 01 07 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 F0 0C C5 [10:15:52]RasterBufferAndPrint [10:15:52]line [10:15:52]line [10:15:52]line [10:15:52]line [10:15:52]line [10:15:52]written 0, free lines is 3318 [10:15:52]MH_Cut [10:15:52]Write to MH i2c: D1 01 00 C5 04 01 9B [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: D1 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: D1 01 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: D1 01 00 C5 04 00 9A [10:15:52]Write to MH i2c: 01 00 00 C6 04 CA [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:53]OFD Sender: No OFD packet to send [10:15:53]*** Cut start [10:15:53]*** Partial cut [10:15:53]*** CUTSNS_PIN = 1 [10:15:53]*** CUTSNS_PIN = 0 [10:15:53]*** Brake cut motor [10:15:54]Read from MH i2c: 01 [10:15:54]MH_I2C_Read... [10:15:54]*** Stop cut motor [10:15:54]*** Cut end [10:15:54]Read from MH i2c: 01 07 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [10:15:54]process_action close_receipt done [10:15:54]requested_data is exist [10:15:54]produce_requested_data [10:15:54]requested_item fm.sn is exist - process it [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 11 00 00 [10:15:54]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 17 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [10:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:15:54]wFMCommunicate OK [10:15:54]requested_item fd.num is exist - process it [10:15:54]SAM_PROTO_GetFieldsCounters [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 13 00 00 [10:15:54]Write to MH i2c: E2 08 00 C8 04 80 13 00 00 00 00 00 00 48 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 62 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 62 00 C8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B3 DC 02 00 0E 04 04 00 89 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 4D [10:15:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B3 DC 02 00 0E 04 04 00 89 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:15:54]wFMCommunicate OK [10:15:54]SAM_PROTO_GetFieldsCounters done [10:15:54]requested_item shift.num is exist - process it [10:15:54]requested_item shift.opened is exist - process it [10:15:54]req_shift_opened [10:15:54]FM_GetShiftState [10:15:54]SAM_PROTO_GetShiftState [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 13 01 00 [10:15:54]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0E 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 38 [10:15:54]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:15:54]wFMCommunicate OK [10:15:54]SAM_PROTO_GetShiftState done [10:15:54]FM_GetShiftState done [10:15:54]req_shift_opened done [10:15:54]requested_item shift.open_date is exist - process it [10:15:54]req_shift_open_date [10:15:54]req_shift_open_date done [10:15:54]produce_requested_data done [10:15:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187571,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:15:54]process_action_free close_receipt [10:15:54]json_value_free [10:15:54]json_value_free done [10:15:54]process_json_proto returns [10:15:54]Send response to host [10:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187571,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:15:54]free response buf [10:15:54]execute_script done [10:15:54]execute_script returns [10:15:54]free content buf [10:15:54]Sock 8.Close socket [10:15:54]Sock 8.Thread stoped [10:15:56]accept exits with 9 [10:15:56]New connection [10:15:56]New thread 3067080036 created [10:15:56]Thread 3066936676 joined [10:15:56]Waiting for new connection... [10:15:56] Sock 9.Parse request [10:15:56]Sock 9.Check first char [10:15:56]Sock 9.First char is OK [10:15:56]request: POST /json_proto HTTP/1.0 [10:15:56]Method: POST [10:15:56]URL: /json_proto [10:15:56]Method is POST - this is cgi request [10:15:56]url: /json_proto [10:15:56]query_string will be loaded in cgi processing [10:15:56]execute_cgi json_proto POST (null) [10:15:56]execute_cgi path=json_proto method=POST [10:15:56]POST find Content-Length [10:15:56]Host: 172.17.46.131:8080 [10:15:56]Content-Length: 754 [10:15:56]Content-Type: application/json [10:15:56] [10:15:56]POST finish read [10:15:56]Found Content-Length = 754 [10:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060232", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:56]execute_script... [10:15:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060232", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:56]POST & json_proto [10:15:56]process_json_proto [10:15:56]json parsed OK: [10:15:56]protocol is kg_v1.0 [10:15:56]action value=close_receipt [10:15:56]process_action close_receipt [10:15:56]cmd_close_receipt [10:15:56]MH_GetDate [10:15:56]Write to MH i2c: F0 00 00 CA 04 BD [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: F0 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: F0 09 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: F0 09 00 CA 04 00 5C 52 B8 67 7E 41 4F 65 06 [10:15:56]GetLastDocTimeStamp 1740132950 [10:15:56]current date 1740132956 [10:15:56]FM_GetShiftState [10:15:56]SAM_PROTO_GetShiftState [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 13 01 00 [10:15:56]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0E 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 3A [10:15:56]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:15:56]wFMCommunicate OK [10:15:56]SAM_PROTO_GetShiftState done [10:15:56]FM_GetShiftState done [10:15:56]opened in 1740098043 [10:15:56]opened+sec_in_day 1740184443 [10:15:56]quantity*price = 0 [10:15:56]sum+1 = 1 [10:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 66 21.02.2025 10:15 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30060232 ФМ: 0000000000871826 ФД: 187572 ФПД: 225007750117805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187572&fm=225007750117805&tin=02508201610067®Number=0000000000091857&sum=0 [10:15:57]StoreToDocumentArchive [10:15:57]shift 649 fd 187572 [10:15:57]save to /storage/0649/doc_00187572 [10:15:57]save last doc name /storage/0649/doc_00187572 to /storage/kkm_last_doc_name [10:15:57]save OK [10:15:57]Clear old archive folders... [10:15:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:57]tlvbuf is 01E2C050 [10:15:57]SAM_PROTO_ClearQueue [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 09 00 00 [10:15:57]Write to MH i2c: E2 08 00 D8 04 80 09 00 00 00 00 00 00 4E [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [10:15:57]RAPDU: 90 00 [10:15:57]wFMCommunicate OK [10:15:57]SAM_PROTO_ClearQueue done [10:15:57]KKMCreateOFDPacket [10:15:57]OFDProtocolAddRootSTLVToBuf [10:15:57]FM_MakeSignedData [10:15:57]FM_MakeSignedData [10:15:57]SAM_PROTO_SignData [10:15:57]wFMCommunicate request_size=4 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 0D 01 02 [10:15:57]Write to MH i2c: E2 08 00 D9 04 80 0D 01 02 00 00 00 00 56 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [10:15:57]RAPDU: 90 00 [10:15:57]wFMCommunicate OK [10:15:57]wFMCommunicate request_size=255 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 5C 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 DC 02 00 35 04 06 00 CC [10:15:57]Write to MH i2c: E2 02 01 DA 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 5C 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 DC 02 00 35 04 06 00 CC 00 00 C8 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:57]Read from MH i2c: E2 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 [10:15:57]MH_I2C_Read... [10:15:57]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [10:15:57]RAPDU: 90 00 [10:15:57]wFMCommunicate OK [10:15:57]wFMCommunicate request_size=10 [10:15:57]MH_SAM_APDU [10:15:57]CAPDU: 80 0D 02 02 05 A4 B3 04 79 AD [10:15:57]Write to MH i2c: E2 0D 00 DB 04 80 0D 02 02 05 00 A4 B3 04 79 AD 00 00 E4 [10:15:57]Write i2c OK [10:15:57]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [10:15:58]RAPDU: 90 00 [10:15:58]wFMCommunicate OK [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 0D 03 02 [10:15:58]Write to MH i2c: E2 08 00 DC 04 80 0D 03 02 00 00 00 00 5B [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 0B 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 0B 00 DC 04 00 B1 3D 2A 3A 95 1E FC 92 90 00 EF [10:15:58]RAPDU: B1 3D 2A 3A 95 1E FC 92 90 00 [10:15:58]wFMCommunicate OK [10:15:58]SAM_PROTO_SignData done [10:15:58]FM_MakeSignedData done [10:15:58]CreateOFDProtocolMessage [10:15:58]wFMCommunicate request_size=4 [10:15:58]MH_SAM_APDU [10:15:58]CAPDU: 80 11 00 00 [10:15:58]Write to MH i2c: E2 08 00 DD 04 80 11 00 00 00 00 00 00 5B [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:58]Read from MH i2c: E2 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 17 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: E2 17 00 DD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AE [10:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:15:58]wFMCommunicate OK [10:15:58]CreateOFDProtocolMessage done [10:15:58]OFDSenderStorePacket 187572 [10:15:58]StoreOFDPacket docnum=187572 [10:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 57 4D 07 01 EB CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 5C 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 DC 02 00 35 04 06 00 CC A4 B3 04 79 AD B1 3D 2A 3A 95 1E FC 92 [10:15:58]CheckFolder [10:15:58]dirname=/storage/ofd_packets [10:15:58]CheckFolder done [10:15:58]ProducePacketName [10:15:58]name=ofd_packets/00187572 [10:15:58]NVStorageSaveData ofd_packets/00187572 [10:15:58]File name is /storage/ofd_packets/00187572 [10:15:58]Write 301 bytes [10:15:58]NVStorageSaveData done [10:15:58]OFDSenderStorePacket done [10:15:58]KKMCreateOFDPacket done [10:15:58]NVStorageSaveData kkm_last_timestamp [10:15:58]File name is /storage/kkm_last_timestamp [10:15:58]Write 4 bytes [10:15:58]NVStorageSaveData done [10:15:58]ExternCall_PrintAddStr [10:15:58]wPrintStart [10:15:58]Write to MH i2c: 01 00 00 DE 04 E2 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 DE 04 00 00 00 00 00 FF 0F F7 [10:15:58]RasterBufferAndPrint [10:15:58]line Счет N : (1)412728 [10:15:58]line ИНН: 02508201610067 [10:15:58]line Контрольно-Кассовый Чек [10:15:58]line ПРОДАЖА [10:15:58]line ТРК (МРК, ГНК) : 22 [10:15:58]line Товар: 2710124130 [10:15:58]line Аи-92-К-2 [10:15:58]line 20.000 * 0.00 [10:15:58]line = 0.00 [10:15:58]line НДС 12% НСП 1% [10:15:58]line > о реализуемом товаре [10:15:58]line ИТОГО: 0.00 [10:15:58]line НСП 1% : 0.00 [10:15:58]line НДС 12% : 0.00 [10:15:58]line Наличными: 0.00 [10:15:58]line Безнал.: 0.00 [10:15:58]line Место: АЗС № 92 "Партнер Нефть" [10:15:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:15:58]line СНО: Общий режим [10:15:58]line Чек 66 21.02.2025 10:15 [10:15:58]line Смена: 649 ФФД: 1.0 [10:15:58]line ЗНМ: 0300000118 [10:15:58]line РНМ: 0000000000091857 [10:15:58]line Версия ККМ: 001 [10:15:58]line Талоны: ТК ГПНА Online [10:15:58]line 30060232 [10:15:58]line ФМ: 0000000000871826 [10:15:58]line ФД: 187572 [10:15:58]line ФПД: 225007750117805 [10:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187572&fm=225007750117805&tin=02508201610067®Number=0000000000091857&sum=0 [10:15:58]written 0, free lines is 4095 [10:15:58]OFD Sender: Processing packet 187572 [packets to send 49, broken 48] [10:15:58]ProducePacketName [10:15:58]name=ofd_packets/00187572 [10:15:58]OFD Sender: To server: pG, [10:15:58]CommunicateWithHost lk.salyk.kg:30040 [10:15:58]ConnectInit lk.salyk.kg [10:15:58]Connected sock=10 [10:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 57 4D 07 01 EB CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 5C 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 DC 02 00 35 04 06 00 CC A4 B3 04 79 AD B1 3D 2A 3A 95 1E FC 92 [10:15:58]Write to MH i2c: 01 00 00 08 05 0D [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 07 0D 28 [10:15:58]RasterBufferAndPrint [10:15:58]line [10:15:58]line [10:15:58]line [10:15:58]line [10:15:58]line [10:15:58]written 0, free lines is 3344 [10:15:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C6 CE 47 00 CC 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 DC 02 00 F4 03 04 00 AA F8 B7 67 B6 04 01 00 00 CE 2B 22 8C 7D 49 E3 94 [10:15:58]CommunicateWithHost err = 0 [10:15:58]CheckOFDResponse [10:15:58]1017 (14) - 77093643461234 [10:15:58]1041 (16) - 0000000000871826 [10:15:58]1040 (4) - 187572 [10:15:58]1012 (4) - 21.02.2025 03:53 [10:15:58]1206 (1) - 0 [10:15:58]OFD Sender: Remove packet 187572 [10:15:58]ProducePacketName [10:15:58]name=ofd_packets/00187572 [10:15:58]NVStorageDeleteData [10:15:58]MH_Cut [10:15:58]Write to MH i2c: D1 01 00 0F 05 01 E6 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: D1 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: D1 01 00 [10:15:58]MH_I2C_Read... [10:15:58]Read from MH i2c: D1 01 00 0F 05 00 E5 [10:15:58]Write to MH i2c: 01 00 00 10 05 15 [10:15:58]Write i2c OK [10:15:58]MH_I2C_Read... [10:15:59]OFD Sender: No OFD packet to send [10:15:59]*** Cut start [10:15:59]*** Partial cut [10:15:59]*** CUTSNS_PIN = 1 [10:15:59]*** CUTSNS_PIN = 0 [10:15:59]*** Brake cut motor [10:15:59]Read from MH i2c: 01 [10:15:59]MH_I2C_Read... [10:15:59]*** Stop cut motor [10:15:59]*** Cut end [10:15:59]Read from MH i2c: 01 07 00 [10:15:59]MH_I2C_Read... [10:15:59]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 FF 0F 2A [10:16:00]process_action close_receipt done [10:16:00]requested_data is exist [10:16:00]produce_requested_data [10:16:00]requested_item fm.sn is exist - process it [10:16:00]wFMCommunicate request_size=4 [10:16:00]MH_SAM_APDU [10:16:00]CAPDU: 80 11 00 00 [10:16:00]Write to MH i2c: E2 08 00 11 05 80 11 00 00 00 00 00 00 90 [10:16:00]Write i2c OK [10:16:00]MH_I2C_Read... [10:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:00]Read from MH i2c: E2 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 17 00 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 17 00 11 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E3 [10:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:16:00]wFMCommunicate OK [10:16:00]requested_item fd.num is exist - process it [10:16:00]SAM_PROTO_GetFieldsCounters [10:16:00]wFMCommunicate request_size=4 [10:16:00]MH_SAM_APDU [10:16:00]CAPDU: 80 13 00 00 [10:16:00]Write to MH i2c: E2 08 00 12 05 80 13 00 00 00 00 00 00 93 [10:16:00]Write i2c OK [10:16:00]MH_I2C_Read... [10:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:00]Read from MH i2c: E2 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 62 00 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 62 00 12 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B4 DC 02 00 0E 04 04 00 89 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 9C [10:16:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B4 DC 02 00 0E 04 04 00 89 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:16:00]wFMCommunicate OK [10:16:00]SAM_PROTO_GetFieldsCounters done [10:16:00]requested_item shift.num is exist - process it [10:16:00]requested_item shift.opened is exist - process it [10:16:00]req_shift_opened [10:16:00]FM_GetShiftState [10:16:00]SAM_PROTO_GetShiftState [10:16:00]wFMCommunicate request_size=4 [10:16:00]MH_SAM_APDU [10:16:00]CAPDU: 80 13 01 00 [10:16:00]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [10:16:00]Write i2c OK [10:16:00]MH_I2C_Read... [10:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:00]Read from MH i2c: E2 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 0E 00 [10:16:00]MH_I2C_Read... [10:16:00]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 83 [10:16:00]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:16:00]wFMCommunicate OK [10:16:00]SAM_PROTO_GetShiftState done [10:16:00]FM_GetShiftState done [10:16:00]req_shift_opened done [10:16:00]requested_item shift.open_date is exist - process it [10:16:00]req_shift_open_date [10:16:00]req_shift_open_date done [10:16:00]produce_requested_data done [10:16:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187572,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:16:00]process_action_free close_receipt [10:16:00]json_value_free [10:16:00]json_value_free done [10:16:00]process_json_proto returns [10:16:00]Send response to host [10:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187572,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:16:00]free response buf [10:16:00]execute_script done [10:16:00]execute_script returns [10:16:00]free content buf [10:16:00]Sock 9.Close socket [10:16:00]Sock 9.Thread stoped [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:37]accept exits with 8 [10:16:37]New connection [10:16:37]New thread 3066936676 created [10:16:37]Thread 3067080036 joined [10:16:37]Waiting for new connection... [10:16:37] Sock 8.Parse request [10:16:37]Sock 8.Check first char [10:16:37]Sock 8.First char is OK [10:16:37]request: POST /json_proto HTTP/1.0 [10:16:37]Method: POST [10:16:37]URL: /json_proto [10:16:37]Method is POST - this is cgi request [10:16:37]url: /json_proto [10:16:37]query_string will be loaded in cgi processing [10:16:37]execute_cgi json_proto POST (null) [10:16:37]execute_cgi path=json_proto method=POST [10:16:37]POST find Content-Length [10:16:37]Host: 172.17.46.131:8080 [10:16:37]Content-Length: 677 [10:16:37]Content-Type: application/json [10:16:37] [10:16:37]POST finish read [10:16:37]Found Content-Length = 677 [10:16:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:37]execute_script... [10:16: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)412730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:37]POST & json_proto [10:16:37]process_json_proto [10:16:37]json parsed OK: [10:16:37]protocol is kg_v1.0 [10:16:37]action value=close_receipt [10:16:37]process_action close_receipt [10:16:37]cmd_close_receipt [10:16:37]MH_GetDate [10:16:37]Write to MH i2c: F0 00 00 14 05 08 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: F0 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: F0 09 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: F0 09 00 14 05 00 85 52 B8 67 7E 41 4F 65 7A [10:16:37]GetLastDocTimeStamp 1740132956 [10:16:37]current date 1740132997 [10:16:37]FM_GetShiftState [10:16:37]SAM_PROTO_GetShiftState [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 13 01 00 [10:16:37]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0E 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 85 [10:16:37]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:16:37]wFMCommunicate OK [10:16:37]SAM_PROTO_GetShiftState done [10:16:37]FM_GetShiftState done [10:16:37]opened in 1740098043 [10:16:37]opened+sec_in_day 1740184443 [10:16:37]quantity*price = 50011 [10:16:37]sum+1 = 50013 [10:16:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 67 21.02.2025 10:16 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187573 ФПД: 215280154640705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187573&fm=215280154640705&tin=02508201610067®Number=0000000000091857&sum=50000 [10:16:38]StoreToDocumentArchive [10:16:38]shift 649 fd 187573 [10:16:38]save to /storage/0649/doc_00187573 [10:16:38]save last doc name /storage/0649/doc_00187573 to /storage/kkm_last_doc_name [10:16:38]save OK [10:16:38]Clear old archive folders... [10:16:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:38]tlvbuf is 01EA48C0 [10:16:38]SAM_PROTO_ClearQueue [10:16:38]wFMCommunicate request_size=4 [10:16:38]MH_SAM_APDU [10:16:38]CAPDU: 80 09 00 00 [10:16:38]Write to MH i2c: E2 08 00 22 05 80 09 00 00 00 00 00 00 99 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:38]Read from MH i2c: E2 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: E2 03 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [10:16:38]RAPDU: 90 00 [10:16:38]wFMCommunicate OK [10:16:38]SAM_PROTO_ClearQueue done [10:16:38]KKMCreateOFDPacket [10:16:38]OFDProtocolAddRootSTLVToBuf [10:16:38]FM_MakeSignedData [10:16:38]FM_MakeSignedData [10:16:38]SAM_PROTO_SignData [10:16:38]wFMCommunicate request_size=4 [10:16:38]MH_SAM_APDU [10:16:38]CAPDU: 80 0D 01 02 [10:16:38]Write to MH i2c: E2 08 00 23 05 80 0D 01 02 00 00 00 00 A1 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:38]Read from MH i2c: E2 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: E2 03 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [10:16:38]RAPDU: 90 00 [10:16:38]wFMCommunicate OK [10:16:38]wFMCommunicate request_size=255 [10:16:38]MH_SAM_APDU [10:16:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 85 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 DC 02 00 35 04 06 00 C3 [10:16:38]Write to MH i2c: E2 02 01 24 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 85 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 DC 02 00 35 04 06 00 C3 00 00 54 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:39]OFD Sender: No OFD packet to send [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:39]Read from MH i2c: E2 03 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [10:16:39]RAPDU: 90 00 [10:16:39]wFMCommunicate OK [10:16:39]wFMCommunicate request_size=10 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 0D 02 02 05 CB D1 25 01 41 [10:16:39]Write to MH i2c: E2 0D 00 25 05 80 0D 02 02 05 00 CB D1 25 01 41 00 00 B1 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 03 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [10:16:39]RAPDU: 90 00 [10:16:39]wFMCommunicate OK [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 0D 03 02 [10:16:39]Write to MH i2c: E2 08 00 26 05 80 0D 03 02 00 00 00 00 A6 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 0B 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 0B 00 26 05 00 00 A5 71 A1 4A E4 45 81 90 00 52 [10:16:39]RAPDU: 00 A5 71 A1 4A E4 45 81 90 00 [10:16:39]wFMCommunicate OK [10:16:39]SAM_PROTO_SignData done [10:16:39]FM_MakeSignedData done [10:16:39]CreateOFDProtocolMessage [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 11 00 00 [10:16:39]Write to MH i2c: E2 08 00 27 05 80 11 00 00 00 00 00 00 A6 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 17 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 17 00 27 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F9 [10:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:16:39]wFMCommunicate OK [10:16:39]CreateOFDProtocolMessage done [10:16:39]OFDSenderStorePacket 187573 [10:16:39]StoreOFDPacket docnum=187573 [10:16:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3A A8 07 01 BD 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 85 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 DC 02 00 35 04 06 00 C3 CB D1 25 01 41 00 A5 71 A1 4A E4 45 81 [10:16:39]CheckFolder [10:16:39]dirname=/storage/ofd_packets [10:16:39]CheckFolder done [10:16:39]ProducePacketName [10:16:39]name=ofd_packets/00187573 [10:16:39]NVStorageSaveData ofd_packets/00187573 [10:16:39]File name is /storage/ofd_packets/00187573 [10:16:39]Write 301 bytes [10:16:39]NVStorageSaveData done [10:16:39]OFDSenderStorePacket done [10:16:39]KKMCreateOFDPacket done [10:16:39]NVStorageSaveData kkm_last_timestamp [10:16:39]File name is /storage/kkm_last_timestamp [10:16:39]Write 4 bytes [10:16:39]NVStorageSaveData done [10:16:39]ExternCall_PrintAddStr [10:16:39]wPrintStart [10:16:39]Write to MH i2c: 01 00 00 28 05 2D [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 07 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 07 00 28 05 00 00 00 00 00 FF 0F 42 [10:16:39]RasterBufferAndPrint [10:16:39]line Счет N : (1)412730 [10:16:39]line ИНН: 02508201610067 [10:16:39]line Контрольно-Кассовый Чек [10:16:39]line ПРОДАЖА [10:16:39]line ТРК (МРК, ГНК) : 42 [10:16:39]line Товар: 2710124130 [10:16:39]line Аи-92-К-2 [10:16:39]line 7.790 * 64.20 [10:16:39]line = 500.12 [10:16:39]line НДС 12% НСП 1% [10:16:39]line > о реализуемом товаре [10:16:39]line ОКРУГЛЕНИЕ: -0.12 [10:16:39]line ИТОГО: 500.00 [10:16:39]line Внесено: 500.00 [10:16:39]line СДАЧА: 0.00 [10:16:39]line НСП 1% : 4.43 [10:16:39]line НДС 12% : 53.11 [10:16:39]line Наличными: 500.00 [10:16:39]line Безнал.: 0.00 [10:16:39]line Место: АЗС № 92 "Партнер Нефть" [10:16:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:16:39]line СНО: Общий режим [10:16:39]line Чек 67 21.02.2025 10:16 [10:16:39]line Смена: 649 ФФД: 1.0 [10:16:39]line ЗНМ: 0300000118 [10:16:39]line РНМ: 0000000000091857 [10:16:39]line Версия ККМ: 001 [10:16:39]line ФМ: 0000000000871826 [10:16:39]line ФД: 187573 [10:16:39]line ФПД: 215280154640705 [10:16:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T101637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187573&fm=215280154640705&tin=02508201610067®Number=0000000000091857&sum=50000 [10:16:39]OFD Sender: Processing packet 187573 [packets to send 49, broken 48] [10:16:39]ProducePacketName [10:16:39]name=ofd_packets/00187573 [10:16:39]OFD Sender: To server: pG, [10:16:39]CommunicateWithHost lk.salyk.kg:30040 [10:16:39]ConnectInit lk.salyk.kg [10:16:39]written 0, free lines is 4095 [10:16:39]Connected sock=10 [10:16:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3A A8 07 01 BD 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 85 52 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 DC 02 00 35 04 06 00 C3 CB D1 25 01 41 00 A5 71 A1 4A E4 45 81 [10:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2F B1 47 00 70 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 DC 02 00 F4 03 04 00 D4 F8 B7 67 B6 04 01 00 00 93 4D A1 A6 C0 39 D1 47 [10:16:40]CommunicateWithHost err = 0 [10:16:40]CheckOFDResponse [10:16:40]1017 (14) - 77093643461234 [10:16:40]1041 (16) - 0000000000871826 [10:16:40]1040 (4) - 187573 [10:16:40]1012 (4) - 21.02.2025 03:53 [10:16:40]1206 (1) - 0 [10:16:40]OFD Sender: Remove packet 187573 [10:16:40]ProducePacketName [10:16:40]name=ofd_packets/00187573 [10:16:40]NVStorageDeleteData [10:16:40]Write to MH i2c: 01 00 00 53 05 58 [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: 01 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: 01 07 00 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 E7 0C 52 [10:16:40]RasterBufferAndPrint [10:16:40]line [10:16:40]line [10:16:40]line [10:16:40]line [10:16:40]line [10:16:40]written 0, free lines is 3310 [10:16:40]MH_Cut [10:16:40]Write to MH i2c: D1 01 00 5A 05 01 31 [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: D1 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: D1 01 00 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: D1 01 00 5A 05 00 30 [10:16:40]Write to MH i2c: 01 00 00 5B 05 60 [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:40]OFD Sender: No OFD packet to send [10:16:40]*** Cut start [10:16:40]*** Partial cut [10:16:40]*** CUTSNS_PIN = 1 [10:16:40]*** CUTSNS_PIN = 0 [10:16:41]*** Brake cut motor [10:16:41]Read from MH i2c: 01 [10:16:41]MH_I2C_Read... [10:16:41]*** Stop cut motor [10:16:41]*** Cut end [10:16:41]Read from MH i2c: 01 07 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: 01 07 00 5B 05 00 00 00 00 00 FF 0F 75 [10:16:41]process_action close_receipt done [10:16:41]requested_data is exist [10:16:41]produce_requested_data [10:16:41]requested_item fm.sn is exist - process it [10:16:41]wFMCommunicate request_size=4 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 11 00 00 [10:16:41]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 17 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 17 00 5C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2E [10:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:16:41]wFMCommunicate OK [10:16:41]requested_item fd.num is exist - process it [10:16:41]SAM_PROTO_GetFieldsCounters [10:16:41]wFMCommunicate request_size=4 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 13 00 00 [10:16:41]Write to MH i2c: E2 08 00 5D 05 80 13 00 00 00 00 00 00 DE [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 62 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 62 00 5D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B5 DC 02 00 0E 04 04 00 89 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 EB [10:16:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B5 DC 02 00 0E 04 04 00 89 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:41]wFMCommunicate OK [10:16:41]SAM_PROTO_GetFieldsCounters done [10:16:41]requested_item shift.num is exist - process it [10:16:41]requested_item shift.opened is exist - process it [10:16:41]req_shift_opened [10:16:41]FM_GetShiftState [10:16:41]SAM_PROTO_GetShiftState [10:16:41]wFMCommunicate request_size=4 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 13 01 00 [10:16:41]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 0E 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 CE [10:16:41]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:16:41]wFMCommunicate OK [10:16:41]SAM_PROTO_GetShiftState done [10:16:41]FM_GetShiftState done [10:16:41]req_shift_opened done [10:16:41]requested_item shift.open_date is exist - process it [10:16:41]req_shift_open_date [10:16:41]req_shift_open_date done [10:16:41]produce_requested_data done [10:16:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187573,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:16:41]process_action_free close_receipt [10:16:41]json_value_free [10:16:41]json_value_free done [10:16:41]process_json_proto returns [10:16:41]Send response to host [10:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187573,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:16:41]free response buf [10:16:41]execute_script done [10:16:41]execute_script returns [10:16:41]free content buf [10:16:41]Sock 8.Close socket [10:16:41]Sock 8.Thread stoped [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:34]accept exits with 9 [10:32:34]New connection [10:32:34]New thread 3067080036 created [10:32:34]Thread 3066936676 joined [10:32:34]Waiting for new connection... [10:32:34] Sock 9.Parse request [10:32:34]Sock 9.Check first char [10:32:34]Sock 9.First char is OK [10:32:34]request: POST /json_proto HTTP/1.0 [10:32:34]Method: POST [10:32:34]URL: /json_proto [10:32:34]Method is POST - this is cgi request [10:32:34]url: /json_proto [10:32:34]query_string will be loaded in cgi processing [10:32:34]execute_cgi json_proto POST (null) [10:32:34]execute_cgi path=json_proto method=POST [10:32:34]POST find Content-Length [10:32:34]Host: 172.17.46.131:8080 [10:32:34]Content-Length: 682 [10:32:34]Content-Type: application/json [10:32:34] [10:32:34]POST finish read [10:32:34]Found Content-Length = 682 [10:32:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:34]execute_script... [10:32: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)412731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:34]POST & json_proto [10:32:34]process_json_proto [10:32:34]json parsed OK: [10:32:34]protocol is kg_v1.0 [10:32:34]action value=close_receipt [10:32:34]process_action close_receipt [10:32:34]cmd_close_receipt [10:32:34]MH_GetDate [10:32:34]Write to MH i2c: F0 00 00 5F 05 53 [10:32:34]Write i2c OK [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: F0 [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: F0 09 00 [10:32:34]MH_I2C_Read... [10:32:34]Read from MH i2c: F0 09 00 5F 05 00 43 56 B8 67 7E 41 4F 65 87 [10:32:34]GetLastDocTimeStamp 1740132997 [10:32:34]current date 1740133955 [10:32:34]FM_GetShiftState [10:32:34]SAM_PROTO_GetShiftState [10:32:34]wFMCommunicate request_size=4 [10:32:34]MH_SAM_APDU [10:32:34]CAPDU: 80 13 01 00 [10:32:34]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [10:32:34]Write i2c OK [10:32:34]MH_I2C_Read... [10:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:35]Read from MH i2c: E2 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 0E 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D0 [10:32:35]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:32:35]wFMCommunicate OK [10:32:35]SAM_PROTO_GetShiftState done [10:32:35]FM_GetShiftState done [10:32:35]opened in 1740098043 [10:32:35]opened+sec_in_day 1740184443 [10:32:35]quantity*price = 100023 [10:32:35]sum+1 = 100025 [10:32:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 68 21.02.2025 10:32 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187574 ФПД: 170660820386061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T103235&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187574&fm=170660820386061&tin=02508201610067®Number=0000000000091857&sum=100000 [10:32:36]StoreToDocumentArchive [10:32:36]shift 649 fd 187574 [10:32:36]save to /storage/0649/doc_00187574 [10:32:36]save last doc name /storage/0649/doc_00187574 to /storage/kkm_last_doc_name [10:32:36]save OK [10:32:36]Clear old archive folders... [10:32:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:36]tlvbuf is 01EA5C70 [10:32:36]SAM_PROTO_ClearQueue [10:32:36]wFMCommunicate request_size=4 [10:32:36]MH_SAM_APDU [10:32:36]CAPDU: 80 09 00 00 [10:32:36]Write to MH i2c: E2 08 00 6D 05 80 09 00 00 00 00 00 00 E4 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:36]Read from MH i2c: E2 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 03 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [10:32:36]RAPDU: 90 00 [10:32:36]wFMCommunicate OK [10:32:36]SAM_PROTO_ClearQueue done [10:32:36]KKMCreateOFDPacket [10:32:36]OFDProtocolAddRootSTLVToBuf [10:32:36]FM_MakeSignedData [10:32:36]FM_MakeSignedData [10:32:36]SAM_PROTO_SignData [10:32:36]wFMCommunicate request_size=4 [10:32:36]MH_SAM_APDU [10:32:36]CAPDU: 80 0D 01 02 [10:32:36]Write to MH i2c: E2 08 00 6E 05 80 0D 01 02 00 00 00 00 EC [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:36]Read from MH i2c: E2 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 03 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [10:32:36]RAPDU: 90 00 [10:32:36]wFMCommunicate OK [10:32:36]wFMCommunicate request_size=255 [10:32:36]MH_SAM_APDU [10:32:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 43 56 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 DC 02 00 35 04 06 00 9B [10:32:36]Write to MH i2c: E2 02 01 6F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 43 56 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 DC 02 00 35 04 06 00 9B 00 00 9F [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:36]Read from MH i2c: E2 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 03 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [10:32:36]RAPDU: 90 00 [10:32:36]wFMCommunicate OK [10:32:36]wFMCommunicate request_size=10 [10:32:36]MH_SAM_APDU [10:32:36]CAPDU: 80 0D 02 02 05 37 11 93 81 0D [10:32:36]Write to MH i2c: E2 0D 00 70 05 80 0D 02 02 05 00 37 11 93 81 0D 00 00 62 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]OFD Sender: No OFD packet to send [10:32:36]Read from MH i2c: E2 [10:32:36]MH_I2C_Read... [10:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:36]Read from MH i2c: E2 03 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [10:32:36]RAPDU: 90 00 [10:32:36]wFMCommunicate OK [10:32:36]wFMCommunicate request_size=4 [10:32:36]MH_SAM_APDU [10:32:36]CAPDU: 80 0D 03 02 [10:32:36]Write to MH i2c: E2 08 00 71 05 80 0D 03 02 00 00 00 00 F1 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:36]Read from MH i2c: E2 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 0B 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 0B 00 71 05 00 1C D9 FB 76 D6 EC C1 C9 90 00 A4 [10:32:36]RAPDU: 1C D9 FB 76 D6 EC C1 C9 90 00 [10:32:36]wFMCommunicate OK [10:32:36]SAM_PROTO_SignData done [10:32:36]FM_MakeSignedData done [10:32:36]CreateOFDProtocolMessage [10:32:36]wFMCommunicate request_size=4 [10:32:36]MH_SAM_APDU [10:32:36]CAPDU: 80 11 00 00 [10:32:36]Write to MH i2c: E2 08 00 72 05 80 11 00 00 00 00 00 00 F1 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:36]Read from MH i2c: E2 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 17 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: E2 17 00 72 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [10:32:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:32:36]wFMCommunicate OK [10:32:36]CreateOFDProtocolMessage done [10:32:36]OFDSenderStorePacket 187574 [10:32:36]StoreOFDPacket docnum=187574 [10:32:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A BF 07 01 A3 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 43 56 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 DC 02 00 35 04 06 00 9B 37 11 93 81 0D 1C D9 FB 76 D6 EC C1 C9 [10:32:36]CheckFolder [10:32:36]dirname=/storage/ofd_packets [10:32:36]CheckFolder done [10:32:36]ProducePacketName [10:32:36]name=ofd_packets/00187574 [10:32:36]NVStorageSaveData ofd_packets/00187574 [10:32:36]File name is /storage/ofd_packets/00187574 [10:32:36]Write 301 bytes [10:32:36]NVStorageSaveData done [10:32:36]OFDSenderStorePacket done [10:32:36]KKMCreateOFDPacket done [10:32:36]NVStorageSaveData kkm_last_timestamp [10:32:36]File name is /storage/kkm_last_timestamp [10:32:36]Write 4 bytes [10:32:36]NVStorageSaveData done [10:32:36]ExternCall_PrintAddStr [10:32:36]wPrintStart [10:32:36]Write to MH i2c: 01 00 00 73 05 78 [10:32:36]Write i2c OK [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: 01 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: 01 07 00 [10:32:36]MH_I2C_Read... [10:32:36]Read from MH i2c: 01 07 00 73 05 00 00 00 00 00 FF 0F 8D [10:32:36]RasterBufferAndPrint [10:32:36]line Счет N : (1)412731 [10:32:36]line ИНН: 02508201610067 [10:32:36]line Контрольно-Кассовый Чек [10:32:36]line ПРОДАЖА [10:32:36]line ТРК (МРК, ГНК) : 32 [10:32:36]line Товар: 2710124130 [10:32:36]line Аи-92-К-2 [10:32:36]line 15.580 * 64.20 [10:32:36]line = 1000.24 [10:32:36]line НДС 12% НСП 1% [10:32:36]line > о реализуемом товаре [10:32:36]line ОКРУГЛЕНИЕ: -0.24 [10:32:36]line ИТОГО: 1000.00 [10:32:36]line Внесено: 1000.00 [10:32:36]line СДАЧА: 0.00 [10:32:36]line НСП 1% : 8.85 [10:32:36]line НДС 12% : 106.22 [10:32:36]line Наличными: 1000.00 [10:32:36]line Безнал.: 0.00 [10:32:36]line Место: АЗС № 92 "Партнер Нефть" [10:32:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:32:36]line СНО: Общий режим [10:32:36]line Чек 68 21.02.2025 10:32 [10:32:36]line Смена: 649 ФФД: 1.0 [10:32:36]line ЗНМ: 0300000118 [10:32:36]line РНМ: 0000000000091857 [10:32:36]line Версия ККМ: 001 [10:32:36]line ФМ: 0000000000871826 [10:32:36]line ФД: 187574 [10:32:36]line ФПД: 170660820386061 [10:32:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T103235&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187574&fm=170660820386061&tin=02508201610067®Number=0000000000091857&sum=100000 [10:32:37]OFD Sender: Processing packet 187574 [packets to send 49, broken 48] [10:32:37]ProducePacketName [10:32:37]name=ofd_packets/00187574 [10:32:37]OFD Sender: To server: pG, [10:32:37]CommunicateWithHost lk.salyk.kg:30040 [10:32:37]ConnectInit lk.salyk.kg [10:32:37]written 0, free lines is 4095 [10:32:37]Write to MH i2c: 01 00 00 9E 05 A3 [10:32:37]Write i2c OK [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: 01 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: 01 07 00 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: 01 07 00 9E 05 00 00 00 00 00 ED 0C A3 [10:32:37]RasterBufferAndPrint [10:32:37]line [10:32:37]line [10:32:37]line [10:32:37]line [10:32:37]line [10:32:37]written 0, free lines is 3315 [10:32:37]MH_Cut [10:32:37]Write to MH i2c: D1 01 00 A5 05 01 7C [10:32:37]Write i2c OK [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: D1 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: D1 01 00 [10:32:37]MH_I2C_Read... [10:32:37]Read from MH i2c: D1 01 00 A5 05 00 7B [10:32:37]Write to MH i2c: 01 00 00 A6 05 AB [10:32:37]Write i2c OK [10:32:37]MH_I2C_Read... [10:32:38]*** Cut start [10:32:38]*** Partial cut [10:32:38]*** CUTSNS_PIN = 1 [10:32:38]*** CUTSNS_PIN = 0 [10:32:38]*** Brake cut motor [10:32:38]Read from MH i2c: 01 [10:32:38]MH_I2C_Read... [10:32:38]*** Stop cut motor [10:32:38]*** Cut end [10:32:38]Read from MH i2c: 01 07 00 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: 01 07 00 A6 05 00 00 00 00 00 FF 0F C0 [10:32:38]process_action close_receipt done [10:32:38]requested_data is exist [10:32:38]produce_requested_data [10:32:38]requested_item fm.sn is exist - process it [10:32:38]wFMCommunicate request_size=4 [10:32:38]MH_SAM_APDU [10:32:38]CAPDU: 80 11 00 00 [10:32:38]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [10:32:38]Write i2c OK [10:32:38]MH_I2C_Read... [10:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:38]Read from MH i2c: E2 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 17 00 [10:32:38]MH_I2C_Read... [10:32:38]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 79 [10:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:32:38]wFMCommunicate OK [10:32:38]requested_item fd.num is exist - process it [10:32:38]SAM_PROTO_GetFieldsCounters [10:32:38]wFMCommunicate request_size=4 [10:32:38]MH_SAM_APDU [10:32:38]CAPDU: 80 13 00 00 [10:32:38]Write to MH i2c: E2 08 00 A8 05 80 13 00 00 00 00 00 00 29 [10:32:38]Write i2c OK [10:32:38]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 62 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 62 00 A8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B6 DC 02 00 0E 04 04 00 89 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 3A [10:32:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B6 DC 02 00 0E 04 04 00 89 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:32:39]wFMCommunicate OK [10:32:39]SAM_PROTO_GetFieldsCounters done [10:32:39]requested_item shift.num is exist - process it [10:32:39]requested_item shift.opened is exist - process it [10:32:39]req_shift_opened [10:32:39]FM_GetShiftState [10:32:39]SAM_PROTO_GetShiftState [10:32:39]wFMCommunicate request_size=4 [10:32:39]MH_SAM_APDU [10:32:39]CAPDU: 80 13 01 00 [10:32:39]Write to MH i2c: E2 08 00 A9 05 80 13 01 00 00 00 00 00 2B [10:32:39]Write i2c OK [10:32:39]MH_I2C_Read... [10:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:39]Read from MH i2c: E2 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 0E 00 [10:32:39]MH_I2C_Read... [10:32:39]Read from MH i2c: E2 0E 00 A9 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 19 [10:32:39]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:32:39]wFMCommunicate OK [10:32:39]SAM_PROTO_GetShiftState done [10:32:39]FM_GetShiftState done [10:32:39]req_shift_opened done [10:32:39]requested_item shift.open_date is exist - process it [10:32:39]req_shift_open_date [10:32:39]req_shift_open_date done [10:32:39]produce_requested_data done [10:32:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187574,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:32:39]process_action_free close_receipt [10:32:39]json_value_free [10:32:39]json_value_free done [10:32:39]process_json_proto returns [10:32:39]Send response to host [10:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187574,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:32:39]free response buf [10:32:39]execute_script done [10:32:39]execute_script returns [10:32:39]free content buf [10:32:39]Sock 9.Close socket [10:32:39]Sock 9.Thread stoped [10:34:47]ConnectInit Can't connect to host [10:34:47]CommunicateWithHost connect error [10:34:47]CommunicateWithHost err = -1 [10:34:47]OFD Sender: Server communicate error [10:34:52]OFD Sender: Processing packet 187574 [packets to send 49, broken 48] [10:34:52]ProducePacketName [10:34:52]name=ofd_packets/00187574 [10:34:52]OFD Sender: To server: pG, [10:34:52]CommunicateWithHost lk.salyk.kg:30040 [10:34:52]ConnectInit lk.salyk.kg [10:34:52]Connected sock=9 [10:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A BF 07 01 A3 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 43 56 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 DC 02 00 35 04 06 00 9B 37 11 93 81 0D 1C D9 FB 76 D6 EC C1 C9 [10:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6D 50 47 00 2B E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 DC 02 00 F4 03 04 00 18 FD B7 67 B6 04 01 00 00 69 87 47 C0 0D CE 05 0F [10:34:52]CommunicateWithHost err = 0 [10:34:52]CheckOFDResponse [10:34:52]1017 (14) - 77093643461234 [10:34:52]1041 (16) - 0000000000871826 [10:34:52]1040 (4) - 187574 [10:34:52]1012 (4) - 21.02.2025 04:12 [10:34:52]1206 (1) - 0 [10:34:52]OFD Sender: Remove packet 187574 [10:34:52]ProducePacketName [10:34:52]name=ofd_packets/00187574 [10:34:52]NVStorageDeleteData [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:48]accept exits with 8 [10:37:48]New connection [10:37:48]New thread 3066936676 created [10:37:48]Thread 3067080036 joined [10:37:48]Waiting for new connection... [10:37:48] Sock 8.Parse request [10:37:48]Sock 8.Check first char [10:37:48]Sock 8.First char is OK [10:37:48]request: POST /json_proto HTTP/1.0 [10:37:48]Method: POST [10:37:48]URL: /json_proto [10:37:48]Method is POST - this is cgi request [10:37:48]url: /json_proto [10:37:48]query_string will be loaded in cgi processing [10:37:48]execute_cgi json_proto POST (null) [10:37:48]execute_cgi path=json_proto method=POST [10:37:48]POST find Content-Length [10:37:48]Host: 172.17.46.131:8080 [10:37:48]Content-Length: 682 [10:37:48]Content-Type: application/json [10:37:48] [10:37:48]POST finish read [10:37:48]Found Content-Length = 682 [10:37:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:48]execute_script... [10:37: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)412732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:48]POST & json_proto [10:37:48]process_json_proto [10:37:48]json parsed OK: [10:37:48]protocol is kg_v1.0 [10:37:48]action value=close_receipt [10:37:48]process_action close_receipt [10:37:48]cmd_close_receipt [10:37:48]MH_GetDate [10:37:48]Write to MH i2c: F0 00 00 AA 05 9E [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: F0 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: F0 09 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: F0 09 00 AA 05 00 7D 57 B8 67 7E 41 4F 65 0D [10:37:48]GetLastDocTimeStamp 1740133955 [10:37:48]current date 1740134269 [10:37:48]FM_GetShiftState [10:37:48]SAM_PROTO_GetShiftState [10:37:48]wFMCommunicate request_size=4 [10:37:48]MH_SAM_APDU [10:37:48]CAPDU: 80 13 01 00 [10:37:48]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [10:37:48]Write i2c OK [10:37:48]MH_I2C_Read... [10:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:48]Read from MH i2c: E2 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 0E 00 [10:37:48]MH_I2C_Read... [10:37:48]Read from MH i2c: E2 0E 00 AB 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1B [10:37:48]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:37:48]wFMCommunicate OK [10:37:48]SAM_PROTO_GetShiftState done [10:37:48]FM_GetShiftState done [10:37:48]opened in 1740098043 [10:37:48]opened+sec_in_day 1740184443 [10:37:48]quantity*price = 100023 [10:37:48]sum+1 = 100025 [10:37:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 69 21.02.2025 10:37 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187575 ФПД: 255306450349963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T103749&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187575&fm=255306450349963&tin=02508201610067®Number=0000000000091857&sum=100000 [10:37:50]StoreToDocumentArchive [10:37:50]shift 649 fd 187575 [10:37:50]save to /storage/0649/doc_00187575 [10:37:50]save last doc name /storage/0649/doc_00187575 to /storage/kkm_last_doc_name [10:37:50]save OK [10:37:50]Clear old archive folders... [10:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:50]tlvbuf is 01E9ECC0 [10:37:50]SAM_PROTO_ClearQueue [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 09 00 00 [10:37:50]Write to MH i2c: E2 08 00 B8 05 80 09 00 00 00 00 00 00 2F [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_ClearQueue done [10:37:50]KKMCreateOFDPacket [10:37:50]OFDProtocolAddRootSTLVToBuf [10:37:50]FM_MakeSignedData [10:37:50]FM_MakeSignedData [10:37:50]SAM_PROTO_SignData [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 01 02 [10:37:50]Write to MH i2c: E2 08 00 B9 05 80 0D 01 02 00 00 00 00 37 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=255 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7D 57 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 DC 02 00 35 04 06 00 E8 [10:37:50]Write to MH i2c: E2 02 01 BA 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7D 57 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 DC 02 00 35 04 06 00 E8 00 00 74 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=10 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 02 02 05 33 2A 48 2F 8B [10:37:50]Write to MH i2c: E2 0D 00 BB 05 80 0D 02 02 05 00 33 2A 48 2F 8B 00 00 A3 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [10:37:50]RAPDU: 90 00 [10:37:50]wFMCommunicate OK [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 0D 03 02 [10:37:50]Write to MH i2c: E2 08 00 BC 05 80 0D 03 02 00 00 00 00 3C [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 0B 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 0B 00 BC 05 00 43 98 11 FA 5C 50 18 02 90 00 E9 [10:37:50]RAPDU: 43 98 11 FA 5C 50 18 02 90 00 [10:37:50]wFMCommunicate OK [10:37:50]SAM_PROTO_SignData done [10:37:50]FM_MakeSignedData done [10:37:50]CreateOFDProtocolMessage [10:37:50]wFMCommunicate request_size=4 [10:37:50]MH_SAM_APDU [10:37:50]CAPDU: 80 11 00 00 [10:37:50]Write to MH i2c: E2 08 00 BD 05 80 11 00 00 00 00 00 00 3C [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:50]Read from MH i2c: E2 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 17 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: E2 17 00 BD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [10:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:37:50]wFMCommunicate OK [10:37:50]CreateOFDProtocolMessage done [10:37:50]OFDSenderStorePacket 187575 [10:37:50]StoreOFDPacket docnum=187575 [10:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 17 A2 07 01 65 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7D 57 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 DC 02 00 35 04 06 00 E8 33 2A 48 2F 8B 43 98 11 FA 5C 50 18 02 [10:37:50]CheckFolder [10:37:50]dirname=/storage/ofd_packets [10:37:50]CheckFolder done [10:37:50]ProducePacketName [10:37:50]name=ofd_packets/00187575 [10:37:50]NVStorageSaveData ofd_packets/00187575 [10:37:50]File name is /storage/ofd_packets/00187575 [10:37:50]Write 301 bytes [10:37:50]NVStorageSaveData done [10:37:50]OFDSenderStorePacket done [10:37:50]KKMCreateOFDPacket done [10:37:50]NVStorageSaveData kkm_last_timestamp [10:37:50]File name is /storage/kkm_last_timestamp [10:37:50]Write 4 bytes [10:37:50]NVStorageSaveData done [10:37:50]ExternCall_PrintAddStr [10:37:50]wPrintStart [10:37:50]Write to MH i2c: 01 00 00 BE 05 C3 [10:37:50]Write i2c OK [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: 01 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: 01 07 00 [10:37:50]MH_I2C_Read... [10:37:50]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 FF 0F D8 [10:37:50]RasterBufferAndPrint [10:37:50]line Счет N : (1)412732 [10:37:50]line ИНН: 02508201610067 [10:37:50]line Контрольно-Кассовый Чек [10:37:50]line ПРОДАЖА [10:37:50]line ТРК (МРК, ГНК) : 22 [10:37:50]line Товар: 2710124130 [10:37:50]line Аи-92-К-2 [10:37:50]line 15.580 * 64.20 [10:37:50]line = 1000.24 [10:37:50]line НДС 12% НСП 1% [10:37:50]line > о реализуемом товаре [10:37:50]line ОКРУГЛЕНИЕ: -0.24 [10:37:50]line ИТОГО: 1000.00 [10:37:50]line Внесено: 1000.00 [10:37:50]line СДАЧА: 0.00 [10:37:50]line НСП 1% : 8.85 [10:37:50]line НДС 12% : 106.22 [10:37:50]line Наличными: 1000.00 [10:37:50]line Безнал.: 0.00 [10:37:50]line Место: АЗС № 92 "Партнер Нефть" [10:37:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:37:50]line СНО: Общий режим [10:37:50]line Чек 69 21.02.2025 10:37 [10:37:50]line Смена: 649 ФФД: 1.0 [10:37:50]line ЗНМ: 0300000118 [10:37:50]line РНМ: 0000000000091857 [10:37:50]line Версия ККМ: 001 [10:37:50]line ФМ: 0000000000871826 [10:37:50]line ФД: 187575 [10:37:50]line ФПД: 255306450349963 [10:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T103749&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187575&fm=255306450349963&tin=02508201610067®Number=0000000000091857&sum=100000 [10:37:50]OFD Sender: Processing packet 187575 [packets to send 49, broken 48] [10:37:50]ProducePacketName [10:37:50]name=ofd_packets/00187575 [10:37:50]OFD Sender: To server: pG, [10:37:50]CommunicateWithHost lk.salyk.kg:30040 [10:37:50]ConnectInit lk.salyk.kg [10:37:50]written 0, free lines is 4095 [10:37:51]Connected sock=10 [10:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 17 A2 07 01 65 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7D 57 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 DC 02 00 35 04 06 00 E8 33 2A 48 2F 8B 43 98 11 FA 5C 50 18 02 [10:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 33 DA 47 00 0B D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 DC 02 00 F4 03 04 00 CB FD B7 67 B6 04 01 00 00 B7 56 A4 78 EE 2B 5B CB [10:37:51]CommunicateWithHost err = 0 [10:37:51]CheckOFDResponse [10:37:51]1017 (14) - 77093643461234 [10:37:51]1041 (16) - 0000000000871826 [10:37:51]1040 (4) - 187575 [10:37:51]1012 (4) - 21.02.2025 04:15 [10:37:51]1206 (1) - 0 [10:37:51]OFD Sender: Remove packet 187575 [10:37:51]ProducePacketName [10:37:51]name=ofd_packets/00187575 [10:37:51]NVStorageDeleteData [10:37:51]Write to MH i2c: 01 00 00 E9 05 EE [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: 01 07 00 E9 05 00 00 00 00 00 F3 0C F4 [10:37:51]RasterBufferAndPrint [10:37:51]line [10:37:51]line [10:37:51]line [10:37:51]line [10:37:51]line [10:37:51]written 0, free lines is 3321 [10:37:51]MH_Cut [10:37:51]Write to MH i2c: D1 01 00 F0 05 01 C7 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: D1 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: D1 01 00 [10:37:51]MH_I2C_Read... [10:37:51]Read from MH i2c: D1 01 00 F0 05 00 C6 [10:37:51]Write to MH i2c: 01 00 00 F1 05 F6 [10:37:51]Write i2c OK [10:37:51]MH_I2C_Read... [10:37:51]OFD Sender: No OFD packet to send [10:37:52]*** Cut start [10:37:52]*** Partial cut [10:37:52]*** CUTSNS_PIN = 1 [10:37:52]*** CUTSNS_PIN = 0 [10:37:52]*** Brake cut motor [10:37:52]Read from MH i2c: 01 [10:37:52]MH_I2C_Read... [10:37:52]*** Stop cut motor [10:37:52]*** Cut end [10:37:52]Read from MH i2c: 01 07 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: 01 07 00 F1 05 00 00 00 00 00 FF 0F 0B [10:37:52]process_action close_receipt done [10:37:52]requested_data is exist [10:37:52]produce_requested_data [10:37:52]requested_item fm.sn is exist - process it [10:37:52]wFMCommunicate request_size=4 [10:37:52]MH_SAM_APDU [10:37:52]CAPDU: 80 11 00 00 [10:37:52]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:52]Read from MH i2c: E2 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 17 00 [10:37:52]MH_I2C_Read... [10:37:52]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C4 [10:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:37:52]wFMCommunicate OK [10:37:52]requested_item fd.num is exist - process it [10:37:52]SAM_PROTO_GetFieldsCounters [10:37:52]wFMCommunicate request_size=4 [10:37:52]MH_SAM_APDU [10:37:52]CAPDU: 80 13 00 00 [10:37:52]Write to MH i2c: E2 08 00 F3 05 80 13 00 00 00 00 00 00 74 [10:37:52]Write i2c OK [10:37:52]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 62 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 62 00 F3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B7 DC 02 00 0E 04 04 00 89 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 89 [10:37:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B7 DC 02 00 0E 04 04 00 89 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:37:53]wFMCommunicate OK [10:37:53]SAM_PROTO_GetFieldsCounters done [10:37:53]requested_item shift.num is exist - process it [10:37:53]requested_item shift.opened is exist - process it [10:37:53]req_shift_opened [10:37:53]FM_GetShiftState [10:37:53]SAM_PROTO_GetShiftState [10:37:53]wFMCommunicate request_size=4 [10:37:53]MH_SAM_APDU [10:37:53]CAPDU: 80 13 01 00 [10:37:53]Write to MH i2c: E2 08 00 F4 05 80 13 01 00 00 00 00 00 76 [10:37:53]Write i2c OK [10:37:53]MH_I2C_Read... [10:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:53]Read from MH i2c: E2 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 0E 00 [10:37:53]MH_I2C_Read... [10:37:53]Read from MH i2c: E2 0E 00 F4 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 64 [10:37:53]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:37:53]wFMCommunicate OK [10:37:53]SAM_PROTO_GetShiftState done [10:37:53]FM_GetShiftState done [10:37:53]req_shift_opened done [10:37:53]requested_item shift.open_date is exist - process it [10:37:53]req_shift_open_date [10:37:53]req_shift_open_date done [10:37:53]produce_requested_data done [10:37:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187575,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:37:53]process_action_free close_receipt [10:37:53]json_value_free [10:37:53]json_value_free done [10:37:53]process_json_proto returns [10:37:53]Send response to host [10:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187575,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:37:53]free response buf [10:37:53]execute_script done [10:37:53]execute_script returns [10:37:53]free content buf [10:37:53]Sock 8.Close socket [10:37:53]Sock 8.Thread stoped [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:26]accept exits with 9 [10:42:26]New connection [10:42:26]New thread 3067080036 created [10:42:26]Thread 3066936676 joined [10:42:26]Waiting for new connection... [10:42:26] Sock 9.Parse request [10:42:26]Sock 9.Check first char [10:42:26]Sock 9.First char is OK [10:42:26]request: POST /json_proto HTTP/1.0 [10:42:26]Method: POST [10:42:26]URL: /json_proto [10:42:26]Method is POST - this is cgi request [10:42:26]url: /json_proto [10:42:26]query_string will be loaded in cgi processing [10:42:26]execute_cgi json_proto POST (null) [10:42:26]execute_cgi path=json_proto method=POST [10:42:26]POST find Content-Length [10:42:26]Host: 172.17.46.131:8080 [10:42:26]Content-Length: 754 [10:42:26]Content-Type: application/json [10:42:26] [10:42:26]POST finish read [10:42:26]Found Content-Length = 754 [10:42:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30158457", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:26]execute_script... [10:42: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)412733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30158457", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:26]POST & json_proto [10:42:26]process_json_proto [10:42:26]json parsed OK: [10:42:26]protocol is kg_v1.0 [10:42:26]action value=close_receipt [10:42:26]process_action close_receipt [10:42:26]cmd_close_receipt [10:42:26]MH_GetDate [10:42:26]Write to MH i2c: F0 00 00 F5 05 E9 [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: F0 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: F0 09 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: F0 09 00 F5 05 00 93 58 B8 67 7E 41 4F 65 6F [10:42:26]GetLastDocTimeStamp 1740134269 [10:42:26]current date 1740134547 [10:42:26]FM_GetShiftState [10:42:26]SAM_PROTO_GetShiftState [10:42:26]wFMCommunicate request_size=4 [10:42:26]MH_SAM_APDU [10:42:26]CAPDU: 80 13 01 00 [10:42:26]Write to MH i2c: E2 08 00 F6 05 80 13 01 00 00 00 00 00 78 [10:42:26]Write i2c OK [10:42:26]MH_I2C_Read... [10:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:26]Read from MH i2c: E2 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 0E 00 [10:42:26]MH_I2C_Read... [10:42:26]Read from MH i2c: E2 0E 00 F6 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 66 [10:42:26]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:42:26]wFMCommunicate OK [10:42:26]SAM_PROTO_GetShiftState done [10:42:26]FM_GetShiftState done [10:42:26]opened in 1740098043 [10:42:26]opened+sec_in_day 1740184443 [10:42:26]quantity*price = 0 [10:42:26]sum+1 = 1 [10:42:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 70 21.02.2025 10:42 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30158457 ФМ: 0000000000871826 ФД: 187576 ФПД: 40752263030478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T104227&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187576&fm=40752263030478&tin=02508201610067®Number=0000000000091857&sum=0 [10:42:27]StoreToDocumentArchive [10:42:27]shift 649 fd 187576 [10:42:27]save to /storage/0649/doc_00187576 [10:42:27]save last doc name /storage/0649/doc_00187576 to /storage/kkm_last_doc_name [10:42:27]save OK [10:42:27]Clear old archive folders... [10:42:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:27]tlvbuf is 01E9E660 [10:42:27]SAM_PROTO_ClearQueue [10:42:27]wFMCommunicate request_size=4 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 09 00 00 [10:42:27]Write to MH i2c: E2 08 00 03 06 80 09 00 00 00 00 00 00 7B [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:27]Read from MH i2c: E2 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [10:42:27]RAPDU: 90 00 [10:42:27]wFMCommunicate OK [10:42:27]SAM_PROTO_ClearQueue done [10:42:27]KKMCreateOFDPacket [10:42:27]OFDProtocolAddRootSTLVToBuf [10:42:27]FM_MakeSignedData [10:42:27]FM_MakeSignedData [10:42:27]SAM_PROTO_SignData [10:42:27]wFMCommunicate request_size=4 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 0D 01 02 [10:42:27]Write to MH i2c: E2 08 00 04 06 80 0D 01 02 00 00 00 00 83 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:27]Read from MH i2c: E2 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 [10:42:27]MH_I2C_Read... [10:42:27]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [10:42:27]RAPDU: 90 00 [10:42:27]wFMCommunicate OK [10:42:27]wFMCommunicate request_size=255 [10:42:27]MH_SAM_APDU [10:42:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 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 93 58 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DC 02 00 35 04 06 00 25 [10:42:27]Write to MH i2c: E2 02 01 05 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 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 93 58 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DC 02 00 35 04 06 00 25 00 00 F7 [10:42:27]Write i2c OK [10:42:27]MH_I2C_Read... [10:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:28]Read from MH i2c: E2 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 03 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [10:42:28]RAPDU: 90 00 [10:42:28]wFMCommunicate OK [10:42:28]wFMCommunicate request_size=10 [10:42:28]MH_SAM_APDU [10:42:28]CAPDU: 80 0D 02 02 05 10 60 29 66 CE [10:42:28]Write to MH i2c: E2 0D 00 06 06 80 0D 02 02 05 00 10 60 29 66 CE 00 00 5D [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:28]Read from MH i2c: E2 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 03 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [10:42:28]RAPDU: 90 00 [10:42:28]wFMCommunicate OK [10:42:28]wFMCommunicate request_size=4 [10:42:28]MH_SAM_APDU [10:42:28]CAPDU: 80 0D 03 02 [10:42:28]Write to MH i2c: E2 08 00 07 06 80 0D 03 02 00 00 00 00 88 [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:28]Read from MH i2c: E2 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 0B 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 0B 00 07 06 00 AB B1 4C FC 26 FB 35 9B 90 00 1E [10:42:28]RAPDU: AB B1 4C FC 26 FB 35 9B 90 00 [10:42:28]wFMCommunicate OK [10:42:28]SAM_PROTO_SignData done [10:42:28]FM_MakeSignedData done [10:42:28]CreateOFDProtocolMessage [10:42:28]wFMCommunicate request_size=4 [10:42:28]MH_SAM_APDU [10:42:28]CAPDU: 80 11 00 00 [10:42:28]Write to MH i2c: E2 08 00 08 06 80 11 00 00 00 00 00 00 88 [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:28]Read from MH i2c: E2 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 17 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: E2 17 00 08 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [10:42:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:42:28]wFMCommunicate OK [10:42:28]CreateOFDProtocolMessage done [10:42:28]OFDSenderStorePacket 187576 [10:42:28]StoreOFDPacket docnum=187576 [10:42:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 77 A1 07 01 52 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 32 FF 03 08 00 03 98 3A 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 93 58 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DC 02 00 35 04 06 00 25 10 60 29 66 CE AB B1 4C FC 26 FB 35 9B [10:42:28]CheckFolder [10:42:28]dirname=/storage/ofd_packets [10:42:28]CheckFolder done [10:42:28]ProducePacketName [10:42:28]name=ofd_packets/00187576 [10:42:28]NVStorageSaveData ofd_packets/00187576 [10:42:28]File name is /storage/ofd_packets/00187576 [10:42:28]Write 301 bytes [10:42:28]NVStorageSaveData done [10:42:28]OFDSenderStorePacket done [10:42:28]KKMCreateOFDPacket done [10:42:28]NVStorageSaveData kkm_last_timestamp [10:42:28]File name is /storage/kkm_last_timestamp [10:42:28]Write 4 bytes [10:42:28]NVStorageSaveData done [10:42:28]ExternCall_PrintAddStr [10:42:28]wPrintStart [10:42:28]Write to MH i2c: 01 00 00 09 06 0F [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: 01 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: 01 07 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: 01 07 00 09 06 00 00 00 00 00 FF 0F 24 [10:42:28]RasterBufferAndPrint [10:42:28]line Счет N : (1)412733 [10:42:28]line ИНН: 02508201610067 [10:42:28]line Контрольно-Кассовый Чек [10:42:28]line ПРОДАЖА [10:42:28]line ТРК (МРК, ГНК) : 32 [10:42:28]line Товар: 2710124130 [10:42:28]line Аи-92-К-2 [10:42:28]line 15.000 * 0.00 [10:42:28]line = 0.00 [10:42:28]line НДС 12% НСП 1% [10:42:28]line > о реализуемом товаре [10:42:28]line ИТОГО: 0.00 [10:42:28]line НСП 1% : 0.00 [10:42:28]line НДС 12% : 0.00 [10:42:28]line Наличными: 0.00 [10:42:28]line Безнал.: 0.00 [10:42:28]line Место: АЗС № 92 "Партнер Нефть" [10:42:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:42:28]line СНО: Общий режим [10:42:28]line Чек 70 21.02.2025 10:42 [10:42:28]line Смена: 649 ФФД: 1.0 [10:42:28]line ЗНМ: 0300000118 [10:42:28]line РНМ: 0000000000091857 [10:42:28]line Версия ККМ: 001 [10:42:28]line Талоны: ТК ГПНА Online [10:42:28]line 30158457 [10:42:28]line ФМ: 0000000000871826 [10:42:28]line ФД: 187576 [10:42:28]line ФПД: 40752263030478 [10:42:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T104227&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187576&fm=40752263030478&tin=02508201610067®Number=0000000000091857&sum=0 [10:42:28]written 0, free lines is 4095 [10:42:28]OFD Sender: Processing packet 187576 [packets to send 49, broken 48] [10:42:28]ProducePacketName [10:42:28]name=ofd_packets/00187576 [10:42:28]OFD Sender: To server: pG, [10:42:28]CommunicateWithHost lk.salyk.kg:30040 [10:42:28]ConnectInit lk.salyk.kg [10:42:28]Connected sock=10 [10:42:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 77 A1 07 01 52 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 32 FF 03 08 00 03 98 3A 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 93 58 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DC 02 00 35 04 06 00 25 10 60 29 66 CE AB B1 4C FC 26 FB 35 9B [10:42:28]Write to MH i2c: 01 00 00 33 06 39 [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: 01 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: 01 07 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: 01 07 00 33 06 00 00 00 00 00 F8 0C 44 [10:42:28]RasterBufferAndPrint [10:42:28]line [10:42:28]line [10:42:28]line [10:42:28]line [10:42:28]line [10:42:28]written 0, free lines is 3326 [10:42:28]MH_Cut [10:42:28]Write to MH i2c: D1 01 00 3A 06 01 12 [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: D1 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: D1 01 00 [10:42:28]MH_I2C_Read... [10:42:28]Read from MH i2c: D1 01 00 3A 06 00 11 [10:42:28]Write to MH i2c: 01 00 00 3B 06 41 [10:42:28]Write i2c OK [10:42:28]MH_I2C_Read... [10:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 44 7C 47 00 AC F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DC 02 00 F4 03 04 00 E0 FE B7 67 B6 04 01 00 00 B3 E4 6F F9 B1 66 88 CE [10:42:28]CommunicateWithHost err = 0 [10:42:28]CheckOFDResponse [10:42:28]1017 (14) - 77093643461234 [10:42:28]1041 (16) - 0000000000871826 [10:42:28]1040 (4) - 187576 [10:42:28]1012 (4) - 21.02.2025 04:19 [10:42:28]1206 (1) - 0 [10:42:28]OFD Sender: Remove packet 187576 [10:42:28]ProducePacketName [10:42:28]name=ofd_packets/00187576 [10:42:28]NVStorageDeleteData [10:42:29]OFD Sender: No OFD packet to send [10:42:29]*** Cut start [10:42:29]*** Partial cut [10:42:29]*** CUTSNS_PIN = 1 [10:42:29]*** CUTSNS_PIN = 0 [10:42:29]*** Brake cut motor [10:42:30]Read from MH i2c: 01 [10:42:30]MH_I2C_Read... [10:42:30]*** Stop cut motor [10:42:30]*** Cut end [10:42:30]Read from MH i2c: 01 07 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [10:42:30]process_action close_receipt done [10:42:30]requested_data is exist [10:42:30]produce_requested_data [10:42:30]requested_item fm.sn is exist - process it [10:42:30]wFMCommunicate request_size=4 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 11 00 00 [10:42:30]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 17 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [10:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:42:30]wFMCommunicate OK [10:42:30]requested_item fd.num is exist - process it [10:42:30]SAM_PROTO_GetFieldsCounters [10:42:30]wFMCommunicate request_size=4 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 13 00 00 [10:42:30]Write to MH i2c: E2 08 00 3D 06 80 13 00 00 00 00 00 00 BF [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 62 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 62 00 3D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B8 DC 02 00 0E 04 04 00 89 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 D8 [10:42:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B8 DC 02 00 0E 04 04 00 89 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:42:30]wFMCommunicate OK [10:42:30]SAM_PROTO_GetFieldsCounters done [10:42:30]requested_item shift.num is exist - process it [10:42:30]requested_item shift.opened is exist - process it [10:42:30]req_shift_opened [10:42:30]FM_GetShiftState [10:42:30]SAM_PROTO_GetShiftState [10:42:30]wFMCommunicate request_size=4 [10:42:30]MH_SAM_APDU [10:42:30]CAPDU: 80 13 01 00 [10:42:30]Write to MH i2c: E2 08 00 3E 06 80 13 01 00 00 00 00 00 C1 [10:42:30]Write i2c OK [10:42:30]MH_I2C_Read... [10:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:30]Read from MH i2c: E2 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 0E 00 [10:42:30]MH_I2C_Read... [10:42:30]Read from MH i2c: E2 0E 00 3E 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 AF [10:42:30]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:42:30]wFMCommunicate OK [10:42:30]SAM_PROTO_GetShiftState done [10:42:30]FM_GetShiftState done [10:42:30]req_shift_opened done [10:42:30]requested_item shift.open_date is exist - process it [10:42:30]req_shift_open_date [10:42:30]req_shift_open_date done [10:42:30]produce_requested_data done [10:42:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187576,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:42:30]process_action_free close_receipt [10:42:30]json_value_free [10:42:30]json_value_free done [10:42:30]process_json_proto returns [10:42:30]Send response to host [10:42:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187576,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:42:30]free response buf [10:42:30]execute_script done [10:42:30]execute_script returns [10:42:30]free content buf [10:42:30]Sock 9.Close socket [10:42:30]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:23]accept exits with 8 [10:51:23]New connection [10:51:23]New thread 3066936676 created [10:51:23]Thread 3067080036 joined [10:51:23]Waiting for new connection... [10:51:23] Sock 8.Parse request [10:51:23]Sock 8.Check first char [10:51:23]Sock 8.First char is OK [10:51:23]request: POST /json_proto HTTP/1.0 [10:51:23]Method: POST [10:51:23]URL: /json_proto [10:51:23]Method is POST - this is cgi request [10:51:23]url: /json_proto [10:51:23]query_string will be loaded in cgi processing [10:51:23]execute_cgi json_proto POST (null) [10:51:23]execute_cgi path=json_proto method=POST [10:51:23]POST find Content-Length [10:51:23]Host: 172.17.46.131:8080 [10:51:23]Content-Length: 678 [10:51:23]Content-Type: application/json [10:51:23] [10:51:23]POST finish read [10:51:23]Found Content-Length = 678 [10:51:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:23]execute_script... [10:51:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:23]POST & json_proto [10:51:23]process_json_proto [10:51:23]json parsed OK: [10:51:23]protocol is kg_v1.0 [10:51:23]action value=close_receipt [10:51:23]process_action close_receipt [10:51:23]cmd_close_receipt [10:51:23]MH_GetDate [10:51:23]Write to MH i2c: F0 00 00 3F 06 34 [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: F0 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: F0 09 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: F0 09 00 3F 06 00 AB 5A B8 67 7E 41 4F 65 D4 [10:51:23]GetLastDocTimeStamp 1740134547 [10:51:23]current date 1740135083 [10:51:23]FM_GetShiftState [10:51:23]SAM_PROTO_GetShiftState [10:51:23]wFMCommunicate request_size=4 [10:51:23]MH_SAM_APDU [10:51:23]CAPDU: 80 13 01 00 [10:51:23]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [10:51:23]Write i2c OK [10:51:23]MH_I2C_Read... [10:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:23]Read from MH i2c: E2 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 0E 00 [10:51:23]MH_I2C_Read... [10:51:23]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B1 [10:51:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:51:23]wFMCommunicate OK [10:51:23]SAM_PROTO_GetShiftState done [10:51:23]FM_GetShiftState done [10:51:23]opened in 1740098043 [10:51:23]opened+sec_in_day 1740184443 [10:51:23]quantity*price = 100042 [10:51:23]sum+1 = 100044 [10:51:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 71 21.02.2025 10:51 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187577 ФПД: 16242475027868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105123&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187577&fm=16242475027868&tin=02508201610067®Number=0000000000091857&sum=100000 [10:51:24]StoreToDocumentArchive [10:51:24]shift 649 fd 187577 [10:51:24]save to /storage/0649/doc_00187577 [10:51:24]save last doc name /storage/0649/doc_00187577 to /storage/kkm_last_doc_name [10:51:24]save OK [10:51:24]Clear old archive folders... [10:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:51:24]tlvbuf is 01E91050 [10:51:24]SAM_PROTO_ClearQueue [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 09 00 00 [10:51:24]Write to MH i2c: E2 08 00 4D 06 80 09 00 00 00 00 00 00 C5 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [10:51:24]RAPDU: 90 00 [10:51:24]wFMCommunicate OK [10:51:24]SAM_PROTO_ClearQueue done [10:51:24]KKMCreateOFDPacket [10:51:24]OFDProtocolAddRootSTLVToBuf [10:51:24]FM_MakeSignedData [10:51:24]FM_MakeSignedData [10:51:24]SAM_PROTO_SignData [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 0D 01 02 [10:51:24]Write to MH i2c: E2 08 00 4E 06 80 0D 01 02 00 00 00 00 CD [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [10:51:24]RAPDU: 90 00 [10:51:24]wFMCommunicate OK [10:51:24]wFMCommunicate request_size=255 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AB 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 DC 02 00 35 04 06 00 0E C5 BE F4 [10:51:24]Write to MH i2c: E2 02 01 4F 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AB 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 DC 02 00 35 04 06 00 0E C5 BE F4 00 00 83 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]OFD Sender: No OFD packet to send [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:24]Read from MH i2c: E2 03 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [10:51:24]RAPDU: 90 00 [10:51:24]wFMCommunicate OK [10:51:24]wFMCommunicate request_size=7 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 0D 02 02 02 4D 9C [10:51:24]Write to MH i2c: E2 0A 00 50 06 80 0D 02 02 02 00 4D 9C 00 00 BD [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:24]Read from MH i2c: E2 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 [10:51:24]MH_I2C_Read... [10:51:24]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [10:51:24]RAPDU: 90 00 [10:51:24]wFMCommunicate OK [10:51:24]wFMCommunicate request_size=4 [10:51:24]MH_SAM_APDU [10:51:24]CAPDU: 80 0D 03 02 [10:51:24]Write to MH i2c: E2 08 00 51 06 80 0D 03 02 00 00 00 00 D2 [10:51:24]Write i2c OK [10:51:24]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0B 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0B 00 51 06 00 AD C8 4F 39 24 3C 53 52 90 00 D5 [10:51:25]RAPDU: AD C8 4F 39 24 3C 53 52 90 00 [10:51:25]wFMCommunicate OK [10:51:25]SAM_PROTO_SignData done [10:51:25]FM_MakeSignedData done [10:51:25]CreateOFDProtocolMessage [10:51:25]wFMCommunicate request_size=4 [10:51:25]MH_SAM_APDU [10:51:25]CAPDU: 80 11 00 00 [10:51:25]Write to MH i2c: E2 08 00 52 06 80 11 00 00 00 00 00 00 D2 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 17 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 17 00 52 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [10:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:51:25]wFMCommunicate OK [10:51:25]CreateOFDProtocolMessage done [10:51:25]OFDSenderStorePacket 187577 [10:51:25]StoreOFDPacket docnum=187577 [10:51:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C9 D5 04 01 0E 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AB 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 DC 02 00 35 04 06 00 0E C5 BE F4 4D 9C AD C8 4F 39 24 3C 53 52 [10:51:25]CheckFolder [10:51:25]dirname=/storage/ofd_packets [10:51:25]CheckFolder done [10:51:25]ProducePacketName [10:51:25]name=ofd_packets/00187577 [10:51:25]NVStorageSaveData ofd_packets/00187577 [10:51:25]File name is /storage/ofd_packets/00187577 [10:51:25]Write 298 bytes [10:51:25]NVStorageSaveData done [10:51:25]OFDSenderStorePacket done [10:51:25]KKMCreateOFDPacket done [10:51:25]NVStorageSaveData kkm_last_timestamp [10:51:25]File name is /storage/kkm_last_timestamp [10:51:25]Write 4 bytes [10:51:25]NVStorageSaveData done [10:51:25]ExternCall_PrintAddStr [10:51:25]wPrintStart [10:51:25]Write to MH i2c: 01 00 00 53 06 59 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 07 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 07 00 53 06 00 00 00 00 00 FF 0F 6E [10:51:25]RasterBufferAndPrint [10:51:25]line Счет N : (1)412735 [10:51:25]line ИНН: 02508201610067 [10:51:25]line Контрольно-Кассовый Чек [10:51:25]line ПРОДАЖА [10:51:25]line ТРК (МРК, ГНК) : 5 [10:51:25]line Товар: 2710194210 [10:51:25]line ДТ-К-5 [10:51:25]line 13.780 * 72.60 [10:51:25]line = 1000.43 [10:51:25]line НДС 12% НСП 1% [10:51:25]line > о реализуемом товаре [10:51:25]line ОКРУГЛЕНИЕ: -0.43 [10:51:25]line ИТОГО: 1000.00 [10:51:25]line Внесено: 1000.00 [10:51:25]line СДАЧА: 0.00 [10:51:25]line НСП 1% : 8.85 [10:51:25]line НДС 12% : 106.24 [10:51:25]line Наличными: 1000.00 [10:51:25]line Безнал.: 0.00 [10:51:25]line Место: АЗС № 92 "Партнер Нефть" [10:51:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:51:25]line СНО: Общий режим [10:51:25]line Чек 71 21.02.2025 10:51 [10:51:25]line Смена: 649 ФФД: 1.0 [10:51:25]line ЗНМ: 0300000118 [10:51:25]line РНМ: 0000000000091857 [10:51:25]line Версия ККМ: 001 [10:51:25]line ФМ: 0000000000871826 [10:51:25]line ФД: 187577 [10:51:25]line ФПД: 16242475027868 [10:51:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105123&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187577&fm=16242475027868&tin=02508201610067®Number=0000000000091857&sum=100000 [10:51:25]written 0, free lines is 4095 [10:51:25]OFD Sender: Processing packet 187577 [packets to send 49, broken 48] [10:51:25]ProducePacketName [10:51:25]name=ofd_packets/00187577 [10:51:25]OFD Sender: To server: pG, [10:51:25]CommunicateWithHost lk.salyk.kg:30040 [10:51:25]ConnectInit lk.salyk.kg [10:51:25]Connected sock=10 [10:51:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C9 D5 04 01 0E 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 AB 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 DC 02 00 35 04 06 00 0E C5 BE F4 4D 9C AD C8 4F 39 24 3C 53 52 [10:51:25]Write to MH i2c: 01 00 00 7E 06 84 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 07 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 F3 0C 8A [10:51:25]RasterBufferAndPrint [10:51:25]line [10:51:25]line [10:51:25]line [10:51:25]line [10:51:25]line [10:51:25]written 0, free lines is 3321 [10:51:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A0 AE 47 00 84 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 38 32 36 10 04 04 00 B9 DC 02 00 F4 03 04 00 F9 00 B8 67 B6 04 01 00 00 B0 85 24 B6 99 CE 3F 67 [10:51:25]CommunicateWithHost err = 0 [10:51:25]CheckOFDResponse [10:51:25]1017 (14) - 77093643461234 [10:51:25]1041 (16) - 0000000000871826 [10:51:25]1040 (4) - 187577 [10:51:25]1012 (4) - 21.02.2025 04:28 [10:51:25]1206 (1) - 0 [10:51:25]OFD Sender: Remove packet 187577 [10:51:25]ProducePacketName [10:51:25]name=ofd_packets/00187577 [10:51:25]NVStorageDeleteData [10:51:25]MH_Cut [10:51:25]Write to MH i2c: D1 01 00 85 06 01 5D [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: D1 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: D1 01 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: D1 01 00 85 06 00 5C [10:51:25]Write to MH i2c: 01 00 00 86 06 8C [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:26]OFD Sender: No OFD packet to send [10:51:26]*** Cut start [10:51:26]*** Partial cut [10:51:26]*** CUTSNS_PIN = 1 [10:51:26]*** CUTSNS_PIN = 0 [10:51:26]*** Brake cut motor [10:51:26]Read from MH i2c: 01 [10:51:26]MH_I2C_Read... [10:51:26]*** Stop cut motor [10:51:26]*** Cut end [10:51:26]Read from MH i2c: 01 07 00 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [10:51:26]process_action close_receipt done [10:51:26]requested_data is exist [10:51:26]produce_requested_data [10:51:26]requested_item fm.sn is exist - process it [10:51:26]wFMCommunicate request_size=4 [10:51:26]MH_SAM_APDU [10:51:26]CAPDU: 80 11 00 00 [10:51:26]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [10:51:26]Write i2c OK [10:51:26]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [10:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:51:27]wFMCommunicate OK [10:51:27]requested_item fd.num is exist - process it [10:51:27]SAM_PROTO_GetFieldsCounters [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 13 00 00 [10:51:27]Write to MH i2c: E2 08 00 88 06 80 13 00 00 00 00 00 00 0A [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 62 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 62 00 88 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B9 DC 02 00 0E 04 04 00 89 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 27 [10:51:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B9 DC 02 00 0E 04 04 00 89 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:51:27]wFMCommunicate OK [10:51:27]SAM_PROTO_GetFieldsCounters done [10:51:27]requested_item shift.num is exist - process it [10:51:27]requested_item shift.opened is exist - process it [10:51:27]req_shift_opened [10:51:27]FM_GetShiftState [10:51:27]SAM_PROTO_GetShiftState [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 13 01 00 [10:51:27]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0E 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FA [10:51:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:51:27]wFMCommunicate OK [10:51:27]SAM_PROTO_GetShiftState done [10:51:27]FM_GetShiftState done [10:51:27]req_shift_opened done [10:51:27]requested_item shift.open_date is exist - process it [10:51:27]req_shift_open_date [10:51:27]req_shift_open_date done [10:51:27]produce_requested_data done [10:51:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187577,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:51:27]process_action_free close_receipt [10:51:27]json_value_free [10:51:27]json_value_free done [10:51:27]process_json_proto returns [10:51:27]Send response to host [10:51:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187577,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:51:27]free response buf [10:51:27]execute_script done [10:51:27]execute_script returns [10:51:27]free content buf [10:51:27]Sock 8.Close socket [10:51:27]Sock 8.Thread stoped [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:53]accept exits with 9 [10:51:53]New connection [10:51:53]New thread 3067080036 created [10:51:53]Thread 3066936676 joined [10:51:53]Waiting for new connection... [10:51:53] Sock 9.Parse request [10:51:53]Sock 9.Check first char [10:51:53]Sock 9.First char is OK [10:51:53]request: POST /json_proto HTTP/1.0 [10:51:53]Method: POST [10:51:53]URL: /json_proto [10:51:53]Method is POST - this is cgi request [10:51:53]url: /json_proto [10:51:53]query_string will be loaded in cgi processing [10:51:53]execute_cgi json_proto POST (null) [10:51:53]execute_cgi path=json_proto method=POST [10:51:53]POST find Content-Length [10:51:53]Host: 172.17.46.131:8080 [10:51:53]Content-Length: 682 [10:51:53]Content-Type: application/json [10:51:53] [10:51:53]POST finish read [10:51:53]Found Content-Length = 682 [10:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:53]execute_script... [10:51: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)412734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:53]POST & json_proto [10:51:53]process_json_proto [10:51:53]json parsed OK: [10:51:53]protocol is kg_v1.0 [10:51:53]action value=close_receipt [10:51:53]process_action close_receipt [10:51:53]cmd_close_receipt [10:51:53]MH_GetDate [10:51:53]Write to MH i2c: F0 00 00 8A 06 7F [10:51:53]Write i2c OK [10:51:53]MH_I2C_Read... [10:51:53]Read from MH i2c: F0 [10:51:53]MH_I2C_Read... [10:51:53]Read from MH i2c: F0 09 00 [10:51:53]MH_I2C_Read... [10:51:53]Read from MH i2c: F0 09 00 8A 06 00 C9 5A B8 67 7E 41 4F 65 3D [10:51:53]GetLastDocTimeStamp 1740135083 [10:51:53]current date 1740135113 [10:51:53]FM_GetShiftState [10:51:53]SAM_PROTO_GetShiftState [10:51:53]wFMCommunicate request_size=4 [10:51:53]MH_SAM_APDU [10:51:53]CAPDU: 80 13 01 00 [10:51:53]Write to MH i2c: E2 08 00 8B 06 80 13 01 00 00 00 00 00 0E [10:51:53]Write i2c OK [10:51:53]MH_I2C_Read... [10:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:53]Read from MH i2c: E2 [10:51:53]MH_I2C_Read... [10:51:53]Read from MH i2c: E2 0E 00 [10:51:53]MH_I2C_Read... [10:51:53]Read from MH i2c: E2 0E 00 8B 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FC [10:51:53]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:51:53]wFMCommunicate OK [10:51:53]SAM_PROTO_GetShiftState done [10:51:53]FM_GetShiftState done [10:51:53]opened in 1740098043 [10:51:53]opened+sec_in_day 1740184443 [10:51:53]quantity*price = 100023 [10:51:53]sum+1 = 100025 [10:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 72 21.02.2025 10:51 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187578 ФПД: 121281108804552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105153&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187578&fm=121281108804552&tin=02508201610067®Number=0000000000091857&sum=100000 [10:51:54]StoreToDocumentArchive [10:51:54]shift 649 fd 187578 [10:51:54]save to /storage/0649/doc_00187578 [10:51:54]save last doc name /storage/0649/doc_00187578 to /storage/kkm_last_doc_name [10:51:54]save OK [10:51:54]Clear old archive folders... [10:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:54]tlvbuf is 01E16170 [10:51:54]SAM_PROTO_ClearQueue [10:51:54]wFMCommunicate request_size=4 [10:51:54]MH_SAM_APDU [10:51:54]CAPDU: 80 09 00 00 [10:51:54]Write to MH i2c: E2 08 00 98 06 80 09 00 00 00 00 00 00 10 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 03 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [10:51:54]RAPDU: 90 00 [10:51:54]wFMCommunicate OK [10:51:54]SAM_PROTO_ClearQueue done [10:51:54]KKMCreateOFDPacket [10:51:54]OFDProtocolAddRootSTLVToBuf [10:51:54]FM_MakeSignedData [10:51:54]FM_MakeSignedData [10:51:54]SAM_PROTO_SignData [10:51:54]wFMCommunicate request_size=4 [10:51:54]MH_SAM_APDU [10:51:54]CAPDU: 80 0D 01 02 [10:51:54]Write to MH i2c: E2 08 00 99 06 80 0D 01 02 00 00 00 00 18 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 03 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [10:51:54]RAPDU: 90 00 [10:51:54]wFMCommunicate OK [10:51:54]wFMCommunicate request_size=255 [10:51:54]MH_SAM_APDU [10:51: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C9 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA DC 02 00 35 04 06 00 6E [10:51:54]Write to MH i2c: E2 02 01 9A 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C9 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA DC 02 00 35 04 06 00 6E 00 00 30 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 03 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [10:51:54]RAPDU: 90 00 [10:51:54]wFMCommunicate OK [10:51:54]wFMCommunicate request_size=10 [10:51:54]MH_SAM_APDU [10:51:54]CAPDU: 80 0D 02 02 05 4D F5 68 83 C8 [10:51:54]Write to MH i2c: E2 0D 00 9B 06 80 0D 02 02 05 00 4D F5 68 83 C8 00 00 1A [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 03 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [10:51:54]RAPDU: 90 00 [10:51:54]wFMCommunicate OK [10:51:54]wFMCommunicate request_size=4 [10:51:54]MH_SAM_APDU [10:51:54]CAPDU: 80 0D 03 02 [10:51:54]Write to MH i2c: E2 08 00 9C 06 80 0D 03 02 00 00 00 00 1D [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 0B 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 0B 00 9C 06 00 FC 8C 32 F6 28 1D DA D8 90 00 C5 [10:51:54]RAPDU: FC 8C 32 F6 28 1D DA D8 90 00 [10:51:54]wFMCommunicate OK [10:51:54]SAM_PROTO_SignData done [10:51:54]FM_MakeSignedData done [10:51:54]CreateOFDProtocolMessage [10:51:54]wFMCommunicate request_size=4 [10:51:54]MH_SAM_APDU [10:51:54]CAPDU: 80 11 00 00 [10:51:54]Write to MH i2c: E2 08 00 9D 06 80 11 00 00 00 00 00 00 1D [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 17 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 17 00 9D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [10:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:51:54]wFMCommunicate OK [10:51:54]CreateOFDProtocolMessage done [10:51:54]OFDSenderStorePacket 187578 [10:51:54]StoreOFDPacket docnum=187578 [10:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4D C1 07 01 DD 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C9 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA DC 02 00 35 04 06 00 6E 4D F5 68 83 C8 FC 8C 32 F6 28 1D DA D8 [10:51:54]CheckFolder [10:51:54]dirname=/storage/ofd_packets [10:51:54]CheckFolder done [10:51:54]ProducePacketName [10:51:54]name=ofd_packets/00187578 [10:51:54]NVStorageSaveData ofd_packets/00187578 [10:51:54]File name is /storage/ofd_packets/00187578 [10:51:54]Write 301 bytes [10:51:54]NVStorageSaveData done [10:51:54]OFDSenderStorePacket done [10:51:54]KKMCreateOFDPacket done [10:51:54]NVStorageSaveData kkm_last_timestamp [10:51:54]File name is /storage/kkm_last_timestamp [10:51:54]Write 4 bytes [10:51:54]NVStorageSaveData done [10:51:54]ExternCall_PrintAddStr [10:51:54]wPrintStart [10:51:54]Write to MH i2c: 01 00 00 9E 06 A4 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 07 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 FF 0F B9 [10:51:54]RasterBufferAndPrint [10:51:54]line Счет N : (1)412734 [10:51:54]line ИНН: 02508201610067 [10:51:54]line Контрольно-Кассовый Чек [10:51:54]line ПРОДАЖА [10:51:54]line ТРК (МРК, ГНК) : 32 [10:51:54]line Товар: 2710124130 [10:51:54]line Аи-92-К-2 [10:51:54]line 15.580 * 64.20 [10:51:54]line = 1000.24 [10:51:54]line НДС 12% НСП 1% [10:51:54]line > о реализуемом товаре [10:51:54]line ОКРУГЛЕНИЕ: -0.24 [10:51:54]line ИТОГО: 1000.00 [10:51:54]line Внесено: 1000.00 [10:51:54]line СДАЧА: 0.00 [10:51:54]line НСП 1% : 8.85 [10:51:54]line НДС 12% : 106.22 [10:51:54]line Наличными: 1000.00 [10:51:54]line Безнал.: 0.00 [10:51:54]line Место: АЗС № 92 "Партнер Нефть" [10:51:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:51:54]line СНО: Общий режим [10:51:54]line Чек 72 21.02.2025 10:51 [10:51:54]line Смена: 649 ФФД: 1.0 [10:51:54]line ЗНМ: 0300000118 [10:51:54]line РНМ: 0000000000091857 [10:51:54]line Версия ККМ: 001 [10:51:54]line ФМ: 0000000000871826 [10:51:54]line ФД: 187578 [10:51:54]line ФПД: 121281108804552 [10:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105153&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187578&fm=121281108804552&tin=02508201610067®Number=0000000000091857&sum=100000 [10:51:54]written 0, free lines is 4095 [10:51:54]OFD Sender: Processing packet 187578 [packets to send 49, broken 48] [10:51:54]ProducePacketName [10:51:54]name=ofd_packets/00187578 [10:51:54]OFD Sender: To server: pG, [10:51:54]CommunicateWithHost lk.salyk.kg:30040 [10:51:54]ConnectInit lk.salyk.kg [10:51:55]Connected sock=8 [10:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4D C1 07 01 DD 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C9 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA DC 02 00 35 04 06 00 6E 4D F5 68 83 C8 FC 8C 32 F6 28 1D DA D8 [10:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0D B4 47 00 44 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 38 32 36 10 04 04 00 BA DC 02 00 F4 03 04 00 17 01 B8 67 B6 04 01 00 00 9E D8 7F 99 12 03 67 47 [10:51:55]CommunicateWithHost err = 0 [10:51:55]CheckOFDResponse [10:51:55]1017 (14) - 77093643461234 [10:51:55]1041 (16) - 0000000000871826 [10:51:55]1040 (4) - 187578 [10:51:55]1012 (4) - 21.02.2025 04:29 [10:51:55]1206 (1) - 0 [10:51:55]OFD Sender: Remove packet 187578 [10:51:55]ProducePacketName [10:51:55]name=ofd_packets/00187578 [10:51:55]NVStorageDeleteData [10:51:55]Write to MH i2c: 01 00 00 C9 06 CF [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: 01 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: 01 07 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 F6 0C D8 [10:51:55]RasterBufferAndPrint [10:51:55]line [10:51:55]line [10:51:55]line [10:51:55]line [10:51:55]line [10:51:55]written 0, free lines is 3324 [10:51:55]MH_Cut [10:51:55]Write to MH i2c: D1 01 00 D0 06 01 A8 [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: D1 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: D1 01 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: D1 01 00 D0 06 00 A7 [10:51:55]Write to MH i2c: 01 00 00 D1 06 D7 [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]OFD Sender: No OFD packet to send [10:51:56]*** Cut start [10:51:56]*** Partial cut [10:51:56]*** CUTSNS_PIN = 1 [10:51:56]*** CUTSNS_PIN = 0 [10:51:56]*** Brake cut motor [10:51:56]Read from MH i2c: 01 [10:51:56]MH_I2C_Read... [10:51:56]*** Stop cut motor [10:51:56]*** Cut end [10:51:56]Read from MH i2c: 01 07 00 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [10:51:56]process_action close_receipt done [10:51:56]requested_data is exist [10:51:56]produce_requested_data [10:51:56]requested_item fm.sn is exist - process it [10:51:56]wFMCommunicate request_size=4 [10:51:56]MH_SAM_APDU [10:51:56]CAPDU: 80 11 00 00 [10:51:56]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [10:51:56]Write i2c OK [10:51:56]MH_I2C_Read... [10:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:56]Read from MH i2c: E2 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 17 00 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [10:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:51:56]wFMCommunicate OK [10:51:56]requested_item fd.num is exist - process it [10:51:56]SAM_PROTO_GetFieldsCounters [10:51:56]wFMCommunicate request_size=4 [10:51:56]MH_SAM_APDU [10:51:56]CAPDU: 80 13 00 00 [10:51:56]Write to MH i2c: E2 08 00 D3 06 80 13 00 00 00 00 00 00 55 [10:51:56]Write i2c OK [10:51:56]MH_I2C_Read... [10:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:57]Read from MH i2c: E2 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 62 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 62 00 D3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BA DC 02 00 0E 04 04 00 89 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 76 [10:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BA DC 02 00 0E 04 04 00 89 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:51:57]wFMCommunicate OK [10:51:57]SAM_PROTO_GetFieldsCounters done [10:51:57]requested_item shift.num is exist - process it [10:51:57]requested_item shift.opened is exist - process it [10:51:57]req_shift_opened [10:51:57]FM_GetShiftState [10:51:57]SAM_PROTO_GetShiftState [10:51:57]wFMCommunicate request_size=4 [10:51:57]MH_SAM_APDU [10:51:57]CAPDU: 80 13 01 00 [10:51:57]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:57]Read from MH i2c: E2 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 0E 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 45 [10:51:57]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:51:57]wFMCommunicate OK [10:51:57]SAM_PROTO_GetShiftState done [10:51:57]FM_GetShiftState done [10:51:57]req_shift_opened done [10:51:57]requested_item shift.open_date is exist - process it [10:51:57]req_shift_open_date [10:51:57]req_shift_open_date done [10:51:57]produce_requested_data done [10:51:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187578,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:51:57]process_action_free close_receipt [10:51:57]json_value_free [10:51:57]json_value_free done [10:51:57]process_json_proto returns [10:51:57]Send response to host [10:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187578,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:51:57]free response buf [10:51:57]execute_script done [10:51:57]execute_script returns [10:51:57]free content buf [10:51:57]Sock 9.Close socket [10:51:57]Sock 9.Thread stoped [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:11]accept exits with 10 [10:52:11]New connection [10:52:11]New thread 3066936676 created [10:52:11]Thread 3067080036 joined [10:52:11]Waiting for new connection... [10:52:11] Sock 10.Parse request [10:52:11]Sock 10.Check first char [10:52:11]Sock 10.First char is OK [10:52:11]request: POST /json_proto HTTP/1.0 [10:52:11]Method: POST [10:52:11]URL: /json_proto [10:52:11]Method is POST - this is cgi request [10:52:11]url: /json_proto [10:52:11]query_string will be loaded in cgi processing [10:52:11]execute_cgi json_proto POST (null) [10:52:11]execute_cgi path=json_proto method=POST [10:52:11]POST find Content-Length [10:52:11]Host: 172.17.46.131:8080 [10:52:11]Content-Length: 801 [10:52:11]Content-Type: application/json [10:52:11] [10:52:11]POST finish read [10:52:11]Found Content-Length = 801 [10:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:11]execute_script... [10:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 800.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:11]POST & json_proto [10:52:11]process_json_proto [10:52:11]json parsed OK: [10:52:11]protocol is kg_v1.0 [10:52:11]action value=close_receipt [10:52:11]process_action close_receipt [10:52:11]cmd_close_receipt [10:52:11]MH_GetDate [10:52:11]Write to MH i2c: F0 00 00 D5 06 CA [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: F0 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: F0 09 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: F0 09 00 D5 06 00 DB 5A B8 67 7E 41 4F 65 9A [10:52:11]GetLastDocTimeStamp 1740135113 [10:52:11]current date 1740135131 [10:52:11]FM_GetShiftState [10:52:11]SAM_PROTO_GetShiftState [10:52:11]wFMCommunicate request_size=4 [10:52:11]MH_SAM_APDU [10:52:11]CAPDU: 80 13 01 00 [10:52:11]Write to MH i2c: E2 08 00 D6 06 80 13 01 00 00 00 00 00 59 [10:52:11]Write i2c OK [10:52:11]MH_I2C_Read... [10:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:11]Read from MH i2c: E2 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 0E 00 [10:52:11]MH_I2C_Read... [10:52:11]Read from MH i2c: E2 0E 00 D6 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 47 [10:52:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:52:11]wFMCommunicate OK [10:52:11]SAM_PROTO_GetShiftState done [10:52:11]FM_GetShiftState done [10:52:11]opened in 1740098043 [10:52:11]opened+sec_in_day 1740184443 [10:52:11]quantity*price = 80057 [10:52:11]sum+1 = 80058 [10:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.57 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 0.00 Безнал.: 800.57 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 73 21.02.2025 10:52 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187579 ФПД: 232484819869005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105211&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187579&fm=232484819869005&tin=02508201610067®Number=0000000000091857&sum=80057 [10:52:12]StoreToDocumentArchive [10:52:12]shift 649 fd 187579 [10:52:12]save to /storage/0649/doc_00187579 [10:52:12]save last doc name /storage/0649/doc_00187579 to /storage/kkm_last_doc_name [10:52:12]save OK [10:52:12]Clear old archive folders... [10:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:12]tlvbuf is 01E91230 [10:52:12]SAM_PROTO_ClearQueue [10:52:12]wFMCommunicate request_size=4 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 09 00 00 [10:52:12]Write to MH i2c: E2 08 00 E3 06 80 09 00 00 00 00 00 00 5B [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [10:52:12]RAPDU: 90 00 [10:52:12]wFMCommunicate OK [10:52:12]SAM_PROTO_ClearQueue done [10:52:12]KKMCreateOFDPacket [10:52:12]OFDProtocolAddRootSTLVToBuf [10:52:12]FM_MakeSignedData [10:52:12]FM_MakeSignedData [10:52:12]SAM_PROTO_SignData [10:52:12]wFMCommunicate request_size=4 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 0D 01 02 [10:52:12]Write to MH i2c: E2 08 00 E4 06 80 0D 01 02 00 00 00 00 63 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [10:52:12]RAPDU: 90 00 [10:52:12]wFMCommunicate OK [10:52:12]wFMCommunicate request_size=255 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B9 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B9 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 DB 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB DC 02 00 35 04 06 00 D3 [10:52:12]Write to MH i2c: E2 02 01 E5 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B9 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B9 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 DB 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB DC 02 00 35 04 06 00 D3 00 00 09 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [10:52:12]RAPDU: 90 00 [10:52:12]wFMCommunicate OK [10:52:12]wFMCommunicate request_size=10 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 0D 02 02 05 71 97 1A 9D 4D [10:52:12]Write to MH i2c: E2 0D 00 E6 06 80 0D 02 02 05 00 71 97 1A 9D 4D 00 00 7C [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [10:52:12]RAPDU: 90 00 [10:52:12]wFMCommunicate OK [10:52:12]wFMCommunicate request_size=4 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 0D 03 02 [10:52:12]Write to MH i2c: E2 08 00 E7 06 80 0D 03 02 00 00 00 00 68 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 0B 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 0B 00 E7 06 00 4E 00 86 0F 8D 0F 0B 90 90 00 83 [10:52:12]RAPDU: 4E 00 86 0F 8D 0F 0B 90 90 00 [10:52:12]wFMCommunicate OK [10:52:12]SAM_PROTO_SignData done [10:52:12]FM_MakeSignedData done [10:52:12]CreateOFDProtocolMessage [10:52:12]wFMCommunicate request_size=4 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 11 00 00 [10:52:12]Write to MH i2c: E2 08 00 E8 06 80 11 00 00 00 00 00 00 68 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 17 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 17 00 E8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BB [10:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:52:12]wFMCommunicate OK [10:52:12]CreateOFDProtocolMessage done [10:52:12]OFDSenderStorePacket 187579 [10:52:12]StoreOFDPacket docnum=187579 [10:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7A 81 07 01 3A 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B9 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B9 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 DB 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB DC 02 00 35 04 06 00 D3 71 97 1A 9D 4D 4E 00 86 0F 8D 0F 0B 90 [10:52:12]CheckFolder [10:52:12]dirname=/storage/ofd_packets [10:52:12]CheckFolder done [10:52:12]ProducePacketName [10:52:12]name=ofd_packets/00187579 [10:52:12]NVStorageSaveData ofd_packets/00187579 [10:52:12]File name is /storage/ofd_packets/00187579 [10:52:12]Write 301 bytes [10:52:12]NVStorageSaveData done [10:52:12]OFDSenderStorePacket done [10:52:12]KKMCreateOFDPacket done [10:52:12]NVStorageSaveData kkm_last_timestamp [10:52:12]File name is /storage/kkm_last_timestamp [10:52:12]Write 4 bytes [10:52:12]NVStorageSaveData done [10:52:12]ExternCall_PrintAddStr [10:52:12]wPrintStart [10:52:12]Write to MH i2c: 01 00 00 E9 06 EF [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: 01 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: 01 07 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 FF 0F 04 [10:52:12]RasterBufferAndPrint [10:52:12]line Счет N : (1)412736 [10:52:12]line ИНН: 02508201610067 [10:52:12]line Контрольно-Кассовый Чек [10:52:12]line ПРОДАЖА [10:52:12]line ТРК (МРК, ГНК) : 22 [10:52:12]line Товар: 2710124130 [10:52:12]line Аи-92-К-2 [10:52:12]line 12.470 * 64.20 [10:52:12]line = 800.57 [10:52:12]line НДС 12% НСП 1% [10:52:12]line > о реализуемом товаре [10:52:12]line ИТОГО: 800.57 [10:52:12]line НСП 1% : 7.08 [10:52:12]line НДС 12% : 85.02 [10:52:12]line Наличными: 0.00 [10:52:12]line Безнал.: 800.57 [10:52:12]line Место: АЗС № 92 "Партнер Нефть" [10:52:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:52:12]line СНО: Общий режим [10:52:12]line Чек 73 21.02.2025 10:52 [10:52:12]line Смена: 649 ФФД: 1.0 [10:52:12]line ЗНМ: 0300000118 [10:52:12]line РНМ: 0000000000091857 [10:52:12]line Версия ККМ: 001 [10:52:12]line Платежная система: O! деньги [10:52:12]line ФМ: 0000000000871826 [10:52:12]line ФД: 187579 [10:52:12]line ФПД: 232484819869005 [10:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105211&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187579&fm=232484819869005&tin=02508201610067®Number=0000000000091857&sum=80057 [10:52:12]written 0, free lines is 4095 [10:52:12]OFD Sender: Processing packet 187579 [packets to send 49, broken 48] [10:52:12]ProducePacketName [10:52:12]name=ofd_packets/00187579 [10:52:12]OFD Sender: To server: pG, [10:52:12]CommunicateWithHost lk.salyk.kg:30040 [10:52:12]ConnectInit lk.salyk.kg [10:52:12]Connected sock=9 [10:52:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7A 81 07 01 3A 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B9 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B9 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 DB 5A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB DC 02 00 35 04 06 00 D3 71 97 1A 9D 4D 4E 00 86 0F 8D 0F 0B 90 [10:52:13]Write to MH i2c: 01 00 00 13 07 1A [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: 01 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: 01 07 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 0F 0D 3D [10:52:13]RasterBufferAndPrint [10:52:13]line [10:52:13]line [10:52:13]line [10:52:13]line [10:52:13]line [10:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D8 19 47 00 61 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 38 32 36 10 04 04 00 BB DC 02 00 F4 03 04 00 29 01 B8 67 B6 04 01 00 00 D0 49 A0 38 D0 18 A5 8D [10:52:13]CommunicateWithHost err = 0 [10:52:13]CheckOFDResponse [10:52:13]1017 (14) - 77093643461234 [10:52:13]1041 (16) - 0000000000871826 [10:52:13]1040 (4) - 187579 [10:52:13]1012 (4) - 21.02.2025 04:29 [10:52:13]1206 (1) - 0 [10:52:13]OFD Sender: Remove packet 187579 [10:52:13]ProducePacketName [10:52:13]name=ofd_packets/00187579 [10:52:13]NVStorageDeleteData [10:52:13]written 0, free lines is 3350 [10:52:13]MH_Cut [10:52:13]Write to MH i2c: D1 01 00 1A 07 01 F3 [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: D1 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: D1 01 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: D1 01 00 1A 07 00 F2 [10:52:13]Write to MH i2c: 01 00 00 1B 07 22 [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]OFD Sender: No OFD packet to send [10:52:13]*** Cut start [10:52:13]*** Partial cut [10:52:13]*** CUTSNS_PIN = 1 [10:52:13]*** CUTSNS_PIN = 0 [10:52:14]*** Brake cut motor [10:52:14]Read from MH i2c: 01 [10:52:14]MH_I2C_Read... [10:52:14]*** Stop cut motor [10:52:14]*** Cut end [10:52:14]Read from MH i2c: 01 07 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 07 00 1B 07 00 00 00 00 00 FF 0F 37 [10:52:14]process_action close_receipt done [10:52:14]requested_data is exist [10:52:14]produce_requested_data [10:52:14]requested_item fm.sn is exist - process it [10:52:14]wFMCommunicate request_size=4 [10:52:14]MH_SAM_APDU [10:52:14]CAPDU: 80 11 00 00 [10:52:14]Write to MH i2c: E2 08 00 1C 07 80 11 00 00 00 00 00 00 9D [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 17 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 17 00 1C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [10:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:52:14]wFMCommunicate OK [10:52:14]requested_item fd.num is exist - process it [10:52:14]SAM_PROTO_GetFieldsCounters [10:52:14]wFMCommunicate request_size=4 [10:52:14]MH_SAM_APDU [10:52:14]CAPDU: 80 13 00 00 [10:52:14]Write to MH i2c: E2 08 00 1D 07 80 13 00 00 00 00 00 00 A0 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 62 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 62 00 1D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BB DC 02 00 0E 04 04 00 89 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 C5 [10:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BB DC 02 00 0E 04 04 00 89 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:52:14]wFMCommunicate OK [10:52:14]SAM_PROTO_GetFieldsCounters done [10:52:14]requested_item shift.num is exist - process it [10:52:14]requested_item shift.opened is exist - process it [10:52:14]req_shift_opened [10:52:14]FM_GetShiftState [10:52:14]SAM_PROTO_GetShiftState [10:52:14]wFMCommunicate request_size=4 [10:52:14]MH_SAM_APDU [10:52:14]CAPDU: 80 13 01 00 [10:52:14]Write to MH i2c: E2 08 00 1E 07 80 13 01 00 00 00 00 00 A2 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 0E 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 0E 00 1E 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 90 [10:52:14]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:52:14]wFMCommunicate OK [10:52:14]SAM_PROTO_GetShiftState done [10:52:14]FM_GetShiftState done [10:52:14]req_shift_opened done [10:52:14]requested_item shift.open_date is exist - process it [10:52:14]req_shift_open_date [10:52:14]req_shift_open_date done [10:52:14]produce_requested_data done [10:52:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187579,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:52:14]process_action_free close_receipt [10:52:14]json_value_free [10:52:14]json_value_free done [10:52:14]process_json_proto returns [10:52:14]Send response to host [10:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187579,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:52:14]free response buf [10:52:14]execute_script done [10:52:14]execute_script returns [10:52:14]free content buf [10:52:14]Sock 10.Close socket [10:52:14]Sock 10.Thread stoped [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:40]accept exits with 8 [10:53:40]New connection [10:53:40]New thread 3067080036 created [10:53:40]Thread 3066936676 joined [10:53:40]Waiting for new connection... [10:53:40] Sock 8.Parse request [10:53:40]Sock 8.Check first char [10:53:40]Sock 8.First char is OK [10:53:40]request: POST /json_proto HTTP/1.0 [10:53:40]Method: POST [10:53:40]URL: /json_proto [10:53:40]Method is POST - this is cgi request [10:53:40]url: /json_proto [10:53:40]query_string will be loaded in cgi processing [10:53:40]execute_cgi json_proto POST (null) [10:53:40]execute_cgi path=json_proto method=POST [10:53:40]POST find Content-Length [10:53:40]Host: 172.17.46.131:8080 [10:53:40]Content-Length: 677 [10:53:40]Content-Type: application/json [10:53:40] [10:53:40]POST finish read [10:53:40]Found Content-Length = 677 [10:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:40]execute_script... [10:53: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)412737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:40]POST & json_proto [10:53:40]process_json_proto [10:53:40]json parsed OK: [10:53:40]protocol is kg_v1.0 [10:53:40]action value=close_receipt [10:53:40]process_action close_receipt [10:53:40]cmd_close_receipt [10:53:40]MH_GetDate [10:53:40]Write to MH i2c: F0 00 00 1F 07 15 [10:53:40]Write i2c OK [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: F0 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: F0 09 00 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: F0 09 00 1F 07 00 34 5B B8 67 7E 41 4F 65 3F [10:53:40]GetLastDocTimeStamp 1740135131 [10:53:40]current date 1740135220 [10:53:40]FM_GetShiftState [10:53:40]SAM_PROTO_GetShiftState [10:53:40]wFMCommunicate request_size=4 [10:53:40]MH_SAM_APDU [10:53:40]CAPDU: 80 13 01 00 [10:53:40]Write to MH i2c: E2 08 00 20 07 80 13 01 00 00 00 00 00 A4 [10:53:40]Write i2c OK [10:53:40]MH_I2C_Read... [10:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:40]Read from MH i2c: E2 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 0E 00 [10:53:40]MH_I2C_Read... [10:53:40]Read from MH i2c: E2 0E 00 20 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 92 [10:53:40]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:53:40]wFMCommunicate OK [10:53:40]SAM_PROTO_GetShiftState done [10:53:40]FM_GetShiftState done [10:53:40]opened in 1740098043 [10:53:40]opened+sec_in_day 1740184443 [10:53:40]quantity*price = 25038 [10:53:40]sum+1 = 25039 [10:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 74 21.02.2025 10:53 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187580 ФПД: 231206772231316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105340&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187580&fm=231206772231316&tin=02508201610067®Number=0000000000091857&sum=25000 [10:53:41]StoreToDocumentArchive [10:53:41]shift 649 fd 187580 [10:53:41]save to /storage/0649/doc_00187580 [10:53:41]save last doc name /storage/0649/doc_00187580 to /storage/kkm_last_doc_name [10:53:41]save OK [10:53:41]Clear old archive folders... [10:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:41]tlvbuf is 01EA9730 [10:53:41]SAM_PROTO_ClearQueue [10:53:41]wFMCommunicate request_size=4 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 09 00 00 [10:53:41]Write to MH i2c: E2 08 00 2D 07 80 09 00 00 00 00 00 00 A6 [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [10:53:41]RAPDU: 90 00 [10:53:41]wFMCommunicate OK [10:53:41]SAM_PROTO_ClearQueue done [10:53:41]KKMCreateOFDPacket [10:53:41]OFDProtocolAddRootSTLVToBuf [10:53:41]FM_MakeSignedData [10:53:41]FM_MakeSignedData [10:53:41]SAM_PROTO_SignData [10:53:41]wFMCommunicate request_size=4 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 0D 01 02 [10:53:41]Write to MH i2c: E2 08 00 2E 07 80 0D 01 02 00 00 00 00 AE [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [10:53:41]RAPDU: 90 00 [10:53:41]wFMCommunicate OK [10:53:41]wFMCommunicate request_size=255 [10:53:41]MH_SAM_APDU [10: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 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 34 5B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC DC 02 00 35 04 06 00 D2 [10:53:41]Write to MH i2c: E2 02 01 2F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 34 5B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC DC 02 00 35 04 06 00 D2 00 00 AD [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [10:53:41]RAPDU: 90 00 [10:53:41]wFMCommunicate OK [10:53:41]wFMCommunicate request_size=10 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 0D 02 02 05 48 05 87 4C 94 [10:53:41]Write to MH i2c: E2 0D 00 30 07 80 0D 02 02 05 00 48 05 87 4C 94 00 00 6F [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [10:53:41]RAPDU: 90 00 [10:53:41]wFMCommunicate OK [10:53:41]wFMCommunicate request_size=4 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 0D 03 02 [10:53:41]Write to MH i2c: E2 08 00 31 07 80 0D 03 02 00 00 00 00 B3 [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 0B 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 0B 00 31 07 00 A9 A2 57 27 18 6E 05 95 90 00 9D [10:53:41]RAPDU: A9 A2 57 27 18 6E 05 95 90 00 [10:53:41]wFMCommunicate OK [10:53:41]SAM_PROTO_SignData done [10:53:41]FM_MakeSignedData done [10:53:41]CreateOFDProtocolMessage [10:53:41]wFMCommunicate request_size=4 [10:53:41]MH_SAM_APDU [10:53:41]CAPDU: 80 11 00 00 [10:53:41]Write to MH i2c: E2 08 00 32 07 80 11 00 00 00 00 00 00 B3 [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:41]Read from MH i2c: E2 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 17 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: E2 17 00 32 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [10:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:53:41]wFMCommunicate OK [10:53:41]CreateOFDProtocolMessage done [10:53:41]OFDSenderStorePacket 187580 [10:53:41]StoreOFDPacket docnum=187580 [10:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DD EA 07 01 A4 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 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 34 5B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC DC 02 00 35 04 06 00 D2 48 05 87 4C 94 A9 A2 57 27 18 6E 05 95 [10:53:41]CheckFolder [10:53:41]dirname=/storage/ofd_packets [10:53:41]CheckFolder done [10:53:41]ProducePacketName [10:53:41]name=ofd_packets/00187580 [10:53:41]NVStorageSaveData ofd_packets/00187580 [10:53:41]File name is /storage/ofd_packets/00187580 [10:53:41]Write 301 bytes [10:53:41]NVStorageSaveData done [10:53:41]OFDSenderStorePacket done [10:53:41]KKMCreateOFDPacket done [10:53:41]NVStorageSaveData kkm_last_timestamp [10:53:41]File name is /storage/kkm_last_timestamp [10:53:41]Write 4 bytes [10:53:41]NVStorageSaveData done [10:53:41]ExternCall_PrintAddStr [10:53:41]wPrintStart [10:53:41]Write to MH i2c: 01 00 00 33 07 3A [10:53:41]Write i2c OK [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: 01 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: 01 07 00 [10:53:41]MH_I2C_Read... [10:53:41]Read from MH i2c: 01 07 00 33 07 00 00 00 00 00 FF 0F 4F [10:53:41]RasterBufferAndPrint [10:53:41]line Счет N : (1)412737 [10:53:41]line ИНН: 02508201610067 [10:53:41]line Контрольно-Кассовый Чек [10:53:41]line ПРОДАЖА [10:53:41]line ТРК (МРК, ГНК) : 42 [10:53:41]line Товар: 2710124130 [10:53:41]line Аи-92-К-2 [10:53:41]line 3.900 * 64.20 [10:53:41]line = 250.38 [10:53:41]line НДС 12% НСП 1% [10:53:41]line > о реализуемом товаре [10:53:41]line ОКРУГЛЕНИЕ: -0.38 [10:53:41]line ИТОГО: 250.00 [10:53:41]line Внесено: 250.00 [10:53:41]line СДАЧА: 0.00 [10:53:41]line НСП 1% : 2.22 [10:53:41]line НДС 12% : 26.59 [10:53:41]line Наличными: 250.00 [10:53:41]line Безнал.: 0.00 [10:53:41]line Место: АЗС № 92 "Партнер Нефть" [10:53:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:53:41]line СНО: Общий режим [10:53:41]line Чек 74 21.02.2025 10:53 [10:53:41]line Смена: 649 ФФД: 1.0 [10:53:41]line ЗНМ: 0300000118 [10:53:41]line РНМ: 0000000000091857 [10:53:41]line Версия ККМ: 001 [10:53:41]line ФМ: 0000000000871826 [10:53:41]line ФД: 187580 [10:53:41]line ФПД: 231206772231316 [10:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105340&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187580&fm=231206772231316&tin=02508201610067®Number=0000000000091857&sum=25000 [10:53:42]OFD Sender: Processing packet 187580 [packets to send 49, broken 48] [10:53:42]ProducePacketName [10:53:42]name=ofd_packets/00187580 [10:53:42]OFD Sender: To server: pG, [10:53:42]CommunicateWithHost lk.salyk.kg:30040 [10:53:42]ConnectInit lk.salyk.kg [10:53:42]written 0, free lines is 4095 [10:53:42]Connected sock=10 [10: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 38 32 36 0F 01 00 00 DD EA 07 01 A4 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 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 34 5B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC DC 02 00 35 04 06 00 D2 48 05 87 4C 94 A9 A2 57 27 18 6E 05 95 [10: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 38 32 36 4F 00 00 00 02 99 47 00 71 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC DC 02 00 F4 03 04 00 82 01 B8 67 B6 04 01 00 00 2B 99 6F E7 95 46 9B 48 [10:53:42]CommunicateWithHost err = 0 [10:53:42]CheckOFDResponse [10:53:42]1017 (14) - 77093643461234 [10:53:42]1041 (16) - 0000000000871826 [10:53:42]1040 (4) - 187580 [10:53:42]1012 (4) - 21.02.2025 04:30 [10:53:42]1206 (1) - 0 [10:53:42]OFD Sender: Remove packet 187580 [10:53:42]ProducePacketName [10:53:42]name=ofd_packets/00187580 [10:53:42]NVStorageDeleteData [10:53:42]Write to MH i2c: 01 00 00 5E 07 65 [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: 01 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: 01 07 00 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 02 0D 7B [10:53:42]RasterBufferAndPrint [10:53:42]line [10:53:42]line [10:53:42]line [10:53:42]line [10:53:42]line [10:53:42]written 0, free lines is 3336 [10:53:42]MH_Cut [10:53:42]Write to MH i2c: D1 01 00 65 07 01 3E [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: D1 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: D1 01 00 [10:53:42]MH_I2C_Read... [10:53:42]Read from MH i2c: D1 01 00 65 07 00 3D [10:53:42]Write to MH i2c: 01 00 00 66 07 6D [10:53:42]Write i2c OK [10:53:42]MH_I2C_Read... [10:53:43]OFD Sender: No OFD packet to send [10:53:43]*** Cut start [10:53:43]*** Partial cut [10:53:43]*** CUTSNS_PIN = 1 [10:53:43]*** CUTSNS_PIN = 0 [10:53:43]*** Brake cut motor [10:53:43]Read from MH i2c: 01 [10:53:43]MH_I2C_Read... [10:53:43]*** Stop cut motor [10:53:43]*** Cut end [10:53:43]Read from MH i2c: 01 07 00 [10:53:43]MH_I2C_Read... [10:53:43]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [10:53:43]process_action close_receipt done [10:53:43]requested_data is exist [10:53:43]produce_requested_data [10:53:43]requested_item fm.sn is exist - process it [10:53:43]wFMCommunicate request_size=4 [10:53:43]MH_SAM_APDU [10:53:43]CAPDU: 80 11 00 00 [10:53:43]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [10:53:43]Write i2c OK [10:53:43]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 17 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 17 00 67 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [10:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:53:44]wFMCommunicate OK [10:53:44]requested_item fd.num is exist - process it [10:53:44]SAM_PROTO_GetFieldsCounters [10:53:44]wFMCommunicate request_size=4 [10:53:44]MH_SAM_APDU [10:53:44]CAPDU: 80 13 00 00 [10:53:44]Write to MH i2c: E2 08 00 68 07 80 13 00 00 00 00 00 00 EB [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 62 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 62 00 68 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BC DC 02 00 0E 04 04 00 89 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 14 [10: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BC DC 02 00 0E 04 04 00 89 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:53:44]wFMCommunicate OK [10:53:44]SAM_PROTO_GetFieldsCounters done [10:53:44]requested_item shift.num is exist - process it [10:53:44]requested_item shift.opened is exist - process it [10:53:44]req_shift_opened [10:53:44]FM_GetShiftState [10:53:44]SAM_PROTO_GetShiftState [10:53:44]wFMCommunicate request_size=4 [10:53:44]MH_SAM_APDU [10:53:44]CAPDU: 80 13 01 00 [10:53:44]Write to MH i2c: E2 08 00 69 07 80 13 01 00 00 00 00 00 ED [10:53:44]Write i2c OK [10:53:44]MH_I2C_Read... [10:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:44]Read from MH i2c: E2 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 0E 00 [10:53:44]MH_I2C_Read... [10:53:44]Read from MH i2c: E2 0E 00 69 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 DB [10:53:44]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:53:44]wFMCommunicate OK [10:53:44]SAM_PROTO_GetShiftState done [10:53:44]FM_GetShiftState done [10:53:44]req_shift_opened done [10:53:44]requested_item shift.open_date is exist - process it [10:53:44]req_shift_open_date [10:53:44]req_shift_open_date done [10:53:44]produce_requested_data done [10:53:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187580,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:53:44]process_action_free close_receipt [10:53:44]json_value_free [10:53:44]json_value_free done [10:53:44]process_json_proto returns [10:53:44]Send response to host [10:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187580,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:53:44]free response buf [10:53:44]execute_script done [10:53:44]execute_script returns [10:53:44]free content buf [10:53:44]Sock 8.Close socket [10:53:44]Sock 8.Thread stoped [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:50]accept exits with 9 [10:55:50]New connection [10:55:50]New thread 3066936676 created [10:55:50]Thread 3067080036 joined [10:55:50]Waiting for new connection... [10:55:50] Sock 9.Parse request [10:55:50]Sock 9.Check first char [10:55:50]Sock 9.First char is OK [10:55:50]request: POST /json_proto HTTP/1.0 [10:55:50]Method: POST [10:55:50]URL: /json_proto [10:55:50]Method is POST - this is cgi request [10:55:50]url: /json_proto [10:55:50]query_string will be loaded in cgi processing [10:55:50]execute_cgi json_proto POST (null) [10:55:50]execute_cgi path=json_proto method=POST [10:55:50]POST find Content-Length [10:55:50]Host: 172.17.46.131:8080 [10:55:50]Content-Length: 801 [10:55:50]Content-Type: application/json [10:55:50] [10:55:50]POST finish read [10:55:50]Found Content-Length = 801 [10:55:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:50]execute_script... [10:55: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)412738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:50]POST & json_proto [10:55:50]process_json_proto [10:55:50]json parsed OK: [10:55:50]protocol is kg_v1.0 [10:55:50]action value=close_receipt [10:55:50]process_action close_receipt [10:55:50]cmd_close_receipt [10:55:50]MH_GetDate [10:55:50]Write to MH i2c: F0 00 00 6A 07 60 [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: F0 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: F0 09 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: F0 09 00 6A 07 00 B6 5B B8 67 7E 41 4F 65 0C [10:55:50]GetLastDocTimeStamp 1740135220 [10:55:50]current date 1740135350 [10:55:50]FM_GetShiftState [10:55:50]SAM_PROTO_GetShiftState [10:55:50]wFMCommunicate request_size=4 [10:55:50]MH_SAM_APDU [10:55:50]CAPDU: 80 13 01 00 [10:55:50]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [10:55:50]Write i2c OK [10:55:50]MH_I2C_Read... [10:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:50]Read from MH i2c: E2 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 0E 00 [10:55:50]MH_I2C_Read... [10:55:50]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 DD [10:55:50]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:55:50]wFMCommunicate OK [10:55:50]SAM_PROTO_GetShiftState done [10:55:50]FM_GetShiftState done [10:55:50]opened in 1740098043 [10:55:50]opened+sec_in_day 1740184443 [10:55:50]quantity*price = 70042 [10:55:50]sum+1 = 70043 [10:55:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.42 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 75 21.02.2025 10:55 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187581 ФПД: 205877307837043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187581&fm=205877307837043&tin=02508201610067®Number=0000000000091857&sum=70042 [10:55:51]StoreToDocumentArchive [10:55:51]shift 649 fd 187581 [10:55:51]save to /storage/0649/doc_00187581 [10:55:51]save last doc name /storage/0649/doc_00187581 to /storage/kkm_last_doc_name [10:55:51]save OK [10:55:51]Clear old archive folders... [10:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:51]tlvbuf is 01E9A6D0 [10:55:51]SAM_PROTO_ClearQueue [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 09 00 00 [10:55:51]Write to MH i2c: E2 08 00 78 07 80 09 00 00 00 00 00 00 F1 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [10:55:51]RAPDU: 90 00 [10:55:51]wFMCommunicate OK [10:55:51]SAM_PROTO_ClearQueue done [10:55:51]KKMCreateOFDPacket [10:55:51]OFDProtocolAddRootSTLVToBuf [10:55:51]FM_MakeSignedData [10:55:51]FM_MakeSignedData [10:55:51]SAM_PROTO_SignData [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 0D 01 02 [10:55:51]Write to MH i2c: E2 08 00 79 07 80 0D 01 02 00 00 00 00 F9 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [10:55:51]RAPDU: 90 00 [10:55:51]wFMCommunicate OK [10:55:51]wFMCommunicate request_size=255 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B6 5B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD DC 02 00 35 04 06 00 BB [10:55:51]Write to MH i2c: E2 02 01 7A 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B6 5B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD DC 02 00 35 04 06 00 BB 00 00 F3 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [10:55:51]RAPDU: 90 00 [10:55:51]wFMCommunicate OK [10:55:51]wFMCommunicate request_size=10 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 0D 02 02 05 3E 8B CD 0A 73 [10:55:51]Write to MH i2c: E2 0D 00 7B 07 80 0D 02 02 05 00 3E 8B CD 0A 73 00 00 19 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [10:55:51]RAPDU: 90 00 [10:55:51]wFMCommunicate OK [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 0D 03 02 [10:55:51]Write to MH i2c: E2 08 00 7C 07 80 0D 03 02 00 00 00 00 FE [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 0B 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 0B 00 7C 07 00 08 27 F8 A9 60 3D 3C 04 90 00 AC [10:55:51]RAPDU: 08 27 F8 A9 60 3D 3C 04 90 00 [10:55:51]wFMCommunicate OK [10:55:51]SAM_PROTO_SignData done [10:55:51]FM_MakeSignedData done [10:55:51]CreateOFDProtocolMessage [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 11 00 00 [10:55:51]Write to MH i2c: E2 08 00 7D 07 80 11 00 00 00 00 00 00 FE [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 17 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 17 00 7D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [10:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:55:51]wFMCommunicate OK [10:55:51]CreateOFDProtocolMessage done [10:55:51]OFDSenderStorePacket 187581 [10:55:51]StoreOFDPacket docnum=187581 [10:55:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 E1 07 01 90 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B6 5B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD DC 02 00 35 04 06 00 BB 3E 8B CD 0A 73 08 27 F8 A9 60 3D 3C 04 [10:55:51]CheckFolder [10:55:51]dirname=/storage/ofd_packets [10:55:51]CheckFolder done [10:55:51]ProducePacketName [10:55:51]name=ofd_packets/00187581 [10:55:51]NVStorageSaveData ofd_packets/00187581 [10:55:51]File name is /storage/ofd_packets/00187581 [10:55:51]Write 301 bytes [10:55:51]NVStorageSaveData done [10:55:51]OFDSenderStorePacket done [10:55:51]KKMCreateOFDPacket done [10:55:51]NVStorageSaveData kkm_last_timestamp [10:55:51]File name is /storage/kkm_last_timestamp [10:55:51]Write 4 bytes [10:55:51]NVStorageSaveData done [10:55:51]ExternCall_PrintAddStr [10:55:51]wPrintStart [10:55:51]Write to MH i2c: 01 00 00 7E 07 85 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 07 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 07 00 7E 07 00 00 00 00 00 FF 0F 9A [10:55:51]RasterBufferAndPrint [10:55:51]line Счет N : (1)412738 [10:55:51]line ИНН: 02508201610067 [10:55:51]line Контрольно-Кассовый Чек [10:55:51]line ПРОДАЖА [10:55:51]line ТРК (МРК, ГНК) : 32 [10:55:51]line Товар: 2710124130 [10:55:51]line Аи-92-К-2 [10:55:51]line 10.910 * 64.20 [10:55:51]line = 700.42 [10:55:51]line НДС 12% НСП 1% [10:55:51]line > о реализуемом товаре [10:55:51]line ИТОГО: 700.42 [10:55:51]line НСП 1% : 6.20 [10:55:51]line НДС 12% : 74.38 [10:55:51]line Наличными: 0.00 [10:55:51]line Безнал.: 700.42 [10:55:51]line Место: АЗС № 92 "Партнер Нефть" [10:55:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:55:51]line СНО: Общий режим [10:55:51]line Чек 75 21.02.2025 10:55 [10:55:51]line Смена: 649 ФФД: 1.0 [10:55:51]line ЗНМ: 0300000118 [10:55:51]line РНМ: 0000000000091857 [10:55:51]line Версия ККМ: 001 [10:55:51]line Платежная система: O! деньги [10:55:51]line ФМ: 0000000000871826 [10:55:51]line ФД: 187581 [10:55:51]line ФПД: 205877307837043 [10:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187581&fm=205877307837043&tin=02508201610067®Number=0000000000091857&sum=70042 [10:55:52]OFD Sender: Processing packet 187581 [packets to send 49, broken 48] [10:55:52]ProducePacketName [10:55:52]name=ofd_packets/00187581 [10:55:52]OFD Sender: To server: pG, [10:55:52]CommunicateWithHost lk.salyk.kg:30040 [10:55:52]ConnectInit lk.salyk.kg [10:55:52]written 0, free lines is 4095 [10:55:52]Connected sock=10 [10:55:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 E1 07 01 90 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B6 5B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD DC 02 00 35 04 06 00 BB 3E 8B CD 0A 73 08 27 F8 A9 60 3D 3C 04 [10:55:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 68 39 47 00 7D D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD DC 02 00 F4 03 04 00 04 02 B8 67 B6 04 01 00 00 E4 91 50 36 F7 19 7E D0 [10:55:52]CommunicateWithHost err = 0 [10:55:52]CheckOFDResponse [10:55:52]1017 (14) - 77093643461234 [10:55:52]1041 (16) - 0000000000871826 [10:55:52]1040 (4) - 187581 [10:55:52]1012 (4) - 21.02.2025 04:33 [10:55:52]1206 (1) - 0 [10:55:52]OFD Sender: Remove packet 187581 [10:55:52]ProducePacketName [10:55:52]name=ofd_packets/00187581 [10:55:52]NVStorageDeleteData [10:55:52]Write to MH i2c: 01 00 00 A8 07 AF [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: 01 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: 01 07 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: 01 07 00 A8 07 00 00 00 00 00 10 0D D3 [10:55:52]RasterBufferAndPrint [10:55:52]line [10:55:52]line [10:55:52]line [10:55:52]line [10:55:52]line [10:55:52]written 0, free lines is 3352 [10:55:52]MH_Cut [10:55:52]Write to MH i2c: D1 01 00 AF 07 01 88 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: D1 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: D1 01 00 [10:55:52]MH_I2C_Read... [10:55:52]Read from MH i2c: D1 01 00 AF 07 00 87 [10:55:52]Write to MH i2c: 01 00 00 B0 07 B7 [10:55:52]Write i2c OK [10:55:52]MH_I2C_Read... [10:55:53]OFD Sender: No OFD packet to send [10:55:53]*** Cut start [10:55:53]*** Partial cut [10:55:53]*** CUTSNS_PIN = 1 [10:55:53]*** CUTSNS_PIN = 0 [10:55:53]*** Brake cut motor [10:55:54]Read from MH i2c: 01 [10:55:54]MH_I2C_Read... [10:55:54]*** Stop cut motor [10:55:54]*** Cut end [10:55:54]Read from MH i2c: 01 07 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [10:55:54]process_action close_receipt done [10:55:54]requested_data is exist [10:55:54]produce_requested_data [10:55:54]requested_item fm.sn is exist - process it [10:55:54]wFMCommunicate request_size=4 [10:55:54]MH_SAM_APDU [10:55:54]CAPDU: 80 11 00 00 [10:55:54]Write to MH i2c: E2 08 00 B1 07 80 11 00 00 00 00 00 00 32 [10:55:54]Write i2c OK [10:55:54]MH_I2C_Read... [10:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:54]Read from MH i2c: E2 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 17 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 17 00 B1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [10:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:55:54]wFMCommunicate OK [10:55:54]requested_item fd.num is exist - process it [10:55:54]SAM_PROTO_GetFieldsCounters [10:55:54]wFMCommunicate request_size=4 [10:55:54]MH_SAM_APDU [10:55:54]CAPDU: 80 13 00 00 [10:55:54]Write to MH i2c: E2 08 00 B2 07 80 13 00 00 00 00 00 00 35 [10:55:54]Write i2c OK [10:55:54]MH_I2C_Read... [10:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:54]Read from MH i2c: E2 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 62 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 62 00 B2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BD DC 02 00 0E 04 04 00 89 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 62 [10:55:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BD DC 02 00 0E 04 04 00 89 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:55:54]wFMCommunicate OK [10:55:54]SAM_PROTO_GetFieldsCounters done [10:55:54]requested_item shift.num is exist - process it [10:55:54]requested_item shift.opened is exist - process it [10:55:54]req_shift_opened [10:55:54]FM_GetShiftState [10:55:54]SAM_PROTO_GetShiftState [10:55:54]wFMCommunicate request_size=4 [10:55:54]MH_SAM_APDU [10:55:54]CAPDU: 80 13 01 00 [10:55:54]Write to MH i2c: E2 08 00 B3 07 80 13 01 00 00 00 00 00 37 [10:55:54]Write i2c OK [10:55:54]MH_I2C_Read... [10:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:54]Read from MH i2c: E2 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 0E 00 [10:55:54]MH_I2C_Read... [10:55:54]Read from MH i2c: E2 0E 00 B3 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 25 [10:55:54]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:55:54]wFMCommunicate OK [10:55:54]SAM_PROTO_GetShiftState done [10:55:54]FM_GetShiftState done [10:55:54]req_shift_opened done [10:55:54]requested_item shift.open_date is exist - process it [10:55:54]req_shift_open_date [10:55:54]req_shift_open_date done [10:55:54]produce_requested_data done [10:55:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187581,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:55:54]process_action_free close_receipt [10:55:54]json_value_free [10:55:54]json_value_free done [10:55:54]process_json_proto returns [10:55:54]Send response to host [10:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187581,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:55:54]free response buf [10:55:54]execute_script done [10:55:54]execute_script returns [10:55:54]free content buf [10:55:54]Sock 9.Close socket [10:55:54]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]accept exits with 8 [10:57:23]New connection [10:57:23]New thread 3067080036 created [10:57:23]Thread 3066936676 joined [10:57:23]Waiting for new connection... [10:57:23] Sock 8.Parse request [10:57:23]Sock 8.Check first char [10:57:23]Sock 8.First char is OK [10:57:23]request: POST /json_proto HTTP/1.0 [10:57:23]Method: POST [10:57:23]URL: /json_proto [10:57:23]Method is POST - this is cgi request [10:57:23]url: /json_proto [10:57:23]query_string will be loaded in cgi processing [10:57:23]execute_cgi json_proto POST (null) [10:57:23]execute_cgi path=json_proto method=POST [10:57:23]POST find Content-Length [10:57:23]Host: 172.17.46.131:8080 [10:57:23]Content-Length: 754 [10:57:23]Content-Type: application/json [10:57:23] [10:57:23]POST finish read [10:57:23]Found Content-Length = 754 [10:57:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075438", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:23]execute_script... [10:57:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075438", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:23]POST & json_proto [10:57:23]process_json_proto [10:57:23]json parsed OK: [10:57:23]protocol is kg_v1.0 [10:57:23]action value=close_receipt [10:57:23]process_action close_receipt [10:57:23]cmd_close_receipt [10:57:23]MH_GetDate [10:57:23]Write to MH i2c: F0 00 00 B4 07 AA [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: F0 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: F0 09 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: F0 09 00 B4 07 00 13 5C B8 67 7E 41 4F 65 B4 [10:57:23]GetLastDocTimeStamp 1740135350 [10:57:23]current date 1740135443 [10:57:23]FM_GetShiftState [10:57:23]SAM_PROTO_GetShiftState [10:57:23]wFMCommunicate request_size=4 [10:57:23]MH_SAM_APDU [10:57:23]CAPDU: 80 13 01 00 [10:57:23]Write to MH i2c: E2 08 00 B5 07 80 13 01 00 00 00 00 00 39 [10:57:23]Write i2c OK [10:57:23]MH_I2C_Read... [10:57:23]OFD Sender: No OFD packet to send [10:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:23]Read from MH i2c: E2 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 0E 00 [10:57:23]MH_I2C_Read... [10:57:23]Read from MH i2c: E2 0E 00 B5 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 27 [10:57:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:57:23]wFMCommunicate OK [10:57:23]SAM_PROTO_GetShiftState done [10:57:23]FM_GetShiftState done [10:57:23]opened in 1740098043 [10:57:23]opened+sec_in_day 1740184443 [10:57:23]quantity*price = 0 [10:57:23]sum+1 = 1 [10:57:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 76 21.02.2025 10:57 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30075438 ФМ: 0000000000871826 ФД: 187582 ФПД: 11760196933858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105723&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187582&fm=11760196933858&tin=02508201610067®Number=0000000000091857&sum=0 [10:57:24]StoreToDocumentArchive [10:57:24]shift 649 fd 187582 [10:57:24]save to /storage/0649/doc_00187582 [10:57:24]save last doc name /storage/0649/doc_00187582 to /storage/kkm_last_doc_name [10:57:24]save OK [10:57:24]Clear old archive folders... [10:57:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:24]tlvbuf is 01E913E0 [10:57:24]SAM_PROTO_ClearQueue [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 09 00 00 [10:57:24]Write to MH i2c: E2 08 00 C2 07 80 09 00 00 00 00 00 00 3B [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 03 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [10:57:24]RAPDU: 90 00 [10:57:24]wFMCommunicate OK [10:57:24]SAM_PROTO_ClearQueue done [10:57:24]KKMCreateOFDPacket [10:57:24]OFDProtocolAddRootSTLVToBuf [10:57:24]FM_MakeSignedData [10:57:24]FM_MakeSignedData [10:57:24]SAM_PROTO_SignData [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 0D 01 02 [10:57:24]Write to MH i2c: E2 08 00 C3 07 80 0D 01 02 00 00 00 00 43 [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 03 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [10:57:24]RAPDU: 90 00 [10:57:24]wFMCommunicate OK [10:57:24]wFMCommunicate request_size=255 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 13 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE DC 02 00 35 04 06 00 0A [10:57:24]Write to MH i2c: E2 02 01 C4 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 13 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE DC 02 00 35 04 06 00 0A 00 00 6D [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 03 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [10:57:24]RAPDU: 90 00 [10:57:24]wFMCommunicate OK [10:57:24]wFMCommunicate request_size=10 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 0D 02 02 05 B2 22 5C 58 E2 [10:57:24]Write to MH i2c: E2 0D 00 C5 07 80 0D 02 02 05 00 B2 22 5C 58 E2 00 00 BA [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 03 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [10:57:24]RAPDU: 90 00 [10:57:24]wFMCommunicate OK [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 0D 03 02 [10:57:24]Write to MH i2c: E2 08 00 C6 07 80 0D 03 02 00 00 00 00 48 [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:24]Read from MH i2c: E2 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 0B 00 [10:57:24]MH_I2C_Read... [10:57:24]Read from MH i2c: E2 0B 00 C6 07 00 50 86 94 23 4C 5C 10 BD 90 00 4B [10:57:24]RAPDU: 50 86 94 23 4C 5C 10 BD 90 00 [10:57:24]wFMCommunicate OK [10:57:24]SAM_PROTO_SignData done [10:57:24]FM_MakeSignedData done [10:57:24]CreateOFDProtocolMessage [10:57:24]wFMCommunicate request_size=4 [10:57:24]MH_SAM_APDU [10:57:24]CAPDU: 80 11 00 00 [10:57:24]Write to MH i2c: E2 08 00 C7 07 80 11 00 00 00 00 00 00 48 [10:57:24]Write i2c OK [10:57:24]MH_I2C_Read... [10:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:25]Read from MH i2c: E2 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 17 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: E2 17 00 C7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [10:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:57:25]wFMCommunicate OK [10:57:25]CreateOFDProtocolMessage done [10:57:25]OFDSenderStorePacket 187582 [10:57:25]StoreOFDPacket docnum=187582 [10:57:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8A 00 07 01 FF 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 13 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE DC 02 00 35 04 06 00 0A B2 22 5C 58 E2 50 86 94 23 4C 5C 10 BD [10:57:25]CheckFolder [10:57:25]dirname=/storage/ofd_packets [10:57:25]CheckFolder done [10:57:25]ProducePacketName [10:57:25]name=ofd_packets/00187582 [10:57:25]NVStorageSaveData ofd_packets/00187582 [10:57:25]File name is /storage/ofd_packets/00187582 [10:57:25]Write 301 bytes [10:57:25]NVStorageSaveData done [10:57:25]OFDSenderStorePacket done [10:57:25]KKMCreateOFDPacket done [10:57:25]NVStorageSaveData kkm_last_timestamp [10:57:25]File name is /storage/kkm_last_timestamp [10:57:25]Write 4 bytes [10:57:25]NVStorageSaveData done [10:57:25]ExternCall_PrintAddStr [10:57:25]wPrintStart [10:57:25]Write to MH i2c: 01 00 00 C8 07 CF [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 07 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 07 00 C8 07 00 00 00 00 00 FF 0F E4 [10:57:25]RasterBufferAndPrint [10:57:25]line Счет N : (1)412739 [10:57:25]line ИНН: 02508201610067 [10:57:25]line Контрольно-Кассовый Чек [10:57:25]line ПРОДАЖА [10:57:25]line ТРК (МРК, ГНК) : 12 [10:57:25]line Товар: 2710124130 [10:57:25]line Аи-92-К-2 [10:57:25]line 50.000 * 0.00 [10:57:25]line = 0.00 [10:57:25]line НДС 12% НСП 1% [10:57:25]line > о реализуемом товаре [10:57:25]line ИТОГО: 0.00 [10:57:25]line НСП 1% : 0.00 [10:57:25]line НДС 12% : 0.00 [10:57:25]line Наличными: 0.00 [10:57:25]line Безнал.: 0.00 [10:57:25]line Место: АЗС № 92 "Партнер Нефть" [10:57:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:57:25]line СНО: Общий режим [10:57:25]line Чек 76 21.02.2025 10:57 [10:57:25]line Смена: 649 ФФД: 1.0 [10:57:25]line ЗНМ: 0300000118 [10:57:25]line РНМ: 0000000000091857 [10:57:25]line Версия ККМ: 001 [10:57:25]line Талоны: ТК ГПНА Online [10:57:25]line 30075438 [10:57:25]line ФМ: 0000000000871826 [10:57:25]line ФД: 187582 [10:57:25]line ФПД: 11760196933858 [10:57:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105723&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187582&fm=11760196933858&tin=02508201610067®Number=0000000000091857&sum=0 [10:57:25]written 0, free lines is 4095 [10:57:25]OFD Sender: Processing packet 187582 [packets to send 49, broken 48] [10:57:25]ProducePacketName [10:57:25]name=ofd_packets/00187582 [10:57:25]OFD Sender: To server: pG, [10:57:25]CommunicateWithHost lk.salyk.kg:30040 [10:57:25]ConnectInit lk.salyk.kg [10:57:25]Connected sock=10 [10:57:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8A 00 07 01 FF 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 13 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE DC 02 00 35 04 06 00 0A B2 22 5C 58 E2 50 86 94 23 4C 5C 10 BD [10:57:25]Write to MH i2c: 01 00 00 F2 07 F9 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 07 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: 01 07 00 F2 07 00 00 00 00 00 05 0D 12 [10:57:25]RasterBufferAndPrint [10:57:25]line [10:57:25]line [10:57:25]line [10:57:25]line [10:57:25]line [10:57:25]written 0, free lines is 3339 [10:57:25]MH_Cut [10:57:25]Write to MH i2c: D1 01 00 F9 07 01 D2 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: D1 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: D1 01 00 [10:57:25]MH_I2C_Read... [10:57:25]Read from MH i2c: D1 01 00 F9 07 00 D1 [10:57:25]Write to MH i2c: 01 00 00 FA 07 01 [10:57:25]Write i2c OK [10:57:25]MH_I2C_Read... [10:57:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0F E5 47 00 64 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE DC 02 00 F4 03 04 00 61 02 B8 67 B6 04 01 00 00 D5 FA C8 83 41 07 26 F2 [10:57:25]CommunicateWithHost err = 0 [10:57:25]CheckOFDResponse [10:57:25]1017 (14) - 77093643461234 [10:57:25]1041 (16) - 0000000000871826 [10:57:25]1040 (4) - 187582 [10:57:25]1012 (4) - 21.02.2025 04:34 [10:57:25]1206 (1) - 0 [10:57:25]OFD Sender: Remove packet 187582 [10:57:25]ProducePacketName [10:57:25]name=ofd_packets/00187582 [10:57:25]NVStorageDeleteData [10:57:26]OFD Sender: No OFD packet to send [10:57:26]*** Cut start [10:57:26]*** Partial cut [10:57:26]*** CUTSNS_PIN = 1 [10:57:26]*** CUTSNS_PIN = 0 [10:57:26]*** Brake cut motor [10:57:26]Read from MH i2c: 01 [10:57:26]MH_I2C_Read... [10:57:26]*** Stop cut motor [10:57:26]*** Cut end [10:57:26]Read from MH i2c: 01 07 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: 01 07 00 FA 07 00 00 00 00 00 FF 0F 16 [10:57:26]process_action close_receipt done [10:57:26]requested_data is exist [10:57:26]produce_requested_data [10:57:26]requested_item fm.sn is exist - process it [10:57:26]wFMCommunicate request_size=4 [10:57:26]MH_SAM_APDU [10:57:26]CAPDU: 80 11 00 00 [10:57:26]Write to MH i2c: E2 08 00 FB 07 80 11 00 00 00 00 00 00 7C [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:26]Read from MH i2c: E2 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 17 00 [10:57:26]MH_I2C_Read... [10:57:26]Read from MH i2c: E2 17 00 FB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CF [10:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:57:26]wFMCommunicate OK [10:57:26]requested_item fd.num is exist - process it [10:57:26]SAM_PROTO_GetFieldsCounters [10:57:26]wFMCommunicate request_size=4 [10:57:26]MH_SAM_APDU [10:57:26]CAPDU: 80 13 00 00 [10:57:26]Write to MH i2c: E2 08 00 FC 07 80 13 00 00 00 00 00 00 7F [10:57:26]Write i2c OK [10:57:26]MH_I2C_Read... [10:57:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:27]Read from MH i2c: E2 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 62 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 62 00 FC 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BE DC 02 00 0E 04 04 00 89 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 B0 [10:57:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BE DC 02 00 0E 04 04 00 89 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:57:27]wFMCommunicate OK [10:57:27]SAM_PROTO_GetFieldsCounters done [10:57:27]requested_item shift.num is exist - process it [10:57:27]requested_item shift.opened is exist - process it [10:57:27]req_shift_opened [10:57:27]FM_GetShiftState [10:57:27]SAM_PROTO_GetShiftState [10:57:27]wFMCommunicate request_size=4 [10:57:27]MH_SAM_APDU [10:57:27]CAPDU: 80 13 01 00 [10:57:27]Write to MH i2c: E2 08 00 FD 07 80 13 01 00 00 00 00 00 81 [10:57:27]Write i2c OK [10:57:27]MH_I2C_Read... [10:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:27]Read from MH i2c: E2 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 0E 00 [10:57:27]MH_I2C_Read... [10:57:27]Read from MH i2c: E2 0E 00 FD 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6F [10:57:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:57:27]wFMCommunicate OK [10:57:27]SAM_PROTO_GetShiftState done [10:57:27]FM_GetShiftState done [10:57:27]req_shift_opened done [10:57:27]requested_item shift.open_date is exist - process it [10:57:27]req_shift_open_date [10:57:27]req_shift_open_date done [10:57:27]produce_requested_data done [10:57:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187582,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:57:27]process_action_free close_receipt [10:57:27]json_value_free [10:57:27]json_value_free done [10:57:27]process_json_proto returns [10:57:27]Send response to host [10:57:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187582,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:57:27]free response buf [10:57:27]execute_script done [10:57:27]execute_script returns [10:57:27]free content buf [10:57:27]Sock 8.Close socket [10:57:27]Sock 8.Thread stoped [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]accept exits with 9 [10:58:46]New connection [10:58:46]New thread 3066936676 created [10:58:46]Thread 3067080036 joined [10:58:46]Waiting for new connection... [10:58:46] Sock 9.Parse request [10:58:46]Sock 9.Check first char [10:58:46]Sock 9.First char is OK [10:58:46]request: POST /json_proto HTTP/1.0 [10:58:46]Method: POST [10:58:46]URL: /json_proto [10:58:46]Method is POST - this is cgi request [10:58:46]url: /json_proto [10:58:46]query_string will be loaded in cgi processing [10:58:46]execute_cgi json_proto POST (null) [10:58:46]execute_cgi path=json_proto method=POST [10:58:46]POST find Content-Length [10:58:46]Host: 172.17.46.131:8080 [10:58:46]Content-Length: 682 [10:58:46]Content-Type: application/json [10:58:46] [10:58:46]POST finish read [10:58:46]Found Content-Length = 682 [10:58:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:46]execute_script... [10: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)412740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:46]POST & json_proto [10:58:46]process_json_proto [10:58:46]json parsed OK: [10:58:46]protocol is kg_v1.0 [10:58:46]action value=close_receipt [10:58:46]process_action close_receipt [10:58:46]cmd_close_receipt [10:58:46]MH_GetDate [10:58:46]Write to MH i2c: F0 00 00 FE 07 F4 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: F0 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: F0 09 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: F0 09 00 FE 07 00 66 5C B8 67 7E 41 4F 65 51 [10:58:46]GetLastDocTimeStamp 1740135443 [10:58:46]current date 1740135526 [10:58:46]FM_GetShiftState [10:58:46]SAM_PROTO_GetShiftState [10:58:46]wFMCommunicate request_size=4 [10:58:46]MH_SAM_APDU [10:58:46]CAPDU: 80 13 01 00 [10:58:46]Write to MH i2c: E2 08 00 FF 07 80 13 01 00 00 00 00 00 83 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:46]Read from MH i2c: E2 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 0E 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: E2 0E 00 FF 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 71 [10:58:46]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:58:46]wFMCommunicate OK [10:58:46]SAM_PROTO_GetShiftState done [10:58:46]FM_GetShiftState done [10:58:46]opened in 1740098043 [10:58:46]opened+sec_in_day 1740184443 [10:58:46]quantity*price = 100023 [10:58:46]sum+1 = 100025 [10:58:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 77 21.02.2025 10:58 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187583 ФПД: 196990492410497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105846&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187583&fm=196990492410497&tin=02508201610067®Number=0000000000091857&sum=100000 [10:58:47]StoreToDocumentArchive [10:58:47]shift 649 fd 187583 [10:58:47]save to /storage/0649/doc_00187583 [10:58:47]save last doc name /storage/0649/doc_00187583 to /storage/kkm_last_doc_name [10:58:47]save OK [10:58:47]Clear old archive folders... [10:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:47]tlvbuf is 01EA84D0 [10:58:47]SAM_PROTO_ClearQueue [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 09 00 00 [10:58:47]Write to MH i2c: E2 08 00 0C 08 80 09 00 00 00 00 00 00 86 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 0C 08 00 90 00 88 [10:58:47]RAPDU: 90 00 [10:58:47]wFMCommunicate OK [10:58:47]SAM_PROTO_ClearQueue done [10:58:47]KKMCreateOFDPacket [10:58:47]OFDProtocolAddRootSTLVToBuf [10:58:47]FM_MakeSignedData [10:58:47]FM_MakeSignedData [10:58:47]SAM_PROTO_SignData [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 0D 01 02 [10:58:47]Write to MH i2c: E2 08 00 0D 08 80 0D 01 02 00 00 00 00 8E [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [10:58:47]RAPDU: 90 00 [10:58:47]wFMCommunicate OK [10:58:47]wFMCommunicate request_size=255 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 66 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF DC 02 00 35 04 06 00 B3 [10:58:47]Write to MH i2c: E2 02 01 0E 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 66 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF DC 02 00 35 04 06 00 B3 00 00 94 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [10:58:47]RAPDU: 90 00 [10:58:47]wFMCommunicate OK [10:58:47]wFMCommunicate request_size=10 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 0D 02 02 05 29 6C 53 02 81 [10:58:47]Write to MH i2c: E2 0D 00 0F 08 80 0D 02 02 05 00 29 6C 53 02 81 00 00 06 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [10:58:47]RAPDU: 90 00 [10:58:47]wFMCommunicate OK [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 0D 03 02 [10:58:47]Write to MH i2c: E2 08 00 10 08 80 0D 03 02 00 00 00 00 93 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0B 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0B 00 10 08 00 32 F3 25 EC CC 97 65 06 90 00 98 [10:58:47]RAPDU: 32 F3 25 EC CC 97 65 06 90 00 [10:58:47]wFMCommunicate OK [10:58:47]SAM_PROTO_SignData done [10:58:47]FM_MakeSignedData done [10:58:47]CreateOFDProtocolMessage [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 11 00 00 [10:58:47]Write to MH i2c: E2 08 00 11 08 80 11 00 00 00 00 00 00 93 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 17 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 17 00 11 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E6 [10:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:58:47]wFMCommunicate OK [10:58:47]CreateOFDProtocolMessage done [10:58:47]OFDSenderStorePacket 187583 [10:58:47]StoreOFDPacket docnum=187583 [10:58:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 50 F7 07 01 E5 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 66 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF DC 02 00 35 04 06 00 B3 29 6C 53 02 81 32 F3 25 EC CC 97 65 06 [10:58:47]CheckFolder [10:58:47]dirname=/storage/ofd_packets [10:58:47]CheckFolder done [10:58:47]ProducePacketName [10:58:47]name=ofd_packets/00187583 [10:58:47]NVStorageSaveData ofd_packets/00187583 [10:58:47]File name is /storage/ofd_packets/00187583 [10:58:47]Write 301 bytes [10:58:47]NVStorageSaveData done [10:58:47]OFDSenderStorePacket done [10:58:47]KKMCreateOFDPacket done [10:58:47]NVStorageSaveData kkm_last_timestamp [10:58:47]File name is /storage/kkm_last_timestamp [10:58:47]Write 4 bytes [10:58:47]NVStorageSaveData done [10:58:47]ExternCall_PrintAddStr [10:58:47]wPrintStart [10:58:47]Write to MH i2c: 01 00 00 12 08 1A [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 07 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 07 00 12 08 00 00 00 00 00 FF 0F 2F [10:58:47]RasterBufferAndPrint [10:58:47]line Счет N : (1)412740 [10:58:47]line ИНН: 02508201610067 [10:58:47]line Контрольно-Кассовый Чек [10:58:47]line ПРОДАЖА [10:58:47]line ТРК (МРК, ГНК) : 32 [10:58:47]line Товар: 2710124130 [10:58:47]line Аи-92-К-2 [10:58:47]line 15.580 * 64.20 [10:58:47]line = 1000.24 [10:58:47]line НДС 12% НСП 1% [10:58:47]line > о реализуемом товаре [10:58:47]line ОКРУГЛЕНИЕ: -0.24 [10:58:47]line ИТОГО: 1000.00 [10:58:47]line Внесено: 1000.00 [10:58:47]line СДАЧА: 0.00 [10:58:47]line НСП 1% : 8.85 [10:58:47]line НДС 12% : 106.22 [10:58:47]line Наличными: 1000.00 [10:58:47]line Безнал.: 0.00 [10:58:47]line Место: АЗС № 92 "Партнер Нефть" [10:58:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:58:47]line СНО: Общий режим [10:58:47]line Чек 77 21.02.2025 10:58 [10:58:47]line Смена: 649 ФФД: 1.0 [10:58:47]line ЗНМ: 0300000118 [10:58:47]line РНМ: 0000000000091857 [10:58:47]line Версия ККМ: 001 [10:58:47]line ФМ: 0000000000871826 [10:58:47]line ФД: 187583 [10:58:47]line ФПД: 196990492410497 [10:58:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T105846&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187583&fm=196990492410497&tin=02508201610067®Number=0000000000091857&sum=100000 [10:58:48]OFD Sender: Processing packet 187583 [packets to send 49, broken 48] [10:58:48]ProducePacketName [10:58:48]name=ofd_packets/00187583 [10:58:48]OFD Sender: To server: pG, [10:58:48]CommunicateWithHost lk.salyk.kg:30040 [10:58:48]ConnectInit lk.salyk.kg [10:58:48]written 0, free lines is 4095 [10:58:48]Connected sock=10 [10:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 50 F7 07 01 E5 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 66 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF DC 02 00 35 04 06 00 B3 29 6C 53 02 81 32 F3 25 EC CC 97 65 06 [10:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 11 83 47 00 90 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 38 32 36 10 04 04 00 BF DC 02 00 F4 03 04 00 B4 02 B8 67 B6 04 01 00 00 8A 0C 18 D8 AC DA 16 AE [10:58:48]CommunicateWithHost err = 0 [10:58:48]CheckOFDResponse [10:58:48]1017 (14) - 77093643461234 [10:58:48]1041 (16) - 0000000000871826 [10:58:48]1040 (4) - 187583 [10:58:48]1012 (4) - 21.02.2025 04:36 [10:58:48]1206 (1) - 0 [10:58:48]OFD Sender: Remove packet 187583 [10:58:48]ProducePacketName [10:58:48]name=ofd_packets/00187583 [10:58:48]NVStorageDeleteData [10:58:48]Write to MH i2c: 01 00 00 3D 08 45 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 07 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 07 00 3D 08 00 00 00 00 00 03 0D 5C [10:58:48]RasterBufferAndPrint [10:58:48]line [10:58:48]line [10:58:48]line [10:58:48]line [10:58:48]line [10:58:48]written 0, free lines is 3337 [10:58:48]MH_Cut [10:58:48]Write to MH i2c: D1 01 00 44 08 01 1E [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: D1 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: D1 01 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: D1 01 00 44 08 00 1D [10:58:48]Write to MH i2c: 01 00 00 45 08 4D [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:49]OFD Sender: No OFD packet to send [10:58:49]*** Cut start [10:58:49]*** Partial cut [10:58:49]*** CUTSNS_PIN = 1 [10:58:49]*** CUTSNS_PIN = 0 [10:58:49]*** Brake cut motor [10:58:49]Read from MH i2c: 01 [10:58:49]MH_I2C_Read... [10:58:49]*** Stop cut motor [10:58:49]*** Cut end [10:58:49]Read from MH i2c: 01 07 00 [10:58:49]MH_I2C_Read... [10:58:49]Read from MH i2c: 01 07 00 45 08 00 00 00 00 00 FF 0F 62 [10:58:49]process_action close_receipt done [10:58:49]requested_data is exist [10:58:49]produce_requested_data [10:58:49]requested_item fm.sn is exist - process it [10:58:49]wFMCommunicate request_size=4 [10:58:49]MH_SAM_APDU [10:58:49]CAPDU: 80 11 00 00 [10:58:49]Write to MH i2c: E2 08 00 46 08 80 11 00 00 00 00 00 00 C8 [10:58:49]Write i2c OK [10:58:49]MH_I2C_Read... [10:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:50]Read from MH i2c: E2 [10:58:50]MH_I2C_Read... [10:58:50]Read from MH i2c: E2 17 00 [10:58:50]MH_I2C_Read... [10:58:50]Read from MH i2c: E2 17 00 46 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1B [10:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:58:50]wFMCommunicate OK [10:58:50]requested_item fd.num is exist - process it [10:58:50]SAM_PROTO_GetFieldsCounters [10:58:50]wFMCommunicate request_size=4 [10:58:50]MH_SAM_APDU [10:58:50]CAPDU: 80 13 00 00 [10:58:50]Write to MH i2c: E2 08 00 47 08 80 13 00 00 00 00 00 00 CB [10:58:50]Write i2c OK [10:58:50]MH_I2C_Read... [10:58:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:50]Read from MH i2c: E2 [10:58:50]MH_I2C_Read... [10:58:50]Read from MH i2c: E2 62 00 [10:58:50]MH_I2C_Read... [10:58:50]Read from MH i2c: E2 62 00 47 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BF DC 02 00 0E 04 04 00 89 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 00 [10:58:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BF DC 02 00 0E 04 04 00 89 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:58:50]wFMCommunicate OK [10:58:50]SAM_PROTO_GetFieldsCounters done [10:58:50]requested_item shift.num is exist - process it [10:58:50]requested_item shift.opened is exist - process it [10:58:50]req_shift_opened [10:58:50]FM_GetShiftState [10:58:50]SAM_PROTO_GetShiftState [10:58:50]wFMCommunicate request_size=4 [10:58:50]MH_SAM_APDU [10:58:50]CAPDU: 80 13 01 00 [10:58:50]Write to MH i2c: E2 08 00 48 08 80 13 01 00 00 00 00 00 CD [10:58:50]Write i2c OK [10:58:50]MH_I2C_Read... [10:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:50]Read from MH i2c: E2 [10:58:50]MH_I2C_Read... [10:58:50]Read from MH i2c: E2 0E 00 [10:58:50]MH_I2C_Read... [10:58:50]Read from MH i2c: E2 0E 00 48 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 BB [10:58:50]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [10:58:50]wFMCommunicate OK [10:58:50]SAM_PROTO_GetShiftState done [10:58:50]FM_GetShiftState done [10:58:50]req_shift_opened done [10:58:50]requested_item shift.open_date is exist - process it [10:58:50]req_shift_open_date [10:58:50]req_shift_open_date done [10:58:50]produce_requested_data done [10:58:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187583,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [10:58:50]process_action_free close_receipt [10:58:50]json_value_free [10:58:50]json_value_free done [10:58:50]process_json_proto returns [10:58:50]Send response to host [10:58:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187583,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [10:58:50]free response buf [10:58:50]execute_script done [10:58:50]execute_script returns [10:58:50]free content buf [10:58:50]Sock 9.Close socket [10:58:50]Sock 9.Thread stoped [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:42]accept exits with 8 [11:00:42]New connection [11:00:42]New thread 3067080036 created [11:00:42]Thread 3066936676 joined [11:00:42]Waiting for new connection... [11:00:42] Sock 8.Parse request [11:00:42]Sock 8.Check first char [11:00:42]Sock 8.First char is OK [11:00:42]request: POST /json_proto HTTP/1.0 [11:00:42]Method: POST [11:00:42]URL: /json_proto [11:00:42]Method is POST - this is cgi request [11:00:42]url: /json_proto [11:00:42]query_string will be loaded in cgi processing [11:00:42]execute_cgi json_proto POST (null) [11:00:42]execute_cgi path=json_proto method=POST [11:00:42]POST find Content-Length [11:00:42]Host: 172.17.46.131:8080 [11:00:42]Content-Length: 792 [11:00:42]Content-Type: application/json [11:00:42] [11:00:42]POST finish read [11:00:42]Found Content-Length = 792 [11:00:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:42]execute_script... [11:00: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)412741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:42]POST & json_proto [11:00:42]process_json_proto [11:00:42]json parsed OK: [11:00:42]protocol is kg_v1.0 [11:00:42]action value=close_receipt [11:00:42]process_action close_receipt [11:00:42]cmd_close_receipt [11:00:42]MH_GetDate [11:00:42]Write to MH i2c: F0 00 00 49 08 40 [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: F0 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: F0 09 00 [11:00:42]MH_I2C_Read... [11:00:42]Read from MH i2c: F0 09 00 49 08 00 DB 5C B8 67 7E 41 4F 65 12 [11:00:42]GetLastDocTimeStamp 1740135526 [11:00:42]current date 1740135643 [11:00:42]FM_GetShiftState [11:00:42]SAM_PROTO_GetShiftState [11:00:42]wFMCommunicate request_size=4 [11:00:42]MH_SAM_APDU [11:00:42]CAPDU: 80 13 01 00 [11:00:42]Write to MH i2c: E2 08 00 4A 08 80 13 01 00 00 00 00 00 CF [11:00:42]Write i2c OK [11:00:42]MH_I2C_Read... [11:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:43]Read from MH i2c: E2 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 0E 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 0E 00 4A 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 BD [11:00:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:00:43]wFMCommunicate OK [11:00:43]SAM_PROTO_GetShiftState done [11:00:43]FM_GetShiftState done [11:00:43]opened in 1740098043 [11:00:43]opened+sec_in_day 1740184443 [11:00:43]quantity*price = 0 [11:00:43]sum+1 = 1 [11:00:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 78 21.02.2025 11:00 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03821 ФМ: 0000000000871826 ФД: 187584 ФПД: 165901120432044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T110043&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187584&fm=165901120432044&tin=02508201610067®Number=0000000000091857&sum=0 [11:00:44]StoreToDocumentArchive [11:00:44]shift 649 fd 187584 [11:00:44]save to /storage/0649/doc_00187584 [11:00:44]save last doc name /storage/0649/doc_00187584 to /storage/kkm_last_doc_name [11:00:44]save OK [11:00:44]Clear old archive folders... [11:00:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:44]tlvbuf is 01E915F0 [11:00:44]SAM_PROTO_ClearQueue [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 09 00 00 [11:00:44]Write to MH i2c: E2 08 00 57 08 80 09 00 00 00 00 00 00 D1 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 03 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 03 00 57 08 00 90 00 D3 [11:00:44]RAPDU: 90 00 [11:00:44]wFMCommunicate OK [11:00:44]SAM_PROTO_ClearQueue done [11:00:44]KKMCreateOFDPacket [11:00:44]OFDProtocolAddRootSTLVToBuf [11:00:44]FM_MakeSignedData [11:00:44]FM_MakeSignedData [11:00:44]SAM_PROTO_SignData [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 0D 01 02 [11:00:44]Write to MH i2c: E2 08 00 58 08 80 0D 01 02 00 00 00 00 D9 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 03 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [11:00:44]RAPDU: 90 00 [11:00:44]wFMCommunicate OK [11:00:44]wFMCommunicate request_size=255 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DB 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 DC 02 00 35 04 06 00 96 [11:00:44]Write to MH i2c: E2 02 01 59 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 DB 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 DC 02 00 35 04 06 00 96 00 00 B6 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 03 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [11:00:44]RAPDU: 90 00 [11:00:44]wFMCommunicate OK [11:00:44]wFMCommunicate request_size=10 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 0D 02 02 05 E2 DD 59 E7 AC [11:00:44]Write to MH i2c: E2 0D 00 5A 08 80 0D 02 02 05 00 E2 DD 59 E7 AC 00 00 91 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 03 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [11:00:44]RAPDU: 90 00 [11:00:44]wFMCommunicate OK [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 0D 03 02 [11:00:44]Write to MH i2c: E2 08 00 5B 08 80 0D 03 02 00 00 00 00 DE [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 0B 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 0B 00 5B 08 00 D1 AB 4C F0 0E 0E F5 F6 90 00 9E [11:00:44]RAPDU: D1 AB 4C F0 0E 0E F5 F6 90 00 [11:00:44]wFMCommunicate OK [11:00:44]SAM_PROTO_SignData done [11:00:44]FM_MakeSignedData done [11:00:44]CreateOFDProtocolMessage [11:00:44]wFMCommunicate request_size=4 [11:00:44]MH_SAM_APDU [11:00:44]CAPDU: 80 11 00 00 [11:00:44]Write to MH i2c: E2 08 00 5C 08 80 11 00 00 00 00 00 00 DE [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:44]Read from MH i2c: E2 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 17 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: E2 17 00 5C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 31 [11:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:00:44]wFMCommunicate OK [11:00:44]CreateOFDProtocolMessage done [11:00:44]OFDSenderStorePacket 187584 [11:00:44]StoreOFDPacket docnum=187584 [11:00:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A2 17 07 01 AE 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 DB 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 DC 02 00 35 04 06 00 96 E2 DD 59 E7 AC D1 AB 4C F0 0E 0E F5 F6 [11:00:44]CheckFolder [11:00:44]dirname=/storage/ofd_packets [11:00:44]CheckFolder done [11:00:44]ProducePacketName [11:00:44]name=ofd_packets/00187584 [11:00:44]NVStorageSaveData ofd_packets/00187584 [11:00:44]File name is /storage/ofd_packets/00187584 [11:00:44]Write 301 bytes [11:00:44]NVStorageSaveData done [11:00:44]OFDSenderStorePacket done [11:00:44]KKMCreateOFDPacket done [11:00:44]NVStorageSaveData kkm_last_timestamp [11:00:44]File name is /storage/kkm_last_timestamp [11:00:44]Write 4 bytes [11:00:44]NVStorageSaveData done [11:00:44]ExternCall_PrintAddStr [11:00:44]wPrintStart [11:00:44]Write to MH i2c: 01 00 00 5D 08 65 [11:00:44]Write i2c OK [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: 01 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: 01 07 00 [11:00:44]MH_I2C_Read... [11:00:44]Read from MH i2c: 01 07 00 5D 08 00 00 00 00 00 FF 0F 7A [11:00:44]RasterBufferAndPrint [11:00:44]line Счет N : (1)412741 [11:00:44]line ИНН: 02508201610067 [11:00:44]line Контрольно-Кассовый Чек [11:00:44]line ПРОДАЖА [11:00:44]line ТРК (МРК, ГНК) : 12 [11:00:44]line Товар: 2710124130 [11:00:44]line Аи-92-К-2 [11:00:44]line 20.000 * 0.00 [11:00:44]line = 0.00 [11:00:44]line НДС 12% НСП 1% [11:00:44]line > о реализуемом товаре [11:00:44]line ИТОГО: 0.00 [11:00:44]line НСП 1% : 0.00 [11:00:44]line НДС 12% : 0.00 [11:00:44]line Наличными: 0.00 [11:00:44]line Безнал.: 0.00 [11:00:44]line Место: АЗС № 92 "Партнер Нефть" [11:00:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:00:44]line СНО: Общий режим [11:00:44]line Чек 78 21.02.2025 11:00 [11:00:44]line Смена: 649 ФФД: 1.0 [11:00:44]line ЗНМ: 0300000118 [11:00:44]line РНМ: 0000000000091857 [11:00:44]line Версия ККМ: 001 [11:00:44]line Талоны: Топливная Карта [11:00:44]line 03821 [11:00:44]line ФМ: 0000000000871826 [11:00:44]line ФД: 187584 [11:00:44]line ФПД: 165901120432044 [11:00:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T110043&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187584&fm=165901120432044&tin=02508201610067®Number=0000000000091857&sum=0 [11:00:44]written 0, free lines is 4095 [11:00:44]OFD Sender: Processing packet 187584 [packets to send 49, broken 48] [11:00:44]ProducePacketName [11:00:44]name=ofd_packets/00187584 [11:00:44]OFD Sender: To server: pG, [11:00:44]CommunicateWithHost lk.salyk.kg:30040 [11:00:44]ConnectInit lk.salyk.kg [11:00:44]Connected sock=10 [11:00:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A2 17 07 01 AE 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 DB 5C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 DC 02 00 35 04 06 00 96 E2 DD 59 E7 AC D1 AB 4C F0 0E 0E F5 F6 [11:00:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6A 1F 47 00 7F CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 DC 02 00 F4 03 04 00 29 03 B8 67 B6 04 01 00 00 88 BC CF 3A 73 94 B5 A1 [11:00:45]CommunicateWithHost err = 0 [11:00:45]CheckOFDResponse [11:00:45]1017 (14) - 77093643461234 [11:00:45]1041 (16) - 0000000000871826 [11:00:45]1040 (4) - 187584 [11:00:45]1012 (4) - 21.02.2025 04:38 [11:00:45]1206 (1) - 0 [11:00:45]OFD Sender: Remove packet 187584 [11:00:45]ProducePacketName [11:00:45]name=ofd_packets/00187584 [11:00:45]NVStorageDeleteData [11:00:45]Write to MH i2c: 01 00 00 87 08 8F [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: 01 07 00 87 08 00 00 00 00 00 13 0D B6 [11:00:45]RasterBufferAndPrint [11:00:45]line [11:00:45]line [11:00:45]line [11:00:45]line [11:00:45]line [11:00:45]written 0, free lines is 3353 [11:00:45]MH_Cut [11:00:45]Write to MH i2c: D1 01 00 8E 08 01 68 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: D1 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: D1 01 00 [11:00:45]MH_I2C_Read... [11:00:45]Read from MH i2c: D1 01 00 8E 08 00 67 [11:00:45]Write to MH i2c: 01 00 00 8F 08 97 [11:00:45]Write i2c OK [11:00:45]MH_I2C_Read... [11:00:45]OFD Sender: No OFD packet to send [11:00:45]*** Cut start [11:00:45]*** Partial cut [11:00:45]*** CUTSNS_PIN = 1 [11:00:45]*** CUTSNS_PIN = 0 [11:00:46]*** Brake cut motor [11:00:46]Read from MH i2c: 01 [11:00:46]MH_I2C_Read... [11:00:46]*** Stop cut motor [11:00:46]*** Cut end [11:00:46]Read from MH i2c: 01 07 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 FF 0F AC [11:00:46]process_action close_receipt done [11:00:46]requested_data is exist [11:00:46]produce_requested_data [11:00:46]requested_item fm.sn is exist - process it [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 11 00 00 [11:00:46]Write to MH i2c: E2 08 00 90 08 80 11 00 00 00 00 00 00 12 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 17 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 17 00 90 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 65 [11:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:00:46]wFMCommunicate OK [11:00:46]requested_item fd.num is exist - process it [11:00:46]SAM_PROTO_GetFieldsCounters [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 13 00 00 [11:00:46]Write to MH i2c: E2 08 00 91 08 80 13 00 00 00 00 00 00 15 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 62 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 62 00 91 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C0 DC 02 00 0E 04 04 00 89 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 4E [11:00:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C0 DC 02 00 0E 04 04 00 89 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 [11:00:46]wFMCommunicate OK [11:00:46]SAM_PROTO_GetFieldsCounters done [11:00:46]requested_item shift.num is exist - process it [11:00:46]requested_item shift.opened is exist - process it [11:00:46]req_shift_opened [11:00:46]FM_GetShiftState [11:00:46]SAM_PROTO_GetShiftState [11:00:46]wFMCommunicate request_size=4 [11:00:46]MH_SAM_APDU [11:00:46]CAPDU: 80 13 01 00 [11:00:46]Write to MH i2c: E2 08 00 92 08 80 13 01 00 00 00 00 00 17 [11:00:46]Write i2c OK [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 [11:00:46]MH_I2C_Read... [11:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:46]Read from MH i2c: E2 0E 00 [11:00:46]MH_I2C_Read... [11:00:46]Read from MH i2c: E2 0E 00 92 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 05 [11:00:46]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:00:46]wFMCommunicate OK [11:00:46]SAM_PROTO_GetShiftState done [11:00:46]FM_GetShiftState done [11:00:46]req_shift_opened done [11:00:46]requested_item shift.open_date is exist - process it [11:00:46]req_shift_open_date [11:00:46]req_shift_open_date done [11:00:46]produce_requested_data done [11:00:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187584,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:00:46]process_action_free close_receipt [11:00:46]json_value_free [11:00:46]json_value_free done [11:00:46]process_json_proto returns [11:00:46]Send response to host [11:00:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187584,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:00:46]free response buf [11:00:46]execute_script done [11:00:46]execute_script returns [11:00:46]free content buf [11:00:46]Sock 8.Close socket [11:00:46]Sock 8.Thread stoped [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:00]accept exits with 9 [11:02:00]New connection [11:02:00]New thread 3066936676 created [11:02:00]Thread 3067080036 joined [11:02:00]Waiting for new connection... [11:02:00] Sock 9.Parse request [11:02:00]Sock 9.Check first char [11:02:00]Sock 9.First char is OK [11:02:00]request: POST /json_proto HTTP/1.0 [11:02:00]Method: POST [11:02:00]URL: /json_proto [11:02:00]Method is POST - this is cgi request [11:02:00]url: /json_proto [11:02:00]query_string will be loaded in cgi processing [11:02:00]execute_cgi json_proto POST (null) [11:02:00]execute_cgi path=json_proto method=POST [11:02:00]POST find Content-Length [11:02:00]Host: 172.17.46.131:8080 [11:02:00]Content-Length: 642 [11:02:00]Content-Type: application/json [11:02:00] [11:02:00]POST finish read [11:02:00]Found Content-Length = 642 [11:02:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 30.000, "sum" : 1926.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1926.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:00]execute_script... [11: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)412742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 30.000, "sum" : 1926.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1926.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:00]POST & json_proto [11:02:00]process_json_proto [11:02:00]json parsed OK: [11:02:00]protocol is kg_v1.0 [11:02:00]action value=close_receipt [11:02:00]process_action close_receipt [11:02:00]cmd_close_receipt [11:02:00]MH_GetDate [11:02:00]Write to MH i2c: F0 00 00 93 08 8A [11:02:00]Write i2c OK [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: F0 [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: F0 09 00 [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: F0 09 00 93 08 00 29 5D B8 67 7E 41 4F 65 AB [11:02:00]GetLastDocTimeStamp 1740135643 [11:02:00]current date 1740135721 [11:02:00]FM_GetShiftState [11:02:00]SAM_PROTO_GetShiftState [11:02:00]wFMCommunicate request_size=4 [11:02:00]MH_SAM_APDU [11:02:00]CAPDU: 80 13 01 00 [11:02:00]Write to MH i2c: E2 08 00 94 08 80 13 01 00 00 00 00 00 19 [11:02:00]Write i2c OK [11:02:00]MH_I2C_Read... [11:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:00]Read from MH i2c: E2 [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: E2 0E 00 [11:02:00]MH_I2C_Read... [11:02:00]Read from MH i2c: E2 0E 00 94 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 07 [11:02:00]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:02:00]wFMCommunicate OK [11:02:00]SAM_PROTO_GetShiftState done [11:02:00]FM_GetShiftState done [11:02:00]opened in 1740098043 [11:02:00]opened+sec_in_day 1740184443 [11:02:00]quantity*price = 192600 [11:02:00]sum+1 = 192601 [11:02:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1926.00 НСП 1% : 17.04 НДС 12% : 204.53 Наличными: 1926.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 79 21.02.2025 11:02 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187585 ФПД: 104627091075843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T110201&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187585&fm=104627091075843&tin=02508201610067®Number=0000000000091857&sum=192600 [11:02:02]StoreToDocumentArchive [11:02:02]shift 649 fd 187585 [11:02:02]save to /storage/0649/doc_00187585 [11:02:02]save last doc name /storage/0649/doc_00187585 to /storage/kkm_last_doc_name [11:02:02]save OK [11:02:02]Clear old archive folders... [11:02:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:02]tlvbuf is 01E350E0 [11:02:02]SAM_PROTO_ClearQueue [11:02:02]wFMCommunicate request_size=4 [11:02:02]MH_SAM_APDU [11:02:02]CAPDU: 80 09 00 00 [11:02:02]Write to MH i2c: E2 08 00 A1 08 80 09 00 00 00 00 00 00 1B [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:02]Read from MH i2c: E2 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [11:02:02]RAPDU: 90 00 [11:02:02]wFMCommunicate OK [11:02:02]SAM_PROTO_ClearQueue done [11:02:02]KKMCreateOFDPacket [11:02:02]OFDProtocolAddRootSTLVToBuf [11:02:02]FM_MakeSignedData [11:02:02]FM_MakeSignedData [11:02:02]SAM_PROTO_SignData [11:02:02]wFMCommunicate request_size=4 [11:02:02]MH_SAM_APDU [11:02:02]CAPDU: 80 0D 01 02 [11:02:02]Write to MH i2c: E2 08 00 A2 08 80 0D 01 02 00 00 00 00 23 [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:02]Read from MH i2c: E2 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [11:02:02]RAPDU: 90 00 [11:02:02]wFMCommunicate OK [11:02:02]wFMCommunicate request_size=255 [11:02:02]MH_SAM_APDU [11:02:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 58 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 4F 00 00 00 00 07 04 06 00 58 F0 02 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 29 5D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 DC 02 00 35 04 06 00 5F [11:02:02]Write to MH i2c: E2 02 01 A3 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 58 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 4F 00 00 00 00 07 04 06 00 58 F0 02 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 29 5D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 DC 02 00 35 04 06 00 5F 00 00 3E [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:02]Read from MH i2c: E2 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [11:02:02]RAPDU: 90 00 [11:02:02]wFMCommunicate OK [11:02:02]wFMCommunicate request_size=10 [11:02:02]MH_SAM_APDU [11:02:02]CAPDU: 80 0D 02 02 05 28 64 98 F3 03 [11:02:02]Write to MH i2c: E2 0D 00 A4 08 80 0D 02 02 05 00 28 64 98 F3 03 00 00 4A [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:02]Read from MH i2c: E2 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [11:02:02]RAPDU: 90 00 [11:02:02]wFMCommunicate OK [11:02:02]wFMCommunicate request_size=4 [11:02:02]MH_SAM_APDU [11:02:02]CAPDU: 80 0D 03 02 [11:02:02]Write to MH i2c: E2 08 00 A5 08 80 0D 03 02 00 00 00 00 28 [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:02]Read from MH i2c: E2 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 0B 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 0B 00 A5 08 00 CB 70 29 01 A5 F1 B1 7D 90 00 52 [11:02:02]RAPDU: CB 70 29 01 A5 F1 B1 7D 90 00 [11:02:02]wFMCommunicate OK [11:02:02]SAM_PROTO_SignData done [11:02:02]FM_MakeSignedData done [11:02:02]CreateOFDProtocolMessage [11:02:02]wFMCommunicate request_size=4 [11:02:02]MH_SAM_APDU [11:02:02]CAPDU: 80 11 00 00 [11:02:02]Write to MH i2c: E2 08 00 A6 08 80 11 00 00 00 00 00 00 28 [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:02]Read from MH i2c: E2 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 17 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: E2 17 00 A6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7B [11:02:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:02:02]wFMCommunicate OK [11:02:02]CreateOFDProtocolMessage done [11:02:02]OFDSenderStorePacket 187585 [11:02:02]StoreOFDPacket docnum=187585 [11:02:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CD B2 07 01 DA CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 58 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 4F 00 00 00 00 07 04 06 00 58 F0 02 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 29 5D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 DC 02 00 35 04 06 00 5F 28 64 98 F3 03 CB 70 29 01 A5 F1 B1 7D [11:02:02]CheckFolder [11:02:02]dirname=/storage/ofd_packets [11:02:02]CheckFolder done [11:02:02]ProducePacketName [11:02:02]name=ofd_packets/00187585 [11:02:02]NVStorageSaveData ofd_packets/00187585 [11:02:02]File name is /storage/ofd_packets/00187585 [11:02:02]Write 301 bytes [11:02:02]NVStorageSaveData done [11:02:02]OFDSenderStorePacket done [11:02:02]KKMCreateOFDPacket done [11:02:02]NVStorageSaveData kkm_last_timestamp [11:02:02]File name is /storage/kkm_last_timestamp [11:02:02]Write 4 bytes [11:02:02]NVStorageSaveData done [11:02:02]OFD Sender: Processing packet 187585 [packets to send 49, broken 48] [11:02:02]ProducePacketName [11:02:02]name=ofd_packets/00187585 [11:02:02]OFD Sender: To server: pG, [11:02:02]CommunicateWithHost lk.salyk.kg:30040 [11:02:02]ConnectInit lk.salyk.kg [11:02:02]ExternCall_PrintAddStr [11:02:02]wPrintStart [11:02:02]Write to MH i2c: 01 00 00 A7 08 AF [11:02:02]Write i2c OK [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: 01 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: 01 07 00 [11:02:02]MH_I2C_Read... [11:02:02]Read from MH i2c: 01 07 00 A7 08 00 00 00 00 00 FF 0F C4 [11:02:02]RasterBufferAndPrint [11:02:02]line Счет N : (1)412742 [11:02:02]line ИНН: 02508201610067 [11:02:02]line Контрольно-Кассовый Чек [11:02:02]line ПРОДАЖА [11:02:02]line ТРК (МРК, ГНК) : 42 [11:02:02]line Товар: 2710124130 [11:02:02]line Аи-92-К-2 [11:02:02]line 30.000 * 64.20 [11:02:02]line = 1926.00 [11:02:02]line НДС 12% НСП 1% [11:02:02]line > о реализуемом товаре [11:02:02]line ИТОГО: 1926.00 [11:02:02]line НСП 1% : 17.04 [11:02:02]line НДС 12% : 204.53 [11:02:02]line Наличными: 1926.00 [11:02:02]line Безнал.: 0.00 [11:02:02]line Место: АЗС № 92 "Партнер Нефть" [11:02:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:02:02]line СНО: Общий режим [11:02:02]line Чек 79 21.02.2025 11:02 [11:02:02]line Смена: 649 ФФД: 1.0 [11:02:02]line ЗНМ: 0300000118 [11:02:02]line РНМ: 0000000000091857 [11:02:02]line Версия ККМ: 001 [11:02:02]line ФМ: 0000000000871826 [11:02:02]line ФД: 187585 [11:02:02]line ФПД: 104627091075843 [11:02:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T110201&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187585&fm=104627091075843&tin=02508201610067®Number=0000000000091857&sum=192600 [11:02:02]written 0, free lines is 4095 [11:02:03]Write to MH i2c: 01 00 00 CF 08 D7 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 07 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 1E 0D 09 [11:02:03]RasterBufferAndPrint [11:02:03]line [11:02:03]line [11:02:03]line [11:02:03]line [11:02:03]line [11:02:03]written 0, free lines is 3364 [11:02:03]MH_Cut [11:02:03]Write to MH i2c: D1 01 00 D6 08 01 B0 [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: D1 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: D1 01 00 [11:02:03]MH_I2C_Read... [11:02:03]Read from MH i2c: D1 01 00 D6 08 00 AF [11:02:03]Write to MH i2c: 01 00 00 D7 08 DF [11:02:03]Write i2c OK [11:02:03]MH_I2C_Read... [11:02:04]*** Cut start [11:02:04]*** Partial cut [11:02:04]*** CUTSNS_PIN = 1 [11:02:04]*** CUTSNS_PIN = 0 [11:02:04]*** Brake cut motor [11:02:04]Read from MH i2c: 01 [11:02:04]MH_I2C_Read... [11:02:04]*** Stop cut motor [11:02:04]*** Cut end [11:02:04]Read from MH i2c: 01 07 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 FF 0F F4 [11:02:04]process_action close_receipt done [11:02:04]requested_data is exist [11:02:04]produce_requested_data [11:02:04]requested_item fm.sn is exist - process it [11:02:04]wFMCommunicate request_size=4 [11:02:04]MH_SAM_APDU [11:02:04]CAPDU: 80 11 00 00 [11:02:04]Write to MH i2c: E2 08 00 D8 08 80 11 00 00 00 00 00 00 5A [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:04]Read from MH i2c: E2 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 17 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 17 00 D8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [11:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:02:04]wFMCommunicate OK [11:02:04]requested_item fd.num is exist - process it [11:02:04]SAM_PROTO_GetFieldsCounters [11:02:04]wFMCommunicate request_size=4 [11:02:04]MH_SAM_APDU [11:02:04]CAPDU: 80 13 00 00 [11:02:04]Write to MH i2c: E2 08 00 D9 08 80 13 00 00 00 00 00 00 5D [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:04]Read from MH i2c: E2 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 62 00 [11:02:04]MH_I2C_Read... [11:02:04]Read from MH i2c: E2 62 00 D9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C1 DC 02 00 0E 04 04 00 89 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 9A [11: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C1 DC 02 00 0E 04 04 00 89 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 [11:02:04]wFMCommunicate OK [11:02:04]SAM_PROTO_GetFieldsCounters done [11:02:04]requested_item shift.num is exist - process it [11:02:04]requested_item shift.opened is exist - process it [11:02:04]req_shift_opened [11:02:04]FM_GetShiftState [11:02:04]SAM_PROTO_GetShiftState [11:02:04]wFMCommunicate request_size=4 [11:02:04]MH_SAM_APDU [11:02:04]CAPDU: 80 13 01 00 [11:02:04]Write to MH i2c: E2 08 00 DA 08 80 13 01 00 00 00 00 00 5F [11:02:04]Write i2c OK [11:02:04]MH_I2C_Read... [11:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:05]Read from MH i2c: E2 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 0E 00 [11:02:05]MH_I2C_Read... [11:02:05]Read from MH i2c: E2 0E 00 DA 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4D [11:02:05]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:02:05]wFMCommunicate OK [11:02:05]SAM_PROTO_GetShiftState done [11:02:05]FM_GetShiftState done [11:02:05]req_shift_opened done [11:02:05]requested_item shift.open_date is exist - process it [11:02:05]req_shift_open_date [11:02:05]req_shift_open_date done [11:02:05]produce_requested_data done [11:02:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187585,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:02:05]process_action_free close_receipt [11:02:05]json_value_free [11:02:05]json_value_free done [11:02:05]process_json_proto returns [11:02:05]Send response to host [11:02:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187585,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:02:05]free response buf [11:02:05]execute_script done [11:02:05]execute_script returns [11:02:05]free content buf [11:02:05]Sock 9.Close socket [11:02:05]Sock 9.Thread stoped [11:04:13]ConnectInit Can't connect to host [11:04:13]CommunicateWithHost connect error [11:04:13]CommunicateWithHost err = -1 [11:04:13]OFD Sender: Server communicate error [11:04:18]OFD Sender: Processing packet 187585 [packets to send 49, broken 48] [11:04:18]ProducePacketName [11:04:18]name=ofd_packets/00187585 [11:04:18]OFD Sender: To server: pG, [11:04:18]CommunicateWithHost lk.salyk.kg:30040 [11:04:18]ConnectInit lk.salyk.kg [11:04:18]Connected sock=9 [11:04:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CD B2 07 01 DA CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 58 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 4F 00 00 00 00 07 04 06 00 58 F0 02 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 29 5D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 DC 02 00 35 04 06 00 5F 28 64 98 F3 03 CB 70 29 01 A5 F1 B1 7D [11:04:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 48 BF 47 00 79 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 DC 02 00 F4 03 04 00 FF 03 B8 67 B6 04 01 00 00 0F DB 45 AD 06 82 8C D0 [11:04:18]CommunicateWithHost err = 0 [11:04:18]CheckOFDResponse [11:04:18]1017 (14) - 77093643461234 [11:04:18]1041 (16) - 0000000000871826 [11:04:18]1040 (4) - 187585 [11:04:18]1012 (4) - 21.02.2025 04:41 [11:04:18]1206 (1) - 0 [11:04:18]OFD Sender: Remove packet 187585 [11:04:18]ProducePacketName [11:04:18]name=ofd_packets/00187585 [11:04:18]NVStorageDeleteData [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:49]accept exits with 8 [11:09:49]New connection [11:09:49]New thread 3067080036 created [11:09:49]Thread 3066936676 joined [11:09:49]Waiting for new connection... [11:09:49] Sock 8.Parse request [11:09:49]Sock 8.Check first char [11:09:49]Sock 8.First char is OK [11:09:49]request: POST /json_proto HTTP/1.0 [11:09:49]Method: POST [11:09:49]URL: /json_proto [11:09:49]Method is POST - this is cgi request [11:09:49]url: /json_proto [11:09:49]query_string will be loaded in cgi processing [11:09:49]execute_cgi json_proto POST (null) [11:09:49]execute_cgi path=json_proto method=POST [11:09:49]POST find Content-Length [11:09:49]Host: 172.17.46.131:8080 [11:09:49]Content-Length: 682 [11:09:49]Content-Type: application/json [11:09:49] [11:09:49]POST finish read [11:09:49]Found Content-Length = 682 [11:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:49]execute_script... [11:09: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)412743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:49]POST & json_proto [11:09:49]process_json_proto [11:09:49]json parsed OK: [11:09:49]protocol is kg_v1.0 [11:09:49]action value=close_receipt [11:09:49]process_action close_receipt [11:09:49]cmd_close_receipt [11:09:49]MH_GetDate [11:09:49]Write to MH i2c: F0 00 00 DB 08 D2 [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: F0 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: F0 09 00 [11:09:49]MH_I2C_Read... [11:09:49]Read from MH i2c: F0 09 00 DB 08 00 FE 5E B8 67 7E 41 4F 65 C9 [11:09:49]GetLastDocTimeStamp 1740135721 [11:09:49]current date 1740136190 [11:09:49]FM_GetShiftState [11:09:49]SAM_PROTO_GetShiftState [11:09:49]wFMCommunicate request_size=4 [11:09:49]MH_SAM_APDU [11:09:49]CAPDU: 80 13 01 00 [11:09:49]Write to MH i2c: E2 08 00 DC 08 80 13 01 00 00 00 00 00 61 [11:09:49]Write i2c OK [11:09:49]MH_I2C_Read... [11:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:50]Read from MH i2c: E2 [11:09:50]MH_I2C_Read... [11:09:50]Read from MH i2c: E2 0E 00 [11:09:50]MH_I2C_Read... [11:09:50]Read from MH i2c: E2 0E 00 DC 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4F [11:09:50]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:09:50]wFMCommunicate OK [11:09:50]SAM_PROTO_GetShiftState done [11:09:50]FM_GetShiftState done [11:09:50]opened in 1740098043 [11:09:50]opened+sec_in_day 1740184443 [11:09:50]quantity*price = 100012 [11:09:50]sum+1 = 100014 [11:09:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 80 21.02.2025 11:09 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187586 ФПД: 10386200455984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T110950&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187586&fm=10386200455984&tin=02508201610067®Number=0000000000091857&sum=100000 [11:09:51]StoreToDocumentArchive [11:09:51]shift 649 fd 187586 [11:09:51]save to /storage/0649/doc_00187586 [11:09:51]save last doc name /storage/0649/doc_00187586 to /storage/kkm_last_doc_name [11:09:51]save OK [11:09:51]Clear old archive folders... [11:09:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:51]tlvbuf is 01E992A0 [11:09:51]SAM_PROTO_ClearQueue [11:09:51]wFMCommunicate request_size=4 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 09 00 00 [11:09:51]Write to MH i2c: E2 08 00 E9 08 80 09 00 00 00 00 00 00 63 [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 03 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 03 00 E9 08 00 90 00 65 [11:09:51]RAPDU: 90 00 [11:09:51]wFMCommunicate OK [11:09:51]SAM_PROTO_ClearQueue done [11:09:51]KKMCreateOFDPacket [11:09:51]OFDProtocolAddRootSTLVToBuf [11:09:51]FM_MakeSignedData [11:09:51]FM_MakeSignedData [11:09:51]SAM_PROTO_SignData [11:09:51]wFMCommunicate request_size=4 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 0D 01 02 [11:09:51]Write to MH i2c: E2 08 00 EA 08 80 0D 01 02 00 00 00 00 6B [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 03 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [11:09:51]RAPDU: 90 00 [11:09:51]wFMCommunicate OK [11:09:51]wFMCommunicate request_size=255 [11:09:51]MH_SAM_APDU [11:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FE 5E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DC 02 00 35 04 06 00 09 [11:09:51]Write to MH i2c: E2 02 01 EB 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FE 5E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DC 02 00 35 04 06 00 09 00 00 DB [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 03 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [11:09:51]RAPDU: 90 00 [11:09:51]wFMCommunicate OK [11:09:51]wFMCommunicate request_size=10 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 0D 02 02 05 72 39 C9 EB 30 [11:09:51]Write to MH i2c: E2 0D 00 EC 08 80 0D 02 02 05 00 72 39 C9 EB 30 00 00 07 [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 03 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [11:09:51]RAPDU: 90 00 [11:09:51]wFMCommunicate OK [11:09:51]wFMCommunicate request_size=4 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 0D 03 02 [11:09:51]Write to MH i2c: E2 08 00 ED 08 80 0D 03 02 00 00 00 00 70 [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 0B 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 0B 00 ED 08 00 C2 44 7D 46 93 0E F7 77 90 00 49 [11:09:51]RAPDU: C2 44 7D 46 93 0E F7 77 90 00 [11:09:51]wFMCommunicate OK [11:09:51]SAM_PROTO_SignData done [11:09:51]FM_MakeSignedData done [11:09:51]CreateOFDProtocolMessage [11:09:51]wFMCommunicate request_size=4 [11:09:51]MH_SAM_APDU [11:09:51]CAPDU: 80 11 00 00 [11:09:51]Write to MH i2c: E2 08 00 EE 08 80 11 00 00 00 00 00 00 70 [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:51]Read from MH i2c: E2 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 17 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: E2 17 00 EE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C3 [11:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:09:51]wFMCommunicate OK [11:09:51]CreateOFDProtocolMessage done [11:09:51]OFDSenderStorePacket 187586 [11:09:51]StoreOFDPacket docnum=187586 [11:09:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E1 EF 07 01 39 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FE 5E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DC 02 00 35 04 06 00 09 72 39 C9 EB 30 C2 44 7D 46 93 0E F7 77 [11:09:51]CheckFolder [11:09:51]dirname=/storage/ofd_packets [11:09:51]CheckFolder done [11:09:51]ProducePacketName [11:09:51]name=ofd_packets/00187586 [11:09:51]NVStorageSaveData ofd_packets/00187586 [11:09:51]File name is /storage/ofd_packets/00187586 [11:09:51]Write 301 bytes [11:09:51]NVStorageSaveData done [11:09:51]OFDSenderStorePacket done [11:09:51]KKMCreateOFDPacket done [11:09:51]NVStorageSaveData kkm_last_timestamp [11:09:51]File name is /storage/kkm_last_timestamp [11:09:51]Write 4 bytes [11:09:51]NVStorageSaveData done [11:09:51]ExternCall_PrintAddStr [11:09:51]wPrintStart [11:09:51]Write to MH i2c: 01 00 00 EF 08 F7 [11:09:51]Write i2c OK [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: 01 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: 01 07 00 [11:09:51]MH_I2C_Read... [11:09:51]Read from MH i2c: 01 07 00 EF 08 00 00 00 00 00 FF 0F 0C [11:09:51]RasterBufferAndPrint [11:09:51]line Счет N : (1)412743 [11:09:51]line ИНН: 02508201610067 [11:09:51]line Контрольно-Кассовый Чек [11:09:51]line ПРОДАЖА [11:09:51]line ТРК (МРК, ГНК) : 33 [11:09:51]line Товар: 2710124500 [11:09:51]line Аи-95-К-5 [11:09:51]line 13.910 * 71.90 [11:09:51]line = 1000.13 [11:09:51]line НДС 12% НСП 1% [11:09:51]line > о реализуемом товаре [11:09:51]line ОКРУГЛЕНИЕ: -0.13 [11:09:51]line ИТОГО: 1000.00 [11:09:51]line Внесено: 1000.00 [11:09:51]line СДАЧА: 0.00 [11:09:51]line НСП 1% : 8.85 [11:09:51]line НДС 12% : 106.21 [11:09:51]line Наличными: 1000.00 [11:09:51]line Безнал.: 0.00 [11:09:51]line Место: АЗС № 92 "Партнер Нефть" [11:09:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:09:51]line СНО: Общий режим [11:09:51]line Чек 80 21.02.2025 11:09 [11:09:51]line Смена: 649 ФФД: 1.0 [11:09:51]line ЗНМ: 0300000118 [11:09:51]line РНМ: 0000000000091857 [11:09:51]line Версия ККМ: 001 [11:09:51]line ФМ: 0000000000871826 [11:09:51]line ФД: 187586 [11:09:51]line ФПД: 10386200455984 [11:09:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T110950&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187586&fm=10386200455984&tin=02508201610067®Number=0000000000091857&sum=100000 [11:09:52]OFD Sender: Processing packet 187586 [packets to send 49, broken 48] [11:09:52]ProducePacketName [11:09:52]name=ofd_packets/00187586 [11:09:52]OFD Sender: To server: pG, [11:09:52]CommunicateWithHost lk.salyk.kg:30040 [11:09:52]ConnectInit lk.salyk.kg [11:09:52]written 0, free lines is 4095 [11:09:52]Connected sock=10 [11:09:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E1 EF 07 01 39 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 FE 5E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DC 02 00 35 04 06 00 09 72 39 C9 EB 30 C2 44 7D 46 93 0E F7 77 [11:09:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 50 A8 47 00 0F 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 DC 02 00 F4 03 04 00 4C 05 B8 67 B6 04 01 00 00 65 50 A0 A4 85 D2 87 06 [11:09:52]CommunicateWithHost err = 0 [11:09:52]CheckOFDResponse [11:09:52]1017 (14) - 77093643461234 [11:09:52]1041 (16) - 0000000000871826 [11:09:52]1040 (4) - 187586 [11:09:52]1012 (4) - 21.02.2025 04:47 [11:09:52]1206 (1) - 0 [11:09:52]OFD Sender: Remove packet 187586 [11:09:52]ProducePacketName [11:09:52]name=ofd_packets/00187586 [11:09:52]NVStorageDeleteData [11:09:52]Write to MH i2c: 01 00 00 1A 09 23 [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: 01 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: 01 07 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: 01 07 00 1A 09 00 00 00 00 00 FE 0C 34 [11:09:52]RasterBufferAndPrint [11:09:52]line [11:09:52]line [11:09:52]line [11:09:52]line [11:09:52]line [11:09:52]written 0, free lines is 3332 [11:09:52]MH_Cut [11:09:52]Write to MH i2c: D1 01 00 21 09 01 FC [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: D1 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: D1 01 00 [11:09:52]MH_I2C_Read... [11:09:52]Read from MH i2c: D1 01 00 21 09 00 FB [11:09:52]Write to MH i2c: 01 00 00 22 09 2B [11:09:52]Write i2c OK [11:09:52]MH_I2C_Read... [11:09:52]OFD Sender: No OFD packet to send [11:09:53]*** Cut start [11:09:53]*** Partial cut [11:09:53]*** CUTSNS_PIN = 1 [11:09:53]*** CUTSNS_PIN = 0 [11:09:53]*** Brake cut motor [11:09:53]Read from MH i2c: 01 [11:09:53]MH_I2C_Read... [11:09:53]*** Stop cut motor [11:09:53]*** Cut end [11:09:53]Read from MH i2c: 01 07 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: 01 07 00 22 09 00 00 00 00 00 FF 0F 40 [11:09:53]process_action close_receipt done [11:09:53]requested_data is exist [11:09:53]produce_requested_data [11:09:53]requested_item fm.sn is exist - process it [11:09:53]wFMCommunicate request_size=4 [11:09:53]MH_SAM_APDU [11:09:53]CAPDU: 80 11 00 00 [11:09:53]Write to MH i2c: E2 08 00 23 09 80 11 00 00 00 00 00 00 A6 [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:53]Read from MH i2c: E2 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 17 00 [11:09:53]MH_I2C_Read... [11:09:53]Read from MH i2c: E2 17 00 23 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F9 [11:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:09:53]wFMCommunicate OK [11:09:53]requested_item fd.num is exist - process it [11:09:53]SAM_PROTO_GetFieldsCounters [11:09:53]wFMCommunicate request_size=4 [11:09:53]MH_SAM_APDU [11:09:53]CAPDU: 80 13 00 00 [11:09:53]Write to MH i2c: E2 08 00 24 09 80 13 00 00 00 00 00 00 A9 [11:09:53]Write i2c OK [11:09:53]MH_I2C_Read... [11:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:54]Read from MH i2c: E2 [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: E2 62 00 [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: E2 62 00 24 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C2 DC 02 00 0E 04 04 00 89 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 EA [11:09:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C2 DC 02 00 0E 04 04 00 89 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 [11:09:54]wFMCommunicate OK [11:09:54]SAM_PROTO_GetFieldsCounters done [11:09:54]requested_item shift.num is exist - process it [11:09:54]requested_item shift.opened is exist - process it [11:09:54]req_shift_opened [11:09:54]FM_GetShiftState [11:09:54]SAM_PROTO_GetShiftState [11:09:54]wFMCommunicate request_size=4 [11:09:54]MH_SAM_APDU [11:09:54]CAPDU: 80 13 01 00 [11:09:54]Write to MH i2c: E2 08 00 25 09 80 13 01 00 00 00 00 00 AB [11:09:54]Write i2c OK [11:09:54]MH_I2C_Read... [11:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:54]Read from MH i2c: E2 [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: E2 0E 00 [11:09:54]MH_I2C_Read... [11:09:54]Read from MH i2c: E2 0E 00 25 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 99 [11:09:54]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:09:54]wFMCommunicate OK [11:09:54]SAM_PROTO_GetShiftState done [11:09:54]FM_GetShiftState done [11:09:54]req_shift_opened done [11:09:54]requested_item shift.open_date is exist - process it [11:09:54]req_shift_open_date [11:09:54]req_shift_open_date done [11:09:54]produce_requested_data done [11:09:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187586,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:09:54]process_action_free close_receipt [11:09:54]json_value_free [11:09:54]json_value_free done [11:09:54]process_json_proto returns [11:09:54]Send response to host [11:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187586,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:09:54]free response buf [11:09:54]execute_script done [11:09:54]execute_script returns [11:09:54]free content buf [11:09:54]Sock 8.Close socket [11:09:54]Sock 8.Thread stoped [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]accept exits with 9 [11:10:27]New connection [11:10:27]New thread 3066936676 created [11:10:27]Thread 3067080036 joined [11:10:27]Waiting for new connection... [11:10:27] Sock 9.Parse request [11:10:27]Sock 9.Check first char [11:10:27]Sock 9.First char is OK [11:10:27]request: POST /json_proto HTTP/1.0 [11:10:27]Method: POST [11:10:27]URL: /json_proto [11:10:27]Method is POST - this is cgi request [11:10:27]url: /json_proto [11:10:27]query_string will be loaded in cgi processing [11:10:27]execute_cgi json_proto POST (null) [11:10:27]execute_cgi path=json_proto method=POST [11:10:27]POST find Content-Length [11:10:27]Host: 172.17.46.131:8080 [11:10:27]Content-Length: 677 [11:10:27]Content-Type: application/json [11:10:27] [11:10:27]POST finish read [11:10:27]Found Content-Length = 677 [11:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.550, "sum" : 420.51, "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" ] } } [11:10:27]execute_script... [11:10: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)412744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.550, "sum" : 420.51, "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" ] } } [11:10:27]POST & json_proto [11:10:27]process_json_proto [11:10:27]json parsed OK: [11:10:27]protocol is kg_v1.0 [11:10:27]action value=close_receipt [11:10:27]process_action close_receipt [11:10:27]cmd_close_receipt [11:10:27]MH_GetDate [11:10:27]Write to MH i2c: F0 00 00 26 09 1E [11:10:27]Write i2c OK [11:10:27]MH_I2C_Read... [11:10:27]Read from MH i2c: F0 [11:10:27]MH_I2C_Read... [11:10:27]Read from MH i2c: F0 09 00 [11:10:27]MH_I2C_Read... [11:10:27]Read from MH i2c: F0 09 00 26 09 00 24 5F B8 67 7E 41 4F 65 3C [11:10:27]GetLastDocTimeStamp 1740136190 [11:10:27]current date 1740136228 [11:10:27]FM_GetShiftState [11:10:27]SAM_PROTO_GetShiftState [11:10:27]wFMCommunicate request_size=4 [11:10:27]MH_SAM_APDU [11:10:27]CAPDU: 80 13 01 00 [11:10:27]Write to MH i2c: E2 08 00 27 09 80 13 01 00 00 00 00 00 AD [11:10:27]Write i2c OK [11:10:27]MH_I2C_Read... [11:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:27]Read from MH i2c: E2 [11:10:27]MH_I2C_Read... [11:10:27]Read from MH i2c: E2 0E 00 [11:10:27]MH_I2C_Read... [11:10:27]Read from MH i2c: E2 0E 00 27 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 9B [11:10:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:10:27]wFMCommunicate OK [11:10:27]SAM_PROTO_GetShiftState done [11:10:27]FM_GetShiftState done [11:10:27]opened in 1740098043 [11:10:27]opened+sec_in_day 1740184443 [11:10:27]quantity*price = 42051 [11:10:27]sum+1 = 42052 [11:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.66 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 81 21.02.2025 11:10 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187587 ФПД: 110748189324435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187587&fm=110748189324435&tin=02508201610067®Number=0000000000091857&sum=42000 [11:10:28]StoreToDocumentArchive [11:10:28]shift 649 fd 187587 [11:10:28]save to /storage/0649/doc_00187587 [11:10:28]save last doc name /storage/0649/doc_00187587 to /storage/kkm_last_doc_name [11:10:28]save OK [11:10:28]Clear old archive folders... [11:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:28]tlvbuf is 01EAFE30 [11:10:28]SAM_PROTO_ClearQueue [11:10:28]wFMCommunicate request_size=4 [11:10:28]MH_SAM_APDU [11:10:28]CAPDU: 80 09 00 00 [11:10:28]Write to MH i2c: E2 08 00 34 09 80 09 00 00 00 00 00 00 AF [11:10:28]Write i2c OK [11:10:28]MH_I2C_Read... [11:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [11:10:29]RAPDU: 90 00 [11:10:29]wFMCommunicate OK [11:10:29]SAM_PROTO_ClearQueue done [11:10:29]KKMCreateOFDPacket [11:10:29]OFDProtocolAddRootSTLVToBuf [11:10:29]FM_MakeSignedData [11:10:29]FM_MakeSignedData [11:10:29]SAM_PROTO_SignData [11:10:29]wFMCommunicate request_size=4 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 0D 01 02 [11:10:29]Write to MH i2c: E2 08 00 35 09 80 0D 01 02 00 00 00 00 B7 [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [11:10:29]RAPDU: 90 00 [11:10:29]wFMCommunicate OK [11:10:29]wFMCommunicate request_size=255 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 43 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 72 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 51 00 00 00 F4 03 04 00 24 5F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DC 02 00 35 04 06 00 64 [11:10:29]Write to MH i2c: E2 02 01 36 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 43 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 72 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 51 00 00 00 F4 03 04 00 24 5F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DC 02 00 35 04 06 00 64 00 00 69 [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [11:10:29]RAPDU: 90 00 [11:10:29]wFMCommunicate OK [11:10:29]wFMCommunicate request_size=10 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 0D 02 02 05 B9 92 7B F4 93 [11:10:29]Write to MH i2c: E2 0D 00 37 09 80 0D 02 02 05 00 B9 92 7B F4 93 00 00 11 [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [11:10:29]RAPDU: 90 00 [11:10:29]wFMCommunicate OK [11:10:29]wFMCommunicate request_size=4 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 0D 03 02 [11:10:29]Write to MH i2c: E2 08 00 38 09 80 0D 03 02 00 00 00 00 BC [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 0B 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 0B 00 38 09 00 28 B0 33 A5 F2 0F 8A 37 90 00 2F [11:10:29]RAPDU: 28 B0 33 A5 F2 0F 8A 37 90 00 [11:10:29]wFMCommunicate OK [11:10:29]SAM_PROTO_SignData done [11:10:29]FM_MakeSignedData done [11:10:29]CreateOFDProtocolMessage [11:10:29]wFMCommunicate request_size=4 [11:10:29]MH_SAM_APDU [11:10:29]CAPDU: 80 11 00 00 [11:10:29]Write to MH i2c: E2 08 00 39 09 80 11 00 00 00 00 00 00 BC [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:29]Read from MH i2c: E2 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 17 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: E2 17 00 39 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [11:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:10:29]wFMCommunicate OK [11:10:29]CreateOFDProtocolMessage done [11:10:29]OFDSenderStorePacket 187587 [11:10:29]StoreOFDPacket docnum=187587 [11:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9E E2 07 01 74 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 43 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 72 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 51 00 00 00 F4 03 04 00 24 5F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DC 02 00 35 04 06 00 64 B9 92 7B F4 93 28 B0 33 A5 F2 0F 8A 37 [11:10:29]CheckFolder [11:10:29]dirname=/storage/ofd_packets [11:10:29]CheckFolder done [11:10:29]ProducePacketName [11:10:29]name=ofd_packets/00187587 [11:10:29]NVStorageSaveData ofd_packets/00187587 [11:10:29]File name is /storage/ofd_packets/00187587 [11:10:29]Write 301 bytes [11:10:29]NVStorageSaveData done [11:10:29]OFDSenderStorePacket done [11:10:29]KKMCreateOFDPacket done [11:10:29]NVStorageSaveData kkm_last_timestamp [11:10:29]File name is /storage/kkm_last_timestamp [11:10:29]Write 4 bytes [11:10:29]NVStorageSaveData done [11:10:29]ExternCall_PrintAddStr [11:10:29]wPrintStart [11:10:29]Write to MH i2c: 01 00 00 3A 09 43 [11:10:29]Write i2c OK [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: 01 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: 01 07 00 [11:10:29]MH_I2C_Read... [11:10:29]Read from MH i2c: 01 07 00 3A 09 00 00 00 00 00 FF 0F 58 [11:10:29]RasterBufferAndPrint [11:10:29]line Счет N : (1)412744 [11:10:29]line ИНН: 02508201610067 [11:10:29]line Контрольно-Кассовый Чек [11:10:29]line ПРОДАЖА [11:10:29]line ТРК (МРК, ГНК) : 12 [11:10:29]line Товар: 2710124130 [11:10:29]line Аи-92-К-2 [11:10:29]line 6.550 * 64.20 [11:10:29]line = 420.51 [11:10:29]line НДС 12% НСП 1% [11:10:29]line > о реализуемом товаре [11:10:29]line ОКРУГЛЕНИЕ: -0.51 [11:10:29]line ИТОГО: 420.00 [11:10:29]line Внесено: 420.00 [11:10:29]line СДАЧА: 0.00 [11:10:29]line НСП 1% : 3.72 [11:10:29]line НДС 12% : 44.66 [11:10:29]line Наличными: 420.00 [11:10:29]line Безнал.: 0.00 [11:10:29]line Место: АЗС № 92 "Партнер Нефть" [11:10:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:10:29]line СНО: Общий режим [11:10:29]line Чек 81 21.02.2025 11:10 [11:10:29]line Смена: 649 ФФД: 1.0 [11:10:29]line ЗНМ: 0300000118 [11:10:29]line РНМ: 0000000000091857 [11:10:29]line Версия ККМ: 001 [11:10:29]line ФМ: 0000000000871826 [11:10:29]line ФД: 187587 [11:10:29]line ФПД: 110748189324435 [11:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187587&fm=110748189324435&tin=02508201610067®Number=0000000000091857&sum=42000 [11:10:29]written 0, free lines is 4095 [11:10:29]OFD Sender: Processing packet 187587 [packets to send 49, broken 48] [11:10:29]ProducePacketName [11:10:29]name=ofd_packets/00187587 [11:10:29]OFD Sender: To server: pG, [11:10:29]CommunicateWithHost lk.salyk.kg:30040 [11:10:29]ConnectInit lk.salyk.kg [11:10:29]Connected sock=10 [11:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9E E2 07 01 74 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 96 19 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 43 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 72 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 51 00 00 00 F4 03 04 00 24 5F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DC 02 00 35 04 06 00 64 B9 92 7B F4 93 28 B0 33 A5 F2 0F 8A 37 [11:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 82 D3 47 00 7D E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DC 02 00 F4 03 04 00 72 05 B8 67 B6 04 01 00 00 AD 6F 45 64 9C 08 03 E6 [11:10:30]CommunicateWithHost err = 0 [11:10:30]CheckOFDResponse [11:10:30]1017 (14) - 77093643461234 [11:10:30]1041 (16) - 0000000000871826 [11:10:30]1040 (4) - 187587 [11:10:30]1012 (4) - 21.02.2025 04:47 [11:10:30]1206 (1) - 0 [11:10:30]OFD Sender: Remove packet 187587 [11:10:30]ProducePacketName [11:10:30]name=ofd_packets/00187587 [11:10:30]NVStorageDeleteData [11:10:30]Write to MH i2c: 01 00 00 65 09 6E [11:10:30]Write i2c OK [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: 01 [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: 01 07 00 [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: 01 07 00 65 09 00 00 00 00 00 0A 0D 8C [11:10:30]RasterBufferAndPrint [11:10:30]line [11:10:30]line [11:10:30]line [11:10:30]line [11:10:30]line [11:10:30]written 0, free lines is 3344 [11:10:30]MH_Cut [11:10:30]Write to MH i2c: D1 01 00 6C 09 01 47 [11:10:30]Write i2c OK [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: D1 [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: D1 01 00 [11:10:30]MH_I2C_Read... [11:10:30]Read from MH i2c: D1 01 00 6C 09 00 46 [11:10:30]Write to MH i2c: 01 00 00 6D 09 76 [11:10:30]Write i2c OK [11:10:30]MH_I2C_Read... [11:10:30]OFD Sender: No OFD packet to send [11:10:30]*** Cut start [11:10:30]*** Partial cut [11:10:30]*** CUTSNS_PIN = 1 [11:10:31]*** CUTSNS_PIN = 0 [11:10:31]*** Brake cut motor [11:10:31]Read from MH i2c: 01 [11:10:31]MH_I2C_Read... [11:10:31]*** Stop cut motor [11:10:31]*** Cut end [11:10:31]Read from MH i2c: 01 07 00 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: 01 07 00 6D 09 00 00 00 00 00 FF 0F 8B [11:10:31]process_action close_receipt done [11:10:31]requested_data is exist [11:10:31]produce_requested_data [11:10:31]requested_item fm.sn is exist - process it [11:10:31]wFMCommunicate request_size=4 [11:10:31]MH_SAM_APDU [11:10:31]CAPDU: 80 11 00 00 [11:10:31]Write to MH i2c: E2 08 00 6E 09 80 11 00 00 00 00 00 00 F1 [11:10:31]Write i2c OK [11:10:31]MH_I2C_Read... [11:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:31]Read from MH i2c: E2 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: E2 17 00 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: E2 17 00 6E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [11:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:10:31]wFMCommunicate OK [11:10:31]requested_item fd.num is exist - process it [11:10:31]SAM_PROTO_GetFieldsCounters [11:10:31]wFMCommunicate request_size=4 [11:10:31]MH_SAM_APDU [11:10:31]CAPDU: 80 13 00 00 [11:10:31]Write to MH i2c: E2 08 00 6F 09 80 13 00 00 00 00 00 00 F4 [11:10:31]Write i2c OK [11:10:31]MH_I2C_Read... [11:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:31]Read from MH i2c: E2 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: E2 62 00 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: E2 62 00 6F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C3 DC 02 00 0E 04 04 00 89 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 39 [11:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C3 DC 02 00 0E 04 04 00 89 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 [11:10:31]wFMCommunicate OK [11:10:31]SAM_PROTO_GetFieldsCounters done [11:10:31]requested_item shift.num is exist - process it [11:10:31]requested_item shift.opened is exist - process it [11:10:31]req_shift_opened [11:10:31]FM_GetShiftState [11:10:31]SAM_PROTO_GetShiftState [11:10:31]wFMCommunicate request_size=4 [11:10:31]MH_SAM_APDU [11:10:31]CAPDU: 80 13 01 00 [11:10:31]Write to MH i2c: E2 08 00 70 09 80 13 01 00 00 00 00 00 F6 [11:10:31]Write i2c OK [11:10:31]MH_I2C_Read... [11:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:31]Read from MH i2c: E2 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: E2 0E 00 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: E2 0E 00 70 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E4 [11:10:31]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:10:31]wFMCommunicate OK [11:10:31]SAM_PROTO_GetShiftState done [11:10:31]FM_GetShiftState done [11:10:31]req_shift_opened done [11:10:31]requested_item shift.open_date is exist - process it [11:10:31]req_shift_open_date [11:10:31]req_shift_open_date done [11:10:31]produce_requested_data done [11:10:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187587,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:10:31]process_action_free close_receipt [11:10:31]json_value_free [11:10:31]json_value_free done [11:10:31]process_json_proto returns [11:10:31]Send response to host [11:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187587,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:10:31]free response buf [11:10:31]execute_script done [11:10:31]execute_script returns [11:10:31]free content buf [11:10:31]Sock 9.Close socket [11:10:31]Sock 9.Thread stoped [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:50]accept exits with 8 [11:10:50]New connection [11:10:50]New thread 3067080036 created [11:10:50]Thread 3066936676 joined [11:10:50]Waiting for new connection... [11:10:50] Sock 8.Parse request [11:10:50]Sock 8.Check first char [11:10:50]Sock 8.First char is OK [11:10:50]request: POST /json_proto HTTP/1.0 [11:10:50]Method: POST [11:10:50]URL: /json_proto [11:10:50]Method is POST - this is cgi request [11:10:50]url: /json_proto [11:10:50]query_string will be loaded in cgi processing [11:10:50]execute_cgi json_proto POST (null) [11:10:50]execute_cgi path=json_proto method=POST [11:10:50]POST find Content-Length [11:10:50]Host: 172.17.46.131:8080 [11:10:50]Content-Length: 799 [11:10:50]Content-Type: application/json [11:10:50] [11:10:50]POST finish read [11:10:50]Found Content-Length = 799 [11:10:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:50]execute_script... [11:10: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)412745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:50]POST & json_proto [11:10:50]process_json_proto [11:10:50]json parsed OK: [11:10:50]protocol is kg_v1.0 [11:10:50]action value=close_receipt [11:10:50]process_action close_receipt [11:10:50]cmd_close_receipt [11:10:50]MH_GetDate [11:10:50]Write to MH i2c: F0 00 00 71 09 69 [11:10:50]Write i2c OK [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: F0 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: F0 09 00 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: F0 09 00 71 09 00 3B 5F B8 67 7E 41 4F 65 9E [11:10:50]GetLastDocTimeStamp 1740136228 [11:10:50]current date 1740136251 [11:10:50]FM_GetShiftState [11:10:50]SAM_PROTO_GetShiftState [11:10:50]wFMCommunicate request_size=4 [11:10:50]MH_SAM_APDU [11:10:50]CAPDU: 80 13 01 00 [11:10:50]Write to MH i2c: E2 08 00 72 09 80 13 01 00 00 00 00 00 F8 [11:10:50]Write i2c OK [11:10:50]MH_I2C_Read... [11:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:50]Read from MH i2c: E2 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: E2 0E 00 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: E2 0E 00 72 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E6 [11:10:50]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:10:50]wFMCommunicate OK [11:10:50]SAM_PROTO_GetShiftState done [11:10:50]FM_GetShiftState done [11:10:50]opened in 1740098043 [11:10:50]opened+sec_in_day 1740184443 [11:10:50]quantity*price = 100042 [11:10:50]sum+1 = 100044 [11:10:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 82 21.02.2025 11:10 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187588 ФПД: 63167177605939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111051&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187588&fm=63167177605939&tin=02508201610067®Number=0000000000091857&sum=100043 [11:10:52]StoreToDocumentArchive [11:10:52]shift 649 fd 187588 [11:10:52]save to /storage/0649/doc_00187588 [11:10:52]save last doc name /storage/0649/doc_00187588 to /storage/kkm_last_doc_name [11:10:52]save OK [11:10:52]Clear old archive folders... [11:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:10:52]tlvbuf is 01EB28A0 [11:10:52]SAM_PROTO_ClearQueue [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 09 00 00 [11:10:52]Write to MH i2c: E2 08 00 7F 09 80 09 00 00 00 00 00 00 FA [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 7F 09 00 90 00 FC [11:10:52]RAPDU: 90 00 [11:10:52]wFMCommunicate OK [11:10:52]SAM_PROTO_ClearQueue done [11:10:52]KKMCreateOFDPacket [11:10:52]OFDProtocolAddRootSTLVToBuf [11:10:52]FM_MakeSignedData [11:10:52]FM_MakeSignedData [11:10:52]SAM_PROTO_SignData [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 0D 01 02 [11:10:52]Write to MH i2c: E2 08 00 80 09 80 0D 01 02 00 00 00 00 02 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [11:10:52]RAPDU: 90 00 [11:10:52]wFMCommunicate OK [11:10:52]wFMCommunicate request_size=255 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3B 5F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 DC 02 00 35 04 06 00 39 73 41 2E [11:10:52]Write to MH i2c: E2 02 01 81 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3B 5F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 DC 02 00 35 04 06 00 39 73 41 2E 00 00 4F [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 81 09 00 90 00 FE [11:10:52]RAPDU: 90 00 [11:10:52]wFMCommunicate OK [11:10:52]wFMCommunicate request_size=7 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 0D 02 02 02 C3 33 [11:10:52]Write to MH i2c: E2 0A 00 82 09 80 0D 02 02 02 00 C3 33 00 00 FF [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [11:10:52]RAPDU: 90 00 [11:10:52]wFMCommunicate OK [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 0D 03 02 [11:10:52]Write to MH i2c: E2 08 00 83 09 80 0D 03 02 00 00 00 00 07 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0B 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 0B 00 83 09 00 6C 86 17 AF AD C4 EC 31 90 00 4E [11:10:52]RAPDU: 6C 86 17 AF AD C4 EC 31 90 00 [11:10:52]wFMCommunicate OK [11:10:52]SAM_PROTO_SignData done [11:10:52]FM_MakeSignedData done [11:10:52]CreateOFDProtocolMessage [11:10:52]wFMCommunicate request_size=4 [11:10:52]MH_SAM_APDU [11:10:52]CAPDU: 80 11 00 00 [11:10:52]Write to MH i2c: E2 08 00 84 09 80 11 00 00 00 00 00 00 07 [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:52]Read from MH i2c: E2 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 17 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: E2 17 00 84 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [11:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:10:52]wFMCommunicate OK [11:10:52]CreateOFDProtocolMessage done [11:10:52]OFDSenderStorePacket 187588 [11:10:52]StoreOFDPacket docnum=187588 [11:10:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1E 40 04 01 D7 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3B 5F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 DC 02 00 35 04 06 00 39 73 41 2E C3 33 6C 86 17 AF AD C4 EC 31 [11:10:52]CheckFolder [11:10:52]dirname=/storage/ofd_packets [11:10:52]CheckFolder done [11:10:52]ProducePacketName [11:10:52]name=ofd_packets/00187588 [11:10:52]NVStorageSaveData ofd_packets/00187588 [11:10:52]File name is /storage/ofd_packets/00187588 [11:10:52]Write 298 bytes [11:10:52]NVStorageSaveData done [11:10:52]OFDSenderStorePacket done [11:10:52]KKMCreateOFDPacket done [11:10:52]NVStorageSaveData kkm_last_timestamp [11:10:52]File name is /storage/kkm_last_timestamp [11:10:52]Write 4 bytes [11:10:52]NVStorageSaveData done [11:10:52]ExternCall_PrintAddStr [11:10:52]wPrintStart [11:10:52]Write to MH i2c: 01 00 00 85 09 8E [11:10:52]Write i2c OK [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: 01 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: 01 07 00 [11:10:52]MH_I2C_Read... [11:10:52]Read from MH i2c: 01 07 00 85 09 00 00 00 00 00 FF 0F A3 [11:10:52]RasterBufferAndPrint [11:10:52]line Счет N : (1)412745 [11:10:52]line ИНН: 02508201610067 [11:10:52]line Контрольно-Кассовый Чек [11:10:52]line ПРОДАЖА [11:10:52]line ТРК (МРК, ГНК) : 6 [11:10:52]line Товар: 2710194210 [11:10:52]line ДТ-К-5 [11:10:52]line 13.780 * 72.60 [11:10:52]line = 1000.43 [11:10:52]line НДС 12% НСП 1% [11:10:52]line > о реализуемом товаре [11:10:52]line ИТОГО: 1000.43 [11:10:52]line НСП 1% : 8.85 [11:10:52]line НДС 12% : 106.24 [11:10:52]line Наличными: 0.00 [11:10:52]line Безнал.: 1000.43 [11:10:52]line Место: АЗС № 92 "Партнер Нефть" [11:10:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:10:52]line СНО: Общий режим [11:10:52]line Чек 82 21.02.2025 11:10 [11:10:52]line Смена: 649 ФФД: 1.0 [11:10:52]line ЗНМ: 0300000118 [11:10:52]line РНМ: 0000000000091857 [11:10:52]line Версия ККМ: 001 [11:10:52]line Платежная система: O! деньги [11:10:52]line ФМ: 0000000000871826 [11:10:52]line ФД: 187588 [11:10:52]line ФПД: 63167177605939 [11:10:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111051&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187588&fm=63167177605939&tin=02508201610067®Number=0000000000091857&sum=100043 [11:10:52]OFD Sender: Processing packet 187588 [packets to send 49, broken 48] [11:10:52]ProducePacketName [11:10:52]name=ofd_packets/00187588 [11:10:52]OFD Sender: To server: pG, [11:10:52]CommunicateWithHost lk.salyk.kg:30040 [11:10:52]ConnectInit lk.salyk.kg [11:10:52]written 0, free lines is 4095 [11:10:53]Connected sock=10 [11:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1E 40 04 01 D7 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 3B 5F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 DC 02 00 35 04 06 00 39 73 41 2E C3 33 6C 86 17 AF AD C4 EC 31 [11:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3D 74 47 00 CF 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 38 32 36 10 04 04 00 C4 DC 02 00 F4 03 04 00 89 05 B8 67 B6 04 01 00 00 A2 C3 79 C1 9E A1 98 CC [11:10:53]CommunicateWithHost err = 0 [11:10:53]CheckOFDResponse [11:10:53]1017 (14) - 77093643461234 [11:10:53]1041 (16) - 0000000000871826 [11:10:53]1040 (4) - 187588 [11:10:53]1012 (4) - 21.02.2025 04:48 [11:10:53]1206 (1) - 0 [11:10:53]OFD Sender: Remove packet 187588 [11:10:53]ProducePacketName [11:10:53]name=ofd_packets/00187588 [11:10:53]NVStorageDeleteData [11:10:53]Write to MH i2c: 01 00 00 AF 09 B8 [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: 01 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: 01 07 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: 01 07 00 AF 09 00 00 00 00 00 11 0D DD [11:10:53]RasterBufferAndPrint [11:10:53]line [11:10:53]line [11:10:53]line [11:10:53]line [11:10:53]line [11:10:53]written 0, free lines is 3352 [11:10:53]MH_Cut [11:10:53]Write to MH i2c: D1 01 00 B6 09 01 91 [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: D1 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: D1 01 00 [11:10:53]MH_I2C_Read... [11:10:53]Read from MH i2c: D1 01 00 B6 09 00 90 [11:10:53]Write to MH i2c: 01 00 00 B7 09 C0 [11:10:53]Write i2c OK [11:10:53]MH_I2C_Read... [11:10:53]OFD Sender: No OFD packet to send [11:10:54]*** Cut start [11:10:54]*** Partial cut [11:10:54]*** CUTSNS_PIN = 1 [11:10:54]*** CUTSNS_PIN = 0 [11:10:54]*** Brake cut motor [11:10:54]Read from MH i2c: 01 [11:10:54]MH_I2C_Read... [11:10:54]*** Stop cut motor [11:10:54]*** Cut end [11:10:54]Read from MH i2c: 01 07 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 B7 09 00 00 00 00 00 FF 0F D5 [11:10:54]process_action close_receipt done [11:10:54]requested_data is exist [11:10:54]produce_requested_data [11:10:54]requested_item fm.sn is exist - process it [11:10:54]wFMCommunicate request_size=4 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 11 00 00 [11:10:54]Write to MH i2c: E2 08 00 B8 09 80 11 00 00 00 00 00 00 3B [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 17 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 17 00 B8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8E [11:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:10:54]wFMCommunicate OK [11:10:54]requested_item fd.num is exist - process it [11:10:54]SAM_PROTO_GetFieldsCounters [11:10:54]wFMCommunicate request_size=4 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 13 00 00 [11:10:54]Write to MH i2c: E2 08 00 B9 09 80 13 00 00 00 00 00 00 3E [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:54]Read from MH i2c: E2 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 62 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: E2 62 00 B9 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C4 DC 02 00 0E 04 04 00 89 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 87 [11:10:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C4 DC 02 00 0E 04 04 00 89 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 [11:10:54]wFMCommunicate OK [11:10:54]SAM_PROTO_GetFieldsCounters done [11:10:54]requested_item shift.num is exist - process it [11:10:54]requested_item shift.opened is exist - process it [11:10:54]req_shift_opened [11:10:54]FM_GetShiftState [11:10:54]SAM_PROTO_GetShiftState [11:10:54]wFMCommunicate request_size=4 [11:10:54]MH_SAM_APDU [11:10:54]CAPDU: 80 13 01 00 [11:10:54]Write to MH i2c: E2 08 00 BA 09 80 13 01 00 00 00 00 00 40 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:55]Read from MH i2c: E2 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 0E 00 [11:10:55]MH_I2C_Read... [11:10:55]Read from MH i2c: E2 0E 00 BA 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2E [11:10:55]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:10:55]wFMCommunicate OK [11:10:55]SAM_PROTO_GetShiftState done [11:10:55]FM_GetShiftState done [11:10:55]req_shift_opened done [11:10:55]requested_item shift.open_date is exist - process it [11:10:55]req_shift_open_date [11:10:55]req_shift_open_date done [11:10:55]produce_requested_data done [11:10:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187588,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:10:55]process_action_free close_receipt [11:10:55]json_value_free [11:10:55]json_value_free done [11:10:55]process_json_proto returns [11:10:55]Send response to host [11:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187588,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:10:55]free response buf [11:10:55]execute_script done [11:10:55]execute_script returns [11:10:55]free content buf [11:10:55]Sock 8.Close socket [11:10:55]Sock 8.Thread stoped [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:47]accept exits with 9 [11:14:47]New connection [11:14:47]New thread 3066936676 created [11:14:47]Thread 3067080036 joined [11:14:47]Waiting for new connection... [11:14:47] Sock 9.Parse request [11:14:47]Sock 9.Check first char [11:14:47]Sock 9.First char is OK [11:14:47]request: POST /json_proto HTTP/1.0 [11:14:47]Method: POST [11:14:47]URL: /json_proto [11:14:47]Method is POST - this is cgi request [11:14:47]url: /json_proto [11:14:47]query_string will be loaded in cgi processing [11:14:47]execute_cgi json_proto POST (null) [11:14:47]execute_cgi path=json_proto method=POST [11:14:47]POST find Content-Length [11:14:47]Host: 172.17.46.131:8080 [11:14:47]Content-Length: 677 [11:14:47]Content-Type: application/json [11:14:47] [11:14:47]POST finish read [11:14:47]Found Content-Length = 677 [11:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:47]execute_script... [11:14: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)412746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:47]POST & json_proto [11:14:47]process_json_proto [11:14:47]json parsed OK: [11:14:47]protocol is kg_v1.0 [11:14:47]action value=close_receipt [11:14:47]process_action close_receipt [11:14:47]cmd_close_receipt [11:14:47]MH_GetDate [11:14:47]Write to MH i2c: F0 00 00 BB 09 B3 [11:14:47]Write i2c OK [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: F0 [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: F0 09 00 [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: F0 09 00 BB 09 00 28 60 B8 67 7E 41 4F 65 D6 [11:14:47]GetLastDocTimeStamp 1740136251 [11:14:47]current date 1740136488 [11:14:47]FM_GetShiftState [11:14:47]SAM_PROTO_GetShiftState [11:14:47]wFMCommunicate request_size=4 [11:14:47]MH_SAM_APDU [11:14:47]CAPDU: 80 13 01 00 [11:14:47]Write to MH i2c: E2 08 00 BC 09 80 13 01 00 00 00 00 00 42 [11:14:47]Write i2c OK [11:14:47]MH_I2C_Read... [11:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:47]Read from MH i2c: E2 [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: E2 0E 00 [11:14:47]MH_I2C_Read... [11:14:47]Read from MH i2c: E2 0E 00 BC 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 30 [11:14:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:14:47]wFMCommunicate OK [11:14:47]SAM_PROTO_GetShiftState done [11:14:47]FM_GetShiftState done [11:14:47]opened in 1740098043 [11:14:47]opened+sec_in_day 1740184443 [11:14:47]quantity*price = 60027 [11:14:47]sum+1 = 60028 [11:14:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 83 21.02.2025 11:14 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187589 ФПД: 91767526193344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111448&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187589&fm=91767526193344&tin=02508201610067®Number=0000000000091857&sum=60000 [11:14:49]StoreToDocumentArchive [11:14:49]shift 649 fd 187589 [11:14:49]save to /storage/0649/doc_00187589 [11:14:49]save last doc name /storage/0649/doc_00187589 to /storage/kkm_last_doc_name [11:14:49]save OK [11:14:49]Clear old archive folders... [11:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:49]tlvbuf is 01EB0120 [11:14:49]SAM_PROTO_ClearQueue [11:14:49]wFMCommunicate request_size=4 [11:14:49]MH_SAM_APDU [11:14:49]CAPDU: 80 09 00 00 [11:14:49]Write to MH i2c: E2 08 00 C9 09 80 09 00 00 00 00 00 00 44 [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:49]Read from MH i2c: E2 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 03 00 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [11:14:49]RAPDU: 90 00 [11:14:49]wFMCommunicate OK [11:14:49]SAM_PROTO_ClearQueue done [11:14:49]KKMCreateOFDPacket [11:14:49]OFDProtocolAddRootSTLVToBuf [11:14:49]FM_MakeSignedData [11:14:49]FM_MakeSignedData [11:14:49]SAM_PROTO_SignData [11:14:49]wFMCommunicate request_size=4 [11:14:49]MH_SAM_APDU [11:14:49]CAPDU: 80 0D 01 02 [11:14:49]Write to MH i2c: E2 08 00 CA 09 80 0D 01 02 00 00 00 00 4C [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:49]Read from MH i2c: E2 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 03 00 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [11:14:49]RAPDU: 90 00 [11:14:49]wFMCommunicate OK [11:14:49]wFMCommunicate request_size=255 [11:14:49]MH_SAM_APDU [11:14:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 28 60 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 DC 02 00 35 04 06 00 53 [11:14:49]Write to MH i2c: E2 02 01 CB 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 28 60 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 DC 02 00 35 04 06 00 53 00 00 B6 [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:49]Read from MH i2c: E2 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 03 00 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [11:14:49]RAPDU: 90 00 [11:14:49]wFMCommunicate OK [11:14:49]wFMCommunicate request_size=10 [11:14:49]MH_SAM_APDU [11:14:49]CAPDU: 80 0D 02 02 05 76 4A CC F8 C0 [11:14:49]Write to MH i2c: E2 0D 00 CC 09 80 0D 02 02 05 00 76 4A CC F8 C0 00 00 9D [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:49]Read from MH i2c: E2 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 03 00 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [11:14:49]RAPDU: 90 00 [11:14:49]wFMCommunicate OK [11:14:49]wFMCommunicate request_size=4 [11:14:49]MH_SAM_APDU [11:14:49]CAPDU: 80 0D 03 02 [11:14:49]Write to MH i2c: E2 08 00 CD 09 80 0D 03 02 00 00 00 00 51 [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:49]Read from MH i2c: E2 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 0B 00 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 0B 00 CD 09 00 39 4C EE 15 C6 50 D5 BB 90 00 80 [11:14:49]RAPDU: 39 4C EE 15 C6 50 D5 BB 90 00 [11:14:49]wFMCommunicate OK [11:14:49]SAM_PROTO_SignData done [11:14:49]FM_MakeSignedData done [11:14:49]CreateOFDProtocolMessage [11:14:49]wFMCommunicate request_size=4 [11:14:49]MH_SAM_APDU [11:14:49]CAPDU: 80 11 00 00 [11:14:49]Write to MH i2c: E2 08 00 CE 09 80 11 00 00 00 00 00 00 51 [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:49]Read from MH i2c: E2 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 17 00 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: E2 17 00 CE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A4 [11:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:14:49]wFMCommunicate OK [11:14:49]CreateOFDProtocolMessage done [11:14:49]OFDSenderStorePacket 187589 [11:14:49]StoreOFDPacket docnum=187589 [11:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AC 52 07 01 50 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 28 60 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 DC 02 00 35 04 06 00 53 76 4A CC F8 C0 39 4C EE 15 C6 50 D5 BB [11:14:49]CheckFolder [11:14:49]dirname=/storage/ofd_packets [11:14:49]CheckFolder done [11:14:49]ProducePacketName [11:14:49]name=ofd_packets/00187589 [11:14:49]NVStorageSaveData ofd_packets/00187589 [11:14:49]File name is /storage/ofd_packets/00187589 [11:14:49]Write 301 bytes [11:14:49]NVStorageSaveData done [11:14:49]OFDSenderStorePacket done [11:14:49]KKMCreateOFDPacket done [11:14:49]NVStorageSaveData kkm_last_timestamp [11:14:49]File name is /storage/kkm_last_timestamp [11:14:49]Write 4 bytes [11:14:49]NVStorageSaveData done [11:14:49]ExternCall_PrintAddStr [11:14:49]wPrintStart [11:14:49]Write to MH i2c: 01 00 00 CF 09 D8 [11:14:49]Write i2c OK [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: 01 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: 01 07 00 [11:14:49]MH_I2C_Read... [11:14:49]Read from MH i2c: 01 07 00 CF 09 00 00 00 00 00 FF 0F ED [11:14:49]RasterBufferAndPrint [11:14:49]line Счет N : (1)412746 [11:14:49]line ИНН: 02508201610067 [11:14:49]line Контрольно-Кассовый Чек [11:14:49]line ПРОДАЖА [11:14:49]line ТРК (МРК, ГНК) : 32 [11:14:49]line Товар: 2710124130 [11:14:49]line Аи-92-К-2 [11:14:49]line 9.350 * 64.20 [11:14:49]line = 600.27 [11:14:49]line НДС 12% НСП 1% [11:14:49]line > о реализуемом товаре [11:14:49]line ОКРУГЛЕНИЕ: -0.27 [11:14:49]line ИТОГО: 600.00 [11:14:49]line Внесено: 600.00 [11:14:49]line СДАЧА: 0.00 [11:14:49]line НСП 1% : 5.31 [11:14:49]line НДС 12% : 63.74 [11:14:49]line Наличными: 600.00 [11:14:49]line Безнал.: 0.00 [11:14:49]line Место: АЗС № 92 "Партнер Нефть" [11:14:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:14:49]line СНО: Общий режим [11:14:49]line Чек 83 21.02.2025 11:14 [11:14:49]line Смена: 649 ФФД: 1.0 [11:14:49]line ЗНМ: 0300000118 [11:14:49]line РНМ: 0000000000091857 [11:14:49]line Версия ККМ: 001 [11:14:49]line ФМ: 0000000000871826 [11:14:49]line ФД: 187589 [11:14:49]line ФПД: 91767526193344 [11:14:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111448&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187589&fm=91767526193344&tin=02508201610067®Number=0000000000091857&sum=60000 [11:14:49]OFD Sender: Processing packet 187589 [packets to send 49, broken 48] [11:14:49]ProducePacketName [11:14:49]name=ofd_packets/00187589 [11:14:49]OFD Sender: To server: pG, [11:14:49]CommunicateWithHost lk.salyk.kg:30040 [11:14:49]ConnectInit lk.salyk.kg [11:14:49]written 0, free lines is 4095 [11:14:50]Connected sock=10 [11:14:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AC 52 07 01 50 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 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 28 60 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 DC 02 00 35 04 06 00 53 76 4A CC F8 C0 39 4C EE 15 C6 50 D5 BB [11:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 71 C1 47 00 7F 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 DC 02 00 F4 03 04 00 76 06 B8 67 B6 04 01 00 00 30 1A D4 4F 43 4D 0A 8E [11:14:50]CommunicateWithHost err = 0 [11:14:50]CheckOFDResponse [11:14:50]1017 (14) - 77093643461234 [11:14:50]1041 (16) - 0000000000871826 [11:14:50]1040 (4) - 187589 [11:14:50]1012 (4) - 21.02.2025 04:52 [11:14:50]1206 (1) - 0 [11:14:50]OFD Sender: Remove packet 187589 [11:14:50]ProducePacketName [11:14:50]name=ofd_packets/00187589 [11:14:50]NVStorageDeleteData [11:14:50]Write to MH i2c: 01 00 00 FA 09 03 [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: 01 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: 01 07 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: 01 07 00 FA 09 00 00 00 00 00 F5 0C 0B [11:14:50]RasterBufferAndPrint [11:14:50]line [11:14:50]line [11:14:50]line [11:14:50]line [11:14:50]line [11:14:50]written 0, free lines is 3323 [11:14:50]MH_Cut [11:14:50]Write to MH i2c: D1 01 00 01 0A 01 DD [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: D1 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: D1 01 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: D1 01 00 01 0A 00 DC [11:14:50]Write to MH i2c: 01 00 00 02 0A 0C [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]OFD Sender: No OFD packet to send [11:14:51]*** Cut start [11:14:51]*** Partial cut [11:14:51]*** CUTSNS_PIN = 1 [11:14:51]*** CUTSNS_PIN = 0 [11:14:51]*** Brake cut motor [11:14:51]Read from MH i2c: 01 [11:14:51]MH_I2C_Read... [11:14:51]*** Stop cut motor [11:14:51]*** Cut end [11:14:51]Read from MH i2c: 01 07 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: 01 07 00 02 0A 00 00 00 00 00 FF 0F 21 [11:14:51]process_action close_receipt done [11:14:51]requested_data is exist [11:14:51]produce_requested_data [11:14:51]requested_item fm.sn is exist - process it [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 11 00 00 [11:14:51]Write to MH i2c: E2 08 00 03 0A 80 11 00 00 00 00 00 00 87 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 17 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 17 00 03 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DA [11:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:14:51]wFMCommunicate OK [11:14:51]requested_item fd.num is exist - process it [11:14:51]SAM_PROTO_GetFieldsCounters [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 13 00 00 [11:14:51]Write to MH i2c: E2 08 00 04 0A 80 13 00 00 00 00 00 00 8A [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 62 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 62 00 04 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C5 DC 02 00 0E 04 04 00 89 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 D7 [11:14:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C5 DC 02 00 0E 04 04 00 89 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 [11:14:52]wFMCommunicate OK [11:14:52]SAM_PROTO_GetFieldsCounters done [11:14:52]requested_item shift.num is exist - process it [11:14:52]requested_item shift.opened is exist - process it [11:14:52]req_shift_opened [11:14:52]FM_GetShiftState [11:14:52]SAM_PROTO_GetShiftState [11:14:52]wFMCommunicate request_size=4 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 13 01 00 [11:14:52]Write to MH i2c: E2 08 00 05 0A 80 13 01 00 00 00 00 00 8C [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 0E 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 0E 00 05 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7A [11:14:52]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:14:52]wFMCommunicate OK [11:14:52]SAM_PROTO_GetShiftState done [11:14:52]FM_GetShiftState done [11:14:52]req_shift_opened done [11:14:52]requested_item shift.open_date is exist - process it [11:14:52]req_shift_open_date [11:14:52]req_shift_open_date done [11:14:52]produce_requested_data done [11:14:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187589,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:14:52]process_action_free close_receipt [11:14:52]json_value_free [11:14:52]json_value_free done [11:14:52]process_json_proto returns [11:14:52]Send response to host [11:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187589,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:14:52]free response buf [11:14:52]execute_script done [11:14:52]execute_script returns [11:14:52]free content buf [11:14:52]Sock 9.Close socket [11:14:52]Sock 9.Thread stoped [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:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:22]accept exits with 8 [11:16:22]New connection [11:16:22]New thread 3067080036 created [11:16:22]Thread 3066936676 joined [11:16:22]Waiting for new connection... [11:16:22] Sock 8.Parse request [11:16:22]Sock 8.Check first char [11:16:22]Sock 8.First char is OK [11:16:22]request: POST /json_proto HTTP/1.0 [11:16:22]Method: POST [11:16:22]URL: /json_proto [11:16:22]Method is POST - this is cgi request [11:16:22]url: /json_proto [11:16:22]query_string will be loaded in cgi processing [11:16:22]execute_cgi json_proto POST (null) [11:16:22]execute_cgi path=json_proto method=POST [11:16:22]POST find Content-Length [11:16:22]Host: 172.17.46.131:8080 [11:16:22]Content-Length: 792 [11:16:22]Content-Type: application/json [11:16:22] [11:16:22]POST finish read [11:16:22]Found Content-Length = 792 [11:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03878", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:22]execute_script... [11: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)412747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03878", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:22]POST & json_proto [11:16:22]process_json_proto [11:16:22]json parsed OK: [11:16:22]protocol is kg_v1.0 [11:16:22]action value=close_receipt [11:16:22]process_action close_receipt [11:16:22]cmd_close_receipt [11:16:22]MH_GetDate [11:16:22]Write to MH i2c: F0 00 00 06 0A FF [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: F0 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: F0 09 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: F0 09 00 06 0A 00 87 60 B8 67 7E 41 4F 65 81 [11:16:22]GetLastDocTimeStamp 1740136488 [11:16:22]current date 1740136583 [11:16:22]FM_GetShiftState [11:16:22]SAM_PROTO_GetShiftState [11:16:22]wFMCommunicate request_size=4 [11:16:22]MH_SAM_APDU [11:16:22]CAPDU: 80 13 01 00 [11:16:22]Write to MH i2c: E2 08 00 07 0A 80 13 01 00 00 00 00 00 8E [11:16:22]Write i2c OK [11:16:22]MH_I2C_Read... [11:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:22]Read from MH i2c: E2 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 0E 00 [11:16:22]MH_I2C_Read... [11:16:22]Read from MH i2c: E2 0E 00 07 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7C [11:16:22]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:16:22]wFMCommunicate OK [11:16:22]SAM_PROTO_GetShiftState done [11:16:22]FM_GetShiftState done [11:16:22]opened in 1740098043 [11:16:22]opened+sec_in_day 1740184443 [11:16:22]quantity*price = 0 [11:16:22]sum+1 = 1 [11:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 84 21.02.2025 11:16 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03878 ФМ: 0000000000871826 ФД: 187590 ФПД: 178043864647583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111623&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187590&fm=178043864647583&tin=02508201610067®Number=0000000000091857&sum=0 [11:16:23]StoreToDocumentArchive [11:16:23]shift 649 fd 187590 [11:16:23]save to /storage/0649/doc_00187590 [11:16:23]save last doc name /storage/0649/doc_00187590 to /storage/kkm_last_doc_name [11:16:23]save OK [11:16:23]Clear old archive folders... [11:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:23]tlvbuf is 01EAFAC0 [11:16:23]SAM_PROTO_ClearQueue [11:16:23]wFMCommunicate request_size=4 [11:16:23]MH_SAM_APDU [11:16:23]CAPDU: 80 09 00 00 [11:16:23]Write to MH i2c: E2 08 00 14 0A 80 09 00 00 00 00 00 00 90 [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:23]Read from MH i2c: E2 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 03 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [11:16:23]RAPDU: 90 00 [11:16:23]wFMCommunicate OK [11:16:23]SAM_PROTO_ClearQueue done [11:16:23]KKMCreateOFDPacket [11:16:23]OFDProtocolAddRootSTLVToBuf [11:16:23]FM_MakeSignedData [11:16:23]FM_MakeSignedData [11:16:23]SAM_PROTO_SignData [11:16:23]wFMCommunicate request_size=4 [11:16:23]MH_SAM_APDU [11:16:23]CAPDU: 80 0D 01 02 [11:16:23]Write to MH i2c: E2 08 00 15 0A 80 0D 01 02 00 00 00 00 98 [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:23]Read from MH i2c: E2 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 03 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [11:16:23]RAPDU: 90 00 [11:16:23]wFMCommunicate OK [11:16:23]wFMCommunicate request_size=255 [11:16:23]MH_SAM_APDU [11:16:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 87 60 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DC 02 00 35 04 06 00 A1 [11:16:23]Write to MH i2c: E2 02 01 16 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 87 60 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DC 02 00 35 04 06 00 A1 00 00 73 [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [11:16:24]RAPDU: 90 00 [11:16:24]wFMCommunicate OK [11:16:24]wFMCommunicate request_size=10 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 0D 02 02 05 EE 11 4E 87 9F [11:16:24]Write to MH i2c: E2 0D 00 17 0A 80 0D 02 02 05 00 EE 11 4E 87 9F 00 00 18 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 03 00 17 0A 00 90 00 95 [11:16:24]RAPDU: 90 00 [11:16:24]wFMCommunicate OK [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 0D 03 02 [11:16:24]Write to MH i2c: E2 08 00 18 0A 80 0D 03 02 00 00 00 00 9D [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 0B 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 0B 00 18 0A 00 CC F3 2F 41 5A BE F1 82 90 00 58 [11:16:24]RAPDU: CC F3 2F 41 5A BE F1 82 90 00 [11:16:24]wFMCommunicate OK [11:16:24]SAM_PROTO_SignData done [11:16:24]FM_MakeSignedData done [11:16:24]CreateOFDProtocolMessage [11:16:24]wFMCommunicate request_size=4 [11:16:24]MH_SAM_APDU [11:16:24]CAPDU: 80 11 00 00 [11:16:24]Write to MH i2c: E2 08 00 19 0A 80 11 00 00 00 00 00 00 9D [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:24]Read from MH i2c: E2 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 17 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: E2 17 00 19 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [11:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:16:24]wFMCommunicate OK [11:16:24]CreateOFDProtocolMessage done [11:16:24]OFDSenderStorePacket 187590 [11:16:24]StoreOFDPacket docnum=187590 [11:16:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F4 12 07 01 1C 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 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 54 00 00 00 F4 03 04 00 87 60 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DC 02 00 35 04 06 00 A1 EE 11 4E 87 9F CC F3 2F 41 5A BE F1 82 [11:16:24]CheckFolder [11:16:24]dirname=/storage/ofd_packets [11:16:24]CheckFolder done [11:16:24]ProducePacketName [11:16:24]name=ofd_packets/00187590 [11:16:24]NVStorageSaveData ofd_packets/00187590 [11:16:24]File name is /storage/ofd_packets/00187590 [11:16:24]Write 301 bytes [11:16:24]NVStorageSaveData done [11:16:24]OFDSenderStorePacket done [11:16:24]KKMCreateOFDPacket done [11:16:24]NVStorageSaveData kkm_last_timestamp [11:16:24]File name is /storage/kkm_last_timestamp [11:16:24]Write 4 bytes [11:16:24]NVStorageSaveData done [11:16:24]ExternCall_PrintAddStr [11:16:24]wPrintStart [11:16:24]Write to MH i2c: 01 00 00 1A 0A 24 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 07 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 07 00 1A 0A 00 00 00 00 00 FF 0F 39 [11:16:24]RasterBufferAndPrint [11:16:24]line Счет N : (1)412747 [11:16:24]line ИНН: 02508201610067 [11:16:24]line Контрольно-Кассовый Чек [11:16:24]line ПРОДАЖА [11:16:24]line ТРК (МРК, ГНК) : 12 [11:16:24]line Товар: 2710124130 [11:16:24]line Аи-92-К-2 [11:16:24]line 30.000 * 0.00 [11:16:24]line = 0.00 [11:16:24]line НДС 12% НСП 1% [11:16:24]line > о реализуемом товаре [11:16:24]line ИТОГО: 0.00 [11:16:24]line НСП 1% : 0.00 [11:16:24]line НДС 12% : 0.00 [11:16:24]line Наличными: 0.00 [11:16:24]line Безнал.: 0.00 [11:16:24]line Место: АЗС № 92 "Партнер Нефть" [11:16:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:16:24]line СНО: Общий режим [11:16:24]line Чек 84 21.02.2025 11:16 [11:16:24]line Смена: 649 ФФД: 1.0 [11:16:24]line ЗНМ: 0300000118 [11:16:24]line РНМ: 0000000000091857 [11:16:24]line Версия ККМ: 001 [11:16:24]line Талоны: Топливная Карта [11:16:24]line 03878 [11:16:24]line ФМ: 0000000000871826 [11:16:24]line ФД: 187590 [11:16:24]line ФПД: 178043864647583 [11:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111623&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187590&fm=178043864647583&tin=02508201610067®Number=0000000000091857&sum=0 [11:16:24]written 0, free lines is 4095 [11:16:24]OFD Sender: Processing packet 187590 [packets to send 49, broken 48] [11:16:24]ProducePacketName [11:16:24]name=ofd_packets/00187590 [11:16:24]OFD Sender: To server: pG, [11:16:24]CommunicateWithHost lk.salyk.kg:30040 [11:16:24]ConnectInit lk.salyk.kg [11:16:24]Connected sock=9 [11: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 38 32 36 0F 01 00 00 F4 12 07 01 1C 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 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 54 00 00 00 F4 03 04 00 87 60 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DC 02 00 35 04 06 00 A1 EE 11 4E 87 9F CC F3 2F 41 5A BE F1 82 [11:16:24]Write to MH i2c: 01 00 00 44 0A 4E [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 07 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 05 0D 67 [11:16:24]RasterBufferAndPrint [11:16:24]line [11:16:24]line [11:16:24]line [11:16:24]line [11:16:24]line [11:16:24]written 0, free lines is 3339 [11:16:24]MH_Cut [11:16:24]Write to MH i2c: D1 01 00 4B 0A 01 27 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: D1 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: D1 01 00 [11:16:24]MH_I2C_Read... [11:16:24]Read from MH i2c: D1 01 00 4B 0A 00 26 [11:16:24]Write to MH i2c: 01 00 00 4C 0A 56 [11:16:24]Write i2c OK [11:16:24]MH_I2C_Read... [11: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 38 32 36 4F 00 00 00 96 E5 47 00 81 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DC 02 00 F4 03 04 00 D4 06 B8 67 B6 04 01 00 00 7E 96 DB C3 70 0A 43 F2 [11:16:24]CommunicateWithHost err = 0 [11:16:24]CheckOFDResponse [11:16:24]1017 (14) - 77093643461234 [11:16:24]1041 (16) - 0000000000871826 [11:16:24]1040 (4) - 187590 [11:16:24]1012 (4) - 21.02.2025 04:53 [11:16:24]1206 (1) - 0 [11:16:24]OFD Sender: Remove packet 187590 [11:16:24]ProducePacketName [11:16:24]name=ofd_packets/00187590 [11:16:24]NVStorageDeleteData [11:16:25]OFD Sender: No OFD packet to send [11:16:25]*** Cut start [11:16:25]*** Partial cut [11:16:25]*** CUTSNS_PIN = 1 [11:16:25]*** CUTSNS_PIN = 0 [11:16:25]*** Brake cut motor [11:16:26]Read from MH i2c: 01 [11:16:26]MH_I2C_Read... [11:16:26]*** Stop cut motor [11:16:26]*** Cut end [11:16:26]Read from MH i2c: 01 07 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 4C 0A 00 00 00 00 00 FF 0F 6B [11:16:26]process_action close_receipt done [11:16:26]requested_data is exist [11:16:26]produce_requested_data [11:16:26]requested_item fm.sn is exist - process it [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 11 00 00 [11:16:26]Write to MH i2c: E2 08 00 4D 0A 80 11 00 00 00 00 00 00 D1 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 17 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 17 00 4D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [11:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:16:26]wFMCommunicate OK [11:16:26]requested_item fd.num is exist - process it [11:16:26]SAM_PROTO_GetFieldsCounters [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 13 00 00 [11:16:26]Write to MH i2c: E2 08 00 4E 0A 80 13 00 00 00 00 00 00 D4 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 62 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 62 00 4E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C6 DC 02 00 0E 04 04 00 89 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 25 [11: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C6 DC 02 00 0E 04 04 00 89 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 [11:16:26]wFMCommunicate OK [11:16:26]SAM_PROTO_GetFieldsCounters done [11:16:26]requested_item shift.num is exist - process it [11:16:26]requested_item shift.opened is exist - process it [11:16:26]req_shift_opened [11:16:26]FM_GetShiftState [11:16:26]SAM_PROTO_GetShiftState [11:16:26]wFMCommunicate request_size=4 [11:16:26]MH_SAM_APDU [11:16:26]CAPDU: 80 13 01 00 [11:16:26]Write to MH i2c: E2 08 00 4F 0A 80 13 01 00 00 00 00 00 D6 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:26]Read from MH i2c: E2 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 0E 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: E2 0E 00 4F 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C4 [11:16:26]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:16:26]wFMCommunicate OK [11:16:26]SAM_PROTO_GetShiftState done [11:16:26]FM_GetShiftState done [11:16:26]req_shift_opened done [11:16:26]requested_item shift.open_date is exist - process it [11:16:26]req_shift_open_date [11:16:26]req_shift_open_date done [11:16:26]produce_requested_data done [11:16:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187590,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:16:26]process_action_free close_receipt [11:16:26]json_value_free [11:16:26]json_value_free done [11:16:26]process_json_proto returns [11:16:26]Send response to host [11:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187590,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:16:26]free response buf [11:16:26]execute_script done [11:16:26]execute_script returns [11:16:26]free content buf [11:16:26]Sock 8.Close socket [11:16:26]Sock 8.Thread stoped [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:34]accept exits with 10 [11:18:34]New connection [11:18:34]New thread 3066936676 created [11:18:34]Thread 3067080036 joined [11:18:34]Waiting for new connection... [11:18:34] Sock 10.Parse request [11:18:34]Sock 10.Check first char [11:18:34]Sock 10.First char is OK [11:18:34]request: POST /json_proto HTTP/1.0 [11:18:34]Method: POST [11:18:34]URL: /json_proto [11:18:34]Method is POST - this is cgi request [11:18:34]url: /json_proto [11:18:34]query_string will be loaded in cgi processing [11:18:34]execute_cgi json_proto POST (null) [11:18:34]execute_cgi path=json_proto method=POST [11:18:34]POST find Content-Length [11:18:34]Host: 172.17.46.131:8080 [11:18:34]Content-Length: 682 [11:18:34]Content-Type: application/json [11:18:34] [11:18:34]POST finish read [11:18:34]Found Content-Length = 682 [11:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:34]execute_script... [11:18: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)412748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:34]POST & json_proto [11:18:34]process_json_proto [11:18:34]json parsed OK: [11:18:34]protocol is kg_v1.0 [11:18:34]action value=close_receipt [11:18:34]process_action close_receipt [11:18:34]cmd_close_receipt [11:18:34]MH_GetDate [11:18:34]Write to MH i2c: F0 00 00 50 0A 49 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: F0 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: F0 09 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: F0 09 00 50 0A 00 0A 61 B8 67 7E 41 4F 65 4F [11:18:34]GetLastDocTimeStamp 1740136583 [11:18:34]current date 1740136714 [11:18:34]FM_GetShiftState [11:18:34]SAM_PROTO_GetShiftState [11:18:34]wFMCommunicate request_size=4 [11:18:34]MH_SAM_APDU [11:18:34]CAPDU: 80 13 01 00 [11:18:34]Write to MH i2c: E2 08 00 51 0A 80 13 01 00 00 00 00 00 D8 [11:18:34]Write i2c OK [11:18:34]MH_I2C_Read... [11:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:34]Read from MH i2c: E2 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 0E 00 [11:18:34]MH_I2C_Read... [11:18:34]Read from MH i2c: E2 0E 00 51 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C6 [11:18:34]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:18:34]wFMCommunicate OK [11:18:34]SAM_PROTO_GetShiftState done [11:18:34]FM_GetShiftState done [11:18:34]opened in 1740098043 [11:18:34]opened+sec_in_day 1740184443 [11:18:34]quantity*price = 100023 [11:18:34]sum+1 = 100025 [11:18:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 85 21.02.2025 11:18 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187591 ФПД: 262962421457399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111834&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187591&fm=262962421457399&tin=02508201610067®Number=0000000000091857&sum=100000 [11:18:35]StoreToDocumentArchive [11:18:35]shift 649 fd 187591 [11:18:35]save to /storage/0649/doc_00187591 [11:18:35]save last doc name /storage/0649/doc_00187591 to /storage/kkm_last_doc_name [11:18:35]save OK [11:18:35]Clear old archive folders... [11:18:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:35]tlvbuf is 01EB2680 [11:18:35]SAM_PROTO_ClearQueue [11:18:35]wFMCommunicate request_size=4 [11:18:35]MH_SAM_APDU [11:18:35]CAPDU: 80 09 00 00 [11:18:35]Write to MH i2c: E2 08 00 5E 0A 80 09 00 00 00 00 00 00 DA [11:18:35]Write i2c OK [11:18:35]MH_I2C_Read... [11:18:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:35]OFD Sender: No OFD packet to send [11:18:35]Read from MH i2c: E2 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 03 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [11:18:35]RAPDU: 90 00 [11:18:35]wFMCommunicate OK [11:18:35]SAM_PROTO_ClearQueue done [11:18:35]KKMCreateOFDPacket [11:18:35]OFDProtocolAddRootSTLVToBuf [11:18:35]FM_MakeSignedData [11:18:35]FM_MakeSignedData [11:18:35]SAM_PROTO_SignData [11:18:35]wFMCommunicate request_size=4 [11:18:35]MH_SAM_APDU [11:18:35]CAPDU: 80 0D 01 02 [11:18:35]Write to MH i2c: E2 08 00 5F 0A 80 0D 01 02 00 00 00 00 E2 [11:18:35]Write i2c OK [11:18:35]MH_I2C_Read... [11:18:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:35]Read from MH i2c: E2 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 03 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 03 00 5F 0A 00 90 00 DD [11:18:35]RAPDU: 90 00 [11:18:35]wFMCommunicate OK [11:18:35]wFMCommunicate request_size=255 [11:18:35]MH_SAM_APDU [11:18:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0A 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 DC 02 00 35 04 06 00 EF [11:18:35]Write to MH i2c: E2 02 01 60 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0A 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 DC 02 00 35 04 06 00 EF 00 00 DD [11:18:35]Write i2c OK [11:18:35]MH_I2C_Read... [11:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:35]Read from MH i2c: E2 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 03 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 03 00 60 0A 00 90 00 DE [11:18:35]RAPDU: 90 00 [11:18:35]wFMCommunicate OK [11:18:35]wFMCommunicate request_size=10 [11:18:35]MH_SAM_APDU [11:18:35]CAPDU: 80 0D 02 02 05 29 B5 B8 61 F7 [11:18:35]Write to MH i2c: E2 0D 00 61 0A 80 0D 02 02 05 00 29 B5 B8 61 F7 00 00 DD [11:18:35]Write i2c OK [11:18:35]MH_I2C_Read... [11:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:35]Read from MH i2c: E2 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 03 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 03 00 61 0A 00 90 00 DF [11:18:35]RAPDU: 90 00 [11:18:35]wFMCommunicate OK [11:18:35]wFMCommunicate request_size=4 [11:18:35]MH_SAM_APDU [11:18:35]CAPDU: 80 0D 03 02 [11:18:35]Write to MH i2c: E2 08 00 62 0A 80 0D 03 02 00 00 00 00 E7 [11:18:35]Write i2c OK [11:18:35]MH_I2C_Read... [11:18:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:35]Read from MH i2c: E2 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 0B 00 [11:18:35]MH_I2C_Read... [11:18:35]Read from MH i2c: E2 0B 00 62 0A 00 AA 7D A0 16 46 C3 3C 4C 90 00 56 [11:18:35]RAPDU: AA 7D A0 16 46 C3 3C 4C 90 00 [11:18:35]wFMCommunicate OK [11:18:35]SAM_PROTO_SignData done [11:18:35]FM_MakeSignedData done [11:18:35]CreateOFDProtocolMessage [11:18:35]wFMCommunicate request_size=4 [11:18:35]MH_SAM_APDU [11:18:35]CAPDU: 80 11 00 00 [11:18:35]Write to MH i2c: E2 08 00 63 0A 80 11 00 00 00 00 00 00 E7 [11:18:35]Write i2c OK [11:18:35]MH_I2C_Read... [11:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:36]Read from MH i2c: E2 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 17 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: E2 17 00 63 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3A [11:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:18:36]wFMCommunicate OK [11:18:36]CreateOFDProtocolMessage done [11:18:36]OFDSenderStorePacket 187591 [11:18:36]StoreOFDPacket docnum=187591 [11:18:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DD 3B 07 01 4F 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0A 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 DC 02 00 35 04 06 00 EF 29 B5 B8 61 F7 AA 7D A0 16 46 C3 3C 4C [11:18:36]CheckFolder [11:18:36]dirname=/storage/ofd_packets [11:18:36]CheckFolder done [11:18:36]ProducePacketName [11:18:36]name=ofd_packets/00187591 [11:18:36]NVStorageSaveData ofd_packets/00187591 [11:18:36]File name is /storage/ofd_packets/00187591 [11:18:36]Write 301 bytes [11:18:36]NVStorageSaveData done [11:18:36]OFDSenderStorePacket done [11:18:36]KKMCreateOFDPacket done [11:18:36]NVStorageSaveData kkm_last_timestamp [11:18:36]File name is /storage/kkm_last_timestamp [11:18:36]Write 4 bytes [11:18:36]NVStorageSaveData done [11:18:36]ExternCall_PrintAddStr [11:18:36]wPrintStart [11:18:36]Write to MH i2c: 01 00 00 64 0A 6E [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: 01 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: 01 07 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: 01 07 00 64 0A 00 00 00 00 00 FF 0F 83 [11:18:36]RasterBufferAndPrint [11:18:36]line Счет N : (1)412748 [11:18:36]line ИНН: 02508201610067 [11:18:36]line Контрольно-Кассовый Чек [11:18:36]line ПРОДАЖА [11:18:36]line ТРК (МРК, ГНК) : 42 [11:18:36]line Товар: 2710124130 [11:18:36]line Аи-92-К-2 [11:18:36]line 15.580 * 64.20 [11:18:36]line = 1000.24 [11:18:36]line НДС 12% НСП 1% [11:18:36]line > о реализуемом товаре [11:18:36]line ОКРУГЛЕНИЕ: -0.24 [11:18:36]line ИТОГО: 1000.00 [11:18:36]line Внесено: 1000.00 [11:18:36]line СДАЧА: 0.00 [11:18:36]line НСП 1% : 8.85 [11:18:36]line НДС 12% : 106.22 [11:18:36]line Наличными: 1000.00 [11:18:36]line Безнал.: 0.00 [11:18:36]line Место: АЗС № 92 "Партнер Нефть" [11:18:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:18:36]line СНО: Общий режим [11:18:36]line Чек 85 21.02.2025 11:18 [11:18:36]line Смена: 649 ФФД: 1.0 [11:18:36]line ЗНМ: 0300000118 [11:18:36]line РНМ: 0000000000091857 [11:18:36]line Версия ККМ: 001 [11:18:36]line ФМ: 0000000000871826 [11:18:36]line ФД: 187591 [11:18:36]line ФПД: 262962421457399 [11:18:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111834&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187591&fm=262962421457399&tin=02508201610067®Number=0000000000091857&sum=100000 [11:18:36]OFD Sender: Processing packet 187591 [packets to send 49, broken 48] [11:18:36]ProducePacketName [11:18:36]name=ofd_packets/00187591 [11:18:36]OFD Sender: To server: pG, [11:18:36]CommunicateWithHost lk.salyk.kg:30040 [11:18:36]ConnectInit lk.salyk.kg [11:18:36]written 0, free lines is 4095 [11:18:36]Connected sock=9 [11:18:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DD 3B 07 01 4F 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 0A 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 DC 02 00 35 04 06 00 EF 29 B5 B8 61 F7 AA 7D A0 16 46 C3 3C 4C [11:18:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0E F3 47 00 AE 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 38 32 36 10 04 04 00 C7 DC 02 00 F4 03 04 00 58 07 B8 67 B6 04 01 00 00 B8 A3 B8 CF 8D E1 A4 D2 [11:18:36]CommunicateWithHost err = 0 [11:18:36]CheckOFDResponse [11:18:36]1017 (14) - 77093643461234 [11:18:36]1041 (16) - 0000000000871826 [11:18:36]1040 (4) - 187591 [11:18:36]1012 (4) - 21.02.2025 04:55 [11:18:36]1206 (1) - 0 [11:18:36]OFD Sender: Remove packet 187591 [11:18:36]ProducePacketName [11:18:36]name=ofd_packets/00187591 [11:18:36]NVStorageDeleteData [11:18:36]Write to MH i2c: 01 00 00 8F 0A 99 [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: 01 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: 01 07 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: 01 07 00 8F 0A 00 00 00 00 00 03 0D B0 [11:18:36]RasterBufferAndPrint [11:18:36]line [11:18:36]line [11:18:36]line [11:18:36]line [11:18:36]line [11:18:36]written 0, free lines is 3337 [11:18:36]MH_Cut [11:18:36]Write to MH i2c: D1 01 00 96 0A 01 72 [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: D1 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: D1 01 00 [11:18:36]MH_I2C_Read... [11:18:36]Read from MH i2c: D1 01 00 96 0A 00 71 [11:18:36]Write to MH i2c: 01 00 00 97 0A A1 [11:18:36]Write i2c OK [11:18:36]MH_I2C_Read... [11:18:37]OFD Sender: No OFD packet to send [11:18:37]*** Cut start [11:18:37]*** Partial cut [11:18:37]*** CUTSNS_PIN = 1 [11:18:37]*** CUTSNS_PIN = 0 [11:18:37]*** Brake cut motor [11:18:38]Read from MH i2c: 01 [11:18:38]MH_I2C_Read... [11:18:38]*** Stop cut motor [11:18:38]*** Cut end [11:18:38]Read from MH i2c: 01 07 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: 01 07 00 97 0A 00 00 00 00 00 FF 0F B6 [11:18:38]process_action close_receipt done [11:18:38]requested_data is exist [11:18:38]produce_requested_data [11:18:38]requested_item fm.sn is exist - process it [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 11 00 00 [11:18:38]Write to MH i2c: E2 08 00 98 0A 80 11 00 00 00 00 00 00 1C [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 17 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 17 00 98 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6F [11:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:18:38]wFMCommunicate OK [11:18:38]requested_item fd.num is exist - process it [11:18:38]SAM_PROTO_GetFieldsCounters [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 13 00 00 [11:18:38]Write to MH i2c: E2 08 00 99 0A 80 13 00 00 00 00 00 00 1F [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 62 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 62 00 99 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C7 DC 02 00 0E 04 04 00 89 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 74 [11:18:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C7 DC 02 00 0E 04 04 00 89 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 [11:18:38]wFMCommunicate OK [11:18:38]SAM_PROTO_GetFieldsCounters done [11:18:38]requested_item shift.num is exist - process it [11:18:38]requested_item shift.opened is exist - process it [11:18:38]req_shift_opened [11:18:38]FM_GetShiftState [11:18:38]SAM_PROTO_GetShiftState [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 13 01 00 [11:18:38]Write to MH i2c: E2 08 00 9A 0A 80 13 01 00 00 00 00 00 21 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 0E 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 0E 00 9A 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0F [11:18:38]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:18:38]wFMCommunicate OK [11:18:38]SAM_PROTO_GetShiftState done [11:18:38]FM_GetShiftState done [11:18:38]req_shift_opened done [11:18:38]requested_item shift.open_date is exist - process it [11:18:38]req_shift_open_date [11:18:38]req_shift_open_date done [11:18:38]produce_requested_data done [11:18:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187591,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:18:38]process_action_free close_receipt [11:18:38]json_value_free [11:18:38]json_value_free done [11:18:38]process_json_proto returns [11:18:38]Send response to host [11:18:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187591,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:18:38]free response buf [11:18:38]execute_script done [11:18:38]execute_script returns [11:18:38]free content buf [11:18:38]Sock 10.Close socket [11:18:38]Sock 10.Thread stoped [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:47]accept exits with 8 [11:18:47]New connection [11:18:47]New thread 3067080036 created [11:18:47]Thread 3066936676 joined [11:18:47]Waiting for new connection... [11:18:47] Sock 8.Parse request [11:18:47]Sock 8.Check first char [11:18:47]Sock 8.First char is OK [11:18:47]request: POST /json_proto HTTP/1.0 [11:18:47]Method: POST [11:18:47]URL: /json_proto [11:18:47]Method is POST - this is cgi request [11:18:47]url: /json_proto [11:18:47]query_string will be loaded in cgi processing [11:18:47]execute_cgi json_proto POST (null) [11:18:47]execute_cgi path=json_proto method=POST [11:18:47]POST find Content-Length [11:18:47]Host: 172.17.46.131:8080 [11:18:47]Content-Length: 682 [11:18:47]Content-Type: application/json [11:18:47] [11:18:47]POST finish read [11:18:47]Found Content-Length = 682 [11:18:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:47]execute_script... [11:18: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)412749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:47]POST & json_proto [11:18:47]process_json_proto [11:18:47]json parsed OK: [11:18:47]protocol is kg_v1.0 [11:18:47]action value=close_receipt [11:18:47]process_action close_receipt [11:18:47]cmd_close_receipt [11:18:47]MH_GetDate [11:18:47]Write to MH i2c: F0 00 00 9B 0A 94 [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: F0 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: F0 09 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: F0 09 00 9B 0A 00 18 61 B8 67 7E 41 4F 65 A8 [11:18:47]GetLastDocTimeStamp 1740136714 [11:18:47]current date 1740136728 [11:18:47]FM_GetShiftState [11:18:47]SAM_PROTO_GetShiftState [11:18:47]wFMCommunicate request_size=4 [11:18:47]MH_SAM_APDU [11:18:47]CAPDU: 80 13 01 00 [11:18:47]Write to MH i2c: E2 08 00 9C 0A 80 13 01 00 00 00 00 00 23 [11:18:47]Write i2c OK [11:18:47]MH_I2C_Read... [11:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:47]Read from MH i2c: E2 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 0E 00 [11:18:47]MH_I2C_Read... [11:18:47]Read from MH i2c: E2 0E 00 9C 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 11 [11:18:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:18:47]wFMCommunicate OK [11:18:47]SAM_PROTO_GetShiftState done [11:18:47]FM_GetShiftState done [11:18:47]opened in 1740098043 [11:18:47]opened+sec_in_day 1740184443 [11:18:47]quantity*price = 100023 [11:18:47]sum+1 = 100025 [11:18:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 86 21.02.2025 11:18 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187592 ФПД: 34694233643469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111848&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187592&fm=34694233643469&tin=02508201610067®Number=0000000000091857&sum=100000 [11:18:48]StoreToDocumentArchive [11:18:48]shift 649 fd 187592 [11:18:48]save to /storage/0649/doc_00187592 [11:18:48]save last doc name /storage/0649/doc_00187592 to /storage/kkm_last_doc_name [11:18:48]save OK [11:18:48]Clear old archive folders... [11:18:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:48]tlvbuf is 01EB0290 [11:18:48]SAM_PROTO_ClearQueue [11:18:48]wFMCommunicate request_size=4 [11:18:48]MH_SAM_APDU [11:18:48]CAPDU: 80 09 00 00 [11:18:48]Write to MH i2c: E2 08 00 A9 0A 80 09 00 00 00 00 00 00 25 [11:18:48]Write i2c OK [11:18:48]MH_I2C_Read... [11:18:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:48]Read from MH i2c: E2 [11:18:48]MH_I2C_Read... [11:18:48]Read from MH i2c: E2 03 00 [11:18:48]MH_I2C_Read... [11:18:48]Read from MH i2c: E2 03 00 A9 0A 00 90 00 27 [11:18:48]RAPDU: 90 00 [11:18:48]wFMCommunicate OK [11:18:48]SAM_PROTO_ClearQueue done [11:18:48]KKMCreateOFDPacket [11:18:48]OFDProtocolAddRootSTLVToBuf [11:18:48]FM_MakeSignedData [11:18:48]FM_MakeSignedData [11:18:48]SAM_PROTO_SignData [11:18:48]wFMCommunicate request_size=4 [11:18:48]MH_SAM_APDU [11:18:48]CAPDU: 80 0D 01 02 [11:18:48]Write to MH i2c: E2 08 00 AA 0A 80 0D 01 02 00 00 00 00 2D [11:18:48]Write i2c OK [11:18:48]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 AA 0A 00 90 00 28 [11:18:49]RAPDU: 90 00 [11:18:49]wFMCommunicate OK [11:18:49]wFMCommunicate request_size=255 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 18 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DC 02 00 35 04 06 00 1F [11:18:49]Write to MH i2c: E2 02 01 AB 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 18 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DC 02 00 35 04 06 00 1F 00 00 68 [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 AB 0A 00 90 00 29 [11:18:49]RAPDU: 90 00 [11:18:49]wFMCommunicate OK [11:18:49]wFMCommunicate request_size=10 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 0D 02 02 05 8D E1 78 D9 CD [11:18:49]Write to MH i2c: E2 0D 00 AC 0A 80 0D 02 02 05 00 8D E1 78 D9 CD 00 00 C6 [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 03 00 AC 0A 00 90 00 2A [11:18:49]RAPDU: 90 00 [11:18:49]wFMCommunicate OK [11:18:49]wFMCommunicate request_size=4 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 0D 03 02 [11:18:49]Write to MH i2c: E2 08 00 AD 0A 80 0D 03 02 00 00 00 00 32 [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 0B 00 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 0B 00 AD 0A 00 44 89 93 C6 A2 E7 94 60 90 00 D6 [11:18:49]RAPDU: 44 89 93 C6 A2 E7 94 60 90 00 [11:18:49]wFMCommunicate OK [11:18:49]SAM_PROTO_SignData done [11:18:49]FM_MakeSignedData done [11:18:49]CreateOFDProtocolMessage [11:18:49]wFMCommunicate request_size=4 [11:18:49]MH_SAM_APDU [11:18:49]CAPDU: 80 11 00 00 [11:18:49]Write to MH i2c: E2 08 00 AE 0A 80 11 00 00 00 00 00 00 32 [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:49]Read from MH i2c: E2 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 17 00 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: E2 17 00 AE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [11:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:18:49]wFMCommunicate OK [11:18:49]CreateOFDProtocolMessage done [11:18:49]OFDSenderStorePacket 187592 [11:18:49]StoreOFDPacket docnum=187592 [11:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CF 64 07 01 4B 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 18 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DC 02 00 35 04 06 00 1F 8D E1 78 D9 CD 44 89 93 C6 A2 E7 94 60 [11:18:49]CheckFolder [11:18:49]dirname=/storage/ofd_packets [11:18:49]CheckFolder done [11:18:49]ProducePacketName [11:18:49]name=ofd_packets/00187592 [11:18:49]NVStorageSaveData ofd_packets/00187592 [11:18:49]File name is /storage/ofd_packets/00187592 [11:18:49]Write 301 bytes [11:18:49]NVStorageSaveData done [11:18:49]OFDSenderStorePacket done [11:18:49]KKMCreateOFDPacket done [11:18:49]NVStorageSaveData kkm_last_timestamp [11:18:49]File name is /storage/kkm_last_timestamp [11:18:49]Write 4 bytes [11:18:49]NVStorageSaveData done [11:18:49]ExternCall_PrintAddStr [11:18:49]wPrintStart [11:18:49]Write to MH i2c: 01 00 00 AF 0A B9 [11:18:49]Write i2c OK [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: 01 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: 01 07 00 [11:18:49]MH_I2C_Read... [11:18:49]Read from MH i2c: 01 07 00 AF 0A 00 00 00 00 00 FF 0F CE [11:18:49]RasterBufferAndPrint [11:18:49]line Счет N : (1)412749 [11:18:49]line ИНН: 02508201610067 [11:18:49]line Контрольно-Кассовый Чек [11:18:49]line ПРОДАЖА [11:18:49]line ТРК (МРК, ГНК) : 32 [11:18:49]line Товар: 2710124130 [11:18:49]line Аи-92-К-2 [11:18:49]line 15.580 * 64.20 [11:18:49]line = 1000.24 [11:18:49]line НДС 12% НСП 1% [11:18:49]line > о реализуемом товаре [11:18:49]line ОКРУГЛЕНИЕ: -0.24 [11:18:49]line ИТОГО: 1000.00 [11:18:49]line Внесено: 1000.00 [11:18:49]line СДАЧА: 0.00 [11:18:49]line НСП 1% : 8.85 [11:18:49]line НДС 12% : 106.22 [11:18:49]line Наличными: 1000.00 [11:18:49]line Безнал.: 0.00 [11:18:49]line Место: АЗС № 92 "Партнер Нефть" [11:18:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:18:49]line СНО: Общий режим [11:18:49]line Чек 86 21.02.2025 11:18 [11:18:49]line Смена: 649 ФФД: 1.0 [11:18:49]line ЗНМ: 0300000118 [11:18:49]line РНМ: 0000000000091857 [11:18:49]line Версия ККМ: 001 [11:18:49]line ФМ: 0000000000871826 [11:18:49]line ФД: 187592 [11:18:49]line ФПД: 34694233643469 [11:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T111848&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187592&fm=34694233643469&tin=02508201610067®Number=0000000000091857&sum=100000 [11:18:49]written 0, free lines is 4095 [11:18:49]OFD Sender: Processing packet 187592 [packets to send 49, broken 48] [11:18:49]ProducePacketName [11:18:49]name=ofd_packets/00187592 [11:18:49]OFD Sender: To server: pG, [11:18:49]CommunicateWithHost lk.salyk.kg:30040 [11:18:49]ConnectInit lk.salyk.kg [11:18:49]Connected sock=10 [11:18:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CF 64 07 01 4B 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 18 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DC 02 00 35 04 06 00 1F 8D E1 78 D9 CD 44 89 93 C6 A2 E7 94 60 [11:18:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5A C8 47 00 2D C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DC 02 00 F4 03 04 00 66 07 B8 67 B6 04 01 00 00 80 BE 00 3C 38 67 BE 07 [11:18:50]CommunicateWithHost err = 0 [11:18:50]CheckOFDResponse [11:18:50]1017 (14) - 77093643461234 [11:18:50]1041 (16) - 0000000000871826 [11:18:50]1040 (4) - 187592 [11:18:50]1012 (4) - 21.02.2025 04:56 [11:18:50]1206 (1) - 0 [11:18:50]OFD Sender: Remove packet 187592 [11:18:50]ProducePacketName [11:18:50]name=ofd_packets/00187592 [11:18:50]NVStorageDeleteData [11:18:50]Write to MH i2c: 01 00 00 DA 0A E4 [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: 01 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: 01 07 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: 01 07 00 DA 0A 00 00 00 00 00 FA 0C F1 [11:18:50]RasterBufferAndPrint [11:18:50]line [11:18:50]line [11:18:50]line [11:18:50]line [11:18:50]line [11:18:50]written 0, free lines is 3328 [11:18:50]MH_Cut [11:18:50]Write to MH i2c: D1 01 00 E1 0A 01 BD [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: D1 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: D1 01 00 [11:18:50]MH_I2C_Read... [11:18:50]Read from MH i2c: D1 01 00 E1 0A 00 BC [11:18:50]Write to MH i2c: 01 00 00 E2 0A EC [11:18:50]Write i2c OK [11:18:50]MH_I2C_Read... [11:18:50]OFD Sender: No OFD packet to send [11:18:50]*** Cut start [11:18:50]*** Partial cut [11:18:50]*** CUTSNS_PIN = 1 [11:18:50]*** CUTSNS_PIN = 0 [11:18:51]*** Brake cut motor [11:18:51]Read from MH i2c: 01 [11:18:51]MH_I2C_Read... [11:18:51]*** Stop cut motor [11:18:51]*** Cut end [11:18:51]Read from MH i2c: 01 07 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: 01 07 00 E2 0A 00 00 00 00 00 FF 0F 01 [11:18:51]process_action close_receipt done [11:18:51]requested_data is exist [11:18:51]produce_requested_data [11:18:51]requested_item fm.sn is exist - process it [11:18:51]wFMCommunicate request_size=4 [11:18:51]MH_SAM_APDU [11:18:51]CAPDU: 80 11 00 00 [11:18:51]Write to MH i2c: E2 08 00 E3 0A 80 11 00 00 00 00 00 00 67 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:51]Read from MH i2c: E2 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 17 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 17 00 E3 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [11:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:18:51]wFMCommunicate OK [11:18:51]requested_item fd.num is exist - process it [11:18:51]SAM_PROTO_GetFieldsCounters [11:18:51]wFMCommunicate request_size=4 [11:18:51]MH_SAM_APDU [11:18:51]CAPDU: 80 13 00 00 [11:18:51]Write to MH i2c: E2 08 00 E4 0A 80 13 00 00 00 00 00 00 6A [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:51]Read from MH i2c: E2 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 62 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 62 00 E4 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C8 DC 02 00 0E 04 04 00 89 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 C3 [11:18:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C8 DC 02 00 0E 04 04 00 89 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 [11:18:51]wFMCommunicate OK [11:18:51]SAM_PROTO_GetFieldsCounters done [11:18:51]requested_item shift.num is exist - process it [11:18:51]requested_item shift.opened is exist - process it [11:18:51]req_shift_opened [11:18:51]FM_GetShiftState [11:18:51]SAM_PROTO_GetShiftState [11:18:51]wFMCommunicate request_size=4 [11:18:51]MH_SAM_APDU [11:18:51]CAPDU: 80 13 01 00 [11:18:51]Write to MH i2c: E2 08 00 E5 0A 80 13 01 00 00 00 00 00 6C [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 [11:18:51]MH_I2C_Read... [11:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:51]Read from MH i2c: E2 0E 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 0E 00 E5 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 5A [11:18:51]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:18:51]wFMCommunicate OK [11:18:51]SAM_PROTO_GetShiftState done [11:18:51]FM_GetShiftState done [11:18:51]req_shift_opened done [11:18:51]requested_item shift.open_date is exist - process it [11:18:51]req_shift_open_date [11:18:51]req_shift_open_date done [11:18:51]produce_requested_data done [11:18:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187592,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:18:51]process_action_free close_receipt [11:18:51]json_value_free [11:18:51]json_value_free done [11:18:51]process_json_proto returns [11:18:51]Send response to host [11:18:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187592,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:18:51]free response buf [11:18:51]execute_script done [11:18:51]execute_script returns [11:18:51]free content buf [11:18:51]Sock 8.Close socket [11:18:51]Sock 8.Thread stoped [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:23]int [11:19:23]Write to MH i2c: 01 00 00 E6 0A F0 [11:19:23]*** FLAG_PRN_PAP1 set [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 [11:19:23]MH_I2C_Read... [11:19:23]*** FLAG_PRN_PAP1 reset [11:19:23]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 FF 0F 05 [11:19:23]state=0 [11:19:23]int [11:19:23]Write to MH i2c: 01 00 00 E7 0A F1 [11:19:23]*** FLAG_PRN_PAP1 set [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 E7 0A 00 01 00 00 00 FF 0F 07 [11:19:23]state=0 [11:19:23]No paper [11:19:23]int [11:19:23]Write to MH i2c: 01 00 00 E8 0A F2 [11:19:23]*** FLAG_PRN_PAP2 set [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 E8 0A 00 03 00 00 00 FF 0F 0A [11:19:23]state=0 [11:19:23]No paper [11:19:23]Cover opened [11:19:24]int [11:19:24]Write to MH i2c: 01 00 00 E9 0A F3 [11:19:24]*** FLAG_PRN_PAP2 reset [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 07 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 07 00 E9 0A 00 01 00 00 00 FF 0F 09 [11:19:24]state=3 [11:19:24]No paper [11:19:24]Cover closed [11:19:24]int [11:19:24]Write to MH i2c: 01 00 00 EA 0A F4 [11:19:24]*** FLAG_PRN_PAP2 set [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 07 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 07 00 EA 0A 00 03 00 00 00 FF 0F 0C [11:19:24]state=0 [11:19:24]No paper [11:19:24]Cover opened [11:19:25]OFD Sender: No OFD packet to send [11:19:29]Write to MH i2c: 01 00 00 EB 0A F5 [11:19:29]Write i2c OK [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: 01 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: 01 07 00 [11:19:29]MH_I2C_Read... [11:19:29]Read from MH i2c: 01 07 00 EB 0A 00 03 00 00 00 FF 0F 0D [11:19:29]state=3 [11:19:29]No paper [11:19:29]Cover opened [11:19:30]OFD Sender: No OFD packet to send [11:19:32]int [11:19:32]Write to MH i2c: 01 00 00 EC 0A F6 [11:19:32]*** FLAG_PRN_PAP2 reset [11:19:32]Write i2c OK [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: 01 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: 01 07 00 [11:19:32]MH_I2C_Read... [11:19:32]Read from MH i2c: 01 07 00 EC 0A 00 01 00 00 00 FF 0F 0C [11:19:32]state=3 [11:19:32]No paper [11:19:32]Cover closed [11:19:33]int [11:19:33]Write to MH i2c: 01 00 00 ED 0A F7 [11:19:33]*** FLAG_PRN_PAP2 set [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: 01 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: 01 07 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: 01 07 00 ED 0A 00 03 00 00 00 FF 0F 0F [11:19:33]state=0 [11:19:33]No paper [11:19:33]Cover opened [11:19:35]OFD Sender: No OFD packet to send [11:19:38]Write to MH i2c: 01 00 00 EE 0A F8 [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: 01 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: 01 07 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: 01 07 00 EE 0A 00 03 00 00 00 FF 0F 10 [11:19:38]state=3 [11:19:38]No paper [11:19:38]Cover opened [11:19:40]OFD Sender: No OFD packet to send [11:19:42]int [11:19:42]Write to MH i2c: 01 00 00 EF 0A F9 [11:19:42]*** FLAG_PRN_PAP2 reset [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 07 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 07 00 EF 0A 00 01 00 00 00 FF 0F 0F [11:19:42]state=3 [11:19:42]No paper [11:19:42]Cover closed [11:19:42]int [11:19:42]Write to MH i2c: 01 00 00 F0 0A FA [11:19:42]*** FLAG_PRN_PAP1 reset [11:19:42]Write i2c OK [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 07 00 [11:19:42]MH_I2C_Read... [11:19:42]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 FF 0F 0F [11:19:42]state=0 [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:18]accept exits with 9 [11:20:18]New connection [11:20:18]New thread 3066936676 created [11:20:18]Thread 3067080036 joined [11:20:18]Waiting for new connection... [11:20:18] Sock 9.Parse request [11:20:18]Sock 9.Check first char [11:20:18]Sock 9.First char is OK [11:20:18]request: POST /json_proto HTTP/1.0 [11:20:18]Method: POST [11:20:18]URL: /json_proto [11:20:18]Method is POST - this is cgi request [11:20:18]url: /json_proto [11:20:18]query_string will be loaded in cgi processing [11:20:18]execute_cgi json_proto POST (null) [11:20:18]execute_cgi path=json_proto method=POST [11:20:18]POST find Content-Length [11:20:18]Host: 172.17.46.131:8080 [11:20:18]Content-Length: 677 [11:20:18]Content-Type: application/json [11:20:18] [11:20:18]POST finish read [11:20:18]Found Content-Length = 677 [11:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:18]execute_script... [11:20: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)412750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:18]POST & json_proto [11:20:18]process_json_proto [11:20:18]json parsed OK: [11:20:18]protocol is kg_v1.0 [11:20:18]action value=close_receipt [11:20:18]process_action close_receipt [11:20:18]cmd_close_receipt [11:20:18]MH_GetDate [11:20:18]Write to MH i2c: F0 00 00 F1 0A EA [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: F0 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: F0 09 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: F0 09 00 F1 0A 00 72 61 B8 67 7E 41 4F 65 58 [11:20:18]GetLastDocTimeStamp 1740136728 [11:20:18]current date 1740136818 [11:20:18]FM_GetShiftState [11:20:18]SAM_PROTO_GetShiftState [11:20:18]wFMCommunicate request_size=4 [11:20:18]MH_SAM_APDU [11:20:18]CAPDU: 80 13 01 00 [11:20:18]Write to MH i2c: E2 08 00 F2 0A 80 13 01 00 00 00 00 00 79 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:18]Read from MH i2c: E2 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 0E 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 0E 00 F2 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 67 [11:20:18]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:20:18]wFMCommunicate OK [11:20:18]SAM_PROTO_GetShiftState done [11:20:18]FM_GetShiftState done [11:20:18]opened in 1740098043 [11:20:18]opened+sec_in_day 1740184443 [11:20:18]quantity*price = 30045 [11:20:18]sum+1 = 30047 [11:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 87 21.02.2025 11:20 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187593 ФПД: 140233630936573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112018&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187593&fm=140233630936573&tin=02508201610067®Number=0000000000091857&sum=30000 [11:20:19]StoreToDocumentArchive [11:20:19]shift 649 fd 187593 [11:20:19]save to /storage/0649/doc_00187593 [11:20:19]save last doc name /storage/0649/doc_00187593 to /storage/kkm_last_doc_name [11:20:19]save OK [11:20:19]Clear old archive folders... [11:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:19]tlvbuf is 01E3D850 [11:20:19]SAM_PROTO_ClearQueue [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 09 00 00 [11:20:19]Write to MH i2c: E2 08 00 FF 0A 80 09 00 00 00 00 00 00 7B [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 FF 0A 00 90 00 7D [11:20:19]RAPDU: 90 00 [11:20:19]wFMCommunicate OK [11:20:19]SAM_PROTO_ClearQueue done [11:20:19]KKMCreateOFDPacket [11:20:19]OFDProtocolAddRootSTLVToBuf [11:20:19]FM_MakeSignedData [11:20:19]FM_MakeSignedData [11:20:19]SAM_PROTO_SignData [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 0D 01 02 [11:20:19]Write to MH i2c: E2 08 00 00 0B 80 0D 01 02 00 00 00 00 84 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 00 0B 00 90 00 7F [11:20:19]RAPDU: 90 00 [11:20:19]wFMCommunicate OK [11:20:19]wFMCommunicate request_size=255 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 72 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DC 02 00 35 04 06 00 7F [11:20:19]Write to MH i2c: E2 02 01 01 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 72 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DC 02 00 35 04 06 00 7F 00 00 BC [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [11:20:19]RAPDU: 90 00 [11:20:19]wFMCommunicate OK [11:20:19]wFMCommunicate request_size=10 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 0D 02 02 05 8A AF C1 ED FD [11:20:19]Write to MH i2c: E2 0D 00 02 0B 80 0D 02 02 05 00 8A AF C1 ED FD 00 00 75 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [11:20:19]RAPDU: 90 00 [11:20:19]wFMCommunicate OK [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 0D 03 02 [11:20:19]Write to MH i2c: E2 08 00 03 0B 80 0D 03 02 00 00 00 00 89 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 0B 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 0B 00 03 0B 00 C9 A8 CB 4F EA E9 B9 CC 90 00 6D [11:20:19]RAPDU: C9 A8 CB 4F EA E9 B9 CC 90 00 [11:20:19]wFMCommunicate OK [11:20:19]SAM_PROTO_SignData done [11:20:19]FM_MakeSignedData done [11:20:19]CreateOFDProtocolMessage [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 11 00 00 [11:20:19]Write to MH i2c: E2 08 00 04 0B 80 11 00 00 00 00 00 00 89 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 17 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 17 00 04 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DC [11:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:20:19]wFMCommunicate OK [11:20:19]CreateOFDProtocolMessage done [11:20:19]OFDSenderStorePacket 187593 [11:20:19]StoreOFDPacket docnum=187593 [11:20:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F3 92 07 01 8F 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 72 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DC 02 00 35 04 06 00 7F 8A AF C1 ED FD C9 A8 CB 4F EA E9 B9 CC [11:20:19]CheckFolder [11:20:19]dirname=/storage/ofd_packets [11:20:19]CheckFolder done [11:20:19]ProducePacketName [11:20:19]name=ofd_packets/00187593 [11:20:19]NVStorageSaveData ofd_packets/00187593 [11:20:19]File name is /storage/ofd_packets/00187593 [11:20:19]Write 301 bytes [11:20:19]NVStorageSaveData done [11:20:19]OFDSenderStorePacket done [11:20:19]KKMCreateOFDPacket done [11:20:19]NVStorageSaveData kkm_last_timestamp [11:20:19]File name is /storage/kkm_last_timestamp [11:20:19]Write 4 bytes [11:20:19]NVStorageSaveData done [11:20:19]ExternCall_PrintAddStr [11:20:19]wPrintStart [11:20:19]Write to MH i2c: 01 00 00 05 0B 10 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 07 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 FF 0F 25 [11:20:19]RasterBufferAndPrint [11:20:19]line Счет N : (1)412750 [11:20:19]line ИНН: 02508201610067 [11:20:19]line Контрольно-Кассовый Чек [11:20:19]line ПРОДАЖА [11:20:19]line ТРК (МРК, ГНК) : 22 [11:20:19]line Товар: 2710124130 [11:20:19]line Аи-92-К-2 [11:20:19]line 4.680 * 64.20 [11:20:19]line = 300.46 [11:20:19]line НДС 12% НСП 1% [11:20:19]line > о реализуемом товаре [11:20:19]line ОКРУГЛЕНИЕ: -0.46 [11:20:19]line ИТОГО: 300.00 [11:20:19]line Внесено: 300.00 [11:20:19]line СДАЧА: 0.00 [11:20:19]line НСП 1% : 2.66 [11:20:19]line НДС 12% : 31.91 [11:20:19]line Наличными: 300.00 [11:20:19]line Безнал.: 0.00 [11:20:19]line Место: АЗС № 92 "Партнер Нефть" [11:20:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:20:19]line СНО: Общий режим [11:20:19]line Чек 87 21.02.2025 11:20 [11:20:19]line Смена: 649 ФФД: 1.0 [11:20:19]line ЗНМ: 0300000118 [11:20:19]line РНМ: 0000000000091857 [11:20:19]line Версия ККМ: 001 [11:20:19]line ФМ: 0000000000871826 [11:20:19]line ФД: 187593 [11:20:19]line ФПД: 140233630936573 [11:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112018&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187593&fm=140233630936573&tin=02508201610067®Number=0000000000091857&sum=30000 [11:20:20]written 0, free lines is 4095 [11:20:20]OFD Sender: Processing packet 187593 [packets to send 49, broken 48] [11:20:20]ProducePacketName [11:20:20]name=ofd_packets/00187593 [11:20:20]OFD Sender: To server: pG, [11:20:20]CommunicateWithHost lk.salyk.kg:30040 [11:20:20]ConnectInit lk.salyk.kg [11:20:20]Connected sock=11 [11:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F3 92 07 01 8F 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 72 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DC 02 00 35 04 06 00 7F 8A AF C1 ED FD C9 A8 CB 4F EA E9 B9 CC [11:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B7 6D 47 00 3F 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 DC 02 00 F4 03 04 00 C0 07 B8 67 B6 04 01 00 00 57 1A 9F 64 36 4B 0D 2A [11:20:20]CommunicateWithHost err = 0 [11:20:20]CheckOFDResponse [11:20:20]1017 (14) - 77093643461234 [11:20:20]1041 (16) - 0000000000871826 [11:20:20]1040 (4) - 187593 [11:20:20]1012 (4) - 21.02.2025 04:57 [11:20:20]1206 (1) - 0 [11:20:20]OFD Sender: Remove packet 187593 [11:20:20]ProducePacketName [11:20:20]name=ofd_packets/00187593 [11:20:20]NVStorageDeleteData [11:20:20]Write to MH i2c: 01 00 00 30 0B 3B [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: 01 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: 01 07 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: 01 07 00 30 0B 00 00 00 00 00 FB 0C 49 [11:20:20]RasterBufferAndPrint [11:20:20]line [11:20:20]line [11:20:20]line [11:20:20]line [11:20:20]line [11:20:20]written 0, free lines is 3329 [11:20:20]MH_Cut [11:20:20]Write to MH i2c: D1 01 00 37 0B 01 14 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: D1 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: D1 01 00 [11:20:20]MH_I2C_Read... [11:20:20]Read from MH i2c: D1 01 00 37 0B 00 13 [11:20:20]Write to MH i2c: 01 00 00 38 0B 43 [11:20:20]Write i2c OK [11:20:20]MH_I2C_Read... [11:20:21]OFD Sender: No OFD packet to send [11:20:21]*** Cut start [11:20:21]*** Partial cut [11:20:21]*** CUTSNS_PIN = 1 [11:20:21]*** CUTSNS_PIN = 0 [11:20:21]*** Brake cut motor [11:20:22]Read from MH i2c: 01 [11:20:22]MH_I2C_Read... [11:20:22]*** Stop cut motor [11:20:22]*** Cut end [11:20:22]Read from MH i2c: 01 07 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: 01 07 00 38 0B 00 00 00 00 00 FF 0F 58 [11:20:22]process_action close_receipt done [11:20:22]requested_data is exist [11:20:22]produce_requested_data [11:20:22]requested_item fm.sn is exist - process it [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 11 00 00 [11:20:22]Write to MH i2c: E2 08 00 39 0B 80 11 00 00 00 00 00 00 BE [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 17 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 17 00 39 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [11:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:20:22]wFMCommunicate OK [11:20:22]requested_item fd.num is exist - process it [11:20:22]SAM_PROTO_GetFieldsCounters [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 13 00 00 [11:20:22]Write to MH i2c: E2 08 00 3A 0B 80 13 00 00 00 00 00 00 C1 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 62 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 62 00 3A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C9 DC 02 00 0E 04 04 00 89 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 1E [11:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C9 DC 02 00 0E 04 04 00 89 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 [11:20:22]wFMCommunicate OK [11:20:22]SAM_PROTO_GetFieldsCounters done [11:20:22]requested_item shift.num is exist - process it [11:20:22]requested_item shift.opened is exist - process it [11:20:22]req_shift_opened [11:20:22]FM_GetShiftState [11:20:22]SAM_PROTO_GetShiftState [11:20:22]wFMCommunicate request_size=4 [11:20:22]MH_SAM_APDU [11:20:22]CAPDU: 80 13 01 00 [11:20:22]Write to MH i2c: E2 08 00 3B 0B 80 13 01 00 00 00 00 00 C3 [11:20:22]Write i2c OK [11:20:22]MH_I2C_Read... [11:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:22]Read from MH i2c: E2 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 0E 00 [11:20:22]MH_I2C_Read... [11:20:22]Read from MH i2c: E2 0E 00 3B 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B1 [11:20:22]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:20:22]wFMCommunicate OK [11:20:22]SAM_PROTO_GetShiftState done [11:20:22]FM_GetShiftState done [11:20:22]req_shift_opened done [11:20:22]requested_item shift.open_date is exist - process it [11:20:22]req_shift_open_date [11:20:22]req_shift_open_date done [11:20:22]produce_requested_data done [11:20:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187593,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:20:22]process_action_free close_receipt [11:20:22]json_value_free [11:20:22]json_value_free done [11:20:22]process_json_proto returns [11:20:22]Send response to host [11:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187593,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:20:22]free response buf [11:20:22]execute_script done [11:20:22]execute_script returns [11:20:22]free content buf [11:20:22]Sock 9.Close socket [11:20:22]Sock 9.Thread stoped [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:11]accept exits with 8 [11:22:11]New connection [11:22:11]New thread 3067080036 created [11:22:11]Thread 3066936676 joined [11:22:11]Waiting for new connection... [11:22:11] Sock 8.Parse request [11:22:11]Sock 8.Check first char [11:22:11]Sock 8.First char is OK [11:22:11]request: POST /json_proto HTTP/1.0 [11:22:11]Method: POST [11:22:11]URL: /json_proto [11:22:11]Method is POST - this is cgi request [11:22:11]url: /json_proto [11:22:11]query_string will be loaded in cgi processing [11:22:11]execute_cgi json_proto POST (null) [11:22:11]execute_cgi path=json_proto method=POST [11:22:11]POST find Content-Length [11:22:11]Host: 172.17.46.131:8080 [11:22:11]Content-Length: 808 [11:22:11]Content-Type: application/json [11:22:11] [11:22:11]POST finish read [11:22:11]Found Content-Length = 808 [11:22:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4999772.4999773", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:11]execute_script... [11:22: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)412751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4999772.4999773", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:11]POST & json_proto [11:22:11]process_json_proto [11:22:11]json parsed OK: [11:22:11]protocol is kg_v1.0 [11:22:11]action value=close_receipt [11:22:11]process_action close_receipt [11:22:11]cmd_close_receipt [11:22:11]MH_GetDate [11:22:11]Write to MH i2c: F0 00 00 3C 0B 36 [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: F0 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: F0 09 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: F0 09 00 3C 0B 00 E4 61 B8 67 7E 41 4F 65 16 [11:22:11]GetLastDocTimeStamp 1740136818 [11:22:11]current date 1740136932 [11:22:11]FM_GetShiftState [11:22:11]SAM_PROTO_GetShiftState [11:22:11]wFMCommunicate request_size=4 [11:22:11]MH_SAM_APDU [11:22:11]CAPDU: 80 13 01 00 [11:22:11]Write to MH i2c: E2 08 00 3D 0B 80 13 01 00 00 00 00 00 C5 [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:11]Read from MH i2c: E2 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 0E 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 0E 00 3D 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B3 [11:22:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:22:11]wFMCommunicate OK [11:22:11]SAM_PROTO_GetShiftState done [11:22:11]FM_GetShiftState done [11:22:11]opened in 1740098043 [11:22:11]opened+sec_in_day 1740184443 [11:22:11]quantity*price = 0 [11:22:11]sum+1 = 1 [11:22:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 88 21.02.2025 11:22 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4999772.4999773 ФМ: 0000000000871826 ФД: 187594 ФПД: 236036667966186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112212&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187594&fm=236036667966186&tin=02508201610067®Number=0000000000091857&sum=0 [11:22:12]StoreToDocumentArchive [11:22:12]shift 649 fd 187594 [11:22:12]save to /storage/0649/doc_00187594 [11:22:12]save last doc name /storage/0649/doc_00187594 to /storage/kkm_last_doc_name [11:22:12]save OK [11:22:12]Clear old archive folders... [11:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:13]tlvbuf is 01E8E920 [11:22:13]SAM_PROTO_ClearQueue [11:22:13]wFMCommunicate request_size=4 [11:22:13]MH_SAM_APDU [11:22:13]CAPDU: 80 09 00 00 [11:22:13]Write to MH i2c: E2 08 00 4A 0B 80 09 00 00 00 00 00 00 C7 [11:22:13]Write i2c OK [11:22:13]MH_I2C_Read... [11:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:13]Read from MH i2c: E2 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 03 00 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 03 00 4A 0B 00 90 00 C9 [11:22:13]RAPDU: 90 00 [11:22:13]wFMCommunicate OK [11:22:13]SAM_PROTO_ClearQueue done [11:22:13]KKMCreateOFDPacket [11:22:13]OFDProtocolAddRootSTLVToBuf [11:22:13]FM_MakeSignedData [11:22:13]FM_MakeSignedData [11:22:13]SAM_PROTO_SignData [11:22:13]wFMCommunicate request_size=4 [11:22:13]MH_SAM_APDU [11:22:13]CAPDU: 80 0D 01 02 [11:22:13]Write to MH i2c: E2 08 00 4B 0B 80 0D 01 02 00 00 00 00 CF [11:22:13]Write i2c OK [11:22:13]MH_I2C_Read... [11:22:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:13]Read from MH i2c: E2 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 03 00 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 03 00 4B 0B 00 90 00 CA [11:22:13]RAPDU: 90 00 [11:22:13]wFMCommunicate OK [11:22:13]wFMCommunicate request_size=255 [11:22:13]MH_SAM_APDU [11:22:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 E4 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DC 02 00 35 04 06 00 D6 [11:22:13]Write to MH i2c: E2 02 01 4C 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 E4 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DC 02 00 35 04 06 00 D6 00 00 0E [11:22:13]Write i2c OK [11:22:13]MH_I2C_Read... [11:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:13]Read from MH i2c: E2 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 03 00 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 03 00 4C 0B 00 90 00 CB [11:22:13]RAPDU: 90 00 [11:22:13]wFMCommunicate OK [11:22:13]wFMCommunicate request_size=10 [11:22:13]MH_SAM_APDU [11:22:13]CAPDU: 80 0D 02 02 05 AC 91 BF 82 EA [11:22:13]Write to MH i2c: E2 0D 00 4D 0B 80 0D 02 02 05 00 AC 91 BF 82 EA 00 00 44 [11:22:13]Write i2c OK [11:22:13]MH_I2C_Read... [11:22:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:13]Read from MH i2c: E2 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 03 00 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [11:22:13]RAPDU: 90 00 [11:22:13]wFMCommunicate OK [11:22:13]wFMCommunicate request_size=4 [11:22:13]MH_SAM_APDU [11:22:13]CAPDU: 80 0D 03 02 [11:22:13]Write to MH i2c: E2 08 00 4E 0B 80 0D 03 02 00 00 00 00 D4 [11:22:13]Write i2c OK [11:22:13]MH_I2C_Read... [11:22:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:13]Read from MH i2c: E2 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 0B 00 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 0B 00 4E 0B 00 4F EC 4C 3B 53 8D 06 F9 90 00 76 [11:22:13]RAPDU: 4F EC 4C 3B 53 8D 06 F9 90 00 [11:22:13]wFMCommunicate OK [11:22:13]SAM_PROTO_SignData done [11:22:13]FM_MakeSignedData done [11:22:13]CreateOFDProtocolMessage [11:22:13]wFMCommunicate request_size=4 [11:22:13]MH_SAM_APDU [11:22:13]CAPDU: 80 11 00 00 [11:22:13]Write to MH i2c: E2 08 00 4F 0B 80 11 00 00 00 00 00 00 D4 [11:22:13]Write i2c OK [11:22:13]MH_I2C_Read... [11:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:13]Read from MH i2c: E2 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 17 00 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: E2 17 00 4F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [11:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:22:13]wFMCommunicate OK [11:22:13]CreateOFDProtocolMessage done [11:22:13]OFDSenderStorePacket 187594 [11:22:13]StoreOFDPacket docnum=187594 [11:22:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AA 40 07 01 EF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 E4 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DC 02 00 35 04 06 00 D6 AC 91 BF 82 EA 4F EC 4C 3B 53 8D 06 F9 [11:22:13]CheckFolder [11:22:13]dirname=/storage/ofd_packets [11:22:13]CheckFolder done [11:22:13]ProducePacketName [11:22:13]name=ofd_packets/00187594 [11:22:13]NVStorageSaveData ofd_packets/00187594 [11:22:13]File name is /storage/ofd_packets/00187594 [11:22:13]Write 301 bytes [11:22:13]NVStorageSaveData done [11:22:13]OFDSenderStorePacket done [11:22:13]KKMCreateOFDPacket done [11:22:13]NVStorageSaveData kkm_last_timestamp [11:22:13]File name is /storage/kkm_last_timestamp [11:22:13]Write 4 bytes [11:22:13]NVStorageSaveData done [11:22:13]ExternCall_PrintAddStr [11:22:13]wPrintStart [11:22:13]Write to MH i2c: 01 00 00 50 0B 5B [11:22:13]Write i2c OK [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: 01 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: 01 07 00 [11:22:13]MH_I2C_Read... [11:22:13]Read from MH i2c: 01 07 00 50 0B 00 00 00 00 00 FF 0F 70 [11:22:13]RasterBufferAndPrint [11:22:13]line Счет N : (1)412751 [11:22:13]line ИНН: 02508201610067 [11:22:13]line Контрольно-Кассовый Чек [11:22:13]line ПРОДАЖА [11:22:13]line ТРК (МРК, ГНК) : 32 [11:22:13]line Товар: 2710124130 [11:22:13]line Аи-92-К-2 [11:22:13]line 20.000 * 0.00 [11:22:13]line = 0.00 [11:22:13]line НДС 12% НСП 1% [11:22:13]line > о реализуемом товаре [11:22:13]line ИТОГО: 0.00 [11:22:13]line НСП 1% : 0.00 [11:22:13]line НДС 12% : 0.00 [11:22:13]line Наличными: 0.00 [11:22:13]line Безнал.: 0.00 [11:22:13]line Место: АЗС № 92 "Партнер Нефть" [11:22:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:22:13]line СНО: Общий режим [11:22:13]line Чек 88 21.02.2025 11:22 [11:22:13]line Смена: 649 ФФД: 1.0 [11:22:13]line ЗНМ: 0300000118 [11:22:13]line РНМ: 0000000000091857 [11:22:13]line Версия ККМ: 001 [11:22:13]line Талоны: Топливные Талоны [11:22:13]line 4999772.4999773 [11:22:13]line ФМ: 0000000000871826 [11:22:13]line ФД: 187594 [11:22:13]line ФПД: 236036667966186 [11:22:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112212&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187594&fm=236036667966186&tin=02508201610067®Number=0000000000091857&sum=0 [11:22:13]written 0, free lines is 4095 [11:22:13]OFD Sender: Processing packet 187594 [packets to send 49, broken 48] [11:22:13]ProducePacketName [11:22:13]name=ofd_packets/00187594 [11:22:13]OFD Sender: To server: pG, [11:22:13]CommunicateWithHost lk.salyk.kg:30040 [11:22:13]ConnectInit lk.salyk.kg [11:22:14]Connected sock=10 [11:22:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AA 40 07 01 EF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 E4 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DC 02 00 35 04 06 00 D6 AC 91 BF 82 EA 4F EC 4C 3B 53 8D 06 F9 [11:22:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 ED BF 47 00 53 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA DC 02 00 F4 03 04 00 32 08 B8 67 B6 04 01 00 00 2C AD C7 6A 05 CF D8 F6 [11:22:14]CommunicateWithHost err = 0 [11:22:14]CheckOFDResponse [11:22:14]1017 (14) - 77093643461234 [11:22:14]1041 (16) - 0000000000871826 [11:22:14]1040 (4) - 187594 [11:22:14]1012 (4) - 21.02.2025 04:59 [11:22:14]1206 (1) - 0 [11:22:14]OFD Sender: Remove packet 187594 [11:22:14]ProducePacketName [11:22:14]name=ofd_packets/00187594 [11:22:14]NVStorageDeleteData [11:22:14]Write to MH i2c: 01 00 00 7A 0B 85 [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: 01 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: 01 07 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 06 0D 9F [11:22:14]RasterBufferAndPrint [11:22:14]line [11:22:14]line [11:22:14]line [11:22:14]line [11:22:14]line [11:22:14]written 0, free lines is 3340 [11:22:14]MH_Cut [11:22:14]Write to MH i2c: D1 01 00 81 0B 01 5E [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: D1 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: D1 01 00 [11:22:14]MH_I2C_Read... [11:22:14]Read from MH i2c: D1 01 00 81 0B 00 5D [11:22:14]Write to MH i2c: 01 00 00 82 0B 8D [11:22:14]Write i2c OK [11:22:14]MH_I2C_Read... [11:22:14]OFD Sender: No OFD packet to send [11:22:14]*** Cut start [11:22:14]*** Partial cut [11:22:14]*** CUTSNS_PIN = 1 [11:22:15]*** CUTSNS_PIN = 0 [11:22:15]*** Brake cut motor [11:22:15]Read from MH i2c: 01 [11:22:15]MH_I2C_Read... [11:22:15]*** Stop cut motor [11:22:15]*** Cut end [11:22:15]Read from MH i2c: 01 07 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: 01 07 00 82 0B 00 00 00 00 00 FF 0F A2 [11:22:15]process_action close_receipt done [11:22:15]requested_data is exist [11:22:15]produce_requested_data [11:22:15]requested_item fm.sn is exist - process it [11:22:15]wFMCommunicate request_size=4 [11:22:15]MH_SAM_APDU [11:22:15]CAPDU: 80 11 00 00 [11:22:15]Write to MH i2c: E2 08 00 83 0B 80 11 00 00 00 00 00 00 08 [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 17 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 17 00 83 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5B [11:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:22:15]wFMCommunicate OK [11:22:15]requested_item fd.num is exist - process it [11:22:15]SAM_PROTO_GetFieldsCounters [11:22:15]wFMCommunicate request_size=4 [11:22:15]MH_SAM_APDU [11:22:15]CAPDU: 80 13 00 00 [11:22:15]Write to MH i2c: E2 08 00 84 0B 80 13 00 00 00 00 00 00 0B [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 62 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 62 00 84 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CA DC 02 00 0E 04 04 00 89 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 6C [11:22:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CA DC 02 00 0E 04 04 00 89 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 [11:22:15]wFMCommunicate OK [11:22:15]SAM_PROTO_GetFieldsCounters done [11:22:15]requested_item shift.num is exist - process it [11:22:15]requested_item shift.opened is exist - process it [11:22:15]req_shift_opened [11:22:15]FM_GetShiftState [11:22:15]SAM_PROTO_GetShiftState [11:22:15]wFMCommunicate request_size=4 [11:22:15]MH_SAM_APDU [11:22:15]CAPDU: 80 13 01 00 [11:22:15]Write to MH i2c: E2 08 00 85 0B 80 13 01 00 00 00 00 00 0D [11:22:15]Write i2c OK [11:22:15]MH_I2C_Read... [11:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:15]Read from MH i2c: E2 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0E 00 [11:22:15]MH_I2C_Read... [11:22:15]Read from MH i2c: E2 0E 00 85 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FB [11:22:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:22:15]wFMCommunicate OK [11:22:15]SAM_PROTO_GetShiftState done [11:22:15]FM_GetShiftState done [11:22:15]req_shift_opened done [11:22:15]requested_item shift.open_date is exist - process it [11:22:15]req_shift_open_date [11:22:15]req_shift_open_date done [11:22:15]produce_requested_data done [11:22:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187594,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:22:15]process_action_free close_receipt [11:22:15]json_value_free [11:22:15]json_value_free done [11:22:15]process_json_proto returns [11:22:15]Send response to host [11:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187594,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:22:15]free response buf [11:22:15]execute_script done [11:22:15]execute_script returns [11:22:15]free content buf [11:22:15]Sock 8.Close socket [11:22:15]Sock 8.Thread stoped [11:22:19]OFD Sender: No OFD packet to send [11:22:19]accept exits with 9 [11:22:19]New connection [11:22:19]New thread 3066936676 created [11:22:19]Thread 3067080036 joined [11:22:19]Waiting for new connection... [11:22:19] Sock 9.Parse request [11:22:19]Sock 9.Check first char [11:22:19]Sock 9.First char is OK [11:22:19]request: POST /json_proto HTTP/1.0 [11:22:19]Method: POST [11:22:19]URL: /json_proto [11:22:19]Method is POST - this is cgi request [11:22:19]url: /json_proto [11:22:19]query_string will be loaded in cgi processing [11:22:19]execute_cgi json_proto POST (null) [11:22:19]execute_cgi path=json_proto method=POST [11:22:19]POST find Content-Length [11:22:19]Host: 172.17.46.131:8080 [11:22:19]Content-Length: 677 [11:22:19]Content-Type: application/json [11:22:19] [11:22:19]POST finish read [11:22:19]Found Content-Length = 677 [11:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:19]execute_script... [11:22: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)412752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:19]POST & json_proto [11:22:19]process_json_proto [11:22:19]json parsed OK: [11:22:19]protocol is kg_v1.0 [11:22:19]action value=close_receipt [11:22:19]process_action close_receipt [11:22:19]cmd_close_receipt [11:22:19]MH_GetDate [11:22:19]Write to MH i2c: F0 00 00 86 0B 80 [11:22:19]Write i2c OK [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: F0 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: F0 09 00 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: F0 09 00 86 0B 00 EC 61 B8 67 7E 41 4F 65 68 [11:22:19]GetLastDocTimeStamp 1740136932 [11:22:19]current date 1740136940 [11:22:19]FM_GetShiftState [11:22:19]SAM_PROTO_GetShiftState [11:22:19]wFMCommunicate request_size=4 [11:22:19]MH_SAM_APDU [11:22:19]CAPDU: 80 13 01 00 [11:22:19]Write to MH i2c: E2 08 00 87 0B 80 13 01 00 00 00 00 00 0F [11:22:19]Write i2c OK [11:22:19]MH_I2C_Read... [11:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:19]Read from MH i2c: E2 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 0E 00 [11:22:19]MH_I2C_Read... [11:22:19]Read from MH i2c: E2 0E 00 87 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FD [11:22:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:22:19]wFMCommunicate OK [11:22:19]SAM_PROTO_GetShiftState done [11:22:19]FM_GetShiftState done [11:22:19]opened in 1740098043 [11:22:19]opened+sec_in_day 1740184443 [11:22:19]quantity*price = 50011 [11:22:19]sum+1 = 50013 [11:22:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 89 21.02.2025 11:22 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187595 ФПД: 199254620643504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112220&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187595&fm=199254620643504&tin=02508201610067®Number=0000000000091857&sum=50000 [11:22:20]StoreToDocumentArchive [11:22:20]shift 649 fd 187595 [11:22:20]save to /storage/0649/doc_00187595 [11:22:20]save last doc name /storage/0649/doc_00187595 to /storage/kkm_last_doc_name [11:22:20]save OK [11:22:20]Clear old archive folders... [11:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:20]tlvbuf is 01E42E70 [11:22:20]SAM_PROTO_ClearQueue [11:22:20]wFMCommunicate request_size=4 [11:22:20]MH_SAM_APDU [11:22:20]CAPDU: 80 09 00 00 [11:22:20]Write to MH i2c: E2 08 00 94 0B 80 09 00 00 00 00 00 00 11 [11:22:20]Write i2c OK [11:22:20]MH_I2C_Read... [11:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:21]Read from MH i2c: E2 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 03 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 03 00 94 0B 00 90 00 13 [11:22:21]RAPDU: 90 00 [11:22:21]wFMCommunicate OK [11:22:21]SAM_PROTO_ClearQueue done [11:22:21]KKMCreateOFDPacket [11:22:21]OFDProtocolAddRootSTLVToBuf [11:22:21]FM_MakeSignedData [11:22:21]FM_MakeSignedData [11:22:21]SAM_PROTO_SignData [11:22:21]wFMCommunicate request_size=4 [11:22:21]MH_SAM_APDU [11:22:21]CAPDU: 80 0D 01 02 [11:22:21]Write to MH i2c: E2 08 00 95 0B 80 0D 01 02 00 00 00 00 19 [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:21]Read from MH i2c: E2 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 03 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 03 00 95 0B 00 90 00 14 [11:22:21]RAPDU: 90 00 [11:22:21]wFMCommunicate OK [11:22:21]wFMCommunicate request_size=255 [11:22:21]MH_SAM_APDU [11:22:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 EC 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DC 02 00 35 04 06 00 B5 [11:22:21]Write to MH i2c: E2 02 01 96 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 EC 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DC 02 00 35 04 06 00 B5 00 00 60 [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:21]Read from MH i2c: E2 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 03 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 03 00 96 0B 00 90 00 15 [11:22:21]RAPDU: 90 00 [11:22:21]wFMCommunicate OK [11:22:21]wFMCommunicate request_size=10 [11:22:21]MH_SAM_APDU [11:22:21]CAPDU: 80 0D 02 02 05 38 94 E2 20 B0 [11:22:21]Write to MH i2c: E2 0D 00 97 0B 80 0D 02 02 05 00 38 94 E2 20 B0 00 00 A4 [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:21]Read from MH i2c: E2 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 03 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 03 00 97 0B 00 90 00 16 [11:22:21]RAPDU: 90 00 [11:22:21]wFMCommunicate OK [11:22:21]wFMCommunicate request_size=4 [11:22:21]MH_SAM_APDU [11:22:21]CAPDU: 80 0D 03 02 [11:22:21]Write to MH i2c: E2 08 00 98 0B 80 0D 03 02 00 00 00 00 1E [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:21]Read from MH i2c: E2 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 0B 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 0B 00 98 0B 00 E7 74 F6 8A 6D 37 92 B2 90 00 E2 [11:22:21]RAPDU: E7 74 F6 8A 6D 37 92 B2 90 00 [11:22:21]wFMCommunicate OK [11:22:21]SAM_PROTO_SignData done [11:22:21]FM_MakeSignedData done [11:22:21]CreateOFDProtocolMessage [11:22:21]wFMCommunicate request_size=4 [11:22:21]MH_SAM_APDU [11:22:21]CAPDU: 80 11 00 00 [11:22:21]Write to MH i2c: E2 08 00 99 0B 80 11 00 00 00 00 00 00 1E [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:21]Read from MH i2c: E2 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 17 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: E2 17 00 99 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 71 [11:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:22:21]wFMCommunicate OK [11:22:21]CreateOFDProtocolMessage done [11:22:21]OFDSenderStorePacket 187595 [11:22:21]StoreOFDPacket docnum=187595 [11:22:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 07 1B 07 01 05 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 EC 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DC 02 00 35 04 06 00 B5 38 94 E2 20 B0 E7 74 F6 8A 6D 37 92 B2 [11:22:21]CheckFolder [11:22:21]dirname=/storage/ofd_packets [11:22:21]CheckFolder done [11:22:21]ProducePacketName [11:22:21]name=ofd_packets/00187595 [11:22:21]NVStorageSaveData ofd_packets/00187595 [11:22:21]File name is /storage/ofd_packets/00187595 [11:22:21]Write 301 bytes [11:22:21]NVStorageSaveData done [11:22:21]OFDSenderStorePacket done [11:22:21]KKMCreateOFDPacket done [11:22:21]NVStorageSaveData kkm_last_timestamp [11:22:21]File name is /storage/kkm_last_timestamp [11:22:21]Write 4 bytes [11:22:21]NVStorageSaveData done [11:22:21]ExternCall_PrintAddStr [11:22:21]wPrintStart [11:22:21]Write to MH i2c: 01 00 00 9A 0B A5 [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: 01 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: 01 07 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: 01 07 00 9A 0B 00 00 00 00 00 FF 0F BA [11:22:21]RasterBufferAndPrint [11:22:21]line Счет N : (1)412752 [11:22:21]line ИНН: 02508201610067 [11:22:21]line Контрольно-Кассовый Чек [11:22:21]line ПРОДАЖА [11:22:21]line ТРК (МРК, ГНК) : 12 [11:22:21]line Товар: 2710124130 [11:22:21]line Аи-92-К-2 [11:22:21]line 7.790 * 64.20 [11:22:21]line = 500.12 [11:22:21]line НДС 12% НСП 1% [11:22:21]line > о реализуемом товаре [11:22:21]line ОКРУГЛЕНИЕ: -0.12 [11:22:21]line ИТОГО: 500.00 [11:22:21]line Внесено: 500.00 [11:22:21]line СДАЧА: 0.00 [11:22:21]line НСП 1% : 4.43 [11:22:21]line НДС 12% : 53.11 [11:22:21]line Наличными: 500.00 [11:22:21]line Безнал.: 0.00 [11:22:21]line Место: АЗС № 92 "Партнер Нефть" [11:22:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:22:21]line СНО: Общий режим [11:22:21]line Чек 89 21.02.2025 11:22 [11:22:21]line Смена: 649 ФФД: 1.0 [11:22:21]line ЗНМ: 0300000118 [11:22:21]line РНМ: 0000000000091857 [11:22:21]line Версия ККМ: 001 [11:22:21]line ФМ: 0000000000871826 [11:22:21]line ФД: 187595 [11:22:21]line ФПД: 199254620643504 [11:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112220&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187595&fm=199254620643504&tin=02508201610067®Number=0000000000091857&sum=50000 [11:22:21]written 0, free lines is 4095 [11:22:21]OFD Sender: Processing packet 187595 [packets to send 49, broken 48] [11:22:21]ProducePacketName [11:22:21]name=ofd_packets/00187595 [11:22:21]OFD Sender: To server: pG, [11:22:21]CommunicateWithHost lk.salyk.kg:30040 [11:22:21]ConnectInit lk.salyk.kg [11:22:21]Connected sock=10 [11:22:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 07 1B 07 01 05 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 EC 61 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DC 02 00 35 04 06 00 B5 38 94 E2 20 B0 E7 74 F6 8A 6D 37 92 B2 [11:22:21]Write to MH i2c: 01 00 00 C5 0B D0 [11:22:21]Write i2c OK [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: 01 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: 01 07 00 [11:22:21]MH_I2C_Read... [11:22:21]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 ED 0C D0 [11:22:21]RasterBufferAndPrint [11:22:21]line [11:22:21]line [11:22:21]line [11:22:21]line [11:22:21]line [11:22:21]written 0, free lines is 3318 [11:22:22]MH_Cut [11:22:22]Write to MH i2c: D1 01 00 CC 0B 01 A9 [11:22:22]Write i2c OK [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: D1 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: D1 01 00 [11:22:22]MH_I2C_Read... [11:22:22]Read from MH i2c: D1 01 00 CC 0B 00 A8 [11:22:22]Write to MH i2c: 01 00 00 CD 0B D8 [11:22:22]Write i2c OK [11:22:22]MH_I2C_Read... [11:22:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 13 DE 47 00 AB 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DC 02 00 F4 03 04 00 3A 08 B8 67 B6 04 01 00 00 E4 BA AE 8D 47 D5 2F 74 [11:22:22]CommunicateWithHost err = 0 [11:22:22]CheckOFDResponse [11:22:22]1017 (14) - 77093643461234 [11:22:22]1041 (16) - 0000000000871826 [11:22:22]1040 (4) - 187595 [11:22:22]1012 (4) - 21.02.2025 04:59 [11:22:22]1206 (1) - 0 [11:22:22]OFD Sender: Remove packet 187595 [11:22:22]ProducePacketName [11:22:22]name=ofd_packets/00187595 [11:22:22]NVStorageDeleteData [11:22:22]OFD Sender: No OFD packet to send [11:22:22]*** Cut start [11:22:22]*** Partial cut [11:22:22]*** CUTSNS_PIN = 1 [11:22:22]*** CUTSNS_PIN = 0 [11:22:23]*** Brake cut motor [11:22:23]Read from MH i2c: 01 [11:22:23]MH_I2C_Read... [11:22:23]*** Stop cut motor [11:22:23]*** Cut end [11:22:23]Read from MH i2c: 01 07 00 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: 01 07 00 CD 0B 00 00 00 00 00 FF 0F ED [11:22:23]process_action close_receipt done [11:22:23]requested_data is exist [11:22:23]produce_requested_data [11:22:23]requested_item fm.sn is exist - process it [11:22:23]wFMCommunicate request_size=4 [11:22:23]MH_SAM_APDU [11:22:23]CAPDU: 80 11 00 00 [11:22:23]Write to MH i2c: E2 08 00 CE 0B 80 11 00 00 00 00 00 00 53 [11:22:23]Write i2c OK [11:22:23]MH_I2C_Read... [11:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:23]Read from MH i2c: E2 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 17 00 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 17 00 CE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A6 [11:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:22:23]wFMCommunicate OK [11:22:23]requested_item fd.num is exist - process it [11:22:23]SAM_PROTO_GetFieldsCounters [11:22:23]wFMCommunicate request_size=4 [11:22:23]MH_SAM_APDU [11:22:23]CAPDU: 80 13 00 00 [11:22:23]Write to MH i2c: E2 08 00 CF 0B 80 13 00 00 00 00 00 00 56 [11:22:23]Write i2c OK [11:22:23]MH_I2C_Read... [11:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:23]Read from MH i2c: E2 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 62 00 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 62 00 CF 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CB DC 02 00 0E 04 04 00 89 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 BB [11:22:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CB DC 02 00 0E 04 04 00 89 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 [11:22:23]wFMCommunicate OK [11:22:23]SAM_PROTO_GetFieldsCounters done [11:22:23]requested_item shift.num is exist - process it [11:22:23]requested_item shift.opened is exist - process it [11:22:23]req_shift_opened [11:22:23]FM_GetShiftState [11:22:23]SAM_PROTO_GetShiftState [11:22:23]wFMCommunicate request_size=4 [11:22:23]MH_SAM_APDU [11:22:23]CAPDU: 80 13 01 00 [11:22:23]Write to MH i2c: E2 08 00 D0 0B 80 13 01 00 00 00 00 00 58 [11:22:23]Write i2c OK [11:22:23]MH_I2C_Read... [11:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:23]Read from MH i2c: E2 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 0E 00 [11:22:23]MH_I2C_Read... [11:22:23]Read from MH i2c: E2 0E 00 D0 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 46 [11:22:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:22:23]wFMCommunicate OK [11:22:23]SAM_PROTO_GetShiftState done [11:22:23]FM_GetShiftState done [11:22:23]req_shift_opened done [11:22:23]requested_item shift.open_date is exist - process it [11:22:23]req_shift_open_date [11:22:23]req_shift_open_date done [11:22:23]produce_requested_data done [11:22:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187595,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:22:23]process_action_free close_receipt [11:22:23]json_value_free [11:22:23]json_value_free done [11:22:23]process_json_proto returns [11:22:23]Send response to host [11:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187595,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:22:23]free response buf [11:22:23]execute_script done [11:22:23]execute_script returns [11:22:23]free content buf [11:22:23]Sock 9.Close socket [11:22:23]Sock 9.Thread stoped [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:24]accept exits with 8 [11:27:24]New connection [11:27:24]New thread 3067080036 created [11:27:24]Thread 3066936676 joined [11:27:24]Waiting for new connection... [11:27:24] Sock 8.Parse request [11:27:24]Sock 8.Check first char [11:27:24]Sock 8.First char is OK [11:27:24]request: POST /json_proto HTTP/1.0 [11:27:24]Method: POST [11:27:24]URL: /json_proto [11:27:24]Method is POST - this is cgi request [11:27:24]url: /json_proto [11:27:24]query_string will be loaded in cgi processing [11:27:24]execute_cgi json_proto POST (null) [11:27:24]execute_cgi path=json_proto method=POST [11:27:24]POST find Content-Length [11:27:24]Host: 172.17.46.131:8080 [11:27:24]Content-Length: 678 [11:27:24]Content-Type: application/json [11:27:24] [11:27:24]POST finish read [11:27:24]Found Content-Length = 678 [11:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:24]execute_script... [11:27: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)412754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:24]POST & json_proto [11:27:24]process_json_proto [11:27:24]json parsed OK: [11:27:24]protocol is kg_v1.0 [11:27:24]action value=close_receipt [11:27:24]process_action close_receipt [11:27:24]cmd_close_receipt [11:27:24]MH_GetDate [11:27:24]Write to MH i2c: F0 00 00 D1 0B CB [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: F0 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: F0 09 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: F0 09 00 D1 0B 00 1C 63 B8 67 7E 41 4F 65 E5 [11:27:24]GetLastDocTimeStamp 1740136940 [11:27:24]current date 1740137244 [11:27:24]FM_GetShiftState [11:27:24]SAM_PROTO_GetShiftState [11:27:24]wFMCommunicate request_size=4 [11:27:24]MH_SAM_APDU [11:27:24]CAPDU: 80 13 01 00 [11:27:24]Write to MH i2c: E2 08 00 D2 0B 80 13 01 00 00 00 00 00 5A [11:27:24]Write i2c OK [11:27:24]MH_I2C_Read... [11:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:24]Read from MH i2c: E2 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 0E 00 [11:27:24]MH_I2C_Read... [11:27:24]Read from MH i2c: E2 0E 00 D2 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 48 [11:27:24]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:27:24]wFMCommunicate OK [11:27:24]SAM_PROTO_GetShiftState done [11:27:24]FM_GetShiftState done [11:27:24]opened in 1740098043 [11:27:24]opened+sec_in_day 1740184443 [11:27:24]quantity*price = 80024 [11:27:24]sum+1 = 80026 [11:27:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 90 21.02.2025 11:27 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187596 ФПД: 94243987999400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112724&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187596&fm=94243987999400&tin=02508201610067®Number=0000000000091857&sum=80000 [11:27:25]StoreToDocumentArchive [11:27:25]shift 649 fd 187596 [11:27:25]save to /storage/0649/doc_00187596 [11:27:25]save last doc name /storage/0649/doc_00187596 to /storage/kkm_last_doc_name [11:27:25]save OK [11:27:25]Clear old archive folders... [11:27:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:25]tlvbuf is 01E34540 [11:27:25]SAM_PROTO_ClearQueue [11:27:25]wFMCommunicate request_size=4 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 09 00 00 [11:27:25]Write to MH i2c: E2 08 00 DF 0B 80 09 00 00 00 00 00 00 5C [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [11:27:25]RAPDU: 90 00 [11:27:25]wFMCommunicate OK [11:27:25]SAM_PROTO_ClearQueue done [11:27:25]KKMCreateOFDPacket [11:27:25]OFDProtocolAddRootSTLVToBuf [11:27:25]FM_MakeSignedData [11:27:25]FM_MakeSignedData [11:27:25]SAM_PROTO_SignData [11:27:25]wFMCommunicate request_size=4 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 0D 01 02 [11:27:25]Write to MH i2c: E2 08 00 E0 0B 80 0D 01 02 00 00 00 00 64 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 E0 0B 00 90 00 5F [11:27:25]RAPDU: 90 00 [11:27:25]wFMCommunicate OK [11:27:25]wFMCommunicate request_size=255 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1C 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DC 02 00 35 04 06 00 55 [11:27:25]Write to MH i2c: E2 02 01 E1 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1C 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DC 02 00 35 04 06 00 55 00 00 2D [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 E1 0B 00 90 00 60 [11:27:25]RAPDU: 90 00 [11:27:25]wFMCommunicate OK [11:27:25]wFMCommunicate request_size=10 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 0D 02 02 05 B6 E3 6D 4A A8 [11:27:25]Write to MH i2c: E2 0D 00 E2 0B 80 0D 02 02 05 00 B6 E3 6D 4A A8 00 00 69 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 03 00 E2 0B 00 90 00 61 [11:27:25]RAPDU: 90 00 [11:27:25]wFMCommunicate OK [11:27:25]wFMCommunicate request_size=4 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 0D 03 02 [11:27:25]Write to MH i2c: E2 08 00 E3 0B 80 0D 03 02 00 00 00 00 69 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 0B 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 0B 00 E3 0B 00 EE D0 18 D4 2F 23 D4 B6 90 00 F0 [11:27:25]RAPDU: EE D0 18 D4 2F 23 D4 B6 90 00 [11:27:25]wFMCommunicate OK [11:27:25]SAM_PROTO_SignData done [11:27:25]FM_MakeSignedData done [11:27:25]CreateOFDProtocolMessage [11:27:25]wFMCommunicate request_size=4 [11:27:25]MH_SAM_APDU [11:27:25]CAPDU: 80 11 00 00 [11:27:25]Write to MH i2c: E2 08 00 E4 0B 80 11 00 00 00 00 00 00 69 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:25]Read from MH i2c: E2 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 17 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: E2 17 00 E4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BC [11:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:27:25]wFMCommunicate OK [11:27:25]CreateOFDProtocolMessage done [11:27:25]OFDSenderStorePacket 187596 [11:27:25]StoreOFDPacket docnum=187596 [11:27:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 92 BB 07 01 46 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1C 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DC 02 00 35 04 06 00 55 B6 E3 6D 4A A8 EE D0 18 D4 2F 23 D4 B6 [11:27:25]CheckFolder [11:27:25]dirname=/storage/ofd_packets [11:27:25]CheckFolder done [11:27:25]ProducePacketName [11:27:25]name=ofd_packets/00187596 [11:27:25]NVStorageSaveData ofd_packets/00187596 [11:27:25]File name is /storage/ofd_packets/00187596 [11:27:25]Write 301 bytes [11:27:25]NVStorageSaveData done [11:27:25]OFDSenderStorePacket done [11:27:25]KKMCreateOFDPacket done [11:27:25]NVStorageSaveData kkm_last_timestamp [11:27:25]File name is /storage/kkm_last_timestamp [11:27:25]Write 4 bytes [11:27:25]NVStorageSaveData done [11:27:25]ExternCall_PrintAddStr [11:27:25]wPrintStart [11:27:25]Write to MH i2c: 01 00 00 E5 0B F0 [11:27:25]Write i2c OK [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 07 00 [11:27:25]MH_I2C_Read... [11:27:25]Read from MH i2c: 01 07 00 E5 0B 00 00 00 00 00 FF 0F 05 [11:27:25]RasterBufferAndPrint [11:27:25]line Счет N : (1)412754 [11:27:25]line ИНН: 02508201610067 [11:27:25]line Контрольно-Кассовый Чек [11:27:25]line ПРОДАЖА [11:27:25]line ТРК (МРК, ГНК) : 13 [11:27:25]line Товар: 2710124500 [11:27:25]line Аи-95-К-5 [11:27:25]line 11.130 * 71.90 [11:27:25]line = 800.25 [11:27:25]line НДС 12% НСП 1% [11:27:25]line > о реализуемом товаре [11:27:25]line ОКРУГЛЕНИЕ: -0.25 [11:27:25]line ИТОГО: 800.00 [11:27:25]line Внесено: 800.00 [11:27:25]line СДАЧА: 0.00 [11:27:25]line НСП 1% : 7.08 [11:27:25]line НДС 12% : 84.98 [11:27:25]line Наличными: 800.00 [11:27:25]line Безнал.: 0.00 [11:27:25]line Место: АЗС № 92 "Партнер Нефть" [11:27:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:27:25]line СНО: Общий режим [11:27:25]line Чек 90 21.02.2025 11:27 [11:27:25]line Смена: 649 ФФД: 1.0 [11:27:25]line ЗНМ: 0300000118 [11:27:25]line РНМ: 0000000000091857 [11:27:25]line Версия ККМ: 001 [11:27:25]line ФМ: 0000000000871826 [11:27:25]line ФД: 187596 [11:27:25]line ФПД: 94243987999400 [11:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112724&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187596&fm=94243987999400&tin=02508201610067®Number=0000000000091857&sum=80000 [11:27:26]OFD Sender: Processing packet 187596 [packets to send 49, broken 48] [11:27:26]ProducePacketName [11:27:26]name=ofd_packets/00187596 [11:27:26]OFD Sender: To server: pG, [11:27:26]CommunicateWithHost lk.salyk.kg:30040 [11:27:26]ConnectInit lk.salyk.kg [11:27:26]written 0, free lines is 4095 [11:27:26]Connected sock=10 [11:27:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 92 BB 07 01 46 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 1C 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DC 02 00 35 04 06 00 55 B6 E3 6D 4A A8 EE D0 18 D4 2F 23 D4 B6 [11:27:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BC F5 47 00 F6 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC DC 02 00 F4 03 04 00 6A 09 B8 67 B6 04 01 00 00 D7 74 92 C9 FE 45 7E AC [11:27:26]CommunicateWithHost err = 0 [11:27:26]CheckOFDResponse [11:27:26]1017 (14) - 77093643461234 [11:27:26]1041 (16) - 0000000000871826 [11:27:26]1040 (4) - 187596 [11:27:26]1012 (4) - 21.02.2025 05:04 [11:27:26]1206 (1) - 0 [11:27:26]OFD Sender: Remove packet 187596 [11:27:26]ProducePacketName [11:27:26]name=ofd_packets/00187596 [11:27:26]NVStorageDeleteData [11:27:26]Write to MH i2c: 01 00 00 10 0C 1C [11:27:26]Write i2c OK [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: 01 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: 01 07 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 E6 0C 15 [11:27:26]RasterBufferAndPrint [11:27:26]line [11:27:26]line [11:27:26]line [11:27:26]line [11:27:26]line [11:27:26]written 0, free lines is 3308 [11:27:26]MH_Cut [11:27:26]Write to MH i2c: D1 01 00 17 0C 01 F5 [11:27:26]Write i2c OK [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: D1 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: D1 01 00 [11:27:26]MH_I2C_Read... [11:27:26]Read from MH i2c: D1 01 00 17 0C 00 F4 [11:27:26]Write to MH i2c: 01 00 00 18 0C 24 [11:27:26]Write i2c OK [11:27:26]MH_I2C_Read... [11:27:27]OFD Sender: No OFD packet to send [11:27:27]*** Cut start [11:27:27]*** Partial cut [11:27:27]*** CUTSNS_PIN = 1 [11:27:27]*** CUTSNS_PIN = 0 [11:27:27]*** Brake cut motor [11:27:28]Read from MH i2c: 01 [11:27:28]MH_I2C_Read... [11:27:28]*** Stop cut motor [11:27:28]*** Cut end [11:27:28]Read from MH i2c: 01 07 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: 01 07 00 18 0C 00 00 00 00 00 FF 0F 39 [11:27:28]process_action close_receipt done [11:27:28]requested_data is exist [11:27:28]produce_requested_data [11:27:28]requested_item fm.sn is exist - process it [11:27:28]wFMCommunicate request_size=4 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 11 00 00 [11:27:28]Write to MH i2c: E2 08 00 19 0C 80 11 00 00 00 00 00 00 9F [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 17 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 17 00 19 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F2 [11:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:27:28]wFMCommunicate OK [11:27:28]requested_item fd.num is exist - process it [11:27:28]SAM_PROTO_GetFieldsCounters [11:27:28]wFMCommunicate request_size=4 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 13 00 00 [11:27:28]Write to MH i2c: E2 08 00 1A 0C 80 13 00 00 00 00 00 00 A2 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 62 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 62 00 1A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CC DC 02 00 0E 04 04 00 89 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 0B [11:27:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CC DC 02 00 0E 04 04 00 89 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 [11:27:28]wFMCommunicate OK [11:27:28]SAM_PROTO_GetFieldsCounters done [11:27:28]requested_item shift.num is exist - process it [11:27:28]requested_item shift.opened is exist - process it [11:27:28]req_shift_opened [11:27:28]FM_GetShiftState [11:27:28]SAM_PROTO_GetShiftState [11:27:28]wFMCommunicate request_size=4 [11:27:28]MH_SAM_APDU [11:27:28]CAPDU: 80 13 01 00 [11:27:28]Write to MH i2c: E2 08 00 1B 0C 80 13 01 00 00 00 00 00 A4 [11:27:28]Write i2c OK [11:27:28]MH_I2C_Read... [11:27:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:28]Read from MH i2c: E2 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 0E 00 [11:27:28]MH_I2C_Read... [11:27:28]Read from MH i2c: E2 0E 00 1B 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 92 [11:27:28]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:27:28]wFMCommunicate OK [11:27:28]SAM_PROTO_GetShiftState done [11:27:28]FM_GetShiftState done [11:27:28]req_shift_opened done [11:27:28]requested_item shift.open_date is exist - process it [11:27:28]req_shift_open_date [11:27:28]req_shift_open_date done [11:27:28]produce_requested_data done [11:27:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187596,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:27:28]process_action_free close_receipt [11:27:28]json_value_free [11:27:28]json_value_free done [11:27:28]process_json_proto returns [11:27:28]Send response to host [11:27:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187596,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:27:28]free response buf [11:27:28]execute_script done [11:27:28]execute_script returns [11:27:28]free content buf [11:27:28]Sock 8.Close socket [11:27:28]Sock 8.Thread stoped [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:43]accept exits with 9 [11:29:43]New connection [11:29:43]New thread 3066936676 created [11:29:43]Thread 3067080036 joined [11:29:43]Waiting for new connection... [11:29:43] Sock 9.Parse request [11:29:43]Sock 9.Check first char [11:29:43]Sock 9.First char is OK [11:29:43]request: POST /json_proto HTTP/1.0 [11:29:43]Method: POST [11:29:43]URL: /json_proto [11:29:43]Method is POST - this is cgi request [11:29:43]url: /json_proto [11:29:43]query_string will be loaded in cgi processing [11:29:43]execute_cgi json_proto POST (null) [11:29:43]execute_cgi path=json_proto method=POST [11:29:43]POST find Content-Length [11:29:43]Host: 172.17.46.131:8080 [11:29:43]Content-Length: 682 [11:29:43]Content-Type: application/json [11:29:43] [11:29:43]POST finish read [11:29:43]Found Content-Length = 682 [11:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:43]execute_script... [11:29: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)412755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:43]POST & json_proto [11:29:43]process_json_proto [11:29:43]json parsed OK: [11:29:43]protocol is kg_v1.0 [11:29:43]action value=close_receipt [11:29:43]process_action close_receipt [11:29:43]cmd_close_receipt [11:29:43]MH_GetDate [11:29:43]Write to MH i2c: F0 00 00 1C 0C 17 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: F0 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: F0 09 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: F0 09 00 1C 0C 00 A7 63 B8 67 7E 41 4F 65 BC [11:29:43]GetLastDocTimeStamp 1740137244 [11:29:43]current date 1740137383 [11:29:43]FM_GetShiftState [11:29:43]SAM_PROTO_GetShiftState [11:29:43]wFMCommunicate request_size=4 [11:29:43]MH_SAM_APDU [11:29:43]CAPDU: 80 13 01 00 [11:29:43]Write to MH i2c: E2 08 00 1D 0C 80 13 01 00 00 00 00 00 A6 [11:29:43]Write i2c OK [11:29:43]MH_I2C_Read... [11:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:43]Read from MH i2c: E2 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 0E 00 [11:29:43]MH_I2C_Read... [11:29:43]Read from MH i2c: E2 0E 00 1D 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 94 [11:29:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:29:43]wFMCommunicate OK [11:29:43]SAM_PROTO_GetShiftState done [11:29:43]FM_GetShiftState done [11:29:43]opened in 1740098043 [11:29:43]opened+sec_in_day 1740184443 [11:29:43]quantity*price = 100023 [11:29:43]sum+1 = 100025 [11:29:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 91 21.02.2025 11:29 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187597 ФПД: 205786358452057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112944&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187597&fm=205786358452057&tin=02508201610067®Number=0000000000091857&sum=100000 [11:29:44]StoreToDocumentArchive [11:29:44]shift 649 fd 187597 [11:29:44]save to /storage/0649/doc_00187597 [11:29:44]save last doc name /storage/0649/doc_00187597 to /storage/kkm_last_doc_name [11:29:44]save OK [11:29:44]Clear old archive folders... [11:29:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:44]tlvbuf is 01E133F0 [11:29:44]SAM_PROTO_ClearQueue [11:29:44]wFMCommunicate request_size=4 [11:29:44]MH_SAM_APDU [11:29:44]CAPDU: 80 09 00 00 [11:29:44]Write to MH i2c: E2 08 00 2A 0C 80 09 00 00 00 00 00 00 A8 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:44]Read from MH i2c: E2 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 03 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [11:29:44]RAPDU: 90 00 [11:29:44]wFMCommunicate OK [11:29:44]SAM_PROTO_ClearQueue done [11:29:44]KKMCreateOFDPacket [11:29:44]OFDProtocolAddRootSTLVToBuf [11:29:44]FM_MakeSignedData [11:29:44]FM_MakeSignedData [11:29:44]SAM_PROTO_SignData [11:29:44]wFMCommunicate request_size=4 [11:29:44]MH_SAM_APDU [11:29:44]CAPDU: 80 0D 01 02 [11:29:44]Write to MH i2c: E2 08 00 2B 0C 80 0D 01 02 00 00 00 00 B0 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:44]Read from MH i2c: E2 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 03 00 [11:29:44]MH_I2C_Read... [11:29:44]Read from MH i2c: E2 03 00 2B 0C 00 90 00 AB [11:29:44]RAPDU: 90 00 [11:29:44]wFMCommunicate OK [11:29:44]wFMCommunicate request_size=255 [11:29:44]MH_SAM_APDU [11:29:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A8 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD DC 02 00 35 04 06 00 BB [11:29:44]Write to MH i2c: E2 02 01 2C 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A8 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD DC 02 00 35 04 06 00 BB 00 00 23 [11:29:44]Write i2c OK [11:29:44]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 2C 0C 00 90 00 AC [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]wFMCommunicate request_size=10 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 02 02 05 29 5E CB 8F 59 [11:29:45]Write to MH i2c: E2 0D 00 2D 0C 80 0D 02 02 05 00 29 5E CB 8F 59 00 00 F7 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [11:29:45]RAPDU: 90 00 [11:29:45]wFMCommunicate OK [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 0D 03 02 [11:29:45]Write to MH i2c: E2 08 00 2E 0C 80 0D 03 02 00 00 00 00 B5 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 0B 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 0B 00 2E 0C 00 57 C6 57 F8 AE 32 2B 00 90 00 2D [11:29:45]RAPDU: 57 C6 57 F8 AE 32 2B 00 90 00 [11:29:45]wFMCommunicate OK [11:29:45]SAM_PROTO_SignData done [11:29:45]FM_MakeSignedData done [11:29:45]CreateOFDProtocolMessage [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 11 00 00 [11:29:45]Write to MH i2c: E2 08 00 2F 0C 80 11 00 00 00 00 00 00 B5 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 17 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 17 00 2F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 08 [11:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:29:45]wFMCommunicate OK [11:29:45]CreateOFDProtocolMessage done [11:29:45]OFDSenderStorePacket 187597 [11:29:45]StoreOFDPacket docnum=187597 [11:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0E 1E 07 01 5D 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A8 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD DC 02 00 35 04 06 00 BB 29 5E CB 8F 59 57 C6 57 F8 AE 32 2B 00 [11:29:45]CheckFolder [11:29:45]dirname=/storage/ofd_packets [11:29:45]CheckFolder done [11:29:45]ProducePacketName [11:29:45]name=ofd_packets/00187597 [11:29:45]NVStorageSaveData ofd_packets/00187597 [11:29:45]File name is /storage/ofd_packets/00187597 [11:29:45]Write 301 bytes [11:29:45]NVStorageSaveData done [11:29:45]OFDSenderStorePacket done [11:29:45]KKMCreateOFDPacket done [11:29:45]NVStorageSaveData kkm_last_timestamp [11:29:45]File name is /storage/kkm_last_timestamp [11:29:45]Write 4 bytes [11:29:45]NVStorageSaveData done [11:29:45]OFD Sender: Processing packet 187597 [packets to send 49, broken 48] [11:29:45]ProducePacketName [11:29:45]name=ofd_packets/00187597 [11:29:45]OFD Sender: To server: pG, [11:29:45]CommunicateWithHost lk.salyk.kg:30040 [11:29:45]ConnectInit lk.salyk.kg [11:29:45]ExternCall_PrintAddStr [11:29:45]wPrintStart [11:29:45]Write to MH i2c: 01 00 00 30 0C 3C [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: 01 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: 01 07 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: 01 07 00 30 0C 00 00 00 00 00 FF 0F 51 [11:29:45]RasterBufferAndPrint [11:29:45]line Счет N : (1)412755 [11:29:45]line ИНН: 02508201610067 [11:29:45]line Контрольно-Кассовый Чек [11:29:45]line ПРОДАЖА [11:29:45]line ТРК (МРК, ГНК) : 42 [11:29:45]line Товар: 2710124130 [11:29:45]line Аи-92-К-2 [11:29:45]line 15.580 * 64.20 [11:29:45]line = 1000.24 [11:29:45]line НДС 12% НСП 1% [11:29:45]line > о реализуемом товаре [11:29:45]line ОКРУГЛЕНИЕ: -0.24 [11:29:45]line ИТОГО: 1000.00 [11:29:45]line Внесено: 1000.00 [11:29:45]line СДАЧА: 0.00 [11:29:45]line НСП 1% : 8.85 [11:29:45]line НДС 12% : 106.22 [11:29:45]line Наличными: 1000.00 [11:29:45]line Безнал.: 0.00 [11:29:45]line Место: АЗС № 92 "Партнер Нефть" [11:29:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:29:45]line СНО: Общий режим [11:29:45]line Чек 91 21.02.2025 11:29 [11:29:45]line Смена: 649 ФФД: 1.0 [11:29:45]line ЗНМ: 0300000118 [11:29:45]line РНМ: 0000000000091857 [11:29:45]line Версия ККМ: 001 [11:29:45]line ФМ: 0000000000871826 [11:29:45]line ФД: 187597 [11:29:45]line ФПД: 205786358452057 [11:29:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T112944&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187597&fm=205786358452057&tin=02508201610067®Number=0000000000091857&sum=100000 [11:29:45]Connected sock=11 [11:29:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0E 1E 07 01 5D 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A8 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD DC 02 00 35 04 06 00 BB 29 5E CB 8F 59 57 C6 57 F8 AE 32 2B 00 [11:29:45]written 0, free lines is 4095 [11:29:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 34 A5 47 00 10 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 38 32 36 10 04 04 00 CD DC 02 00 F4 03 04 00 F5 09 B8 67 B6 04 01 00 00 13 81 3F DA E6 99 D0 ED [11:29:45]CommunicateWithHost err = 0 [11:29:45]CheckOFDResponse [11:29:45]1017 (14) - 77093643461234 [11:29:45]1041 (16) - 0000000000871826 [11:29:45]1040 (4) - 187597 [11:29:45]1012 (4) - 21.02.2025 05:07 [11:29:45]1206 (1) - 0 [11:29:45]OFD Sender: Remove packet 187597 [11:29:45]ProducePacketName [11:29:45]name=ofd_packets/00187597 [11:29:45]NVStorageDeleteData [11:29:46]Write to MH i2c: 01 00 00 5B 0C 67 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 07 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: 01 07 00 5B 0C 00 00 00 00 00 EC 0C 66 [11:29:46]RasterBufferAndPrint [11:29:46]line [11:29:46]line [11:29:46]line [11:29:46]line [11:29:46]line [11:29:46]written 0, free lines is 3314 [11:29:46]MH_Cut [11:29:46]Write to MH i2c: D1 01 00 62 0C 01 40 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: D1 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: D1 01 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: D1 01 00 62 0C 00 3F [11:29:46]Write to MH i2c: 01 00 00 63 0C 6F [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]OFD Sender: No OFD packet to send [11:29:46]*** Cut start [11:29:46]*** Partial cut [11:29:46]*** CUTSNS_PIN = 1 [11:29:46]*** CUTSNS_PIN = 0 [11:29:47]*** Brake cut motor [11:29:47]Read from MH i2c: 01 [11:29:47]MH_I2C_Read... [11:29:47]*** Stop cut motor [11:29:47]*** Cut end [11:29:47]Read from MH i2c: 01 07 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 63 0C 00 00 00 00 00 FF 0F 84 [11:29:47]process_action close_receipt done [11:29:47]requested_data is exist [11:29:47]produce_requested_data [11:29:47]requested_item fm.sn is exist - process it [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 11 00 00 [11:29:47]Write to MH i2c: E2 08 00 64 0C 80 11 00 00 00 00 00 00 EA [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 17 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 17 00 64 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3D [11:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:29:47]wFMCommunicate OK [11:29:47]requested_item fd.num is exist - process it [11:29:47]SAM_PROTO_GetFieldsCounters [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 13 00 00 [11:29:47]Write to MH i2c: E2 08 00 65 0C 80 13 00 00 00 00 00 00 ED [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 62 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 62 00 65 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CD DC 02 00 0E 04 04 00 89 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 5A [11:29:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CD DC 02 00 0E 04 04 00 89 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 [11:29:47]wFMCommunicate OK [11:29:47]SAM_PROTO_GetFieldsCounters done [11:29:47]requested_item shift.num is exist - process it [11:29:47]requested_item shift.opened is exist - process it [11:29:47]req_shift_opened [11:29:47]FM_GetShiftState [11:29:47]SAM_PROTO_GetShiftState [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 13 01 00 [11:29:47]Write to MH i2c: E2 08 00 66 0C 80 13 01 00 00 00 00 00 EF [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0E 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0E 00 66 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 DD [11:29:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:29:47]wFMCommunicate OK [11:29:47]SAM_PROTO_GetShiftState done [11:29:47]FM_GetShiftState done [11:29:47]req_shift_opened done [11:29:47]requested_item shift.open_date is exist - process it [11:29:47]req_shift_open_date [11:29:47]req_shift_open_date done [11:29:47]produce_requested_data done [11:29:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187597,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:29:47]process_action_free close_receipt [11:29:47]json_value_free [11:29:47]json_value_free done [11:29:47]process_json_proto returns [11:29:47]Send response to host [11:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187597,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:29:47]free response buf [11:29:47]execute_script done [11:29:47]execute_script returns [11:29:47]free content buf [11:29:47]Sock 9.Close socket [11:29:47]Sock 9.Thread stoped [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:52]accept exits with 8 [11:30:52]New connection [11:30:52]New thread 3067080036 created [11:30:52]Thread 3066936676 joined [11:30:52]Waiting for new connection... [11:30:52] Sock 8.Parse request [11:30:52]Sock 8.Check first char [11:30:52]Sock 8.First char is OK [11:30:52]request: POST /json_proto HTTP/1.0 [11:30:52]Method: POST [11:30:52]URL: /json_proto [11:30:52]Method is POST - this is cgi request [11:30:52]url: /json_proto [11:30:52]query_string will be loaded in cgi processing [11:30:52]execute_cgi json_proto POST (null) [11:30:52]execute_cgi path=json_proto method=POST [11:30:52]POST find Content-Length [11:30:52]Host: 172.17.46.131:8080 [11:30:52]Content-Length: 678 [11:30:52]Content-Type: application/json [11:30:52] [11:30:52]POST finish read [11:30:52]Found Content-Length = 678 [11:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 11.060, "sum" : 710.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:52]execute_script... [11:30: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)412756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 11.060, "sum" : 710.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 710.00, "total" : 710.00, "payments": [ { "type": 0, "sum" : 710.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:52]POST & json_proto [11:30:52]process_json_proto [11:30:52]json parsed OK: [11:30:52]protocol is kg_v1.0 [11:30:52]action value=close_receipt [11:30:52]process_action close_receipt [11:30:52]cmd_close_receipt [11:30:52]MH_GetDate [11:30:52]Write to MH i2c: F0 00 00 67 0C 62 [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: F0 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: F0 09 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: F0 09 00 67 0C 00 EC 63 B8 67 7E 41 4F 65 4C [11:30:52]GetLastDocTimeStamp 1740137384 [11:30:52]current date 1740137452 [11:30:52]FM_GetShiftState [11:30:52]SAM_PROTO_GetShiftState [11:30:52]wFMCommunicate request_size=4 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 13 01 00 [11:30:52]Write to MH i2c: E2 08 00 68 0C 80 13 01 00 00 00 00 00 F1 [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 0E 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 0E 00 68 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 DF [11:30:52]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:30:52]wFMCommunicate OK [11:30:52]SAM_PROTO_GetShiftState done [11:30:52]FM_GetShiftState done [11:30:52]opened in 1740098043 [11:30:52]opened+sec_in_day 1740184443 [11:30:52]quantity*price = 71005 [11:30:52]sum+1 = 71006 [11:30:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 710.00 Внесено: 710.00 СДАЧА: 0.00 НСП 1% : 6.28 НДС 12% : 75.40 Наличными: 710.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 92 21.02.2025 11:30 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187598 ФПД: 250643909695370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113052&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187598&fm=250643909695370&tin=02508201610067®Number=0000000000091857&sum=71000 [11:30:53]StoreToDocumentArchive [11:30:53]shift 649 fd 187598 [11:30:53]save to /storage/0649/doc_00187598 [11:30:53]save last doc name /storage/0649/doc_00187598 to /storage/kkm_last_doc_name [11:30:53]save OK [11:30:53]Clear old archive folders... [11:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:53]tlvbuf is 01E21120 [11:30:53]SAM_PROTO_ClearQueue [11:30:53]wFMCommunicate request_size=4 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 09 00 00 [11:30:53]Write to MH i2c: E2 08 00 75 0C 80 09 00 00 00 00 00 00 F3 [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]SAM_PROTO_ClearQueue done [11:30:53]KKMCreateOFDPacket [11:30:53]OFDProtocolAddRootSTLVToBuf [11:30:53]FM_MakeSignedData [11:30:53]FM_MakeSignedData [11:30:53]SAM_PROTO_SignData [11:30:53]wFMCommunicate request_size=4 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 0D 01 02 [11:30:53]Write to MH i2c: E2 08 00 76 0C 80 0D 01 02 00 00 00 00 FB [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]wFMCommunicate request_size=255 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 2B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5D 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EC 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DC 02 00 35 04 06 00 E3 [11:30:53]Write to MH i2c: E2 02 01 77 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 2B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5D 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EC 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DC 02 00 35 04 06 00 E3 00 00 CD [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 77 0C 00 90 00 F7 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]wFMCommunicate request_size=10 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 0D 02 02 05 F5 95 33 D7 8A [11:30:53]Write to MH i2c: E2 0D 00 78 0C 80 0D 02 02 05 00 F5 95 33 D7 8A 00 00 26 [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 03 00 78 0C 00 90 00 F8 [11:30:53]RAPDU: 90 00 [11:30:53]wFMCommunicate OK [11:30:53]wFMCommunicate request_size=4 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 0D 03 02 [11:30:53]Write to MH i2c: E2 08 00 79 0C 80 0D 03 02 00 00 00 00 00 [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:53]Read from MH i2c: E2 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 0B 00 [11:30:53]MH_I2C_Read... [11:30:53]Read from MH i2c: E2 0B 00 79 0C 00 DD EB 5A 69 50 6C 3E E2 90 00 68 [11:30:53]RAPDU: DD EB 5A 69 50 6C 3E E2 90 00 [11:30:53]wFMCommunicate OK [11:30:53]SAM_PROTO_SignData done [11:30:53]FM_MakeSignedData done [11:30:53]CreateOFDProtocolMessage [11:30:53]wFMCommunicate request_size=4 [11:30:53]MH_SAM_APDU [11:30:53]CAPDU: 80 11 00 00 [11:30:53]Write to MH i2c: E2 08 00 7A 0C 80 11 00 00 00 00 00 00 00 [11:30:53]Write i2c OK [11:30:53]MH_I2C_Read... [11:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:54]Read from MH i2c: E2 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 17 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: E2 17 00 7A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [11:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:30:54]wFMCommunicate OK [11:30:54]CreateOFDProtocolMessage done [11:30:54]OFDSenderStorePacket 187598 [11:30:54]StoreOFDPacket docnum=187598 [11:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 76 BB 07 01 59 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 2B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5D 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EC 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DC 02 00 35 04 06 00 E3 F5 95 33 D7 8A DD EB 5A 69 50 6C 3E E2 [11:30:54]CheckFolder [11:30:54]dirname=/storage/ofd_packets [11:30:54]CheckFolder done [11:30:54]ProducePacketName [11:30:54]name=ofd_packets/00187598 [11:30:54]NVStorageSaveData ofd_packets/00187598 [11:30:54]File name is /storage/ofd_packets/00187598 [11:30:54]Write 301 bytes [11:30:54]NVStorageSaveData done [11:30:54]OFDSenderStorePacket done [11:30:54]KKMCreateOFDPacket done [11:30:54]NVStorageSaveData kkm_last_timestamp [11:30:54]File name is /storage/kkm_last_timestamp [11:30:54]Write 4 bytes [11:30:54]NVStorageSaveData done [11:30:54]ExternCall_PrintAddStr [11:30:54]wPrintStart [11:30:54]Write to MH i2c: 01 00 00 7B 0C 87 [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 07 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 07 00 7B 0C 00 00 00 00 00 FF 0F 9C [11:30:54]RasterBufferAndPrint [11:30:54]line Счет N : (1)412756 [11:30:54]line ИНН: 02508201610067 [11:30:54]line Контрольно-Кассовый Чек [11:30:54]line ПРОДАЖА [11:30:54]line ТРК (МРК, ГНК) : 32 [11:30:54]line Товар: 2710124130 [11:30:54]line Аи-92-К-2 [11:30:54]line 11.060 * 64.20 [11:30:54]line = 710.05 [11:30:54]line НДС 12% НСП 1% [11:30:54]line > о реализуемом товаре [11:30:54]line ОКРУГЛЕНИЕ: -0.05 [11:30:54]line ИТОГО: 710.00 [11:30:54]line Внесено: 710.00 [11:30:54]line СДАЧА: 0.00 [11:30:54]line НСП 1% : 6.28 [11:30:54]line НДС 12% : 75.40 [11:30:54]line Наличными: 710.00 [11:30:54]line Безнал.: 0.00 [11:30:54]line Место: АЗС № 92 "Партнер Нефть" [11:30:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:30:54]line СНО: Общий режим [11:30:54]line Чек 92 21.02.2025 11:30 [11:30:54]line Смена: 649 ФФД: 1.0 [11:30:54]line ЗНМ: 0300000118 [11:30:54]line РНМ: 0000000000091857 [11:30:54]line Версия ККМ: 001 [11:30:54]line ФМ: 0000000000871826 [11:30:54]line ФД: 187598 [11:30:54]line ФПД: 250643909695370 [11:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113052&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187598&fm=250643909695370&tin=02508201610067®Number=0000000000091857&sum=71000 [11:30:54]OFD Sender: Processing packet 187598 [packets to send 49, broken 48] [11:30:54]ProducePacketName [11:30:54]name=ofd_packets/00187598 [11:30:54]OFD Sender: To server: pG, [11:30:54]CommunicateWithHost lk.salyk.kg:30040 [11:30:54]ConnectInit lk.salyk.kg [11:30:54]written 0, free lines is 4095 [11:30:54]Connected sock=10 [11:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 76 BB 07 01 59 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 2B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5D 15 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 15 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 1D 00 00 00 00 07 04 06 00 58 15 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 EC 63 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DC 02 00 35 04 06 00 E3 F5 95 33 D7 8A DD EB 5A 69 50 6C 3E E2 [11:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 82 29 47 00 37 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE DC 02 00 F4 03 04 00 3A 0A B8 67 B6 04 01 00 00 ED 22 7F E6 E5 DF D7 AF [11:30:54]CommunicateWithHost err = 0 [11:30:54]CheckOFDResponse [11:30:54]1017 (14) - 77093643461234 [11:30:54]1041 (16) - 0000000000871826 [11:30:54]1040 (4) - 187598 [11:30:54]1012 (4) - 21.02.2025 05:08 [11:30:54]1206 (1) - 0 [11:30:54]OFD Sender: Remove packet 187598 [11:30:54]ProducePacketName [11:30:54]name=ofd_packets/00187598 [11:30:54]NVStorageDeleteData [11:30:54]Write to MH i2c: 01 00 00 A6 0C B2 [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 07 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: 01 07 00 A6 0C 00 00 00 00 00 F6 0C BB [11:30:54]RasterBufferAndPrint [11:30:54]line [11:30:54]line [11:30:54]line [11:30:54]line [11:30:54]line [11:30:54]written 0, free lines is 3324 [11:30:54]MH_Cut [11:30:54]Write to MH i2c: D1 01 00 AD 0C 01 8B [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: D1 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: D1 01 00 [11:30:54]MH_I2C_Read... [11:30:54]Read from MH i2c: D1 01 00 AD 0C 00 8A [11:30:54]Write to MH i2c: 01 00 00 AE 0C BA [11:30:54]Write i2c OK [11:30:54]MH_I2C_Read... [11:30:55]OFD Sender: No OFD packet to send [11:30:55]*** Cut start [11:30:55]*** Partial cut [11:30:55]*** CUTSNS_PIN = 1 [11:30:55]*** CUTSNS_PIN = 0 [11:30:55]*** Brake cut motor [11:30:56]Read from MH i2c: 01 [11:30:56]MH_I2C_Read... [11:30:56]*** Stop cut motor [11:30:56]*** Cut end [11:30:56]Read from MH i2c: 01 07 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: 01 07 00 AE 0C 00 00 00 00 00 FF 0F CF [11:30:56]process_action close_receipt done [11:30:56]requested_data is exist [11:30:56]produce_requested_data [11:30:56]requested_item fm.sn is exist - process it [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 11 00 00 [11:30:56]Write to MH i2c: E2 08 00 AF 0C 80 11 00 00 00 00 00 00 35 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 17 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 17 00 AF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 88 [11:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:30:56]wFMCommunicate OK [11:30:56]requested_item fd.num is exist - process it [11:30:56]SAM_PROTO_GetFieldsCounters [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 13 00 00 [11:30:56]Write to MH i2c: E2 08 00 B0 0C 80 13 00 00 00 00 00 00 38 [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 62 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 62 00 B0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CE DC 02 00 0E 04 04 00 89 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 A9 [11:30:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CE DC 02 00 0E 04 04 00 89 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 [11:30:56]wFMCommunicate OK [11:30:56]SAM_PROTO_GetFieldsCounters done [11:30:56]requested_item shift.num is exist - process it [11:30:56]requested_item shift.opened is exist - process it [11:30:56]req_shift_opened [11:30:56]FM_GetShiftState [11:30:56]SAM_PROTO_GetShiftState [11:30:56]wFMCommunicate request_size=4 [11:30:56]MH_SAM_APDU [11:30:56]CAPDU: 80 13 01 00 [11:30:56]Write to MH i2c: E2 08 00 B1 0C 80 13 01 00 00 00 00 00 3A [11:30:56]Write i2c OK [11:30:56]MH_I2C_Read... [11:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:56]Read from MH i2c: E2 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0E 00 [11:30:56]MH_I2C_Read... [11:30:56]Read from MH i2c: E2 0E 00 B1 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 28 [11:30:56]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:30:56]wFMCommunicate OK [11:30:56]SAM_PROTO_GetShiftState done [11:30:56]FM_GetShiftState done [11:30:56]req_shift_opened done [11:30:56]requested_item shift.open_date is exist - process it [11:30:56]req_shift_open_date [11:30:56]req_shift_open_date done [11:30:56]produce_requested_data done [11:30:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187598,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:30:56]process_action_free close_receipt [11:30:56]json_value_free [11:30:56]json_value_free done [11:30:56]process_json_proto returns [11:30:56]Send response to host [11:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187598,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:30:56]free response buf [11:30:56]execute_script done [11:30:56]execute_script returns [11:30:56]free content buf [11:30:56]Sock 8.Close socket [11:30:56]Sock 8.Thread stoped [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]accept exits with 9 [11:33:40]New connection [11:33:40]New thread 3066936676 created [11:33:40]Thread 3067080036 joined [11:33:40]Waiting for new connection... [11:33:40] Sock 9.Parse request [11:33:40]Sock 9.Check first char [11:33:40]Sock 9.First char is OK [11:33:40]request: POST /json_proto HTTP/1.0 [11:33:40]Method: POST [11:33:40]URL: /json_proto [11:33:40]Method is POST - this is cgi request [11:33:40]url: /json_proto [11:33:40]query_string will be loaded in cgi processing [11:33:40]execute_cgi json_proto POST (null) [11:33:40]execute_cgi path=json_proto method=POST [11:33:40]POST find Content-Length [11:33:40]Host: 172.17.46.131:8080 [11:33:40]Content-Length: 799 [11:33:40]Content-Type: application/json [11:33:40] [11:33:40]POST finish read [11:33:40]Found Content-Length = 799 [11:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:40]execute_script... [11:33: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)412757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:40]POST & json_proto [11:33:40]process_json_proto [11:33:40]json parsed OK: [11:33:40]protocol is kg_v1.0 [11:33:40]action value=close_receipt [11:33:40]process_action close_receipt [11:33:40]cmd_close_receipt [11:33:40]MH_GetDate [11:33:40]Write to MH i2c: F0 00 00 B2 0C AD [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: F0 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: F0 09 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: F0 09 00 B2 0C 00 94 64 B8 67 7E 41 4F 65 40 [11:33:40]GetLastDocTimeStamp 1740137452 [11:33:40]current date 1740137620 [11:33:40]FM_GetShiftState [11:33:40]SAM_PROTO_GetShiftState [11:33:40]wFMCommunicate request_size=4 [11:33:40]MH_SAM_APDU [11:33:40]CAPDU: 80 13 01 00 [11:33:40]Write to MH i2c: E2 08 00 B3 0C 80 13 01 00 00 00 00 00 3C [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:40]Read from MH i2c: E2 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 0E 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 0E 00 B3 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2A [11:33:40]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:33:40]wFMCommunicate OK [11:33:40]SAM_PROTO_GetShiftState done [11:33:40]FM_GetShiftState done [11:33:40]opened in 1740098043 [11:33:40]opened+sec_in_day 1740184443 [11:33:40]quantity*price = 100042 [11:33:40]sum+1 = 100044 [11:33:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 93 21.02.2025 11:33 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187599 ФПД: 30278782801716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113340&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187599&fm=30278782801716&tin=02508201610067®Number=0000000000091857&sum=100043 [11:33:41]StoreToDocumentArchive [11:33:41]shift 649 fd 187599 [11:33:41]save to /storage/0649/doc_00187599 [11:33:41]save last doc name /storage/0649/doc_00187599 to /storage/kkm_last_doc_name [11:33:41]save OK [11:33:41]Clear old archive folders... [11:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:33:41]tlvbuf is 01E108B0 [11:33:41]SAM_PROTO_ClearQueue [11:33:41]wFMCommunicate request_size=4 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 09 00 00 [11:33:41]Write to MH i2c: E2 08 00 C0 0C 80 09 00 00 00 00 00 00 3E [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 C0 0C 00 90 00 40 [11:33:41]RAPDU: 90 00 [11:33:41]wFMCommunicate OK [11:33:41]SAM_PROTO_ClearQueue done [11:33:41]KKMCreateOFDPacket [11:33:41]OFDProtocolAddRootSTLVToBuf [11:33:41]FM_MakeSignedData [11:33:41]FM_MakeSignedData [11:33:41]SAM_PROTO_SignData [11:33:41]wFMCommunicate request_size=4 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 0D 01 02 [11:33:41]Write to MH i2c: E2 08 00 C1 0C 80 0D 01 02 00 00 00 00 46 [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 C1 0C 00 90 00 41 [11:33:41]RAPDU: 90 00 [11:33:41]wFMCommunicate OK [11:33:41]wFMCommunicate request_size=255 [11:33:41]MH_SAM_APDU [11: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 94 64 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DC 02 00 35 04 06 00 1B 89 D4 17 [11:33:41]Write to MH i2c: E2 02 01 C2 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 94 64 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DC 02 00 35 04 06 00 1B 89 D4 17 00 00 7B [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 C2 0C 00 90 00 42 [11:33:41]RAPDU: 90 00 [11:33:41]wFMCommunicate OK [11:33:41]wFMCommunicate request_size=7 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 0D 02 02 02 D7 34 [11:33:41]Write to MH i2c: E2 0A 00 C3 0C 80 0D 02 02 02 00 D7 34 00 00 58 [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [11:33:41]RAPDU: 90 00 [11:33:41]wFMCommunicate OK [11:33:41]wFMCommunicate request_size=4 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 0D 03 02 [11:33:41]Write to MH i2c: E2 08 00 C4 0C 80 0D 03 02 00 00 00 00 4B [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:41]Read from MH i2c: E2 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 0B 00 [11:33:41]MH_I2C_Read... [11:33:41]Read from MH i2c: E2 0B 00 C4 0C 00 C8 9B 7A B7 19 63 74 96 90 00 66 [11:33:41]RAPDU: C8 9B 7A B7 19 63 74 96 90 00 [11:33:41]wFMCommunicate OK [11:33:41]SAM_PROTO_SignData done [11:33:41]FM_MakeSignedData done [11:33:41]CreateOFDProtocolMessage [11:33:41]wFMCommunicate request_size=4 [11:33:41]MH_SAM_APDU [11:33:41]CAPDU: 80 11 00 00 [11:33:41]Write to MH i2c: E2 08 00 C5 0C 80 11 00 00 00 00 00 00 4B [11:33:41]Write i2c OK [11:33:41]MH_I2C_Read... [11:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:42]Read from MH i2c: E2 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 17 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 17 00 C5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [11:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:33:42]wFMCommunicate OK [11:33:42]CreateOFDProtocolMessage done [11:33:42]OFDSenderStorePacket 187599 [11:33:42]StoreOFDPacket docnum=187599 [11:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BA 3C 04 01 6D 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 94 64 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DC 02 00 35 04 06 00 1B 89 D4 17 D7 34 C8 9B 7A B7 19 63 74 96 [11:33:42]CheckFolder [11:33:42]dirname=/storage/ofd_packets [11:33:42]CheckFolder done [11:33:42]ProducePacketName [11:33:42]name=ofd_packets/00187599 [11:33:42]NVStorageSaveData ofd_packets/00187599 [11:33:42]File name is /storage/ofd_packets/00187599 [11:33:42]Write 298 bytes [11:33:42]NVStorageSaveData done [11:33:42]OFDSenderStorePacket done [11:33:42]KKMCreateOFDPacket done [11:33:42]NVStorageSaveData kkm_last_timestamp [11:33:42]File name is /storage/kkm_last_timestamp [11:33:42]Write 4 bytes [11:33:42]NVStorageSaveData done [11:33:42]ExternCall_PrintAddStr [11:33:42]wPrintStart [11:33:42]Write to MH i2c: 01 00 00 C6 0C D2 [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: 01 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: 01 07 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: 01 07 00 C6 0C 00 00 00 00 00 FF 0F E7 [11:33:42]RasterBufferAndPrint [11:33:42]line Счет N : (1)412757 [11:33:42]line ИНН: 02508201610067 [11:33:42]line Контрольно-Кассовый Чек [11:33:42]line ПРОДАЖА [11:33:42]line ТРК (МРК, ГНК) : 5 [11:33:42]line Товар: 2710194210 [11:33:42]line ДТ-К-5 [11:33:42]line 13.780 * 72.60 [11:33:42]line = 1000.43 [11:33:42]line НДС 12% НСП 1% [11:33:42]line > о реализуемом товаре [11:33:42]line ИТОГО: 1000.43 [11:33:42]line НСП 1% : 8.85 [11:33:42]line НДС 12% : 106.24 [11:33:42]line Наличными: 0.00 [11:33:42]line Безнал.: 1000.43 [11:33:42]line Место: АЗС № 92 "Партнер Нефть" [11:33:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:33:42]line СНО: Общий режим [11:33:42]line Чек 93 21.02.2025 11:33 [11:33:42]line Смена: 649 ФФД: 1.0 [11:33:42]line ЗНМ: 0300000118 [11:33:42]line РНМ: 0000000000091857 [11:33:42]line Версия ККМ: 001 [11:33:42]line Платежная система: O! деньги [11:33:42]line ФМ: 0000000000871826 [11:33:42]line ФД: 187599 [11:33:42]line ФПД: 30278782801716 [11:33:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113340&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187599&fm=30278782801716&tin=02508201610067®Number=0000000000091857&sum=100043 [11:33:42]OFD Sender: Processing packet 187599 [packets to send 49, broken 48] [11:33:42]ProducePacketName [11:33:42]name=ofd_packets/00187599 [11:33:42]OFD Sender: To server: pG, [11:33:42]CommunicateWithHost lk.salyk.kg:30040 [11:33:42]ConnectInit lk.salyk.kg [11:33:42]written 0, free lines is 4095 [11:33:42]Connected sock=8 [11:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BA 3C 04 01 6D 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 94 64 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DC 02 00 35 04 06 00 1B 89 D4 17 D7 34 C8 9B 7A B7 19 63 74 96 [11: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 38 32 36 4F 00 00 00 D9 33 47 00 DC 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DC 02 00 F4 03 04 00 E2 0A B8 67 B6 04 01 00 00 56 D5 AD 38 9F E0 5D 0E [11:33:42]CommunicateWithHost err = 0 [11:33:42]CheckOFDResponse [11:33:42]1017 (14) - 77093643461234 [11:33:42]1041 (16) - 0000000000871826 [11:33:42]1040 (4) - 187599 [11:33:42]1012 (4) - 21.02.2025 05:10 [11:33:42]1206 (1) - 0 [11:33:42]OFD Sender: Remove packet 187599 [11:33:42]ProducePacketName [11:33:42]name=ofd_packets/00187599 [11:33:42]NVStorageDeleteData [11:33:42]Write to MH i2c: 01 00 00 F0 0C FC [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: 01 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: 01 07 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: 01 07 00 F0 0C 00 00 00 00 00 0A 0D 1A [11:33:42]RasterBufferAndPrint [11:33:42]line [11:33:42]line [11:33:42]line [11:33:42]line [11:33:42]line [11:33:42]written 0, free lines is 3344 [11:33:42]MH_Cut [11:33:42]Write to MH i2c: D1 01 00 F7 0C 01 D5 [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: D1 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: D1 01 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: D1 01 00 F7 0C 00 D4 [11:33:42]Write to MH i2c: 01 00 00 F8 0C 04 [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:43]OFD Sender: No OFD packet to send [11:33:43]*** Cut start [11:33:43]*** Partial cut [11:33:43]*** CUTSNS_PIN = 1 [11:33:43]*** CUTSNS_PIN = 0 [11:33:43]*** Brake cut motor [11:33:44]Read from MH i2c: 01 [11:33:44]MH_I2C_Read... [11:33:44]*** Stop cut motor [11:33:44]*** Cut end [11:33:44]Read from MH i2c: 01 07 00 [11:33:44]MH_I2C_Read... [11:33:44]Read from MH i2c: 01 07 00 F8 0C 00 00 00 00 00 FF 0F 19 [11:33:44]process_action close_receipt done [11:33:44]requested_data is exist [11:33:44]produce_requested_data [11:33:44]requested_item fm.sn is exist - process it [11:33:44]wFMCommunicate request_size=4 [11:33:44]MH_SAM_APDU [11:33:44]CAPDU: 80 11 00 00 [11:33:44]Write to MH i2c: E2 08 00 F9 0C 80 11 00 00 00 00 00 00 7F [11:33:44]Write i2c OK [11:33:44]MH_I2C_Read... [11:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:44]Read from MH i2c: E2 [11:33:44]MH_I2C_Read... [11:33:44]Read from MH i2c: E2 17 00 [11:33:44]MH_I2C_Read... [11:33:44]Read from MH i2c: E2 17 00 F9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D2 [11:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:33:44]wFMCommunicate OK [11:33:44]requested_item fd.num is exist - process it [11:33:44]SAM_PROTO_GetFieldsCounters [11:33:44]wFMCommunicate request_size=4 [11:33:44]MH_SAM_APDU [11:33:44]CAPDU: 80 13 00 00 [11:33:44]Write to MH i2c: E2 08 00 FA 0C 80 13 00 00 00 00 00 00 82 [11:33:44]Write i2c OK [11:33:44]MH_I2C_Read... [11:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:44]Read from MH i2c: E2 [11:33:44]MH_I2C_Read... [11:33:44]Read from MH i2c: E2 62 00 [11:33:44]MH_I2C_Read... [11:33:44]Read from MH i2c: E2 62 00 FA 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CF DC 02 00 0E 04 04 00 89 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 F7 [11:33:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 CF DC 02 00 0E 04 04 00 89 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 [11:33:44]wFMCommunicate OK [11:33:44]SAM_PROTO_GetFieldsCounters done [11:33:44]requested_item shift.num is exist - process it [11:33:44]requested_item shift.opened is exist - process it [11:33:44]req_shift_opened [11:33:44]FM_GetShiftState [11:33:44]SAM_PROTO_GetShiftState [11:33:44]wFMCommunicate request_size=4 [11:33:44]MH_SAM_APDU [11:33:44]CAPDU: 80 13 01 00 [11:33:44]Write to MH i2c: E2 08 00 FB 0C 80 13 01 00 00 00 00 00 84 [11:33:44]Write i2c OK [11:33:44]MH_I2C_Read... [11:33:44]Read from MH i2c: E2 [11:33:44]MH_I2C_Read... [11:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:44]Read from MH i2c: E2 0E 00 [11:33:44]MH_I2C_Read... [11:33:44]Read from MH i2c: E2 0E 00 FB 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 72 [11:33:44]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:33:44]wFMCommunicate OK [11:33:44]SAM_PROTO_GetShiftState done [11:33:44]FM_GetShiftState done [11:33:44]req_shift_opened done [11:33:44]requested_item shift.open_date is exist - process it [11:33:44]req_shift_open_date [11:33:44]req_shift_open_date done [11:33:44]produce_requested_data done [11:33:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187599,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:33:44]process_action_free close_receipt [11:33:44]json_value_free [11:33:44]json_value_free done [11:33:44]process_json_proto returns [11:33:44]Send response to host [11:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187599,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:33:44]free response buf [11:33:44]execute_script done [11:33:44]execute_script returns [11:33:44]free content buf [11:33:44]Sock 9.Close socket [11:33:44]Sock 9.Thread stoped [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:33:59]accept exits with 10 [11:33:59]New connection [11:33:59]New thread 3067080036 created [11:33:59]Thread 3066936676 joined [11:33:59]Waiting for new connection... [11:33:59] Sock 10.Parse request [11:33:59]Sock 10.Check first char [11:33:59]Sock 10.First char is OK [11:33:59]request: POST /json_proto HTTP/1.0 [11:33:59]Method: POST [11:33:59]URL: /json_proto [11:33:59]Method is POST - this is cgi request [11:33:59]url: /json_proto [11:33:59]query_string will be loaded in cgi processing [11:33:59]execute_cgi json_proto POST (null) [11:33:59]execute_cgi path=json_proto method=POST [11:33:59]POST find Content-Length [11:33:59]Host: 172.17.46.131:8080 [11:33:59]Content-Length: 682 [11:33:59]Content-Type: application/json [11:33:59] [11:33:59]POST finish read [11:33:59]Found Content-Length = 682 [11:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:59]execute_script... [11: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)412758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:59]POST & json_proto [11:33:59]process_json_proto [11:33:59]json parsed OK: [11:33:59]protocol is kg_v1.0 [11:33:59]action value=close_receipt [11:33:59]process_action close_receipt [11:33:59]cmd_close_receipt [11:33:59]MH_GetDate [11:33:59]Write to MH i2c: F0 00 00 FC 0C F7 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: F0 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: F0 09 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: F0 09 00 FC 0C 00 A8 64 B8 67 7E 41 4F 65 9E [11:33:59]GetLastDocTimeStamp 1740137620 [11:33:59]current date 1740137640 [11:33:59]FM_GetShiftState [11:33:59]SAM_PROTO_GetShiftState [11:33:59]wFMCommunicate request_size=4 [11:33:59]MH_SAM_APDU [11:33:59]CAPDU: 80 13 01 00 [11:33:59]Write to MH i2c: E2 08 00 FD 0C 80 13 01 00 00 00 00 00 86 [11:33:59]Write i2c OK [11:33:59]MH_I2C_Read... [11:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:59]Read from MH i2c: E2 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 0E 00 [11:33:59]MH_I2C_Read... [11:33:59]Read from MH i2c: E2 0E 00 FD 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 74 [11:33:59]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:33:59]wFMCommunicate OK [11:33:59]SAM_PROTO_GetShiftState done [11:33:59]FM_GetShiftState done [11:33:59]opened in 1740098043 [11:33:59]opened+sec_in_day 1740184443 [11:33:59]quantity*price = 100023 [11:33:59]sum+1 = 100025 [11:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 94 21.02.2025 11:34 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187600 ФПД: 67023364162909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113400&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187600&fm=67023364162909&tin=02508201610067®Number=0000000000091857&sum=100000 [11:34:01]StoreToDocumentArchive [11:34:01]shift 649 fd 187600 [11:34:01]save to /storage/0649/doc_00187600 [11:34:01]save last doc name /storage/0649/doc_00187600 to /storage/kkm_last_doc_name [11:34:01]save OK [11:34:01]Clear old archive folders... [11:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:01]tlvbuf is 01EAFDF0 [11:34:01]SAM_PROTO_ClearQueue [11:34:01]wFMCommunicate request_size=4 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 09 00 00 [11:34:01]Write to MH i2c: E2 08 00 0A 0D 80 09 00 00 00 00 00 00 89 [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 03 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 03 00 0A 0D 00 90 00 8B [11:34:01]RAPDU: 90 00 [11:34:01]wFMCommunicate OK [11:34:01]SAM_PROTO_ClearQueue done [11:34:01]KKMCreateOFDPacket [11:34:01]OFDProtocolAddRootSTLVToBuf [11:34:01]FM_MakeSignedData [11:34:01]FM_MakeSignedData [11:34:01]SAM_PROTO_SignData [11:34:01]wFMCommunicate request_size=4 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 0D 01 02 [11:34:01]Write to MH i2c: E2 08 00 0B 0D 80 0D 01 02 00 00 00 00 91 [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 03 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 03 00 0B 0D 00 90 00 8C [11:34:01]RAPDU: 90 00 [11:34:01]wFMCommunicate OK [11:34:01]wFMCommunicate request_size=255 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A8 64 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 DC 02 00 35 04 06 00 3C [11:34:01]Write to MH i2c: E2 02 01 0C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A8 64 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 DC 02 00 35 04 06 00 3C 00 00 8C [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 03 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 03 00 0C 0D 00 90 00 8D [11:34:01]RAPDU: 90 00 [11:34:01]wFMCommunicate OK [11:34:01]wFMCommunicate request_size=10 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 0D 02 02 05 F5 17 D0 05 5D [11:34:01]Write to MH i2c: E2 0D 00 0D 0D 80 0D 02 02 05 00 F5 17 D0 05 5D 00 00 DC [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 03 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [11:34:01]RAPDU: 90 00 [11:34:01]wFMCommunicate OK [11:34:01]wFMCommunicate request_size=4 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 0D 03 02 [11:34:01]Write to MH i2c: E2 08 00 0E 0D 80 0D 03 02 00 00 00 00 96 [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 0B 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 0B 00 0E 0D 00 5D A2 47 27 F5 4A 34 26 90 00 9D [11:34:01]RAPDU: 5D A2 47 27 F5 4A 34 26 90 00 [11:34:01]wFMCommunicate OK [11:34:01]SAM_PROTO_SignData done [11:34:01]FM_MakeSignedData done [11:34:01]CreateOFDProtocolMessage [11:34:01]wFMCommunicate request_size=4 [11:34:01]MH_SAM_APDU [11:34:01]CAPDU: 80 11 00 00 [11:34:01]Write to MH i2c: E2 08 00 0F 0D 80 11 00 00 00 00 00 00 96 [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:01]Read from MH i2c: E2 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 17 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: E2 17 00 0F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E9 [11:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:34:01]wFMCommunicate OK [11:34:01]CreateOFDProtocolMessage done [11:34:01]OFDSenderStorePacket 187600 [11:34:01]StoreOFDPacket docnum=187600 [11:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 77 FB 07 01 07 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A8 64 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 DC 02 00 35 04 06 00 3C F5 17 D0 05 5D 5D A2 47 27 F5 4A 34 26 [11:34:01]CheckFolder [11:34:01]dirname=/storage/ofd_packets [11:34:01]CheckFolder done [11:34:01]ProducePacketName [11:34:01]name=ofd_packets/00187600 [11:34:01]NVStorageSaveData ofd_packets/00187600 [11:34:01]File name is /storage/ofd_packets/00187600 [11:34:01]Write 301 bytes [11:34:01]NVStorageSaveData done [11:34:01]OFDSenderStorePacket done [11:34:01]KKMCreateOFDPacket done [11:34:01]NVStorageSaveData kkm_last_timestamp [11:34:01]File name is /storage/kkm_last_timestamp [11:34:01]Write 4 bytes [11:34:01]NVStorageSaveData done [11:34:01]ExternCall_PrintAddStr [11:34:01]wPrintStart [11:34:01]Write to MH i2c: 01 00 00 10 0D 1D [11:34:01]Write i2c OK [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: 01 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: 01 07 00 [11:34:01]MH_I2C_Read... [11:34:01]Read from MH i2c: 01 07 00 10 0D 00 00 00 00 00 FF 0F 32 [11:34:01]RasterBufferAndPrint [11:34:01]line Счет N : (1)412758 [11:34:01]line ИНН: 02508201610067 [11:34:01]line Контрольно-Кассовый Чек [11:34:01]line ПРОДАЖА [11:34:01]line ТРК (МРК, ГНК) : 12 [11:34:01]line Товар: 2710124130 [11:34:01]line Аи-92-К-2 [11:34:01]line 15.580 * 64.20 [11:34:01]line = 1000.24 [11:34:01]line НДС 12% НСП 1% [11:34:01]line > о реализуемом товаре [11:34:01]line ОКРУГЛЕНИЕ: -0.24 [11:34:01]line ИТОГО: 1000.00 [11:34:01]line Внесено: 1000.00 [11:34:01]line СДАЧА: 0.00 [11:34:01]line НСП 1% : 8.85 [11:34:01]line НДС 12% : 106.22 [11:34:01]line Наличными: 1000.00 [11:34:01]line Безнал.: 0.00 [11:34:01]line Место: АЗС № 92 "Партнер Нефть" [11:34:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:34:01]line СНО: Общий режим [11:34:01]line Чек 94 21.02.2025 11:34 [11:34:01]line Смена: 649 ФФД: 1.0 [11:34:01]line ЗНМ: 0300000118 [11:34:01]line РНМ: 0000000000091857 [11:34:01]line Версия ККМ: 001 [11:34:01]line ФМ: 0000000000871826 [11:34:01]line ФД: 187600 [11:34:01]line ФПД: 67023364162909 [11:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113400&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187600&fm=67023364162909&tin=02508201610067®Number=0000000000091857&sum=100000 [11:34:01]OFD Sender: Processing packet 187600 [packets to send 49, broken 48] [11:34:01]ProducePacketName [11:34:01]name=ofd_packets/00187600 [11:34:01]OFD Sender: To server: pG, [11:34:01]CommunicateWithHost lk.salyk.kg:30040 [11:34:01]ConnectInit lk.salyk.kg [11:34:01]written 0, free lines is 4095 [11:34:02]Connected sock=11 [11: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 38 32 36 0F 01 00 00 77 FB 07 01 07 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 A8 64 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 DC 02 00 35 04 06 00 3C F5 17 D0 05 5D 5D A2 47 27 F5 4A 34 26 [11:34:02]Write to MH i2c: 01 00 00 3B 0D 48 [11:34:02]Write i2c OK [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: 01 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: 01 07 00 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: 01 07 00 3B 0D 00 00 00 00 00 F4 0C 4F [11:34:02]RasterBufferAndPrint [11:34:02]line [11:34:02]line [11:34:02]line [11:34:02]line [11:34:02]line [11:34:02]written 0, free lines is 3322 [11:34:02]MH_Cut [11:34:02]Write to MH i2c: D1 01 00 42 0D 01 21 [11:34:02]Write i2c OK [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: D1 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: D1 01 00 [11:34:02]MH_I2C_Read... [11:34:02]Read from MH i2c: D1 01 00 42 0D 00 20 [11:34:02]Write to MH i2c: 01 00 00 43 0D 50 [11:34:02]Write i2c OK [11:34:02]MH_I2C_Read... [11: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 38 32 36 4F 00 00 00 FC 19 47 00 22 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 DC 02 00 F4 03 04 00 F6 0A B8 67 B6 04 01 00 00 89 DC 16 AE C2 A3 69 6F [11:34:02]CommunicateWithHost err = 0 [11:34:02]CheckOFDResponse [11:34:02]1017 (14) - 77093643461234 [11:34:02]1041 (16) - 0000000000871826 [11:34:02]1040 (4) - 187600 [11:34:02]1012 (4) - 21.02.2025 05:11 [11:34:02]1206 (1) - 0 [11:34:02]OFD Sender: Remove packet 187600 [11:34:02]ProducePacketName [11:34:02]name=ofd_packets/00187600 [11:34:02]NVStorageDeleteData [11:34:02]OFD Sender: No OFD packet to send [11:34:03]*** Cut start [11:34:03]*** Partial cut [11:34:03]*** CUTSNS_PIN = 1 [11:34:03]*** CUTSNS_PIN = 0 [11:34:03]*** Brake cut motor [11:34:03]Read from MH i2c: 01 [11:34:03]MH_I2C_Read... [11:34:03]*** Stop cut motor [11:34:03]*** Cut end [11:34:03]Read from MH i2c: 01 07 00 [11:34:03]MH_I2C_Read... [11:34:03]Read from MH i2c: 01 07 00 43 0D 00 00 00 00 00 FF 0F 65 [11:34:03]process_action close_receipt done [11:34:03]requested_data is exist [11:34:03]produce_requested_data [11:34:03]requested_item fm.sn is exist - process it [11:34:03]wFMCommunicate request_size=4 [11:34:03]MH_SAM_APDU [11:34:03]CAPDU: 80 11 00 00 [11:34:03]Write to MH i2c: E2 08 00 44 0D 80 11 00 00 00 00 00 00 CB [11:34:03]Write i2c OK [11:34:03]MH_I2C_Read... [11:34:03]Read from MH i2c: E2 [11:34:03]MH_I2C_Read... [11:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:03]Read from MH i2c: E2 17 00 [11:34:03]MH_I2C_Read... [11:34:03]Read from MH i2c: E2 17 00 44 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1E [11:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:34:03]wFMCommunicate OK [11:34:03]requested_item fd.num is exist - process it [11:34:03]SAM_PROTO_GetFieldsCounters [11:34:03]wFMCommunicate request_size=4 [11:34:03]MH_SAM_APDU [11:34:03]CAPDU: 80 13 00 00 [11:34:03]Write to MH i2c: E2 08 00 45 0D 80 13 00 00 00 00 00 00 CE [11:34:03]Write i2c OK [11:34:03]MH_I2C_Read... [11:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:03]Read from MH i2c: E2 [11:34:03]MH_I2C_Read... [11:34:03]Read from MH i2c: E2 62 00 [11:34:03]MH_I2C_Read... [11:34:03]Read from MH i2c: E2 62 00 45 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D0 DC 02 00 0E 04 04 00 89 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 47 [11:34:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D0 DC 02 00 0E 04 04 00 89 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 [11:34:03]wFMCommunicate OK [11:34:03]SAM_PROTO_GetFieldsCounters done [11:34:03]requested_item shift.num is exist - process it [11:34:03]requested_item shift.opened is exist - process it [11:34:03]req_shift_opened [11:34:03]FM_GetShiftState [11:34:03]SAM_PROTO_GetShiftState [11:34:03]wFMCommunicate request_size=4 [11:34:03]MH_SAM_APDU [11:34:03]CAPDU: 80 13 01 00 [11:34:03]Write to MH i2c: E2 08 00 46 0D 80 13 01 00 00 00 00 00 D0 [11:34:03]Write i2c OK [11:34:03]MH_I2C_Read... [11:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:04]Read from MH i2c: E2 [11:34:04]MH_I2C_Read... [11:34:04]Read from MH i2c: E2 0E 00 [11:34:04]MH_I2C_Read... [11:34:04]Read from MH i2c: E2 0E 00 46 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 BE [11:34:04]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:34:04]wFMCommunicate OK [11:34:04]SAM_PROTO_GetShiftState done [11:34:04]FM_GetShiftState done [11:34:04]req_shift_opened done [11:34:04]requested_item shift.open_date is exist - process it [11:34:04]req_shift_open_date [11:34:04]req_shift_open_date done [11:34:04]produce_requested_data done [11:34:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187600,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:34:04]process_action_free close_receipt [11:34:04]json_value_free [11:34:04]json_value_free done [11:34:04]process_json_proto returns [11:34:04]Send response to host [11:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187600,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:34:04]free response buf [11:34:04]execute_script done [11:34:04]execute_script returns [11:34:04]free content buf [11:34:04]Sock 10.Close socket [11:34:04]Sock 10.Thread stoped [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [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:11]accept exits with 8 [11:36:11]New connection [11:36:11]New thread 3066936676 created [11:36:11]Thread 3067080036 joined [11:36:11]Waiting for new connection... [11:36:11] Sock 8.Parse request [11:36:11]Sock 8.Check first char [11:36:11]Sock 8.First char is OK [11:36:11]request: POST /json_proto HTTP/1.0 [11:36:11]Method: POST [11:36:11]URL: /json_proto [11:36:11]Method is POST - this is cgi request [11:36:11]url: /json_proto [11:36:11]query_string will be loaded in cgi processing [11:36:11]execute_cgi json_proto POST (null) [11:36:11]execute_cgi path=json_proto method=POST [11:36:11]POST find Content-Length [11:36:11]Host: 172.17.46.131:8080 [11:36:11]Content-Length: 677 [11:36:11]Content-Type: application/json [11:36:11] [11:36:11]POST finish read [11:36:11]Found Content-Length = 677 [11:36:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:11]execute_script... [11:36: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)412760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:11]POST & json_proto [11:36:11]process_json_proto [11:36:11]json parsed OK: [11:36:11]protocol is kg_v1.0 [11:36:11]action value=close_receipt [11:36:11]process_action close_receipt [11:36:11]cmd_close_receipt [11:36:11]MH_GetDate [11:36:11]Write to MH i2c: F0 00 00 47 0D 43 [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: F0 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: F0 09 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: F0 09 00 47 0D 00 2C 65 B8 67 7E 41 4F 65 6F [11:36:11]GetLastDocTimeStamp 1740137640 [11:36:11]current date 1740137772 [11:36:11]FM_GetShiftState [11:36:11]SAM_PROTO_GetShiftState [11:36:11]wFMCommunicate request_size=4 [11:36:11]MH_SAM_APDU [11:36:11]CAPDU: 80 13 01 00 [11:36:11]Write to MH i2c: E2 08 00 48 0D 80 13 01 00 00 00 00 00 D2 [11:36:11]Write i2c OK [11:36:11]MH_I2C_Read... [11:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:11]Read from MH i2c: E2 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 0E 00 [11:36:11]MH_I2C_Read... [11:36:11]Read from MH i2c: E2 0E 00 48 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C0 [11:36:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:36:11]wFMCommunicate OK [11:36:11]SAM_PROTO_GetShiftState done [11:36:11]FM_GetShiftState done [11:36:11]opened in 1740098043 [11:36:11]opened+sec_in_day 1740184443 [11:36:11]quantity*price = 40060 [11:36:11]sum+1 = 40062 [11:36:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 95 21.02.2025 11:36 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187601 ФПД: 110379989615394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113612&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187601&fm=110379989615394&tin=02508201610067®Number=0000000000091857&sum=40000 [11:36:13]StoreToDocumentArchive [11:36:13]shift 649 fd 187601 [11:36:13]save to /storage/0649/doc_00187601 [11:36:13]save last doc name /storage/0649/doc_00187601 to /storage/kkm_last_doc_name [11:36:13]save OK [11:36:13]Clear old archive folders... [11:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:13]tlvbuf is B6EC7380 [11:36:13]SAM_PROTO_ClearQueue [11:36:13]wFMCommunicate request_size=4 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 09 00 00 [11:36:13]Write to MH i2c: E2 08 00 55 0D 80 09 00 00 00 00 00 00 D4 [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 03 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [11:36:13]RAPDU: 90 00 [11:36:13]wFMCommunicate OK [11:36:13]SAM_PROTO_ClearQueue done [11:36:13]KKMCreateOFDPacket [11:36:13]OFDProtocolAddRootSTLVToBuf [11:36:13]FM_MakeSignedData [11:36:13]FM_MakeSignedData [11:36:13]SAM_PROTO_SignData [11:36:13]wFMCommunicate request_size=4 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 0D 01 02 [11:36:13]Write to MH i2c: E2 08 00 56 0D 80 0D 01 02 00 00 00 00 DC [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 03 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 03 00 56 0D 00 90 00 D7 [11:36:13]RAPDU: 90 00 [11:36:13]wFMCommunicate OK [11:36:13]wFMCommunicate request_size=255 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 2C 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 DC 02 00 35 04 06 00 64 [11:36:13]Write to MH i2c: E2 02 01 57 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 2C 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 DC 02 00 35 04 06 00 64 00 00 1C [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 03 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 03 00 57 0D 00 90 00 D8 [11:36:13]RAPDU: 90 00 [11:36:13]wFMCommunicate OK [11:36:13]wFMCommunicate request_size=10 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 0D 02 02 05 63 D8 12 43 22 [11:36:13]Write to MH i2c: E2 0D 00 58 0D 80 0D 02 02 05 00 63 D8 12 43 22 00 00 9B [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 03 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [11:36:13]RAPDU: 90 00 [11:36:13]wFMCommunicate OK [11:36:13]wFMCommunicate request_size=4 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 0D 03 02 [11:36:13]Write to MH i2c: E2 08 00 59 0D 80 0D 03 02 00 00 00 00 E1 [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 0B 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 0B 00 59 0D 00 87 1C 28 68 EF 92 B4 AE 90 00 F8 [11:36:13]RAPDU: 87 1C 28 68 EF 92 B4 AE 90 00 [11:36:13]wFMCommunicate OK [11:36:13]SAM_PROTO_SignData done [11:36:13]FM_MakeSignedData done [11:36:13]CreateOFDProtocolMessage [11:36:13]wFMCommunicate request_size=4 [11:36:13]MH_SAM_APDU [11:36:13]CAPDU: 80 11 00 00 [11:36:13]Write to MH i2c: E2 08 00 5A 0D 80 11 00 00 00 00 00 00 E1 [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:13]Read from MH i2c: E2 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 17 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: E2 17 00 5A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 34 [11:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:36:13]wFMCommunicate OK [11:36:13]CreateOFDProtocolMessage done [11:36:13]OFDSenderStorePacket 187601 [11:36:13]StoreOFDPacket docnum=187601 [11:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 31 03 07 01 14 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 2C 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 DC 02 00 35 04 06 00 64 63 D8 12 43 22 87 1C 28 68 EF 92 B4 AE [11:36:13]CheckFolder [11:36:13]dirname=/storage/ofd_packets [11:36:13]CheckFolder done [11:36:13]ProducePacketName [11:36:13]name=ofd_packets/00187601 [11:36:13]NVStorageSaveData ofd_packets/00187601 [11:36:13]File name is /storage/ofd_packets/00187601 [11:36:13]Write 301 bytes [11:36:13]NVStorageSaveData done [11:36:13]OFDSenderStorePacket done [11:36:13]KKMCreateOFDPacket done [11:36:13]NVStorageSaveData kkm_last_timestamp [11:36:13]File name is /storage/kkm_last_timestamp [11:36:13]Write 4 bytes [11:36:13]NVStorageSaveData done [11:36:13]ExternCall_PrintAddStr [11:36:13]wPrintStart [11:36:13]Write to MH i2c: 01 00 00 5B 0D 68 [11:36:13]Write i2c OK [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: 01 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: 01 07 00 [11:36:13]MH_I2C_Read... [11:36:13]Read from MH i2c: 01 07 00 5B 0D 00 00 00 00 00 FF 0F 7D [11:36:13]RasterBufferAndPrint [11:36:13]line Счет N : (1)412760 [11:36:13]line ИНН: 02508201610067 [11:36:13]line Контрольно-Кассовый Чек [11:36:13]line ПРОДАЖА [11:36:13]line ТРК (МРК, ГНК) : 42 [11:36:13]line Товар: 2710124130 [11:36:13]line Аи-92-К-2 [11:36:13]line 6.240 * 64.20 [11:36:13]line = 400.61 [11:36:13]line НДС 12% НСП 1% [11:36:13]line > о реализуемом товаре [11:36:13]line ОКРУГЛЕНИЕ: -0.61 [11:36:13]line ИТОГО: 400.00 [11:36:13]line Внесено: 400.00 [11:36:13]line СДАЧА: 0.00 [11:36:13]line НСП 1% : 3.54 [11:36:13]line НДС 12% : 42.54 [11:36:13]line Наличными: 400.00 [11:36:13]line Безнал.: 0.00 [11:36:13]line Место: АЗС № 92 "Партнер Нефть" [11:36:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:36:13]line СНО: Общий режим [11:36:13]line Чек 95 21.02.2025 11:36 [11:36:13]line Смена: 649 ФФД: 1.0 [11:36:13]line ЗНМ: 0300000118 [11:36:13]line РНМ: 0000000000091857 [11:36:13]line Версия ККМ: 001 [11:36:13]line ФМ: 0000000000871826 [11:36:13]line ФД: 187601 [11:36:13]line ФПД: 110379989615394 [11:36:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113612&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187601&fm=110379989615394&tin=02508201610067®Number=0000000000091857&sum=40000 [11:36:13]OFD Sender: Processing packet 187601 [packets to send 49, broken 48] [11:36:13]ProducePacketName [11:36:13]name=ofd_packets/00187601 [11:36:13]OFD Sender: To server: pG, [11:36:13]CommunicateWithHost lk.salyk.kg:30040 [11:36:13]ConnectInit lk.salyk.kg [11:36:13]written 0, free lines is 4095 [11:36:14]Connected sock=10 [11:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 31 03 07 01 14 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 2C 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 DC 02 00 35 04 06 00 64 63 D8 12 43 22 87 1C 28 68 EF 92 B4 AE [11:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BE B0 47 00 FB 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 DC 02 00 F4 03 04 00 7A 0B B8 67 B6 04 01 00 00 C1 84 2F D5 25 D1 32 F2 [11:36:14]CommunicateWithHost err = 0 [11:36:14]CheckOFDResponse [11:36:14]1017 (14) - 77093643461234 [11:36:14]1041 (16) - 0000000000871826 [11:36:14]1040 (4) - 187601 [11:36:14]1012 (4) - 21.02.2025 05:13 [11:36:14]1206 (1) - 0 [11:36:14]OFD Sender: Remove packet 187601 [11:36:14]ProducePacketName [11:36:14]name=ofd_packets/00187601 [11:36:14]NVStorageDeleteData [11:36:14]Write to MH i2c: 01 00 00 86 0D 93 [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: 01 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: 01 07 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: 01 07 00 86 0D 00 00 00 00 00 F9 0C 9F [11:36:14]RasterBufferAndPrint [11:36:14]line [11:36:14]line [11:36:14]line [11:36:14]line [11:36:14]line [11:36:14]written 0, free lines is 3327 [11:36:14]MH_Cut [11:36:14]Write to MH i2c: D1 01 00 8D 0D 01 6C [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: D1 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: D1 01 00 [11:36:14]MH_I2C_Read... [11:36:14]Read from MH i2c: D1 01 00 8D 0D 00 6B [11:36:14]Write to MH i2c: 01 00 00 8E 0D 9B [11:36:14]Write i2c OK [11:36:14]MH_I2C_Read... [11:36:14]OFD Sender: No OFD packet to send [11:36:15]*** Cut start [11:36:15]*** Partial cut [11:36:15]*** CUTSNS_PIN = 1 [11:36:15]*** CUTSNS_PIN = 0 [11:36:15]*** Brake cut motor [11:36:15]Read from MH i2c: 01 [11:36:15]MH_I2C_Read... [11:36:15]*** Stop cut motor [11:36:15]*** Cut end [11:36:15]Read from MH i2c: 01 07 00 [11:36:15]MH_I2C_Read... [11:36:15]Read from MH i2c: 01 07 00 8E 0D 00 00 00 00 00 FF 0F B0 [11:36:15]process_action close_receipt done [11:36:15]requested_data is exist [11:36:15]produce_requested_data [11:36:15]requested_item fm.sn is exist - process it [11:36:15]wFMCommunicate request_size=4 [11:36:15]MH_SAM_APDU [11:36:15]CAPDU: 80 11 00 00 [11:36:15]Write to MH i2c: E2 08 00 8F 0D 80 11 00 00 00 00 00 00 16 [11:36:15]Write i2c OK [11:36:15]MH_I2C_Read... [11:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:15]Read from MH i2c: E2 [11:36:15]MH_I2C_Read... [11:36:15]Read from MH i2c: E2 17 00 [11:36:15]MH_I2C_Read... [11:36:15]Read from MH i2c: E2 17 00 8F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 69 [11:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:36:15]wFMCommunicate OK [11:36:15]requested_item fd.num is exist - process it [11:36:15]SAM_PROTO_GetFieldsCounters [11:36:15]wFMCommunicate request_size=4 [11:36:15]MH_SAM_APDU [11:36:15]CAPDU: 80 13 00 00 [11:36:15]Write to MH i2c: E2 08 00 90 0D 80 13 00 00 00 00 00 00 19 [11:36:15]Write i2c OK [11:36:15]MH_I2C_Read... [11:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:16]Read from MH i2c: E2 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: E2 62 00 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: E2 62 00 90 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D1 DC 02 00 0E 04 04 00 89 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 96 [11:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D1 DC 02 00 0E 04 04 00 89 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 [11:36:16]wFMCommunicate OK [11:36:16]SAM_PROTO_GetFieldsCounters done [11:36:16]requested_item shift.num is exist - process it [11:36:16]requested_item shift.opened is exist - process it [11:36:16]req_shift_opened [11:36:16]FM_GetShiftState [11:36:16]SAM_PROTO_GetShiftState [11:36:16]wFMCommunicate request_size=4 [11:36:16]MH_SAM_APDU [11:36:16]CAPDU: 80 13 01 00 [11:36:16]Write to MH i2c: E2 08 00 91 0D 80 13 01 00 00 00 00 00 1B [11:36:16]Write i2c OK [11:36:16]MH_I2C_Read... [11:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:16]Read from MH i2c: E2 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: E2 0E 00 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: E2 0E 00 91 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 09 [11:36:16]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:36:16]wFMCommunicate OK [11:36:16]SAM_PROTO_GetShiftState done [11:36:16]FM_GetShiftState done [11:36:16]req_shift_opened done [11:36:16]requested_item shift.open_date is exist - process it [11:36:16]req_shift_open_date [11:36:16]req_shift_open_date done [11:36:16]produce_requested_data done [11:36:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187601,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:36:16]process_action_free close_receipt [11:36:16]json_value_free [11:36:16]json_value_free done [11:36:16]process_json_proto returns [11:36:16]Send response to host [11:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187601,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:36:16]free response buf [11:36:16]execute_script done [11:36:16]execute_script returns [11:36:16]free content buf [11:36:16]Sock 8.Close socket [11:36:16]Sock 8.Thread stoped [11:36:16]accept exits with 9 [11:36:16]New connection [11:36:16]New thread 3067080036 created [11:36:16]Thread 3066936676 joined [11:36:16]Waiting for new connection... [11:36:16] Sock 9.Parse request [11:36:16]Sock 9.Check first char [11:36:16]Sock 9.First char is OK [11:36:16]request: POST /json_proto HTTP/1.0 [11:36:16]Method: POST [11:36:16]URL: /json_proto [11:36:16]Method is POST - this is cgi request [11:36:16]url: /json_proto [11:36:16]query_string will be loaded in cgi processing [11:36:16]execute_cgi json_proto POST (null) [11:36:16]execute_cgi path=json_proto method=POST [11:36:16]POST find Content-Length [11:36:16]Host: 172.17.46.131:8080 [11:36:16]Content-Length: 677 [11:36:16]Content-Type: application/json [11:36:16] [11:36:16]POST finish read [11:36:16]Found Content-Length = 677 [11:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 7.310, "sum" : 525.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 525.00, "total" : 525.00, "payments": [ { "type": 0, "sum" : 525.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:16]execute_script... [11:36: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)412759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 7.310, "sum" : 525.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 525.00, "total" : 525.00, "payments": [ { "type": 0, "sum" : 525.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:16]POST & json_proto [11:36:16]process_json_proto [11:36:16]json parsed OK: [11:36:16]protocol is kg_v1.0 [11:36:16]action value=close_receipt [11:36:16]process_action close_receipt [11:36:16]cmd_close_receipt [11:36:16]MH_GetDate [11:36:16]Write to MH i2c: F0 00 00 92 0D 8E [11:36:16]Write i2c OK [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: F0 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: F0 09 00 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: F0 09 00 92 0D 00 30 65 B8 67 7E 41 4F 65 BE [11:36:16]GetLastDocTimeStamp 1740137772 [11:36:16]current date 1740137776 [11:36:16]FM_GetShiftState [11:36:16]SAM_PROTO_GetShiftState [11:36:16]wFMCommunicate request_size=4 [11:36:16]MH_SAM_APDU [11:36:16]CAPDU: 80 13 01 00 [11:36:16]Write to MH i2c: E2 08 00 93 0D 80 13 01 00 00 00 00 00 1D [11:36:16]Write i2c OK [11:36:16]MH_I2C_Read... [11:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:16]Read from MH i2c: E2 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: E2 0E 00 [11:36:16]MH_I2C_Read... [11:36:16]Read from MH i2c: E2 0E 00 93 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0B [11:36:16]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:36:16]wFMCommunicate OK [11:36:16]SAM_PROTO_GetShiftState done [11:36:16]FM_GetShiftState done [11:36:16]opened in 1740098043 [11:36:16]opened+sec_in_day 1740184443 [11:36:16]quantity*price = 52558 [11:36:16]sum+1 = 52560 [11:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 525.00 Внесено: 525.00 СДАЧА: 0.00 НСП 1% : 4.65 НДС 12% : 55.81 Наличными: 525.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 96 21.02.2025 11:36 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187602 ФПД: 122571498858366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187602&fm=122571498858366&tin=02508201610067®Number=0000000000091857&sum=52500 [11:36:17]StoreToDocumentArchive [11:36:17]shift 649 fd 187602 [11:36:17]save to /storage/0649/doc_00187602 [11:36:17]save last doc name /storage/0649/doc_00187602 to /storage/kkm_last_doc_name [11:36:17]save OK [11:36:17]Clear old archive folders... [11:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:17]tlvbuf is 01E8BF80 [11:36:17]SAM_PROTO_ClearQueue [11:36:17]wFMCommunicate request_size=4 [11:36:17]MH_SAM_APDU [11:36:17]CAPDU: 80 09 00 00 [11:36:17]Write to MH i2c: E2 08 00 A0 0D 80 09 00 00 00 00 00 00 1F [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:17]Read from MH i2c: E2 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 03 00 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 03 00 A0 0D 00 90 00 21 [11:36:17]RAPDU: 90 00 [11:36:17]wFMCommunicate OK [11:36:17]SAM_PROTO_ClearQueue done [11:36:17]KKMCreateOFDPacket [11:36:17]OFDProtocolAddRootSTLVToBuf [11:36:17]FM_MakeSignedData [11:36:17]FM_MakeSignedData [11:36:17]SAM_PROTO_SignData [11:36:17]wFMCommunicate request_size=4 [11:36:17]MH_SAM_APDU [11:36:17]CAPDU: 80 0D 01 02 [11:36:17]Write to MH i2c: E2 08 00 A1 0D 80 0D 01 02 00 00 00 00 27 [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 [11:36:17]MH_I2C_Read... [11:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:18]Read from MH i2c: E2 03 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [11:36:18]RAPDU: 90 00 [11:36:18]wFMCommunicate OK [11:36:18]wFMCommunicate request_size=255 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4F CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 30 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 DC 02 00 35 04 06 00 6F [11:36:18]Write to MH i2c: E2 02 01 A2 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4F CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 30 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 DC 02 00 35 04 06 00 6F 00 00 66 [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [11:36:18]RAPDU: 90 00 [11:36:18]wFMCommunicate OK [11:36:18]wFMCommunicate request_size=10 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 0D 02 02 05 7A 66 A6 27 7E [11:36:18]Write to MH i2c: E2 0D 00 A3 0D 80 0D 02 02 05 00 7A 66 A6 27 7E 00 00 5F [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [11:36:18]RAPDU: 90 00 [11:36:18]wFMCommunicate OK [11:36:18]wFMCommunicate request_size=4 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 0D 03 02 [11:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:18]Write to MH i2c: E2 08 00 A4 0D 80 0D 03 02 00 00 00 00 2C [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 0B 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 0B 00 A4 0D 00 C7 AA C2 5D 4E 76 C9 AF 90 00 F9 [11:36:18]RAPDU: C7 AA C2 5D 4E 76 C9 AF 90 00 [11:36:18]wFMCommunicate OK [11:36:18]SAM_PROTO_SignData done [11:36:18]FM_MakeSignedData done [11:36:18]CreateOFDProtocolMessage [11:36:18]wFMCommunicate request_size=4 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 11 00 00 [11:36:18]Write to MH i2c: E2 08 00 A5 0D 80 11 00 00 00 00 00 00 2C [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 17 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 17 00 A5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7F [11:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:36:18]wFMCommunicate OK [11:36:18]CreateOFDProtocolMessage done [11:36:18]OFDSenderStorePacket 187602 [11:36:18]StoreOFDPacket docnum=187602 [11:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4C AC 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4F CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 30 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 DC 02 00 35 04 06 00 6F 7A 66 A6 27 7E C7 AA C2 5D 4E 76 C9 AF [11:36:18]CheckFolder [11:36:18]dirname=/storage/ofd_packets [11:36:18]CheckFolder done [11:36:18]ProducePacketName [11:36:18]name=ofd_packets/00187602 [11:36:18]NVStorageSaveData ofd_packets/00187602 [11:36:18]File name is /storage/ofd_packets/00187602 [11:36:18]Write 301 bytes [11:36:18]NVStorageSaveData done [11:36:18]OFDSenderStorePacket done [11:36:18]KKMCreateOFDPacket done [11:36:18]NVStorageSaveData kkm_last_timestamp [11:36:18]File name is /storage/kkm_last_timestamp [11:36:18]Write 4 bytes [11:36:18]NVStorageSaveData done [11:36:18]ExternCall_PrintAddStr [11:36:18]wPrintStart [11:36:18]Write to MH i2c: 01 00 00 A6 0D B3 [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 A6 0D 00 00 00 00 00 FF 0F C8 [11:36:18]RasterBufferAndPrint [11:36:18]line Счет N : (1)412759 [11:36:18]line ИНН: 02508201610067 [11:36:18]line Контрольно-Кассовый Чек [11:36:18]line ПРОДАЖА [11:36:18]line ТРК (МРК, ГНК) : 33 [11:36:18]line Товар: 2710124500 [11:36:18]line Аи-95-К-5 [11:36:18]line 7.310 * 71.90 [11:36:18]line = 525.59 [11:36:18]line НДС 12% НСП 1% [11:36:18]line > о реализуемом товаре [11:36:18]line ОКРУГЛЕНИЕ: -0.59 [11:36:18]line ИТОГО: 525.00 [11:36:18]line Внесено: 525.00 [11:36:18]line СДАЧА: 0.00 [11:36:18]line НСП 1% : 4.65 [11:36:18]line НДС 12% : 55.81 [11:36:18]line Наличными: 525.00 [11:36:18]line Безнал.: 0.00 [11:36:18]line Место: АЗС № 92 "Партнер Нефть" [11:36:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:36:18]line СНО: Общий режим [11:36:18]line Чек 96 21.02.2025 11:36 [11:36:18]line Смена: 649 ФФД: 1.0 [11:36:18]line ЗНМ: 0300000118 [11:36:18]line РНМ: 0000000000091857 [11:36:18]line Версия ККМ: 001 [11:36:18]line ФМ: 0000000000871826 [11:36:18]line ФД: 187602 [11:36:18]line ФПД: 122571498858366 [11:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187602&fm=122571498858366&tin=02508201610067®Number=0000000000091857&sum=52500 [11:36:18]written 0, free lines is 4095 [11:36:18]OFD Sender: Processing packet 187602 [packets to send 49, broken 48] [11:36:18]ProducePacketName [11:36:18]name=ofd_packets/00187602 [11:36:18]OFD Sender: To server: pG, [11:36:18]CommunicateWithHost lk.salyk.kg:30040 [11:36:18]ConnectInit lk.salyk.kg [11:36:18]Connected sock=10 [11:36:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4C AC 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 4F CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 30 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 DC 02 00 35 04 06 00 6F 7A 66 A6 27 7E C7 AA C2 5D 4E 76 C9 AF [11:36:18]Write to MH i2c: 01 00 00 D1 0D DE [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 D1 0D 00 00 00 00 00 F7 0C E8 [11:36:18]RasterBufferAndPrint [11:36:18]line [11:36:18]line [11:36:18]line [11:36:18]line [11:36:18]line [11:36:18]written 0, free lines is 3331 [11:36:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 76 47 47 00 9C 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 38 32 36 10 04 04 00 D2 DC 02 00 F4 03 04 00 7F 0B B8 67 B6 04 01 00 00 28 8A AA 64 5E 26 AA 99 [11:36:19]CommunicateWithHost err = 0 [11:36:19]CheckOFDResponse [11:36:19]1017 (14) - 77093643461234 [11:36:19]1041 (16) - 0000000000871826 [11:36:19]1040 (4) - 187602 [11:36:19]1012 (4) - 21.02.2025 05:13 [11:36:19]1206 (1) - 0 [11:36:19]OFD Sender: Remove packet 187602 [11:36:19]ProducePacketName [11:36:19]name=ofd_packets/00187602 [11:36:19]NVStorageDeleteData [11:36:19]MH_Cut [11:36:19]Write to MH i2c: D1 01 00 D8 0D 01 B7 [11:36:19]Write i2c OK [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: D1 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: D1 01 00 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: D1 01 00 D8 0D 00 B6 [11:36:19]Write to MH i2c: 01 00 00 D9 0D E6 [11:36:19]Write i2c OK [11:36:19]MH_I2C_Read... [11:36:19]OFD Sender: No OFD packet to send [11:36:19]*** Cut start [11:36:19]*** Partial cut [11:36:19]*** CUTSNS_PIN = 1 [11:36:19]*** CUTSNS_PIN = 0 [11:36:20]*** Brake cut motor [11:36:20]Read from MH i2c: 01 [11:36:20]MH_I2C_Read... [11:36:20]*** Stop cut motor [11:36:20]*** Cut end [11:36:20]Read from MH i2c: 01 07 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: 01 07 00 D9 0D 00 00 00 00 00 FF 0F FB [11:36:20]process_action close_receipt done [11:36:20]requested_data is exist [11:36:20]produce_requested_data [11:36:20]requested_item fm.sn is exist - process it [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 11 00 00 [11:36:20]Write to MH i2c: E2 08 00 DA 0D 80 11 00 00 00 00 00 00 61 [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:20]Read from MH i2c: E2 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 17 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 17 00 DA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B4 [11:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:36:20]wFMCommunicate OK [11:36:20]requested_item fd.num is exist - process it [11:36:20]SAM_PROTO_GetFieldsCounters [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 13 00 00 [11:36:20]Write to MH i2c: E2 08 00 DB 0D 80 13 00 00 00 00 00 00 64 [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:20]Read from MH i2c: E2 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 62 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 62 00 DB 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D2 DC 02 00 0E 04 04 00 89 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 E5 [11:36:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D2 DC 02 00 0E 04 04 00 89 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 [11:36:20]wFMCommunicate OK [11:36:20]SAM_PROTO_GetFieldsCounters done [11:36:20]requested_item shift.num is exist - process it [11:36:20]requested_item shift.opened is exist - process it [11:36:20]req_shift_opened [11:36:20]FM_GetShiftState [11:36:20]SAM_PROTO_GetShiftState [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 13 01 00 [11:36:20]Write to MH i2c: E2 08 00 DC 0D 80 13 01 00 00 00 00 00 66 [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:20]Read from MH i2c: E2 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 0E 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 0E 00 DC 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 54 [11:36:20]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:36:20]wFMCommunicate OK [11:36:20]SAM_PROTO_GetShiftState done [11:36:20]FM_GetShiftState done [11:36:20]req_shift_opened done [11:36:20]requested_item shift.open_date is exist - process it [11:36:20]req_shift_open_date [11:36:20]req_shift_open_date done [11:36:20]produce_requested_data done [11:36:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187602,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:36:20]process_action_free close_receipt [11:36:20]json_value_free [11:36:20]json_value_free done [11:36:20]process_json_proto returns [11:36:20]Send response to host [11:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187602,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:36:20]free response buf [11:36:20]execute_script done [11:36:20]execute_script returns [11:36:20]free content buf [11:36:20]Sock 9.Close socket [11:36:20]Sock 9.Thread stoped [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:04]accept exits with 8 [11:39:04]New connection [11:39:04]New thread 3066936676 created [11:39:04]Thread 3067080036 joined [11:39:04]Waiting for new connection... [11:39:04] Sock 8.Parse request [11:39:04]Sock 8.Check first char [11:39:04]Sock 8.First char is OK [11:39:04]request: POST /json_proto HTTP/1.0 [11:39:04]Method: POST [11:39:04]URL: /json_proto [11:39:04]Method is POST - this is cgi request [11:39:04]url: /json_proto [11:39:04]query_string will be loaded in cgi processing [11:39:04]execute_cgi json_proto POST (null) [11:39:04]execute_cgi path=json_proto method=POST [11:39:04]POST find Content-Length [11:39:04]Host: 172.17.46.131:8080 [11:39:04]Content-Length: 677 [11:39:04]Content-Type: application/json [11:39:04] [11:39:04]POST finish read [11:39:04]Found Content-Length = 677 [11:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.260, "sum" : 337.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 337.00, "payments": [ { "type": 0, "sum" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:04]execute_script... [11:39: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)412761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.260, "sum" : 337.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 337.00, "payments": [ { "type": 0, "sum" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:04]POST & json_proto [11:39:04]process_json_proto [11:39:04]json parsed OK: [11:39:04]protocol is kg_v1.0 [11:39:04]action value=close_receipt [11:39:04]process_action close_receipt [11:39:04]cmd_close_receipt [11:39:04]MH_GetDate [11:39:04]Write to MH i2c: F0 00 00 DD 0D D9 [11:39:04]Write i2c OK [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: F0 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: F0 09 00 [11:39:04]MH_I2C_Read... [11:39:04]Read from MH i2c: F0 09 00 DD 0D 00 D9 65 B8 67 7E 41 4F 65 B2 [11:39:04]GetLastDocTimeStamp 1740137776 [11:39:04]current date 1740137945 [11:39:04]FM_GetShiftState [11:39:04]SAM_PROTO_GetShiftState [11:39:04]wFMCommunicate request_size=4 [11:39:04]MH_SAM_APDU [11:39:04]CAPDU: 80 13 01 00 [11:39:04]Write to MH i2c: E2 08 00 DE 0D 80 13 01 00 00 00 00 00 68 [11:39:04]Write i2c OK [11:39:04]MH_I2C_Read... [11:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:05]Read from MH i2c: E2 [11:39:05]MH_I2C_Read... [11:39:05]Read from MH i2c: E2 0E 00 [11:39:05]MH_I2C_Read... [11:39:05]Read from MH i2c: E2 0E 00 DE 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 56 [11:39:05]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:39:05]wFMCommunicate OK [11:39:05]SAM_PROTO_GetShiftState done [11:39:05]FM_GetShiftState done [11:39:05]opened in 1740098043 [11:39:05]opened+sec_in_day 1740184443 [11:39:05]quantity*price = 33769 [11:39:05]sum+1 = 33770 [11:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 337.00 Внесено: 400.00 СДАЧА: 63.00 НСП 1% : 2.99 НДС 12% : 35.86 Наличными: 337.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 97 21.02.2025 11:39 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187603 ФПД: 81813410010320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113905&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187603&fm=81813410010320&tin=02508201610067®Number=0000000000091857&sum=33700 [11:39:06]StoreToDocumentArchive [11:39:06]shift 649 fd 187603 [11:39:06]save to /storage/0649/doc_00187603 [11:39:06]save last doc name /storage/0649/doc_00187603 to /storage/kkm_last_doc_name [11:39:06]save OK [11:39:06]Clear old archive folders... [11:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:06]tlvbuf is 01E20FC0 [11:39:06]SAM_PROTO_ClearQueue [11:39:06]wFMCommunicate request_size=4 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 09 00 00 [11:39:06]Write to MH i2c: E2 08 00 EB 0D 80 09 00 00 00 00 00 00 6A [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 03 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [11:39:06]RAPDU: 90 00 [11:39:06]wFMCommunicate OK [11:39:06]SAM_PROTO_ClearQueue done [11:39:06]KKMCreateOFDPacket [11:39:06]OFDProtocolAddRootSTLVToBuf [11:39:06]FM_MakeSignedData [11:39:06]FM_MakeSignedData [11:39:06]SAM_PROTO_SignData [11:39:06]wFMCommunicate request_size=4 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 0D 01 02 [11:39:06]Write to MH i2c: E2 08 00 EC 0D 80 0D 01 02 00 00 00 00 72 [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 03 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [11:39:06]RAPDU: 90 00 [11:39:06]wFMCommunicate OK [11:39:06]wFMCommunicate request_size=255 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E9 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 0E 00 00 00 00 07 04 06 00 A4 83 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 D9 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DC 02 00 35 04 06 00 4A [11:39:06]Write to MH i2c: E2 02 01 ED 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E9 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 0E 00 00 00 00 07 04 06 00 A4 83 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 D9 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DC 02 00 35 04 06 00 4A 00 00 85 [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 03 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 03 00 ED 0D 00 90 00 6E [11:39:06]RAPDU: 90 00 [11:39:06]wFMCommunicate OK [11:39:06]wFMCommunicate request_size=10 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 0D 02 02 05 68 AB 3D D4 D0 [11:39:06]Write to MH i2c: E2 0D 00 EE 0D 80 0D 02 02 05 00 68 AB 3D D4 D0 00 00 73 [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 03 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 03 00 EE 0D 00 90 00 6F [11:39:06]RAPDU: 90 00 [11:39:06]wFMCommunicate OK [11:39:06]wFMCommunicate request_size=4 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 0D 03 02 [11:39:06]Write to MH i2c: E2 08 00 EF 0D 80 0D 03 02 00 00 00 00 77 [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 0B 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 0B 00 EF 0D 00 4D 4B BF D9 2E F1 BF A4 90 00 2A [11:39:06]RAPDU: 4D 4B BF D9 2E F1 BF A4 90 00 [11:39:06]wFMCommunicate OK [11:39:06]SAM_PROTO_SignData done [11:39:06]FM_MakeSignedData done [11:39:06]CreateOFDProtocolMessage [11:39:06]wFMCommunicate request_size=4 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 11 00 00 [11:39:06]Write to MH i2c: E2 08 00 F0 0D 80 11 00 00 00 00 00 00 77 [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 17 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 17 00 F0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CA [11:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:39:06]wFMCommunicate OK [11:39:06]CreateOFDProtocolMessage done [11:39:06]OFDSenderStorePacket 187603 [11:39:06]StoreOFDPacket docnum=187603 [11:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0E 84 07 01 BA 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E9 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 0E 00 00 00 00 07 04 06 00 A4 83 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 D9 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DC 02 00 35 04 06 00 4A 68 AB 3D D4 D0 4D 4B BF D9 2E F1 BF A4 [11:39:06]CheckFolder [11:39:06]dirname=/storage/ofd_packets [11:39:06]CheckFolder done [11:39:06]ProducePacketName [11:39:06]name=ofd_packets/00187603 [11:39:06]NVStorageSaveData ofd_packets/00187603 [11:39:06]File name is /storage/ofd_packets/00187603 [11:39:06]Write 301 bytes [11:39:06]NVStorageSaveData done [11:39:06]OFDSenderStorePacket done [11:39:06]KKMCreateOFDPacket done [11:39:06]NVStorageSaveData kkm_last_timestamp [11:39:06]File name is /storage/kkm_last_timestamp [11:39:06]Write 4 bytes [11:39:06]NVStorageSaveData done [11:39:06]ExternCall_PrintAddStr [11:39:06]wPrintStart [11:39:06]Write to MH i2c: 01 00 00 F1 0D FE [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: 01 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: 01 07 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FF 0F 13 [11:39:06]RasterBufferAndPrint [11:39:06]line Счет N : (1)412761 [11:39:06]line ИНН: 02508201610067 [11:39:06]line Контрольно-Кассовый Чек [11:39:06]line ПРОДАЖА [11:39:06]line ТРК (МРК, ГНК) : 12 [11:39:06]line Товар: 2710124130 [11:39:06]line Аи-92-К-2 [11:39:06]line 5.260 * 64.20 [11:39:06]line = 337.69 [11:39:06]line НДС 12% НСП 1% [11:39:06]line > о реализуемом товаре [11:39:06]line ОКРУГЛЕНИЕ: -0.69 [11:39:06]line ИТОГО: 337.00 [11:39:06]line Внесено: 400.00 [11:39:06]line СДАЧА: 63.00 [11:39:06]line НСП 1% : 2.99 [11:39:06]line НДС 12% : 35.86 [11:39:06]line Наличными: 337.00 [11:39:06]line Безнал.: 0.00 [11:39:06]line Место: АЗС № 92 "Партнер Нефть" [11:39:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:39:06]line СНО: Общий режим [11:39:06]line Чек 97 21.02.2025 11:39 [11:39:06]line Смена: 649 ФФД: 1.0 [11:39:06]line ЗНМ: 0300000118 [11:39:06]line РНМ: 0000000000091857 [11:39:06]line Версия ККМ: 001 [11:39:06]line ФМ: 0000000000871826 [11:39:06]line ФД: 187603 [11:39:06]line ФПД: 81813410010320 [11:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T113905&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187603&fm=81813410010320&tin=02508201610067®Number=0000000000091857&sum=33700 [11:39:07]OFD Sender: Processing packet 187603 [packets to send 49, broken 48] [11:39:07]ProducePacketName [11:39:07]name=ofd_packets/00187603 [11:39:07]OFD Sender: To server: pG, [11:39:07]CommunicateWithHost lk.salyk.kg:30040 [11:39:07]ConnectInit lk.salyk.kg [11:39:07]written 0, free lines is 4095 [11:39:07]Connected sock=10 [11:39:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0E 84 07 01 BA 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E9 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 0E 00 00 00 00 07 04 06 00 A4 83 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 D9 65 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DC 02 00 35 04 06 00 4A 68 AB 3D D4 D0 4D 4B BF D9 2E F1 BF A4 [11:39:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C3 15 47 00 71 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 DC 02 00 F4 03 04 00 27 0C B8 67 B6 04 01 00 00 80 2B 16 5A 65 5C AC 4A [11:39:07]CommunicateWithHost err = 0 [11:39:07]CheckOFDResponse [11:39:07]1017 (14) - 77093643461234 [11:39:07]1041 (16) - 0000000000871826 [11:39:07]1040 (4) - 187603 [11:39:07]1012 (4) - 21.02.2025 05:16 [11:39:07]1206 (1) - 0 [11:39:07]OFD Sender: Remove packet 187603 [11:39:07]ProducePacketName [11:39:07]name=ofd_packets/00187603 [11:39:07]NVStorageDeleteData [11:39:07]Write to MH i2c: 01 00 00 1C 0E 2A [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: 01 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: 01 07 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: 01 07 00 1C 0E 00 00 00 00 00 F3 0C 30 [11:39:07]RasterBufferAndPrint [11:39:07]line [11:39:07]line [11:39:07]line [11:39:07]line [11:39:07]line [11:39:07]written 0, free lines is 3321 [11:39:07]MH_Cut [11:39:07]Write to MH i2c: D1 01 00 23 0E 01 03 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: D1 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: D1 01 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: D1 01 00 23 0E 00 02 [11:39:07]Write to MH i2c: 01 00 00 24 0E 32 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]OFD Sender: No OFD packet to send [11:39:08]*** Cut start [11:39:08]*** Partial cut [11:39:08]*** CUTSNS_PIN = 1 [11:39:08]*** CUTSNS_PIN = 0 [11:39:08]*** Brake cut motor [11:39:08]Read from MH i2c: 01 [11:39:08]MH_I2C_Read... [11:39:08]*** Stop cut motor [11:39:08]*** Cut end [11:39:08]Read from MH i2c: 01 07 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: 01 07 00 24 0E 00 00 00 00 00 FF 0F 47 [11:39:08]process_action close_receipt done [11:39:08]requested_data is exist [11:39:08]produce_requested_data [11:39:08]requested_item fm.sn is exist - process it [11:39:08]wFMCommunicate request_size=4 [11:39:08]MH_SAM_APDU [11:39:08]CAPDU: 80 11 00 00 [11:39:08]Write to MH i2c: E2 08 00 25 0E 80 11 00 00 00 00 00 00 AD [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:08]Read from MH i2c: E2 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 17 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 17 00 25 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 00 [11:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:39:08]wFMCommunicate OK [11:39:08]requested_item fd.num is exist - process it [11:39:08]SAM_PROTO_GetFieldsCounters [11:39:08]wFMCommunicate request_size=4 [11:39:08]MH_SAM_APDU [11:39:08]CAPDU: 80 13 00 00 [11:39:08]Write to MH i2c: E2 08 00 26 0E 80 13 00 00 00 00 00 00 B0 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 62 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 62 00 26 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D3 DC 02 00 0E 04 04 00 89 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 35 [11:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D3 DC 02 00 0E 04 04 00 89 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 [11:39:09]wFMCommunicate OK [11:39:09]SAM_PROTO_GetFieldsCounters done [11:39:09]requested_item shift.num is exist - process it [11:39:09]requested_item shift.opened is exist - process it [11:39:09]req_shift_opened [11:39:09]FM_GetShiftState [11:39:09]SAM_PROTO_GetShiftState [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 13 01 00 [11:39:09]Write to MH i2c: E2 08 00 27 0E 80 13 01 00 00 00 00 00 B2 [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:09]Read from MH i2c: E2 0E 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 0E 00 27 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A0 [11:39:09]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:39:09]wFMCommunicate OK [11:39:09]SAM_PROTO_GetShiftState done [11:39:09]FM_GetShiftState done [11:39:09]req_shift_opened done [11:39:09]requested_item shift.open_date is exist - process it [11:39:09]req_shift_open_date [11:39:09]req_shift_open_date done [11:39:09]produce_requested_data done [11:39:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187603,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:39:09]process_action_free close_receipt [11:39:09]json_value_free [11:39:09]json_value_free done [11:39:09]process_json_proto returns [11:39:09]Send response to host [11:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187603,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:39:09]free response buf [11:39:09]execute_script done [11:39:09]execute_script returns [11:39:09]free content buf [11:39:09]Sock 8.Close socket [11:39:09]Sock 8.Thread stoped [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39: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:47]accept exits with 9 [11:40:47]New connection [11:40:47]New thread 3067080036 created [11:40:47]Thread 3066936676 joined [11:40:47]Waiting for new connection... [11:40:47] Sock 9.Parse request [11:40:47]Sock 9.Check first char [11:40:47]Sock 9.First char is OK [11:40:47]request: POST /json_proto HTTP/1.0 [11:40:47]Method: POST [11:40:47]URL: /json_proto [11:40:47]Method is POST - this is cgi request [11:40:47]url: /json_proto [11:40:47]query_string will be loaded in cgi processing [11:40:47]execute_cgi json_proto POST (null) [11:40:47]execute_cgi path=json_proto method=POST [11:40:47]POST find Content-Length [11:40:47]Host: 172.17.46.131:8080 [11:40:47]Content-Length: 682 [11:40:47]Content-Type: application/json [11:40:47] [11:40:47]POST finish read [11:40:47]Found Content-Length = 682 [11:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:47]execute_script... [11:40: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)412762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:47]POST & json_proto [11:40:47]process_json_proto [11:40:47]json parsed OK: [11:40:47]protocol is kg_v1.0 [11:40:47]action value=close_receipt [11:40:47]process_action close_receipt [11:40:47]cmd_close_receipt [11:40:47]MH_GetDate [11:40:47]Write to MH i2c: F0 00 00 28 0E 25 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: F0 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: F0 09 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: F0 09 00 28 0E 00 3F 66 B8 67 7E 41 4F 65 65 [11:40:47]GetLastDocTimeStamp 1740137945 [11:40:47]current date 1740138047 [11:40:47]FM_GetShiftState [11:40:47]SAM_PROTO_GetShiftState [11:40:47]wFMCommunicate request_size=4 [11:40:47]MH_SAM_APDU [11:40:47]CAPDU: 80 13 01 00 [11:40:47]Write to MH i2c: E2 08 00 29 0E 80 13 01 00 00 00 00 00 B4 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:47]Read from MH i2c: E2 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 0E 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 0E 00 29 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A2 [11:40:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:40:47]wFMCommunicate OK [11:40:47]SAM_PROTO_GetShiftState done [11:40:47]FM_GetShiftState done [11:40:47]opened in 1740098043 [11:40:47]opened+sec_in_day 1740184443 [11:40:47]quantity*price = 100012 [11:40:47]sum+1 = 100014 [11:40:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 98 21.02.2025 11:40 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187604 ФПД: 93408261508072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T114047&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187604&fm=93408261508072&tin=02508201610067®Number=0000000000091857&sum=100000 [11:40:48]StoreToDocumentArchive [11:40:48]shift 649 fd 187604 [11:40:48]save to /storage/0649/doc_00187604 [11:40:48]save last doc name /storage/0649/doc_00187604 to /storage/kkm_last_doc_name [11:40:48]save OK [11:40:48]Clear old archive folders... [11:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:48]tlvbuf is B6F778A0 [11:40:48]SAM_PROTO_ClearQueue [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 09 00 00 [11:40:48]Write to MH i2c: E2 08 00 36 0E 80 09 00 00 00 00 00 00 B6 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]SAM_PROTO_ClearQueue done [11:40:48]KKMCreateOFDPacket [11:40:48]OFDProtocolAddRootSTLVToBuf [11:40:48]FM_MakeSignedData [11:40:48]FM_MakeSignedData [11:40:48]SAM_PROTO_SignData [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 01 02 [11:40:48]Write to MH i2c: E2 08 00 37 0E 80 0D 01 02 00 00 00 00 BE [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=255 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3F 66 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DC 02 00 35 04 06 00 54 [11:40:48]Write to MH i2c: E2 02 01 38 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3F 66 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DC 02 00 35 04 06 00 54 00 00 E6 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 38 0E 00 90 00 BA [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=10 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 02 02 05 F4 4E 3F 0B E8 [11:40:48]Write to MH i2c: E2 0D 00 39 0E 80 0D 02 02 05 00 F4 4E 3F 0B E8 00 00 3F [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 39 0E 00 90 00 BB [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 03 02 [11:40:48]Write to MH i2c: E2 08 00 3A 0E 80 0D 03 02 00 00 00 00 C3 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 0B 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 0B 00 3A 0E 00 03 18 16 DE 41 0F 46 13 90 00 7C [11:40:48]RAPDU: 03 18 16 DE 41 0F 46 13 90 00 [11:40:48]wFMCommunicate OK [11:40:48]SAM_PROTO_SignData done [11:40:48]FM_MakeSignedData done [11:40:48]CreateOFDProtocolMessage [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 11 00 00 [11:40:48]Write to MH i2c: E2 08 00 3B 0E 80 11 00 00 00 00 00 00 C3 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 17 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 17 00 3B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 16 [11:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:40:48]wFMCommunicate OK [11:40:48]CreateOFDProtocolMessage done [11:40:48]OFDSenderStorePacket 187604 [11:40:48]StoreOFDPacket docnum=187604 [11:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1F BE 07 01 28 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3F 66 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DC 02 00 35 04 06 00 54 F4 4E 3F 0B E8 03 18 16 DE 41 0F 46 13 [11:40:48]CheckFolder [11:40:48]dirname=/storage/ofd_packets [11:40:48]CheckFolder done [11:40:48]ProducePacketName [11:40:48]name=ofd_packets/00187604 [11:40:48]NVStorageSaveData ofd_packets/00187604 [11:40:48]File name is /storage/ofd_packets/00187604 [11:40:48]Write 301 bytes [11:40:48]NVStorageSaveData done [11:40:48]OFDSenderStorePacket done [11:40:48]KKMCreateOFDPacket done [11:40:48]NVStorageSaveData kkm_last_timestamp [11:40:48]File name is /storage/kkm_last_timestamp [11:40:48]Write 4 bytes [11:40:48]NVStorageSaveData done [11:40:48]ExternCall_PrintAddStr [11:40:48]wPrintStart [11:40:48]Write to MH i2c: 01 00 00 3C 0E 4A [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 07 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 07 00 3C 0E 00 00 00 00 00 FF 0F 5F [11:40:48]RasterBufferAndPrint [11:40:48]line Счет N : (1)412762 [11:40:48]line ИНН: 02508201610067 [11:40:48]line Контрольно-Кассовый Чек [11:40:48]line ПРОДАЖА [11:40:48]line ТРК (МРК, ГНК) : 23 [11:40:48]line Товар: 2710124500 [11:40:48]line Аи-95-К-5 [11:40:48]line 13.910 * 71.90 [11:40:48]line = 1000.13 [11:40:48]line НДС 12% НСП 1% [11:40:48]line > о реализуемом товаре [11:40:48]line ОКРУГЛЕНИЕ: -0.13 [11:40:48]line ИТОГО: 1000.00 [11:40:48]line Внесено: 1000.00 [11:40:48]line СДАЧА: 0.00 [11:40:48]line НСП 1% : 8.85 [11:40:48]line НДС 12% : 106.21 [11:40:48]line Наличными: 1000.00 [11:40:48]line Безнал.: 0.00 [11:40:48]line Место: АЗС № 92 "Партнер Нефть" [11:40:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:40:48]line СНО: Общий режим [11:40:48]line Чек 98 21.02.2025 11:40 [11:40:48]line Смена: 649 ФФД: 1.0 [11:40:48]line ЗНМ: 0300000118 [11:40:48]line РНМ: 0000000000091857 [11:40:48]line Версия ККМ: 001 [11:40:48]line ФМ: 0000000000871826 [11:40:48]line ФД: 187604 [11:40:48]line ФПД: 93408261508072 [11:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T114047&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187604&fm=93408261508072&tin=02508201610067®Number=0000000000091857&sum=100000 [11:40:49]OFD Sender: Processing packet 187604 [packets to send 49, broken 48] [11:40:49]ProducePacketName [11:40:49]name=ofd_packets/00187604 [11:40:49]OFD Sender: To server: pG, [11:40:49]CommunicateWithHost lk.salyk.kg:30040 [11:40:49]ConnectInit lk.salyk.kg [11:40:49]written 0, free lines is 4095 [11:40:49]Connected sock=10 [11:40:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1F BE 07 01 28 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3F 66 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DC 02 00 35 04 06 00 54 F4 4E 3F 0B E8 03 18 16 DE 41 0F 46 13 [11:40:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 43 B2 47 00 CD C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 DC 02 00 F4 03 04 00 8D 0C B8 67 B6 04 01 00 00 76 77 5E D2 BB AB 7B 1E [11:40:49]CommunicateWithHost err = 0 [11:40:49]CheckOFDResponse [11:40:49]1017 (14) - 77093643461234 [11:40:49]1041 (16) - 0000000000871826 [11:40:49]1040 (4) - 187604 [11:40:49]1012 (4) - 21.02.2025 05:18 [11:40:49]1206 (1) - 0 [11:40:49]OFD Sender: Remove packet 187604 [11:40:49]ProducePacketName [11:40:49]name=ofd_packets/00187604 [11:40:49]NVStorageDeleteData [11:40:49]Write to MH i2c: 01 00 00 67 0E 75 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 07 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 07 00 67 0E 00 00 00 00 00 EC 0C 74 [11:40:49]RasterBufferAndPrint [11:40:49]line [11:40:49]line [11:40:49]line [11:40:49]line [11:40:49]line [11:40:49]written 0, free lines is 3314 [11:40:49]MH_Cut [11:40:49]Write to MH i2c: D1 01 00 6E 0E 01 4E [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: D1 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: D1 01 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: D1 01 00 6E 0E 00 4D [11:40:49]Write to MH i2c: 01 00 00 6F 0E 7D [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:50]OFD Sender: No OFD packet to send [11:40:50]*** Cut start [11:40:50]*** Partial cut [11:40:50]*** CUTSNS_PIN = 1 [11:40:50]*** CUTSNS_PIN = 0 [11:40:50]*** Brake cut motor [11:40:50]Read from MH i2c: 01 [11:40:50]MH_I2C_Read... [11:40:50]*** Stop cut motor [11:40:50]*** Cut end [11:40:50]Read from MH i2c: 01 07 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: 01 07 00 6F 0E 00 00 00 00 00 FF 0F 92 [11:40:50]process_action close_receipt done [11:40:50]requested_data is exist [11:40:50]produce_requested_data [11:40:50]requested_item fm.sn is exist - process it [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 11 00 00 [11:40:50]Write to MH i2c: E2 08 00 70 0E 80 11 00 00 00 00 00 00 F8 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 17 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 17 00 70 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4B [11:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:40:50]wFMCommunicate OK [11:40:50]requested_item fd.num is exist - process it [11:40:50]SAM_PROTO_GetFieldsCounters [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 13 00 00 [11:40:50]Write to MH i2c: E2 08 00 71 0E 80 13 00 00 00 00 00 00 FB [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:51]Read from MH i2c: E2 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 62 00 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 62 00 71 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D4 DC 02 00 0E 04 04 00 89 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 84 [11:40:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D4 DC 02 00 0E 04 04 00 89 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 [11:40:51]wFMCommunicate OK [11:40:51]SAM_PROTO_GetFieldsCounters done [11:40:51]requested_item shift.num is exist - process it [11:40:51]requested_item shift.opened is exist - process it [11:40:51]req_shift_opened [11:40:51]FM_GetShiftState [11:40:51]SAM_PROTO_GetShiftState [11:40:51]wFMCommunicate request_size=4 [11:40:51]MH_SAM_APDU [11:40:51]CAPDU: 80 13 01 00 [11:40:51]Write to MH i2c: E2 08 00 72 0E 80 13 01 00 00 00 00 00 FD [11:40:51]Write i2c OK [11:40:51]MH_I2C_Read... [11:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:51]Read from MH i2c: E2 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 0E 00 [11:40:51]MH_I2C_Read... [11:40:51]Read from MH i2c: E2 0E 00 72 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 EB [11:40:51]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:40:51]wFMCommunicate OK [11:40:51]SAM_PROTO_GetShiftState done [11:40:51]FM_GetShiftState done [11:40:51]req_shift_opened done [11:40:51]requested_item shift.open_date is exist - process it [11:40:51]req_shift_open_date [11:40:51]req_shift_open_date done [11:40:51]produce_requested_data done [11:40:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187604,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:40:51]process_action_free close_receipt [11:40:51]json_value_free [11:40:51]json_value_free done [11:40:51]process_json_proto returns [11:40:51]Send response to host [11:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187604,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:40:51]free response buf [11:40:51]execute_script done [11:40:51]execute_script returns [11:40:51]free content buf [11:40:51]Sock 9.Close socket [11:40:51]Sock 9.Thread stoped [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:38]accept exits with 8 [11:49:38]New connection [11:49:38]New thread 3066936676 created [11:49:38]Thread 3067080036 joined [11:49:38]Waiting for new connection... [11:49:38] Sock 8.Parse request [11:49:38]Sock 8.Check first char [11:49:38]Sock 8.First char is OK [11:49:38]request: POST /json_proto HTTP/1.0 [11:49:38]Method: POST [11:49:38]URL: /json_proto [11:49:38]Method is POST - this is cgi request [11:49:38]url: /json_proto [11:49:38]query_string will be loaded in cgi processing [11:49:38]execute_cgi json_proto POST (null) [11:49:38]execute_cgi path=json_proto method=POST [11:49:38]POST find Content-Length [11:49:38]Host: 172.17.46.131:8080 [11:49:38]Content-Length: 682 [11:49:38]Content-Type: application/json [11:49:38] [11:49:38]POST finish read [11:49:38]Found Content-Length = 682 [11:49:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:38]execute_script... [11:49: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)412763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:38]POST & json_proto [11:49:38]process_json_proto [11:49:38]json parsed OK: [11:49:38]protocol is kg_v1.0 [11:49:38]action value=close_receipt [11:49:38]process_action close_receipt [11:49:38]cmd_close_receipt [11:49:38]MH_GetDate [11:49:38]Write to MH i2c: F0 00 00 73 0E 70 [11:49:38]Write i2c OK [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: F0 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: F0 09 00 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: F0 09 00 73 0E 00 53 68 B8 67 7E 41 4F 65 C6 [11:49:38]GetLastDocTimeStamp 1740138047 [11:49:38]current date 1740138579 [11:49:38]FM_GetShiftState [11:49:38]SAM_PROTO_GetShiftState [11:49:38]wFMCommunicate request_size=4 [11:49:38]MH_SAM_APDU [11:49:38]CAPDU: 80 13 01 00 [11:49:38]Write to MH i2c: E2 08 00 74 0E 80 13 01 00 00 00 00 00 FF [11:49:38]Write i2c OK [11:49:38]MH_I2C_Read... [11:49:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:38]Read from MH i2c: E2 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: E2 0E 00 [11:49:38]MH_I2C_Read... [11:49:38]Read from MH i2c: E2 0E 00 74 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 ED [11:49:38]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:49:38]wFMCommunicate OK [11:49:38]SAM_PROTO_GetShiftState done [11:49:38]FM_GetShiftState done [11:49:38]opened in 1740098043 [11:49:38]opened+sec_in_day 1740184443 [11:49:38]quantity*price = 150055 [11:49:38]sum+1 = 150056 [11:49:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 99 21.02.2025 11:49 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187605 ФПД: 236032957065799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T114939&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187605&fm=236032957065799&tin=02508201610067®Number=0000000000091857&sum=150000 [11:49:39]StoreToDocumentArchive [11:49:39]shift 649 fd 187605 [11:49:39]save to /storage/0649/doc_00187605 [11:49:39]save last doc name /storage/0649/doc_00187605 to /storage/kkm_last_doc_name [11:49:39]save OK [11:49:39]Clear old archive folders... [11:49:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:39]tlvbuf is 01E94EB0 [11:49:39]SAM_PROTO_ClearQueue [11:49:39]wFMCommunicate request_size=4 [11:49:39]MH_SAM_APDU [11:49:39]CAPDU: 80 09 00 00 [11:49:39]Write to MH i2c: E2 08 00 81 0E 80 09 00 00 00 00 00 00 01 [11:49:39]Write i2c OK [11:49:39]MH_I2C_Read... [11:49:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:39]Read from MH i2c: E2 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 03 00 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [11:49:39]RAPDU: 90 00 [11:49:39]wFMCommunicate OK [11:49:39]SAM_PROTO_ClearQueue done [11:49:39]KKMCreateOFDPacket [11:49:39]OFDProtocolAddRootSTLVToBuf [11:49:39]FM_MakeSignedData [11:49:39]FM_MakeSignedData [11:49:39]SAM_PROTO_SignData [11:49:39]wFMCommunicate request_size=4 [11:49:39]MH_SAM_APDU [11:49:39]CAPDU: 80 0D 01 02 [11:49:39]Write to MH i2c: E2 08 00 82 0E 80 0D 01 02 00 00 00 00 09 [11:49:39]Write i2c OK [11:49:39]MH_I2C_Read... [11:49:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:39]Read from MH i2c: E2 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 03 00 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 03 00 82 0E 00 90 00 04 [11:49:39]RAPDU: 90 00 [11:49:39]wFMCommunicate OK [11:49:39]wFMCommunicate request_size=255 [11:49:39]MH_SAM_APDU [11:49: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 53 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DC 02 00 35 04 06 00 D6 [11:49:39]Write to MH i2c: E2 02 01 83 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 53 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DC 02 00 35 04 06 00 D6 00 00 11 [11:49:39]Write i2c OK [11:49:39]MH_I2C_Read... [11:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:40]Read from MH i2c: E2 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: E2 03 00 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: E2 03 00 83 0E 00 90 00 05 [11:49:40]RAPDU: 90 00 [11:49:40]wFMCommunicate OK [11:49:40]wFMCommunicate request_size=10 [11:49:40]MH_SAM_APDU [11:49:40]CAPDU: 80 0D 02 02 05 AB B4 8F AA 47 [11:49:40]Write to MH i2c: E2 0D 00 84 0E 80 0D 02 02 05 00 AB B4 8F AA 47 00 00 F5 [11:49:40]Write i2c OK [11:49:40]MH_I2C_Read... [11:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:40]Read from MH i2c: E2 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: E2 03 00 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: E2 03 00 84 0E 00 90 00 06 [11:49:40]RAPDU: 90 00 [11:49:40]wFMCommunicate OK [11:49:40]wFMCommunicate request_size=4 [11:49:40]MH_SAM_APDU [11:49:40]CAPDU: 80 0D 03 02 [11:49:40]Write to MH i2c: E2 08 00 85 0E 80 0D 03 02 00 00 00 00 0E [11:49:40]Write i2c OK [11:49:40]MH_I2C_Read... [11:49:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:40]Read from MH i2c: E2 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: E2 0B 00 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: E2 0B 00 85 0E 00 2C A3 FC 4F BF 63 4A CE 90 00 63 [11:49:40]RAPDU: 2C A3 FC 4F BF 63 4A CE 90 00 [11:49:40]wFMCommunicate OK [11:49:40]SAM_PROTO_SignData done [11:49:40]FM_MakeSignedData done [11:49:40]CreateOFDProtocolMessage [11:49:40]wFMCommunicate request_size=4 [11:49:40]MH_SAM_APDU [11:49:40]CAPDU: 80 11 00 00 [11:49:40]Write to MH i2c: E2 08 00 86 0E 80 11 00 00 00 00 00 00 0E [11:49:40]Write i2c OK [11:49:40]MH_I2C_Read... [11:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:40]Read from MH i2c: E2 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: E2 17 00 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: E2 17 00 86 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [11:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:49:40]wFMCommunicate OK [11:49:40]CreateOFDProtocolMessage done [11:49:40]OFDSenderStorePacket 187605 [11:49:40]StoreOFDPacket docnum=187605 [11:49:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0F D9 07 01 E9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 53 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DC 02 00 35 04 06 00 D6 AB B4 8F AA 47 2C A3 FC 4F BF 63 4A CE [11:49:40]CheckFolder [11:49:40]dirname=/storage/ofd_packets [11:49:40]CheckFolder done [11:49:40]ProducePacketName [11:49:40]name=ofd_packets/00187605 [11:49:40]NVStorageSaveData ofd_packets/00187605 [11:49:40]File name is /storage/ofd_packets/00187605 [11:49:40]Write 301 bytes [11:49:40]NVStorageSaveData done [11:49:40]OFDSenderStorePacket done [11:49:40]KKMCreateOFDPacket done [11:49:40]NVStorageSaveData kkm_last_timestamp [11:49:40]File name is /storage/kkm_last_timestamp [11:49:40]Write 4 bytes [11:49:40]NVStorageSaveData done [11:49:40]ExternCall_PrintAddStr [11:49:40]wPrintStart [11:49:40]Write to MH i2c: 01 00 00 87 0E 95 [11:49:40]Write i2c OK [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: 01 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: 01 07 00 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: 01 07 00 87 0E 00 00 00 00 00 FF 0F AA [11:49:40]RasterBufferAndPrint [11:49:40]line Счет N : (1)412763 [11:49:40]line ИНН: 02508201610067 [11:49:40]line Контрольно-Кассовый Чек [11:49:40]line ПРОДАЖА [11:49:40]line ТРК (МРК, ГНК) : 13 [11:49:40]line Товар: 2710124500 [11:49:40]line Аи-95-К-5 [11:49:40]line 20.870 * 71.90 [11:49:40]line = 1500.55 [11:49:40]line НДС 12% НСП 1% [11:49:40]line > о реализуемом товаре [11:49:40]line ОКРУГЛЕНИЕ: -0.55 [11:49:40]line ИТОГО: 1500.00 [11:49:40]line Внесено: 1500.00 [11:49:40]line СДАЧА: 0.00 [11:49:40]line НСП 1% : 13.28 [11:49:40]line НДС 12% : 159.35 [11:49:40]line Наличными: 1500.00 [11:49:40]line Безнал.: 0.00 [11:49:40]line Место: АЗС № 92 "Партнер Нефть" [11:49:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:49:40]line СНО: Общий режим [11:49:40]line Чек 99 21.02.2025 11:49 [11:49:40]line Смена: 649 ФФД: 1.0 [11:49:40]line ЗНМ: 0300000118 [11:49:40]line РНМ: 0000000000091857 [11:49:40]line Версия ККМ: 001 [11:49:40]line ФМ: 0000000000871826 [11:49:40]line ФД: 187605 [11:49:40]line ФПД: 236032957065799 [11:49:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T114939&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187605&fm=236032957065799&tin=02508201610067®Number=0000000000091857&sum=150000 [11:49:40]OFD Sender: Processing packet 187605 [packets to send 49, broken 48] [11:49:40]ProducePacketName [11:49:40]name=ofd_packets/00187605 [11:49:40]OFD Sender: To server: pG, [11:49:40]CommunicateWithHost lk.salyk.kg:30040 [11:49:40]ConnectInit lk.salyk.kg [11:49:40]written 0, free lines is 4095 [11:49:40]Connected sock=10 [11:49:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0F D9 07 01 E9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 53 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DC 02 00 35 04 06 00 D6 AB B4 8F AA 47 2C A3 FC 4F BF 63 4A CE [11:49:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CC 08 47 00 6E A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 DC 02 00 F4 03 04 00 A1 0E B8 67 B6 04 01 00 00 62 E9 E4 A5 A5 10 E7 67 [11:49:40]CommunicateWithHost err = 0 [11:49:40]CheckOFDResponse [11:49:40]1017 (14) - 77093643461234 [11:49:40]1041 (16) - 0000000000871826 [11:49:40]1040 (4) - 187605 [11:49:40]1012 (4) - 21.02.2025 05:26 [11:49:40]1206 (1) - 0 [11:49:40]OFD Sender: Remove packet 187605 [11:49:40]ProducePacketName [11:49:40]name=ofd_packets/00187605 [11:49:40]NVStorageDeleteData [11:49:40]Write to MH i2c: 01 00 00 B2 0E C0 [11:49:40]Write i2c OK [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: 01 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: 01 07 00 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: 01 07 00 B2 0E 00 00 00 00 00 F2 0C C5 [11:49:40]RasterBufferAndPrint [11:49:40]line [11:49:40]line [11:49:40]line [11:49:40]line [11:49:40]line [11:49:40]written 0, free lines is 3320 [11:49:40]MH_Cut [11:49:40]Write to MH i2c: D1 01 00 B9 0E 01 99 [11:49:40]Write i2c OK [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: D1 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: D1 01 00 [11:49:40]MH_I2C_Read... [11:49:40]Read from MH i2c: D1 01 00 B9 0E 00 98 [11:49:40]Write to MH i2c: 01 00 00 BA 0E C8 [11:49:41]Write i2c OK [11:49:41]MH_I2C_Read... [11:49:41]OFD Sender: No OFD packet to send [11:49:41]*** Cut start [11:49:41]*** Partial cut [11:49:41]*** CUTSNS_PIN = 1 [11:49:41]*** CUTSNS_PIN = 0 [11:49:42]*** Brake cut motor [11:49:42]Read from MH i2c: 01 [11:49:42]MH_I2C_Read... [11:49:42]*** Stop cut motor [11:49:42]*** Cut end [11:49:42]Read from MH i2c: 01 07 00 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: 01 07 00 BA 0E 00 00 00 00 00 FF 0F DD [11:49:42]process_action close_receipt done [11:49:42]requested_data is exist [11:49:42]produce_requested_data [11:49:42]requested_item fm.sn is exist - process it [11:49:42]wFMCommunicate request_size=4 [11:49:42]MH_SAM_APDU [11:49:42]CAPDU: 80 11 00 00 [11:49:42]Write to MH i2c: E2 08 00 BB 0E 80 11 00 00 00 00 00 00 43 [11:49:42]Write i2c OK [11:49:42]MH_I2C_Read... [11:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:42]Read from MH i2c: E2 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 17 00 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 17 00 BB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [11:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:49:42]wFMCommunicate OK [11:49:42]requested_item fd.num is exist - process it [11:49:42]SAM_PROTO_GetFieldsCounters [11:49:42]wFMCommunicate request_size=4 [11:49:42]MH_SAM_APDU [11:49:42]CAPDU: 80 13 00 00 [11:49:42]Write to MH i2c: E2 08 00 BC 0E 80 13 00 00 00 00 00 00 46 [11:49:42]Write i2c OK [11:49:42]MH_I2C_Read... [11:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:42]Read from MH i2c: E2 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 62 00 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 62 00 BC 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D5 DC 02 00 0E 04 04 00 89 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 D3 [11:49:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D5 DC 02 00 0E 04 04 00 89 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 [11:49:42]wFMCommunicate OK [11:49:42]SAM_PROTO_GetFieldsCounters done [11:49:42]requested_item shift.num is exist - process it [11:49:42]requested_item shift.opened is exist - process it [11:49:42]req_shift_opened [11:49:42]FM_GetShiftState [11:49:42]SAM_PROTO_GetShiftState [11:49:42]wFMCommunicate request_size=4 [11:49:42]MH_SAM_APDU [11:49:42]CAPDU: 80 13 01 00 [11:49:42]Write to MH i2c: E2 08 00 BD 0E 80 13 01 00 00 00 00 00 48 [11:49:42]Write i2c OK [11:49:42]MH_I2C_Read... [11:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:42]Read from MH i2c: E2 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 0E 00 [11:49:42]MH_I2C_Read... [11:49:42]Read from MH i2c: E2 0E 00 BD 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 36 [11:49:42]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:49:42]wFMCommunicate OK [11:49:42]SAM_PROTO_GetShiftState done [11:49:42]FM_GetShiftState done [11:49:42]req_shift_opened done [11:49:42]requested_item shift.open_date is exist - process it [11:49:42]req_shift_open_date [11:49:42]req_shift_open_date done [11:49:42]produce_requested_data done [11:49:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187605,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:49:42]process_action_free close_receipt [11:49:42]json_value_free [11:49:42]json_value_free done [11:49:42]process_json_proto returns [11:49:42]Send response to host [11:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187605,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:49:42]free response buf [11:49:42]execute_script done [11:49:42]execute_script returns [11:49:42]free content buf [11:49:42]Sock 8.Close socket [11:49:42]Sock 8.Thread stoped [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:43]accept exits with 9 [11:50:43]New connection [11:50:43]New thread 3067080036 created [11:50:43]Thread 3066936676 joined [11:50:43]Waiting for new connection... [11:50:43] Sock 9.Parse request [11:50:43]Sock 9.Check first char [11:50:43]Sock 9.First char is OK [11:50:43]request: POST /json_proto HTTP/1.0 [11:50:43]Method: POST [11:50:43]URL: /json_proto [11:50:43]Method is POST - this is cgi request [11:50:43]url: /json_proto [11:50:43]query_string will be loaded in cgi processing [11:50:43]execute_cgi json_proto POST (null) [11:50:43]execute_cgi path=json_proto method=POST [11:50:43]POST find Content-Length [11:50:43]Host: 172.17.46.131:8080 [11:50:43]Content-Length: 799 [11:50:43]Content-Type: application/json [11:50:43] [11:50:43]POST finish read [11:50:43]Found Content-Length = 799 [11:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:43]execute_script... [11: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)412765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:43]POST & json_proto [11:50:43]process_json_proto [11:50:43]json parsed OK: [11:50:43]protocol is kg_v1.0 [11:50:43]action value=close_receipt [11:50:43]process_action close_receipt [11:50:43]cmd_close_receipt [11:50:43]MH_GetDate [11:50:43]Write to MH i2c: F0 00 00 BE 0E BB [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: F0 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: F0 09 00 [11:50:43]MH_I2C_Read... [11:50:43]Read from MH i2c: F0 09 00 BE 0E 00 94 68 B8 67 7E 41 4F 65 52 [11:50:43]GetLastDocTimeStamp 1740138579 [11:50:43]current date 1740138644 [11:50:43]FM_GetShiftState [11:50:43]SAM_PROTO_GetShiftState [11:50:43]wFMCommunicate request_size=4 [11:50:43]MH_SAM_APDU [11:50:43]CAPDU: 80 13 01 00 [11:50:43]Write to MH i2c: E2 08 00 BF 0E 80 13 01 00 00 00 00 00 4A [11:50:43]Write i2c OK [11:50:43]MH_I2C_Read... [11:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:44]Read from MH i2c: E2 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 0E 00 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 0E 00 BF 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 38 [11:50:44]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:50:44]wFMCommunicate OK [11:50:44]SAM_PROTO_GetShiftState done [11:50:44]FM_GetShiftState done [11:50:44]opened in 1740098043 [11:50:44]opened+sec_in_day 1740184443 [11:50:44]quantity*price = 100042 [11:50:44]sum+1 = 100044 [11:50:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 100 21.02.2025 11:50 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187606 ФПД: 1463096108410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T115044&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187606&fm=1463096108410&tin=02508201610067®Number=0000000000091857&sum=100043 [11:50:45]StoreToDocumentArchive [11:50:45]shift 649 fd 187606 [11:50:45]save to /storage/0649/doc_00187606 [11:50:45]save last doc name /storage/0649/doc_00187606 to /storage/kkm_last_doc_name [11:50:45]save OK [11:50:45]Clear old archive folders... [11:50:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:50:45]tlvbuf is 01E12DA0 [11:50:45]SAM_PROTO_ClearQueue [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 09 00 00 [11:50:45]Write to MH i2c: E2 08 00 CC 0E 80 09 00 00 00 00 00 00 4C [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 CC 0E 00 90 00 4E [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]SAM_PROTO_ClearQueue done [11:50:45]KKMCreateOFDPacket [11:50:45]OFDProtocolAddRootSTLVToBuf [11:50:45]FM_MakeSignedData [11:50:45]FM_MakeSignedData [11:50:45]SAM_PROTO_SignData [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 0D 01 02 [11:50:45]Write to MH i2c: E2 08 00 CD 0E 80 0D 01 02 00 00 00 00 54 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 CD 0E 00 90 00 4F [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]wFMCommunicate request_size=255 [11:50:45]MH_SAM_APDU [11: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 94 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DC 02 00 35 04 06 00 01 54 A7 52 [11:50:45]Write to MH i2c: E2 02 01 CE 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 94 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DC 02 00 35 04 06 00 01 54 A7 52 00 00 5A [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 CE 0E 00 90 00 50 [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]wFMCommunicate request_size=7 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 0D 02 02 02 E5 7A [11:50:45]Write to MH i2c: E2 0A 00 CF 0E 80 0D 02 02 02 00 E5 7A 00 00 BA [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 CF 0E 00 90 00 51 [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 0D 03 02 [11:50:45]Write to MH i2c: E2 08 00 D0 0E 80 0D 03 02 00 00 00 00 59 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 0B 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 0B 00 D0 0E 00 F1 01 7D FE 38 EB 40 67 90 00 91 [11:50:45]RAPDU: F1 01 7D FE 38 EB 40 67 90 00 [11:50:45]wFMCommunicate OK [11:50:45]SAM_PROTO_SignData done [11:50:45]FM_MakeSignedData done [11:50:45]CreateOFDProtocolMessage [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 11 00 00 [11:50:45]Write to MH i2c: E2 08 00 D1 0E 80 11 00 00 00 00 00 00 59 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 17 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 17 00 D1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AC [11:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:50:45]wFMCommunicate OK [11:50:45]CreateOFDProtocolMessage done [11:50:45]OFDSenderStorePacket 187606 [11:50:45]StoreOFDPacket docnum=187606 [11:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C1 18 04 01 64 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 94 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DC 02 00 35 04 06 00 01 54 A7 52 E5 7A F1 01 7D FE 38 EB 40 67 [11:50:45]CheckFolder [11:50:45]dirname=/storage/ofd_packets [11:50:45]CheckFolder done [11:50:45]ProducePacketName [11:50:45]name=ofd_packets/00187606 [11:50:45]NVStorageSaveData ofd_packets/00187606 [11:50:45]File name is /storage/ofd_packets/00187606 [11:50:45]Write 298 bytes [11:50:45]NVStorageSaveData done [11:50:45]OFDSenderStorePacket done [11:50:45]KKMCreateOFDPacket done [11:50:45]NVStorageSaveData kkm_last_timestamp [11:50:45]File name is /storage/kkm_last_timestamp [11:50:45]Write 4 bytes [11:50:45]NVStorageSaveData done [11:50:45]ExternCall_PrintAddStr [11:50:45]wPrintStart [11:50:45]Write to MH i2c: 01 00 00 D2 0E E0 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 07 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 07 00 D2 0E 00 00 00 00 00 FF 0F F5 [11:50:45]RasterBufferAndPrint [11:50:45]line Счет N : (1)412765 [11:50:45]line ИНН: 02508201610067 [11:50:45]line Контрольно-Кассовый Чек [11:50:45]line ПРОДАЖА [11:50:45]line ТРК (МРК, ГНК) : 5 [11:50:45]line Товар: 2710194210 [11:50:45]line ДТ-К-5 [11:50:45]line 13.780 * 72.60 [11:50:45]line = 1000.43 [11:50:45]line НДС 12% НСП 1% [11:50:45]line > о реализуемом товаре [11:50:45]line ИТОГО: 1000.43 [11:50:45]line НСП 1% : 8.85 [11:50:45]line НДС 12% : 106.24 [11:50:45]line Наличными: 0.00 [11:50:45]line Безнал.: 1000.43 [11:50:45]line Место: АЗС № 92 "Партнер Нефть" [11:50:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:50:45]line СНО: Общий режим [11:50:45]line Чек 100 21.02.2025 11:50 [11:50:45]line Смена: 649 ФФД: 1.0 [11:50:45]line ЗНМ: 0300000118 [11:50:45]line РНМ: 0000000000091857 [11:50:45]line Версия ККМ: 001 [11:50:45]line Платежная система: O! деньги [11:50:45]line ФМ: 0000000000871826 [11:50:45]line ФД: 187606 [11:50:45]line ФПД: 1463096108410 [11:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T115044&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187606&fm=1463096108410&tin=02508201610067®Number=0000000000091857&sum=100043 [11:50:46]OFD Sender: Processing packet 187606 [packets to send 49, broken 48] [11:50:46]ProducePacketName [11:50:46]name=ofd_packets/00187606 [11:50:46]OFD Sender: To server: pG, [11:50:46]CommunicateWithHost lk.salyk.kg:30040 [11:50:46]ConnectInit lk.salyk.kg [11:50:46]written 0, free lines is 4095 [11:50:46]Connected sock=10 [11: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 38 32 36 0C 01 00 00 C1 18 04 01 64 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 94 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DC 02 00 35 04 06 00 01 54 A7 52 E5 7A F1 01 7D FE 38 EB 40 67 [11:50:46]Write to MH i2c: 01 00 00 FC 0E 0A [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: 01 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: 01 07 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: 01 07 00 FC 0E 00 00 00 00 00 FF 0C 1C [11:50:46]RasterBufferAndPrint [11:50:46]line [11:50:46]line [11:50:46]line [11:50:46]line [11:50:46]line [11: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 38 32 36 4F 00 00 00 16 B8 47 00 12 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 DC 02 00 F4 03 04 00 E2 0E B8 67 B6 04 01 00 00 7C DB 78 46 15 9F 79 2D [11:50:46]CommunicateWithHost err = 0 [11:50:46]CheckOFDResponse [11:50:46]1017 (14) - 77093643461234 [11:50:46]1041 (16) - 0000000000871826 [11:50:46]1040 (4) - 187606 [11:50:46]1012 (4) - 21.02.2025 05:28 [11:50:46]1206 (1) - 0 [11:50:46]OFD Sender: Remove packet 187606 [11:50:46]ProducePacketName [11:50:46]name=ofd_packets/00187606 [11:50:46]NVStorageDeleteData [11:50:46]written 0, free lines is 3333 [11:50:46]MH_Cut [11:50:46]Write to MH i2c: D1 01 00 03 0F 01 E4 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: D1 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: D1 01 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: D1 01 00 03 0F 00 E3 [11:50:46]Write to MH i2c: 01 00 00 04 0F 13 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]OFD Sender: No OFD packet to send [11:50:47]*** Cut start [11:50:47]*** Partial cut [11:50:47]*** CUTSNS_PIN = 1 [11:50:47]*** CUTSNS_PIN = 0 [11:50:47]*** Brake cut motor [11:50:47]Read from MH i2c: 01 [11:50:47]MH_I2C_Read... [11:50:47]*** Stop cut motor [11:50:47]*** Cut end [11:50:47]Read from MH i2c: 01 07 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: 01 07 00 04 0F 00 00 00 00 00 FF 0F 28 [11:50:47]process_action close_receipt done [11:50:47]requested_data is exist [11:50:47]produce_requested_data [11:50:47]requested_item fm.sn is exist - process it [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 11 00 00 [11:50:47]Write to MH i2c: E2 08 00 05 0F 80 11 00 00 00 00 00 00 8E [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 17 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 17 00 05 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E1 [11:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:50:47]wFMCommunicate OK [11:50:47]requested_item fd.num is exist - process it [11:50:47]SAM_PROTO_GetFieldsCounters [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 13 00 00 [11:50:47]Write to MH i2c: E2 08 00 06 0F 80 13 00 00 00 00 00 00 91 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 62 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 62 00 06 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D6 DC 02 00 0E 04 04 00 89 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 22 [11: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D6 DC 02 00 0E 04 04 00 89 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 [11:50:48]wFMCommunicate OK [11:50:48]SAM_PROTO_GetFieldsCounters done [11:50:48]requested_item shift.num is exist - process it [11:50:48]requested_item shift.opened is exist - process it [11:50:48]req_shift_opened [11:50:48]FM_GetShiftState [11:50:48]SAM_PROTO_GetShiftState [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 13 01 00 [11:50:48]Write to MH i2c: E2 08 00 07 0F 80 13 01 00 00 00 00 00 93 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 0E 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 0E 00 07 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 81 [11:50:48]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:50:48]wFMCommunicate OK [11:50:48]SAM_PROTO_GetShiftState done [11:50:48]FM_GetShiftState done [11:50:48]req_shift_opened done [11:50:48]requested_item shift.open_date is exist - process it [11:50:48]req_shift_open_date [11:50:48]req_shift_open_date done [11:50:48]produce_requested_data done [11:50:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187606,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:50:48]process_action_free close_receipt [11:50:48]json_value_free [11:50:48]json_value_free done [11:50:48]process_json_proto returns [11:50:48]Send response to host [11:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187606,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:50:48]free response buf [11:50:48]execute_script done [11:50:48]execute_script returns [11:50:48]free content buf [11:50:48]Sock 9.Close socket [11:50:48]Sock 9.Thread stoped [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:50:58]accept exits with 8 [11:50:58]New connection [11:50:58]New thread 3066936676 created [11:50:58]Thread 3067080036 joined [11:50:58]Waiting for new connection... [11:50:58] Sock 8.Parse request [11:50:58]Sock 8.Check first char [11:50:58]Sock 8.First char is OK [11:50:58]request: POST /json_proto HTTP/1.0 [11:50:58]Method: POST [11:50:58]URL: /json_proto [11:50:58]Method is POST - this is cgi request [11:50:58]url: /json_proto [11:50:58]query_string will be loaded in cgi processing [11:50:58]execute_cgi json_proto POST (null) [11:50:58]execute_cgi path=json_proto method=POST [11:50:58]POST find Content-Length [11:50:58]Host: 172.17.46.131:8080 [11:50:58]Content-Length: 677 [11:50:58]Content-Type: application/json [11:50:58] [11:50:58]POST finish read [11:50:58]Found Content-Length = 677 [11:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:58]execute_script... [11:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:58]POST & json_proto [11:50:58]process_json_proto [11:50:58]json parsed OK: [11:50:58]protocol is kg_v1.0 [11:50:58]action value=close_receipt [11:50:58]process_action close_receipt [11:50:58]cmd_close_receipt [11:50:58]MH_GetDate [11:50:58]Write to MH i2c: F0 00 00 08 0F 06 [11:50:58]Write i2c OK [11:50:58]MH_I2C_Read... [11:50:58]Read from MH i2c: F0 [11:50:58]MH_I2C_Read... [11:50:58]Read from MH i2c: F0 09 00 [11:50:58]MH_I2C_Read... [11:50:58]Read from MH i2c: F0 09 00 08 0F 00 A3 68 B8 67 7E 41 4F 65 AC [11:50:58]GetLastDocTimeStamp 1740138644 [11:50:58]current date 1740138659 [11:50:58]FM_GetShiftState [11:50:58]SAM_PROTO_GetShiftState [11:50:58]wFMCommunicate request_size=4 [11:50:58]MH_SAM_APDU [11:50:58]CAPDU: 80 13 01 00 [11:50:58]Write to MH i2c: E2 08 00 09 0F 80 13 01 00 00 00 00 00 95 [11:50:58]Write i2c OK [11:50:58]MH_I2C_Read... [11:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:58]Read from MH i2c: E2 [11:50:58]MH_I2C_Read... [11:50:58]Read from MH i2c: E2 0E 00 [11:50:58]MH_I2C_Read... [11:50:58]Read from MH i2c: E2 0E 00 09 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 83 [11:50:58]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:50:58]wFMCommunicate OK [11:50:58]SAM_PROTO_GetShiftState done [11:50:58]FM_GetShiftState done [11:50:58]opened in 1740098043 [11:50:58]opened+sec_in_day 1740184443 [11:50:58]quantity*price = 60027 [11:50:58]sum+1 = 60028 [11:50:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 101 21.02.2025 11:50 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187607 ФПД: 95802087912256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T115059&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187607&fm=95802087912256&tin=02508201610067®Number=0000000000091857&sum=60000 [11:51:00]StoreToDocumentArchive [11:51:00]shift 649 fd 187607 [11:51:00]save to /storage/0649/doc_00187607 [11:51:00]save last doc name /storage/0649/doc_00187607 to /storage/kkm_last_doc_name [11:51:00]save OK [11:51:00]Clear old archive folders... [11:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:00]tlvbuf is 01E12F10 [11:51:00]SAM_PROTO_ClearQueue [11:51:00]wFMCommunicate request_size=4 [11:51:00]MH_SAM_APDU [11:51:00]CAPDU: 80 09 00 00 [11:51:00]Write to MH i2c: E2 08 00 16 0F 80 09 00 00 00 00 00 00 97 [11:51:00]Write i2c OK [11:51:00]MH_I2C_Read... [11:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:00]Read from MH i2c: E2 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 03 00 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 03 00 16 0F 00 90 00 99 [11:51:00]RAPDU: 90 00 [11:51:00]wFMCommunicate OK [11:51:00]SAM_PROTO_ClearQueue done [11:51:00]KKMCreateOFDPacket [11:51:00]OFDProtocolAddRootSTLVToBuf [11:51:00]FM_MakeSignedData [11:51:00]FM_MakeSignedData [11:51:00]SAM_PROTO_SignData [11:51:00]wFMCommunicate request_size=4 [11:51:00]MH_SAM_APDU [11:51:00]CAPDU: 80 0D 01 02 [11:51:00]Write to MH i2c: E2 08 00 17 0F 80 0D 01 02 00 00 00 00 9F [11:51:00]Write i2c OK [11:51:00]MH_I2C_Read... [11:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:00]Read from MH i2c: E2 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 03 00 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 03 00 17 0F 00 90 00 9A [11:51:00]RAPDU: 90 00 [11:51:00]wFMCommunicate OK [11:51:00]wFMCommunicate request_size=255 [11:51:00]MH_SAM_APDU [11:51:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A3 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DC 02 00 35 04 06 00 57 [11:51:00]Write to MH i2c: E2 02 01 18 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A3 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DC 02 00 35 04 06 00 57 00 00 B4 [11:51:00]Write i2c OK [11:51:00]MH_I2C_Read... [11:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:00]Read from MH i2c: E2 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 03 00 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 03 00 18 0F 00 90 00 9B [11:51:00]RAPDU: 90 00 [11:51:00]wFMCommunicate OK [11:51:00]wFMCommunicate request_size=10 [11:51:00]MH_SAM_APDU [11:51:00]CAPDU: 80 0D 02 02 05 21 A9 6B 33 40 [11:51:00]Write to MH i2c: E2 0D 00 19 0F 80 0D 02 02 05 00 21 A9 6B 33 40 00 00 54 [11:51:00]Write i2c OK [11:51:00]MH_I2C_Read... [11:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:00]Read from MH i2c: E2 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 03 00 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 03 00 19 0F 00 90 00 9C [11:51:00]RAPDU: 90 00 [11:51:00]wFMCommunicate OK [11:51:00]wFMCommunicate request_size=4 [11:51:00]MH_SAM_APDU [11:51:00]CAPDU: 80 0D 03 02 [11:51:00]Write to MH i2c: E2 08 00 1A 0F 80 0D 03 02 00 00 00 00 A4 [11:51:00]Write i2c OK [11:51:00]MH_I2C_Read... [11:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:00]Read from MH i2c: E2 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 0B 00 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 0B 00 1A 0F 00 2A 5A 9B 70 B3 B1 CC 11 90 00 75 [11:51:00]RAPDU: 2A 5A 9B 70 B3 B1 CC 11 90 00 [11:51:00]wFMCommunicate OK [11:51:00]SAM_PROTO_SignData done [11:51:00]FM_MakeSignedData done [11:51:00]CreateOFDProtocolMessage [11:51:00]wFMCommunicate request_size=4 [11:51:00]MH_SAM_APDU [11:51:00]CAPDU: 80 11 00 00 [11:51:00]Write to MH i2c: E2 08 00 1B 0F 80 11 00 00 00 00 00 00 A4 [11:51:00]Write i2c OK [11:51:00]MH_I2C_Read... [11:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:00]Read from MH i2c: E2 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 17 00 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: E2 17 00 1B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F7 [11:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:51:00]wFMCommunicate OK [11:51:00]CreateOFDProtocolMessage done [11:51:00]OFDSenderStorePacket 187607 [11:51:00]StoreOFDPacket docnum=187607 [11:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4F F9 07 01 9F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A3 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DC 02 00 35 04 06 00 57 21 A9 6B 33 40 2A 5A 9B 70 B3 B1 CC 11 [11:51:00]CheckFolder [11:51:00]dirname=/storage/ofd_packets [11:51:00]CheckFolder done [11:51:00]ProducePacketName [11:51:00]name=ofd_packets/00187607 [11:51:00]NVStorageSaveData ofd_packets/00187607 [11:51:00]File name is /storage/ofd_packets/00187607 [11:51:00]Write 301 bytes [11:51:00]NVStorageSaveData done [11:51:00]OFDSenderStorePacket done [11:51:00]KKMCreateOFDPacket done [11:51:00]NVStorageSaveData kkm_last_timestamp [11:51:00]File name is /storage/kkm_last_timestamp [11:51:00]Write 4 bytes [11:51:00]NVStorageSaveData done [11:51:00]ExternCall_PrintAddStr [11:51:00]wPrintStart [11:51:00]Write to MH i2c: 01 00 00 1C 0F 2B [11:51:00]Write i2c OK [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: 01 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: 01 07 00 [11:51:00]MH_I2C_Read... [11:51:00]Read from MH i2c: 01 07 00 1C 0F 00 00 00 00 00 FF 0F 40 [11:51:00]RasterBufferAndPrint [11:51:00]line Счет N : (1)412766 [11:51:00]line ИНН: 02508201610067 [11:51:00]line Контрольно-Кассовый Чек [11:51:00]line ПРОДАЖА [11:51:00]line ТРК (МРК, ГНК) : 32 [11:51:00]line Товар: 2710124130 [11:51:00]line Аи-92-К-2 [11:51:00]line 9.350 * 64.20 [11:51:00]line = 600.27 [11:51:00]line НДС 12% НСП 1% [11:51:00]line > о реализуемом товаре [11:51:00]line ОКРУГЛЕНИЕ: -0.27 [11:51:00]line ИТОГО: 600.00 [11:51:00]line Внесено: 600.00 [11:51:00]line СДАЧА: 0.00 [11:51:00]line НСП 1% : 5.31 [11:51:00]line НДС 12% : 63.74 [11:51:00]line Наличными: 600.00 [11:51:00]line Безнал.: 0.00 [11:51:00]line Место: АЗС № 92 "Партнер Нефть" [11:51:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:51:00]line СНО: Общий режим [11:51:00]line Чек 101 21.02.2025 11:50 [11:51:00]line Смена: 649 ФФД: 1.0 [11:51:00]line ЗНМ: 0300000118 [11:51:00]line РНМ: 0000000000091857 [11:51:00]line Версия ККМ: 001 [11:51:00]line ФМ: 0000000000871826 [11:51:00]line ФД: 187607 [11:51:00]line ФПД: 95802087912256 [11:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T115059&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187607&fm=95802087912256&tin=02508201610067®Number=0000000000091857&sum=60000 [11:51:00]written 0, free lines is 4095 [11:51:00]OFD Sender: Processing packet 187607 [packets to send 49, broken 48] [11:51:00]ProducePacketName [11:51:00]name=ofd_packets/00187607 [11:51:00]OFD Sender: To server: pG, [11:51:00]CommunicateWithHost lk.salyk.kg:30040 [11:51:00]ConnectInit lk.salyk.kg [11:51:01]Connected sock=10 [11:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4F F9 07 01 9F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 A3 68 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DC 02 00 35 04 06 00 57 21 A9 6B 33 40 2A 5A 9B 70 B3 B1 CC 11 [11:51:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F2 66 47 00 02 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 DC 02 00 F4 03 04 00 F1 0E B8 67 B6 04 01 00 00 F9 4F 53 93 D3 AD B0 95 [11:51:01]CommunicateWithHost err = 0 [11:51:01]CheckOFDResponse [11:51:01]1017 (14) - 77093643461234 [11:51:01]1041 (16) - 0000000000871826 [11:51:01]1040 (4) - 187607 [11:51:01]1012 (4) - 21.02.2025 05:28 [11:51:01]1206 (1) - 0 [11:51:01]OFD Sender: Remove packet 187607 [11:51:01]ProducePacketName [11:51:01]name=ofd_packets/00187607 [11:51:01]NVStorageDeleteData [11:51:01]Write to MH i2c: 01 00 00 47 0F 56 [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: 01 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: 01 07 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: 01 07 00 47 0F 00 00 00 00 00 EC 0C 55 [11:51:01]RasterBufferAndPrint [11:51:01]line [11:51:01]line [11:51:01]line [11:51:01]line [11:51:01]line [11:51:01]written 0, free lines is 3314 [11:51:01]MH_Cut [11:51:01]Write to MH i2c: D1 01 00 4E 0F 01 2F [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: D1 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: D1 01 00 [11:51:01]MH_I2C_Read... [11:51:01]Read from MH i2c: D1 01 00 4E 0F 00 2E [11:51:01]Write to MH i2c: 01 00 00 4F 0F 5E [11:51:01]Write i2c OK [11:51:01]MH_I2C_Read... [11:51:01]OFD Sender: No OFD packet to send [11:51:02]*** Cut start [11:51:02]*** Partial cut [11:51:02]*** CUTSNS_PIN = 1 [11:51:02]*** CUTSNS_PIN = 0 [11:51:02]*** Brake cut motor [11:51:02]Read from MH i2c: 01 [11:51:02]MH_I2C_Read... [11:51:02]*** Stop cut motor [11:51:02]*** Cut end [11:51:02]Read from MH i2c: 01 07 00 [11:51:02]MH_I2C_Read... [11:51:02]Read from MH i2c: 01 07 00 4F 0F 00 00 00 00 00 FF 0F 73 [11:51:02]process_action close_receipt done [11:51:02]requested_data is exist [11:51:02]produce_requested_data [11:51:02]requested_item fm.sn is exist - process it [11:51:02]wFMCommunicate request_size=4 [11:51:02]MH_SAM_APDU [11:51:02]CAPDU: 80 11 00 00 [11:51:02]Write to MH i2c: E2 08 00 50 0F 80 11 00 00 00 00 00 00 D9 [11:51:02]Write i2c OK [11:51:02]MH_I2C_Read... [11:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:02]Read from MH i2c: E2 [11:51:02]MH_I2C_Read... [11:51:02]Read from MH i2c: E2 17 00 [11:51:02]MH_I2C_Read... [11:51:02]Read from MH i2c: E2 17 00 50 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [11:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:51:02]wFMCommunicate OK [11:51:02]requested_item fd.num is exist - process it [11:51:02]SAM_PROTO_GetFieldsCounters [11:51:02]wFMCommunicate request_size=4 [11:51:02]MH_SAM_APDU [11:51:02]CAPDU: 80 13 00 00 [11:51:02]Write to MH i2c: E2 08 00 51 0F 80 13 00 00 00 00 00 00 DC [11:51:02]Write i2c OK [11:51:02]MH_I2C_Read... [11:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:02]Read from MH i2c: E2 [11:51:02]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 62 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 62 00 51 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D7 DC 02 00 0E 04 04 00 89 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 71 [11:51:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D7 DC 02 00 0E 04 04 00 89 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 [11:51:03]wFMCommunicate OK [11:51:03]SAM_PROTO_GetFieldsCounters done [11:51:03]requested_item shift.num is exist - process it [11:51:03]requested_item shift.opened is exist - process it [11:51:03]req_shift_opened [11:51:03]FM_GetShiftState [11:51:03]SAM_PROTO_GetShiftState [11:51:03]wFMCommunicate request_size=4 [11:51:03]MH_SAM_APDU [11:51:03]CAPDU: 80 13 01 00 [11:51:03]Write to MH i2c: E2 08 00 52 0F 80 13 01 00 00 00 00 00 DE [11:51:03]Write i2c OK [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 [11:51:03]MH_I2C_Read... [11:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:03]Read from MH i2c: E2 0E 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 0E 00 52 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 CC [11:51:03]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [11:51:03]wFMCommunicate OK [11:51:03]SAM_PROTO_GetShiftState done [11:51:03]FM_GetShiftState done [11:51:03]req_shift_opened done [11:51:03]requested_item shift.open_date is exist - process it [11:51:03]req_shift_open_date [11:51:03]req_shift_open_date done [11:51:03]produce_requested_data done [11:51:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187607,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [11:51:03]process_action_free close_receipt [11:51:03]json_value_free [11:51:03]json_value_free done [11:51:03]process_json_proto returns [11:51:03]Send response to host [11:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187607,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [11:51:03]free response buf [11:51:03]execute_script done [11:51:03]execute_script returns [11:51:03]free content buf [11:51:03]Sock 8.Close socket [11:51:03]Sock 8.Thread stoped [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:38]accept exits with 9 [12:00:38]New connection [12:00:38]New thread 3067080036 created [12:00:38]Thread 3066936676 joined [12:00:38]Waiting for new connection... [12:00:38] Sock 9.Parse request [12:00:38]Sock 9.Check first char [12:00:38]Sock 9.First char is OK [12:00:38]request: POST /json_proto HTTP/1.0 [12:00:38]Method: POST [12:00:38]URL: /json_proto [12:00:38]Method is POST - this is cgi request [12:00:38]url: /json_proto [12:00:38]query_string will be loaded in cgi processing [12:00:38]execute_cgi json_proto POST (null) [12:00:38]execute_cgi path=json_proto method=POST [12:00:38]POST find Content-Length [12:00:38]Host: 172.17.46.131:8080 [12:00:38]Content-Length: 800 [12:00:38]Content-Type: application/json [12:00:38] [12:00:38]POST finish read [12:00:38]Found Content-Length = 800 [12:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:38]execute_script... [12:00: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)412767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:38]POST & json_proto [12:00:38]process_json_proto [12:00:38]json parsed OK: [12:00:38]protocol is kg_v1.0 [12:00:38]action value=close_receipt [12:00:38]process_action close_receipt [12:00:38]cmd_close_receipt [12:00:38]MH_GetDate [12:00:38]Write to MH i2c: F0 00 00 53 0F 51 [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: F0 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: F0 09 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: F0 09 00 53 0F 00 E6 6A B8 67 7E 41 4F 65 3C [12:00:38]GetLastDocTimeStamp 1740138659 [12:00:38]current date 1740139238 [12:00:38]FM_GetShiftState [12:00:38]SAM_PROTO_GetShiftState [12:00:38]wFMCommunicate request_size=4 [12:00:38]MH_SAM_APDU [12:00:38]CAPDU: 80 13 01 00 [12:00:38]Write to MH i2c: E2 08 00 54 0F 80 13 01 00 00 00 00 00 E0 [12:00:38]Write i2c OK [12:00:38]MH_I2C_Read... [12:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:38]Read from MH i2c: E2 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 0E 00 [12:00:38]MH_I2C_Read... [12:00:38]Read from MH i2c: E2 0E 00 54 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 CE [12:00:38]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:00:38]wFMCommunicate OK [12:00:38]SAM_PROTO_GetShiftState done [12:00:38]FM_GetShiftState done [12:00:38]opened in 1740098043 [12:00:38]opened+sec_in_day 1740184443 [12:00:38]quantity*price = 40060 [12:00:38]sum+1 = 40062 [12:00:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.61 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.61 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 102 21.02.2025 12:00 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187608 ФПД: 264815356249860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T120038&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187608&fm=264815356249860&tin=02508201610067®Number=0000000000091857&sum=40061 [12:00:39]StoreToDocumentArchive [12:00:39]shift 649 fd 187608 [12:00:39]save to /storage/0649/doc_00187608 [12:00:39]save last doc name /storage/0649/doc_00187608 to /storage/kkm_last_doc_name [12:00:39]save OK [12:00:39]Clear old archive folders... [12:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:39]tlvbuf is 01EAF900 [12:00:39]SAM_PROTO_ClearQueue [12:00:39]wFMCommunicate request_size=4 [12:00:39]MH_SAM_APDU [12:00:39]CAPDU: 80 09 00 00 [12:00:39]Write to MH i2c: E2 08 00 61 0F 80 09 00 00 00 00 00 00 E2 [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:39]Read from MH i2c: E2 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 03 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 03 00 61 0F 00 90 00 E4 [12:00:39]RAPDU: 90 00 [12:00:39]wFMCommunicate OK [12:00:39]SAM_PROTO_ClearQueue done [12:00:39]KKMCreateOFDPacket [12:00:39]OFDProtocolAddRootSTLVToBuf [12:00:39]FM_MakeSignedData [12:00:39]FM_MakeSignedData [12:00:39]SAM_PROTO_SignData [12:00:39]wFMCommunicate request_size=4 [12:00:39]MH_SAM_APDU [12:00:39]CAPDU: 80 0D 01 02 [12:00:39]Write to MH i2c: E2 08 00 62 0F 80 0D 01 02 00 00 00 00 EA [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:39]Read from MH i2c: E2 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 03 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 03 00 62 0F 00 90 00 E5 [12:00:39]RAPDU: 90 00 [12:00:39]wFMCommunicate OK [12:00:39]wFMCommunicate request_size=255 [12:00:39]MH_SAM_APDU [12:00:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E6 6A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DC 02 00 35 04 06 00 F0 [12:00:39]Write to MH i2c: E2 02 01 63 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E6 6A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DC 02 00 35 04 06 00 F0 00 00 FD [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:39]Read from MH i2c: E2 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 03 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 03 00 63 0F 00 90 00 E6 [12:00:39]RAPDU: 90 00 [12:00:39]wFMCommunicate OK [12:00:39]wFMCommunicate request_size=10 [12:00:39]MH_SAM_APDU [12:00:39]CAPDU: 80 0D 02 02 05 D9 21 3D 87 04 [12:00:39]Write to MH i2c: E2 0D 00 64 0F 80 0D 02 02 05 00 D9 21 3D 87 04 00 00 B9 [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:39]Read from MH i2c: E2 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 03 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 03 00 64 0F 00 90 00 E7 [12:00:39]RAPDU: 90 00 [12:00:39]wFMCommunicate OK [12:00:39]wFMCommunicate request_size=4 [12:00:39]MH_SAM_APDU [12:00:39]CAPDU: 80 0D 03 02 [12:00:39]Write to MH i2c: E2 08 00 65 0F 80 0D 03 02 00 00 00 00 EF [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:39]Read from MH i2c: E2 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 0B 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 0B 00 65 0F 00 5F 37 FF 2A 19 76 69 99 90 00 40 [12:00:39]RAPDU: 5F 37 FF 2A 19 76 69 99 90 00 [12:00:39]wFMCommunicate OK [12:00:39]SAM_PROTO_SignData done [12:00:39]FM_MakeSignedData done [12:00:39]CreateOFDProtocolMessage [12:00:39]wFMCommunicate request_size=4 [12:00:39]MH_SAM_APDU [12:00:39]CAPDU: 80 11 00 00 [12:00:39]Write to MH i2c: E2 08 00 66 0F 80 11 00 00 00 00 00 00 EF [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:39]Read from MH i2c: E2 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 17 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: E2 17 00 66 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [12:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:00:39]wFMCommunicate OK [12:00:39]CreateOFDProtocolMessage done [12:00:39]OFDSenderStorePacket 187608 [12:00:39]StoreOFDPacket docnum=187608 [12:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7B 75 07 01 E2 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E6 6A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DC 02 00 35 04 06 00 F0 D9 21 3D 87 04 5F 37 FF 2A 19 76 69 99 [12:00:39]CheckFolder [12:00:39]dirname=/storage/ofd_packets [12:00:39]CheckFolder done [12:00:39]ProducePacketName [12:00:39]name=ofd_packets/00187608 [12:00:39]NVStorageSaveData ofd_packets/00187608 [12:00:39]File name is /storage/ofd_packets/00187608 [12:00:39]Write 301 bytes [12:00:39]NVStorageSaveData done [12:00:39]OFDSenderStorePacket done [12:00:39]KKMCreateOFDPacket done [12:00:39]NVStorageSaveData kkm_last_timestamp [12:00:39]File name is /storage/kkm_last_timestamp [12:00:39]Write 4 bytes [12:00:39]NVStorageSaveData done [12:00:39]ExternCall_PrintAddStr [12:00:39]wPrintStart [12:00:39]Write to MH i2c: 01 00 00 67 0F 76 [12:00:39]Write i2c OK [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: 01 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: 01 07 00 [12:00:39]MH_I2C_Read... [12:00:39]Read from MH i2c: 01 07 00 67 0F 00 00 00 00 00 FF 0F 8B [12:00:39]RasterBufferAndPrint [12:00:39]line Счет N : (1)412767 [12:00:39]line ИНН: 02508201610067 [12:00:39]line Контрольно-Кассовый Чек [12:00:39]line ПРОДАЖА [12:00:39]line ТРК (МРК, ГНК) : 22 [12:00:39]line Товар: 2710124130 [12:00:39]line Аи-92-К-2 [12:00:39]line 6.240 * 64.20 [12:00:39]line = 400.61 [12:00:39]line НДС 12% НСП 1% [12:00:39]line > о реализуемом товаре [12:00:39]line ИТОГО: 400.61 [12:00:39]line НСП 1% : 3.54 [12:00:39]line НДС 12% : 42.54 [12:00:39]line Наличными: 0.00 [12:00:39]line Безнал.: 400.61 [12:00:39]line Место: АЗС № 92 "Партнер Нефть" [12:00:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:00:39]line СНО: Общий режим [12:00:39]line Чек 102 21.02.2025 12:00 [12:00:39]line Смена: 649 ФФД: 1.0 [12:00:39]line ЗНМ: 0300000118 [12:00:39]line РНМ: 0000000000091857 [12:00:39]line Версия ККМ: 001 [12:00:39]line Платежная система: O! деньги [12:00:39]line ФМ: 0000000000871826 [12:00:39]line ФД: 187608 [12:00:39]line ФПД: 264815356249860 [12:00:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T120038&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187608&fm=264815356249860&tin=02508201610067®Number=0000000000091857&sum=40061 [12:00:40]OFD Sender: Processing packet 187608 [packets to send 49, broken 48] [12:00:40]ProducePacketName [12:00:40]name=ofd_packets/00187608 [12:00:40]OFD Sender: To server: pG, [12:00:40]CommunicateWithHost lk.salyk.kg:30040 [12:00:40]ConnectInit lk.salyk.kg [12:00:40]written 0, free lines is 4095 [12:00:40]Connected sock=10 [12:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7B 75 07 01 E2 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 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E6 6A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DC 02 00 35 04 06 00 F0 D9 21 3D 87 04 5F 37 FF 2A 19 76 69 99 [12:00:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5B 27 47 00 7A 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 DC 02 00 F4 03 04 00 34 11 B8 67 B6 04 01 00 00 32 6E 01 90 CB 19 8E 12 [12:00:40]CommunicateWithHost err = 0 [12:00:40]CheckOFDResponse [12:00:40]1017 (14) - 77093643461234 [12:00:40]1041 (16) - 0000000000871826 [12:00:40]1040 (4) - 187608 [12:00:40]1012 (4) - 21.02.2025 05:37 [12:00:40]1206 (1) - 0 [12:00:40]OFD Sender: Remove packet 187608 [12:00:40]ProducePacketName [12:00:40]name=ofd_packets/00187608 [12:00:40]NVStorageDeleteData [12:00:40]Write to MH i2c: 01 00 00 91 0F A0 [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: 01 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: 01 07 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: 01 07 00 91 0F 00 00 00 00 00 0F 0D C3 [12:00:40]RasterBufferAndPrint [12:00:40]line [12:00:40]line [12:00:40]line [12:00:40]line [12:00:40]line [12:00:40]written 0, free lines is 3348 [12:00:40]MH_Cut [12:00:40]Write to MH i2c: D1 01 00 98 0F 01 79 [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: D1 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: D1 01 00 [12:00:40]MH_I2C_Read... [12:00:40]Read from MH i2c: D1 01 00 98 0F 00 78 [12:00:40]Write to MH i2c: 01 00 00 99 0F A8 [12:00:40]Write i2c OK [12:00:40]MH_I2C_Read... [12:00:41]OFD Sender: No OFD packet to send [12:00:41]*** Cut start [12:00:41]*** Partial cut [12:00:41]*** CUTSNS_PIN = 1 [12:00:41]*** CUTSNS_PIN = 0 [12:00:41]*** Brake cut motor [12:00:41]Read from MH i2c: 01 [12:00:41]MH_I2C_Read... [12:00:41]*** Stop cut motor [12:00:41]*** Cut end [12:00:41]Read from MH i2c: 01 07 00 [12:00:41]MH_I2C_Read... [12:00:41]Read from MH i2c: 01 07 00 99 0F 00 00 00 00 00 FF 0F BD [12:00:41]process_action close_receipt done [12:00:41]requested_data is exist [12:00:41]produce_requested_data [12:00:41]requested_item fm.sn is exist - process it [12:00:41]wFMCommunicate request_size=4 [12:00:41]MH_SAM_APDU [12:00:41]CAPDU: 80 11 00 00 [12:00:41]Write to MH i2c: E2 08 00 9A 0F 80 11 00 00 00 00 00 00 23 [12:00:41]Write i2c OK [12:00:41]MH_I2C_Read... [12:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:42]Read from MH i2c: E2 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 17 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 17 00 9A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 76 [12:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:00:42]wFMCommunicate OK [12:00:42]requested_item fd.num is exist - process it [12:00:42]SAM_PROTO_GetFieldsCounters [12:00:42]wFMCommunicate request_size=4 [12:00:42]MH_SAM_APDU [12:00:42]CAPDU: 80 13 00 00 [12:00:42]Write to MH i2c: E2 08 00 9B 0F 80 13 00 00 00 00 00 00 26 [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:42]Read from MH i2c: E2 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 62 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 62 00 9B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D8 DC 02 00 0E 04 04 00 89 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 BF [12:00:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D8 DC 02 00 0E 04 04 00 89 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 [12:00:42]wFMCommunicate OK [12:00:42]SAM_PROTO_GetFieldsCounters done [12:00:42]requested_item shift.num is exist - process it [12:00:42]requested_item shift.opened is exist - process it [12:00:42]req_shift_opened [12:00:42]FM_GetShiftState [12:00:42]SAM_PROTO_GetShiftState [12:00:42]wFMCommunicate request_size=4 [12:00:42]MH_SAM_APDU [12:00:42]CAPDU: 80 13 01 00 [12:00:42]Write to MH i2c: E2 08 00 9C 0F 80 13 01 00 00 00 00 00 28 [12:00:42]Write i2c OK [12:00:42]MH_I2C_Read... [12:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:42]Read from MH i2c: E2 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 0E 00 [12:00:42]MH_I2C_Read... [12:00:42]Read from MH i2c: E2 0E 00 9C 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 16 [12:00:42]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:00:42]wFMCommunicate OK [12:00:42]SAM_PROTO_GetShiftState done [12:00:42]FM_GetShiftState done [12:00:42]req_shift_opened done [12:00:42]requested_item shift.open_date is exist - process it [12:00:42]req_shift_open_date [12:00:42]req_shift_open_date done [12:00:42]produce_requested_data done [12:00:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187608,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [12:00:42]process_action_free close_receipt [12:00:42]json_value_free [12:00:42]json_value_free done [12:00:42]process_json_proto returns [12:00:42]Send response to host [12:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187608,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [12:00:42]free response buf [12:00:42]execute_script done [12:00:42]execute_script returns [12:00:42]free content buf [12:00:42]Sock 9.Close socket [12:00:42]Sock 9.Thread stoped [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:44]accept exits with 8 [12:08:44]New connection [12:08:44]New thread 3066936676 created [12:08:44]Thread 3067080036 joined [12:08:44]Waiting for new connection... [12:08:44] Sock 8.Parse request [12:08:44]Sock 8.Check first char [12:08:44]Sock 8.First char is OK [12:08:44]request: POST /json_proto HTTP/1.0 [12:08:44]Method: POST [12:08:44]URL: /json_proto [12:08:44]Method is POST - this is cgi request [12:08:44]url: /json_proto [12:08:44]query_string will be loaded in cgi processing [12:08:44]execute_cgi json_proto POST (null) [12:08:44]execute_cgi path=json_proto method=POST [12:08:44]POST find Content-Length [12:08:44]Host: 172.17.46.131:8080 [12:08:44]Content-Length: 800 [12:08:44]Content-Type: application/json [12:08:44] [12:08:44]POST finish read [12:08:44]Found Content-Length = 800 [12:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A5026380", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:44]execute_script... [12: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)412769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A5026380", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:44]POST & json_proto [12:08:44]process_json_proto [12:08:44]json parsed OK: [12:08:44]protocol is kg_v1.0 [12:08:44]action value=close_receipt [12:08:44]process_action close_receipt [12:08:44]cmd_close_receipt [12:08:44]MH_GetDate [12:08:44]Write to MH i2c: F0 00 00 9D 0F 9B [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: F0 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: F0 09 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: F0 09 00 9D 0F 00 CC 6C B8 67 7E 41 4F 65 6E [12:08:44]GetLastDocTimeStamp 1740139238 [12:08:44]current date 1740139724 [12:08:44]FM_GetShiftState [12:08:44]SAM_PROTO_GetShiftState [12:08:44]wFMCommunicate request_size=4 [12:08:44]MH_SAM_APDU [12:08:44]CAPDU: 80 13 01 00 [12:08:44]Write to MH i2c: E2 08 00 9E 0F 80 13 01 00 00 00 00 00 2A [12:08:44]Write i2c OK [12:08:44]MH_I2C_Read... [12:08:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:44]Read from MH i2c: E2 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 0E 00 [12:08:44]MH_I2C_Read... [12:08:44]Read from MH i2c: E2 0E 00 9E 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 18 [12:08:44]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:08:44]wFMCommunicate OK [12:08:44]SAM_PROTO_GetShiftState done [12:08:44]FM_GetShiftState done [12:08:44]opened in 1740098043 [12:08:44]opened+sec_in_day 1740184443 [12:08:44]quantity*price = 0 [12:08:44]sum+1 = 1 [12:08:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 103 21.02.2025 12:08 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 5026380 ФМ: 0000000000871826 ФД: 187609 ФПД: 135448968183857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T120844&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187609&fm=135448968183857&tin=02508201610067®Number=0000000000091857&sum=0 [12:08:45]StoreToDocumentArchive [12:08:45]shift 649 fd 187609 [12:08:45]save to /storage/0649/doc_00187609 [12:08:45]save last doc name /storage/0649/doc_00187609 to /storage/kkm_last_doc_name [12:08:45]save OK [12:08:45]Clear old archive folders... [12:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:45]tlvbuf is 01E13200 [12:08:45]SAM_PROTO_ClearQueue [12:08:45]wFMCommunicate request_size=4 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 09 00 00 [12:08:45]Write to MH i2c: E2 08 00 AB 0F 80 09 00 00 00 00 00 00 2C [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 AB 0F 00 90 00 2E [12:08:45]RAPDU: 90 00 [12:08:45]wFMCommunicate OK [12:08:45]SAM_PROTO_ClearQueue done [12:08:45]KKMCreateOFDPacket [12:08:45]OFDProtocolAddRootSTLVToBuf [12:08:45]FM_MakeSignedData [12:08:45]FM_MakeSignedData [12:08:45]SAM_PROTO_SignData [12:08:45]wFMCommunicate request_size=4 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 0D 01 02 [12:08:45]Write to MH i2c: E2 08 00 AC 0F 80 0D 01 02 00 00 00 00 34 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 AC 0F 00 90 00 2F [12:08:45]RAPDU: 90 00 [12:08:45]wFMCommunicate OK [12:08:45]wFMCommunicate request_size=255 [12:08:45]MH_SAM_APDU [12: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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CC 6C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 DC 02 00 35 04 06 00 7B [12:08:45]Write to MH i2c: E2 02 01 AD 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 CC 6C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 DC 02 00 35 04 06 00 7B 00 00 F2 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 AD 0F 00 90 00 30 [12:08:45]RAPDU: 90 00 [12:08:45]wFMCommunicate OK [12:08:45]wFMCommunicate request_size=10 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 0D 02 02 05 30 AB A2 40 31 [12:08:45]Write to MH i2c: E2 0D 00 AE 0F 80 0D 02 02 05 00 30 AB A2 40 31 00 00 2F [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 03 00 AE 0F 00 90 00 31 [12:08:45]RAPDU: 90 00 [12:08:45]wFMCommunicate OK [12:08:45]wFMCommunicate request_size=4 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 0D 03 02 [12:08:45]Write to MH i2c: E2 08 00 AF 0F 80 0D 03 02 00 00 00 00 39 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 0B 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 0B 00 AF 0F 00 F5 63 2B EC F8 DD DE 7F 90 00 DB [12:08:45]RAPDU: F5 63 2B EC F8 DD DE 7F 90 00 [12:08:45]wFMCommunicate OK [12:08:45]SAM_PROTO_SignData done [12:08:45]FM_MakeSignedData done [12:08:45]CreateOFDProtocolMessage [12:08:45]wFMCommunicate request_size=4 [12:08:45]MH_SAM_APDU [12:08:45]CAPDU: 80 11 00 00 [12:08:45]Write to MH i2c: E2 08 00 B0 0F 80 11 00 00 00 00 00 00 39 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:45]Read from MH i2c: E2 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 17 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: E2 17 00 B0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [12:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:08:45]wFMCommunicate OK [12:08:45]CreateOFDProtocolMessage done [12:08:45]OFDSenderStorePacket 187609 [12:08:45]StoreOFDPacket docnum=187609 [12:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7A 53 07 01 48 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 CC 6C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 DC 02 00 35 04 06 00 7B 30 AB A2 40 31 F5 63 2B EC F8 DD DE 7F [12:08:45]CheckFolder [12:08:45]dirname=/storage/ofd_packets [12:08:45]CheckFolder done [12:08:45]ProducePacketName [12:08:45]name=ofd_packets/00187609 [12:08:45]NVStorageSaveData ofd_packets/00187609 [12:08:45]File name is /storage/ofd_packets/00187609 [12:08:45]Write 301 bytes [12:08:45]NVStorageSaveData done [12:08:45]OFDSenderStorePacket done [12:08:45]KKMCreateOFDPacket done [12:08:45]NVStorageSaveData kkm_last_timestamp [12:08:45]File name is /storage/kkm_last_timestamp [12:08:45]Write 4 bytes [12:08:45]NVStorageSaveData done [12:08:45]ExternCall_PrintAddStr [12:08:45]wPrintStart [12:08:45]Write to MH i2c: 01 00 00 B1 0F C0 [12:08:45]Write i2c OK [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 07 00 [12:08:45]MH_I2C_Read... [12:08:45]Read from MH i2c: 01 07 00 B1 0F 00 00 00 00 00 FF 0F D5 [12:08:45]RasterBufferAndPrint [12:08:45]line Счет N : (1)412769 [12:08:45]line ИНН: 02508201610067 [12:08:45]line Контрольно-Кассовый Чек [12:08:45]line ПРОДАЖА [12:08:45]line ТРК (МРК, ГНК) : 42 [12:08:45]line Товар: 2710124130 [12:08:45]line Аи-92-К-2 [12:08:45]line 10.000 * 0.00 [12:08:45]line = 0.00 [12:08:45]line НДС 12% НСП 1% [12:08:45]line > о реализуемом товаре [12:08:45]line ИТОГО: 0.00 [12:08:45]line НСП 1% : 0.00 [12:08:45]line НДС 12% : 0.00 [12:08:45]line Наличными: 0.00 [12:08:45]line Безнал.: 0.00 [12:08:45]line Место: АЗС № 92 "Партнер Нефть" [12:08:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:08:45]line СНО: Общий режим [12:08:45]line Чек 103 21.02.2025 12:08 [12:08:45]line Смена: 649 ФФД: 1.0 [12:08:45]line ЗНМ: 0300000118 [12:08:45]line РНМ: 0000000000091857 [12:08:45]line Версия ККМ: 001 [12:08:45]line Талоны: Топливные Талоны [12:08:45]line 5026380 [12:08:45]line ФМ: 0000000000871826 [12:08:45]line ФД: 187609 [12:08:45]line ФПД: 135448968183857 [12:08:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T120844&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187609&fm=135448968183857&tin=02508201610067®Number=0000000000091857&sum=0 [12:08:45]written 0, free lines is 4095 [12:08:45]OFD Sender: Processing packet 187609 [packets to send 49, broken 48] [12:08:45]ProducePacketName [12:08:45]name=ofd_packets/00187609 [12:08:45]OFD Sender: To server: pG, [12:08:45]CommunicateWithHost lk.salyk.kg:30040 [12:08:45]ConnectInit lk.salyk.kg [12:08:46]Connected sock=11 [12: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 38 32 36 0F 01 00 00 7A 53 07 01 48 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 CC 6C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 DC 02 00 35 04 06 00 7B 30 AB A2 40 31 F5 63 2B EC F8 DD DE 7F [12:08:46]Write to MH i2c: 01 00 00 DB 0F EA [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 07 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: 01 07 00 DB 0F 00 00 00 00 00 09 0D 07 [12:08:46]RasterBufferAndPrint [12:08:46]line [12:08:46]line [12:08:46]line [12:08:46]line [12:08:46]line [12:08:46]written 0, free lines is 3344 [12:08:46]MH_Cut [12:08:46]Write to MH i2c: D1 01 00 E2 0F 01 C3 [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: D1 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: D1 01 00 [12:08:46]MH_I2C_Read... [12:08:46]Read from MH i2c: D1 01 00 E2 0F 00 C2 [12:08:46]Write to MH i2c: 01 00 00 E3 0F F2 [12:08:46]Write i2c OK [12:08:46]MH_I2C_Read... [12: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 38 32 36 4F 00 00 00 E3 E4 47 00 57 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 38 32 36 10 04 04 00 D9 DC 02 00 F4 03 04 00 1A 13 B8 67 B6 04 01 00 00 2C 60 36 AE F0 25 5D 94 [12:08:46]CommunicateWithHost err = 0 [12:08:46]CheckOFDResponse [12:08:46]1017 (14) - 77093643461234 [12:08:46]1041 (16) - 0000000000871826 [12:08:46]1040 (4) - 187609 [12:08:46]1012 (4) - 21.02.2025 05:46 [12:08:46]1206 (1) - 0 [12:08:46]OFD Sender: Remove packet 187609 [12:08:46]ProducePacketName [12:08:46]name=ofd_packets/00187609 [12:08:46]NVStorageDeleteData [12:08:46]OFD Sender: No OFD packet to send [12:08:46]*** Cut start [12:08:46]*** Partial cut [12:08:46]*** CUTSNS_PIN = 1 [12:08:47]*** CUTSNS_PIN = 0 [12:08:47]*** Brake cut motor [12:08:47]Read from MH i2c: 01 [12:08:47]MH_I2C_Read... [12:08:47]*** Stop cut motor [12:08:47]*** Cut end [12:08:47]Read from MH i2c: 01 07 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: 01 07 00 E3 0F 00 00 00 00 00 FF 0F 07 [12:08:47]process_action close_receipt done [12:08:47]requested_data is exist [12:08:47]produce_requested_data [12:08:47]requested_item fm.sn is exist - process it [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 11 00 00 [12:08:47]Write to MH i2c: E2 08 00 E4 0F 80 11 00 00 00 00 00 00 6D [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 17 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 17 00 E4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C0 [12:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:08:47]wFMCommunicate OK [12:08:47]requested_item fd.num is exist - process it [12:08:47]SAM_PROTO_GetFieldsCounters [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 13 00 00 [12:08:47]Write to MH i2c: E2 08 00 E5 0F 80 13 00 00 00 00 00 00 70 [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 62 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 62 00 E5 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D9 DC 02 00 0E 04 04 00 89 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 0D [12:08:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 D9 DC 02 00 0E 04 04 00 89 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 [12:08:47]wFMCommunicate OK [12:08:47]SAM_PROTO_GetFieldsCounters done [12:08:47]requested_item shift.num is exist - process it [12:08:47]requested_item shift.opened is exist - process it [12:08:47]req_shift_opened [12:08:47]FM_GetShiftState [12:08:47]SAM_PROTO_GetShiftState [12:08:47]wFMCommunicate request_size=4 [12:08:47]MH_SAM_APDU [12:08:47]CAPDU: 80 13 01 00 [12:08:47]Write to MH i2c: E2 08 00 E6 0F 80 13 01 00 00 00 00 00 72 [12:08:47]Write i2c OK [12:08:47]MH_I2C_Read... [12:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:47]Read from MH i2c: E2 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0E 00 [12:08:47]MH_I2C_Read... [12:08:47]Read from MH i2c: E2 0E 00 E6 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 60 [12:08:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:08:47]wFMCommunicate OK [12:08:47]SAM_PROTO_GetShiftState done [12:08:47]FM_GetShiftState done [12:08:47]req_shift_opened done [12:08:47]requested_item shift.open_date is exist - process it [12:08:47]req_shift_open_date [12:08:47]req_shift_open_date done [12:08:47]produce_requested_data done [12:08:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187609,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [12:08:47]process_action_free close_receipt [12:08:47]json_value_free [12:08:47]json_value_free done [12:08:47]process_json_proto returns [12:08:47]Send response to host [12:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187609,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [12:08:47]free response buf [12:08:47]execute_script done [12:08:47]execute_script returns [12:08:47]free content buf [12:08:47]Sock 8.Close socket [12:08:47]Sock 8.Thread stoped [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:28]accept exits with 9 [12:10:28]New connection [12:10:28]New thread 3067080036 created [12:10:28]Thread 3066936676 joined [12:10:28]Waiting for new connection... [12:10:28] Sock 9.Parse request [12:10:28]Sock 9.Check first char [12:10:28]Sock 9.First char is OK [12:10:28]request: POST /json_proto HTTP/1.0 [12:10:28]Method: POST [12:10:28]URL: /json_proto [12:10:28]Method is POST - this is cgi request [12:10:28]url: /json_proto [12:10:28]query_string will be loaded in cgi processing [12:10:28]execute_cgi json_proto POST (null) [12:10:28]execute_cgi path=json_proto method=POST [12:10:28]POST find Content-Length [12:10:28]Host: 172.17.46.131:8080 [12:10:28]Content-Length: 800 [12:10:28]Content-Type: application/json [12:10:28] [12:10:28]POST finish read [12:10:28]Found Content-Length = 800 [12:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4160486", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:28]execute_script... [12:10: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)412768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4160486", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:28]POST & json_proto [12:10:28]process_json_proto [12:10:28]json parsed OK: [12:10:28]protocol is kg_v1.0 [12:10:28]action value=close_receipt [12:10:28]process_action close_receipt [12:10:28]cmd_close_receipt [12:10:28]MH_GetDate [12:10:28]Write to MH i2c: F0 00 00 E7 0F E5 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: F0 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: F0 09 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: F0 09 00 E7 0F 00 34 6D B8 67 7E 41 4F 65 21 [12:10:28]GetLastDocTimeStamp 1740139724 [12:10:28]current date 1740139828 [12:10:28]FM_GetShiftState [12:10:28]SAM_PROTO_GetShiftState [12:10:28]wFMCommunicate request_size=4 [12:10:28]MH_SAM_APDU [12:10:28]CAPDU: 80 13 01 00 [12:10:28]Write to MH i2c: E2 08 00 E8 0F 80 13 01 00 00 00 00 00 74 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:28]Read from MH i2c: E2 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 0E 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: E2 0E 00 E8 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 62 [12:10:28]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:10:28]wFMCommunicate OK [12:10:28]SAM_PROTO_GetShiftState done [12:10:28]FM_GetShiftState done [12:10:28]opened in 1740098043 [12:10:28]opened+sec_in_day 1740184443 [12:10:28]quantity*price = 0 [12:10:28]sum+1 = 1 [12:10:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 104 21.02.2025 12:10 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4160486 ФМ: 0000000000871826 ФД: 187610 ФПД: 118372098330314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T121028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187610&fm=118372098330314&tin=02508201610067®Number=0000000000091857&sum=0 [12:10:29]StoreToDocumentArchive [12:10:29]shift 649 fd 187610 [12:10:29]save to /storage/0649/doc_00187610 [12:10:29]save last doc name /storage/0649/doc_00187610 to /storage/kkm_last_doc_name [12:10:29]save OK [12:10:29]Clear old archive folders... [12:10:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:29]tlvbuf is B6EC74C0 [12:10:29]SAM_PROTO_ClearQueue [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 09 00 00 [12:10:29]Write to MH i2c: E2 08 00 F5 0F 80 09 00 00 00 00 00 00 76 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 03 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [12:10:29]RAPDU: 90 00 [12:10:29]wFMCommunicate OK [12:10:29]SAM_PROTO_ClearQueue done [12:10:29]KKMCreateOFDPacket [12:10:29]OFDProtocolAddRootSTLVToBuf [12:10:29]FM_MakeSignedData [12:10:29]FM_MakeSignedData [12:10:29]SAM_PROTO_SignData [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 0D 01 02 [12:10:29]Write to MH i2c: E2 08 00 F6 0F 80 0D 01 02 00 00 00 00 7E [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 03 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [12:10:29]RAPDU: 90 00 [12:10:29]wFMCommunicate OK [12:10:29]wFMCommunicate request_size=255 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 68 00 00 00 F4 03 04 00 34 6D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA DC 02 00 35 04 06 00 6B [12:10:29]Write to MH i2c: E2 02 01 F7 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 68 00 00 00 F4 03 04 00 34 6D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA DC 02 00 35 04 06 00 6B 00 00 CE [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 03 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [12:10:29]RAPDU: 90 00 [12:10:29]wFMCommunicate OK [12:10:29]wFMCommunicate request_size=10 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 0D 02 02 05 A8 A6 DF 4E CA [12:10:29]Write to MH i2c: E2 0D 00 F8 0F 80 0D 02 02 05 00 A8 A6 DF 4E CA 00 00 D0 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 03 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [12:10:29]RAPDU: 90 00 [12:10:29]wFMCommunicate OK [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 0D 03 02 [12:10:29]Write to MH i2c: E2 08 00 F9 0F 80 0D 03 02 00 00 00 00 83 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0B 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0B 00 F9 0F 00 85 0F 5E F5 4D 21 44 5E 90 00 7B [12:10:29]RAPDU: 85 0F 5E F5 4D 21 44 5E 90 00 [12:10:29]wFMCommunicate OK [12:10:29]SAM_PROTO_SignData done [12:10:29]FM_MakeSignedData done [12:10:29]CreateOFDProtocolMessage [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 11 00 00 [12:10:29]Write to MH i2c: E2 08 00 FA 0F 80 11 00 00 00 00 00 00 83 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 17 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 17 00 FA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [12:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:10:29]wFMCommunicate OK [12:10:29]CreateOFDProtocolMessage done [12:10:29]OFDSenderStorePacket 187610 [12:10:29]StoreOFDPacket docnum=187610 [12:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7A A9 07 01 E0 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 34 6D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA DC 02 00 35 04 06 00 6B A8 A6 DF 4E CA 85 0F 5E F5 4D 21 44 5E [12:10:29]CheckFolder [12:10:29]dirname=/storage/ofd_packets [12:10:29]CheckFolder done [12:10:29]ProducePacketName [12:10:29]name=ofd_packets/00187610 [12:10:29]NVStorageSaveData ofd_packets/00187610 [12:10:29]File name is /storage/ofd_packets/00187610 [12:10:29]Write 301 bytes [12:10:29]NVStorageSaveData done [12:10:29]OFDSenderStorePacket done [12:10:29]KKMCreateOFDPacket done [12:10:29]NVStorageSaveData kkm_last_timestamp [12:10:29]File name is /storage/kkm_last_timestamp [12:10:29]Write 4 bytes [12:10:29]NVStorageSaveData done [12:10:29]ExternCall_PrintAddStr [12:10:29]wPrintStart [12:10:29]Write to MH i2c: 01 00 00 FB 0F 0A [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 FB 0F 00 00 00 00 00 FF 0F 1F [12:10:29]RasterBufferAndPrint [12:10:29]line Счет N : (1)412768 [12:10:29]line ИНН: 02508201610067 [12:10:29]line Контрольно-Кассовый Чек [12:10:29]line ПРОДАЖА [12:10:29]line ТРК (МРК, ГНК) : 32 [12:10:29]line Товар: 2710124130 [12:10:29]line Аи-92-К-2 [12:10:29]line 20.000 * 0.00 [12:10:29]line = 0.00 [12:10:29]line НДС 12% НСП 1% [12:10:29]line > о реализуемом товаре [12:10:29]line ИТОГО: 0.00 [12:10:29]line НСП 1% : 0.00 [12:10:29]line НДС 12% : 0.00 [12:10:29]line Наличными: 0.00 [12:10:29]line Безнал.: 0.00 [12:10:29]line Место: АЗС № 92 "Партнер Нефть" [12:10:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:10:29]line СНО: Общий режим [12:10:29]line Чек 104 21.02.2025 12:10 [12:10:29]line Смена: 649 ФФД: 1.0 [12:10:29]line ЗНМ: 0300000118 [12:10:29]line РНМ: 0000000000091857 [12:10:29]line Версия ККМ: 001 [12:10:29]line Талоны: Топливные Талоны [12:10:29]line 4160486 [12:10:29]line ФМ: 0000000000871826 [12:10:29]line ФД: 187610 [12:10:29]line ФПД: 118372098330314 [12:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T121028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187610&fm=118372098330314&tin=02508201610067®Number=0000000000091857&sum=0 [12:10:29]written 0, free lines is 4095 [12:10:30]OFD Sender: Processing packet 187610 [packets to send 49, broken 48] [12:10:30]ProducePacketName [12:10:30]name=ofd_packets/00187610 [12:10:30]OFD Sender: To server: pG, [12:10:30]CommunicateWithHost lk.salyk.kg:30040 [12:10:30]ConnectInit lk.salyk.kg [12:10:30]Connected sock=8 [12:10:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7A A9 07 01 E0 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 34 6D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA DC 02 00 35 04 06 00 6B A8 A6 DF 4E CA 85 0F 5E F5 4D 21 44 5E [12:10:30]Write to MH i2c: 01 00 00 25 10 35 [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: 01 [12:10:30]MH_I2C_Read... [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 25 10 00 00 00 00 00 FE 0C 46 [12:10:30]RasterBufferAndPrint [12:10:30]line [12:10:30]line [12:10:30]line [12:10:30]line [12:10:30]line [12:10:30]written 0, free lines is 3332 [12:10:30]MH_Cut [12:10:30]Write to MH i2c: D1 01 00 2C 10 01 0E [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: D1 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: D1 01 00 [12:10:30]MH_I2C_Read... [12:10:30]Read from MH i2c: D1 01 00 2C 10 00 0D [12:10:30]Write to MH i2c: 01 00 00 2D 10 3D [12:10:30]Write i2c OK [12:10:30]MH_I2C_Read... [12:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 06 D6 47 00 E4 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA DC 02 00 F4 03 04 00 82 13 B8 67 B6 04 01 00 00 81 C5 D0 7E 85 A6 25 78 [12:10:30]CommunicateWithHost err = 0 [12:10:30]CheckOFDResponse [12:10:30]1017 (14) - 77093643461234 [12:10:30]1041 (16) - 0000000000871826 [12:10:30]1040 (4) - 187610 [12:10:30]1012 (4) - 21.02.2025 05:47 [12:10:30]1206 (1) - 0 [12:10:30]OFD Sender: Remove packet 187610 [12:10:30]ProducePacketName [12:10:30]name=ofd_packets/00187610 [12:10:30]NVStorageDeleteData [12:10:30]OFD Sender: No OFD packet to send [12:10:31]*** Cut start [12:10:31]*** Partial cut [12:10:31]*** CUTSNS_PIN = 1 [12:10:31]*** CUTSNS_PIN = 0 [12:10:31]*** Brake cut motor [12:10:31]Read from MH i2c: 01 [12:10:31]MH_I2C_Read... [12:10:31]*** Stop cut motor [12:10:31]*** Cut end [12:10:31]Read from MH i2c: 01 07 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 FF 0F 52 [12:10:31]process_action close_receipt done [12:10:31]requested_data is exist [12:10:31]produce_requested_data [12:10:31]requested_item fm.sn is exist - process it [12:10:31]wFMCommunicate request_size=4 [12:10:31]MH_SAM_APDU [12:10:31]CAPDU: 80 11 00 00 [12:10:31]Write to MH i2c: E2 08 00 2E 10 80 11 00 00 00 00 00 00 B8 [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:31]Read from MH i2c: E2 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 17 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 17 00 2E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [12:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:10:31]wFMCommunicate OK [12:10:31]requested_item fd.num is exist - process it [12:10:31]SAM_PROTO_GetFieldsCounters [12:10:31]wFMCommunicate request_size=4 [12:10:31]MH_SAM_APDU [12:10:31]CAPDU: 80 13 00 00 [12:10:31]Write to MH i2c: E2 08 00 2F 10 80 13 00 00 00 00 00 00 BB [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:32]Read from MH i2c: E2 [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: E2 62 00 [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: E2 62 00 2F 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DA DC 02 00 0E 04 04 00 89 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 5C [12:10:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 DA DC 02 00 0E 04 04 00 89 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 [12:10:32]wFMCommunicate OK [12:10:32]SAM_PROTO_GetFieldsCounters done [12:10:32]requested_item shift.num is exist - process it [12:10:32]requested_item shift.opened is exist - process it [12:10:32]req_shift_opened [12:10:32]FM_GetShiftState [12:10:32]SAM_PROTO_GetShiftState [12:10:32]wFMCommunicate request_size=4 [12:10:32]MH_SAM_APDU [12:10:32]CAPDU: 80 13 01 00 [12:10:32]Write to MH i2c: E2 08 00 30 10 80 13 01 00 00 00 00 00 BD [12:10:32]Write i2c OK [12:10:32]MH_I2C_Read... [12:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:32]Read from MH i2c: E2 [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: E2 0E 00 [12:10:32]MH_I2C_Read... [12:10:32]Read from MH i2c: E2 0E 00 30 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 AB [12:10:32]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:10:32]wFMCommunicate OK [12:10:32]SAM_PROTO_GetShiftState done [12:10:32]FM_GetShiftState done [12:10:32]req_shift_opened done [12:10:32]requested_item shift.open_date is exist - process it [12:10:32]req_shift_open_date [12:10:32]req_shift_open_date done [12:10:32]produce_requested_data done [12:10:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187610,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [12:10:32]process_action_free close_receipt [12:10:32]json_value_free [12:10:32]json_value_free done [12:10:32]process_json_proto returns [12:10:32]Send response to host [12:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187610,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [12:10:32]free response buf [12:10:32]execute_script done [12:10:32]execute_script returns [12:10:32]free content buf [12:10:32]Sock 9.Close socket [12:10:32]Sock 9.Thread stoped [12:10:35]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:39:18]ConnectInit Can't connect to host [12:39:19]ConnectInit Can't take IP for lk.salyk.kg [12:39:19]CommunicateWithHost connect error [12:39:19]CommunicateWithHost err = -1 [12:39:19]OFD Sender: Server communicate error [12:39:24]OFD Sender: Processing packet 187611 [packets to send 61, broken 48] [12:39:24]ProducePacketName [12:39:24]name=ofd_packets/00187611 [12:39:24]OFD Sender: To server: pG, [12:39:24]CommunicateWithHost lk.salyk.kg:30040 [12:39:24]ConnectInit lk.salyk.kg [12:39:25]Connected sock=7 [12:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B5 1E 04 01 FE 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 59 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0F 00 00 00 00 07 04 06 00 24 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 B9 6E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB DC 02 00 35 04 06 00 22 E7 4D 6A 29 1C 7B B8 F8 E8 57 0B 5E D0 [12:39:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 33 5B 47 00 1D BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB DC 02 00 F4 03 04 00 48 1A B8 67 B6 04 01 00 00 DD 37 14 54 65 37 05 2F [12:39:25]CommunicateWithHost err = 0 [12:39:25]CheckOFDResponse [12:39:25]1017 (14) - 77093643461234 [12:39:25]1041 (16) - 0000000000871826 [12:39:25]1040 (4) - 187611 [12:39:25]1012 (4) - 21.02.2025 06:16 [12:39:25]1206 (1) - 0 [12:39:25]OFD Sender: Remove packet 187611 [12:39:25]ProducePacketName [12:39:25]name=ofd_packets/00187611 [12:39:25]NVStorageDeleteData [12:39:25]OFD Sender: Processing packet 187612 [packets to send 60, broken 48] [12:39:25]ProducePacketName [12:39:25]name=ofd_packets/00187612 [12:39:25]OFD Sender: To server: pG, [12:39:25]CommunicateWithHost lk.salyk.kg:30040 [12:39:25]ConnectInit lk.salyk.kg [12:39:26]Connected sock=7 [12:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 72 20 04 01 17 0A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0C 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 19 6F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC DC 02 00 35 04 06 00 55 E6 D5 9B AA 17 70 6B E3 4C A7 44 63 ED [12:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3F 80 47 00 B8 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC DC 02 00 F4 03 04 00 49 1A B8 67 B6 04 01 00 00 FF 64 7B 55 48 E2 C9 8B [12:39:26]CommunicateWithHost err = 0 [12:39:26]CheckOFDResponse [12:39:26]1017 (14) - 77093643461234 [12:39:26]1041 (16) - 0000000000871826 [12:39:26]1040 (4) - 187612 [12:39:26]1012 (4) - 21.02.2025 06:16 [12:39:26]1206 (1) - 0 [12:39:26]OFD Sender: Remove packet 187612 [12:39:26]ProducePacketName [12:39:26]name=ofd_packets/00187612 [12:39:26]NVStorageDeleteData [12:39:26]OFD Sender: Processing packet 187613 [packets to send 59, broken 48] [12:39:26]ProducePacketName [12:39:26]name=ofd_packets/00187613 [12:39:26]OFD Sender: To server: pG, [12:39:26]CommunicateWithHost lk.salyk.kg:30040 [12:39:26]ConnectInit lk.salyk.kg [12:39:27]Connected sock=7 [12:39:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 81 32 07 01 AF 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 41 6F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD DC 02 00 35 04 06 00 DF FA 88 0A 72 ED B0 20 D8 00 C4 CD A7 92 [12:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 42 D3 47 00 25 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD DC 02 00 F4 03 04 00 4A 1A B8 67 B6 04 01 00 00 48 8E 4E BA 64 2D B5 B9 [12:39:27]CommunicateWithHost err = 0 [12:39:27]CheckOFDResponse [12:39:27]1017 (14) - 77093643461234 [12:39:27]1041 (16) - 0000000000871826 [12:39:27]1040 (4) - 187613 [12:39:27]1012 (4) - 21.02.2025 06:16 [12:39:27]1206 (1) - 0 [12:39:27]OFD Sender: Remove packet 187613 [12:39:27]ProducePacketName [12:39:27]name=ofd_packets/00187613 [12:39:27]NVStorageDeleteData [12:39:27]OFD Sender: Processing packet 187614 [packets to send 58, broken 48] [12:39:27]ProducePacketName [12:39:27]name=ofd_packets/00187614 [12:39:27]OFD Sender: To server: pG, [12:39:27]CommunicateWithHost lk.salyk.kg:30040 [12:39:27]ConnectInit lk.salyk.kg [12:39:28]Connected sock=7 [12:39:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7F 1D 07 01 65 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 45 6F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE DC 02 00 35 04 06 00 5E BC 92 F8 EB 1D 9D B0 C5 B2 88 0D 76 AF [12:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0A 98 47 00 3C 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE DC 02 00 F4 03 04 00 4B 1A B8 67 B6 04 01 00 00 D5 79 4A 5B 50 0B E7 E9 [12:39:28]CommunicateWithHost err = 0 [12:39:28]CheckOFDResponse [12:39:28]1017 (14) - 77093643461234 [12:39:28]1041 (16) - 0000000000871826 [12:39:28]1040 (4) - 187614 [12:39:28]1012 (4) - 21.02.2025 06:16 [12:39:28]1206 (1) - 0 [12:39:28]OFD Sender: Remove packet 187614 [12:39:28]ProducePacketName [12:39:28]name=ofd_packets/00187614 [12:39:28]NVStorageDeleteData [12:39:28]OFD Sender: Processing packet 187615 [packets to send 57, broken 48] [12:39:28]ProducePacketName [12:39:28]name=ofd_packets/00187615 [12:39:28]OFD Sender: To server: pG, [12:39:28]CommunicateWithHost lk.salyk.kg:30040 [12:39:28]ConnectInit lk.salyk.kg [12:39:29]Connected sock=9 [12:39:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F4 9F 07 01 19 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 5E 6F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF DC 02 00 35 04 06 00 D6 4B 6C 20 10 5C EA 35 7B C2 AE E2 47 5B [12:39:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A7 DE 47 00 36 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 38 32 36 10 04 04 00 DF DC 02 00 F4 03 04 00 4C 1A B8 67 B6 04 01 00 00 74 9E E4 44 8D 6F 5F 2A [12:39:29]CommunicateWithHost err = 0 [12:39:29]CheckOFDResponse [12:39:29]1017 (14) - 77093643461234 [12:39:29]1041 (16) - 0000000000871826 [12:39:29]1040 (4) - 187615 [12:39:29]1012 (4) - 21.02.2025 06:16 [12:39:29]1206 (1) - 0 [12:39:29]OFD Sender: Remove packet 187615 [12:39:29]ProducePacketName [12:39:29]name=ofd_packets/00187615 [12:39:29]NVStorageDeleteData [12:39:29]OFD Sender: Processing packet 187616 [packets to send 56, broken 48] [12:39:29]ProducePacketName [12:39:29]name=ofd_packets/00187616 [12:39:29]OFD Sender: To server: pG, [12:39:29]CommunicateWithHost lk.salyk.kg:30040 [12:39:29]ConnectInit lk.salyk.kg [12:39:29]Connected sock=7 [12:39:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 07 B8 07 01 61 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 78 6F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 DC 02 00 35 04 06 00 09 26 BB E4 77 FD 7A 1F 7D 53 06 F0 3C 56 [12:39:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7E D3 47 00 8F 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 38 32 36 10 04 04 00 E0 DC 02 00 F4 03 04 00 4D 1A B8 67 B6 04 01 00 00 2A 25 E4 E6 D5 22 DA 55 [12:39:30]CommunicateWithHost err = 0 [12:39:30]CheckOFDResponse [12:39:30]1017 (14) - 77093643461234 [12:39:30]1041 (16) - 0000000000871826 [12:39:30]1040 (4) - 187616 [12:39:30]1012 (4) - 21.02.2025 06:16 [12:39:30]1206 (1) - 0 [12:39:30]OFD Sender: Remove packet 187616 [12:39:30]ProducePacketName [12:39:30]name=ofd_packets/00187616 [12:39:30]NVStorageDeleteData [12:39:30]OFD Sender: Processing packet 187617 [packets to send 55, broken 48] [12:39:30]ProducePacketName [12:39:30]name=ofd_packets/00187617 [12:39:30]OFD Sender: To server: pG, [12:39:30]CommunicateWithHost lk.salyk.kg:30040 [12:39:30]ConnectInit lk.salyk.kg [12:39:30]Connected sock=7 [12:39:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 EA 07 01 8B 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 7F 6F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 DC 02 00 35 04 06 00 6F 44 2B 57 AE 94 EA 77 55 B8 F7 CC 9D E2 [12:39:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 45 36 47 00 8F 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 DC 02 00 F4 03 04 00 4E 1A B8 67 B6 04 01 00 00 03 15 9A F3 86 4C 47 E8 [12:39:31]CommunicateWithHost err = 0 [12:39:31]CheckOFDResponse [12:39:31]1017 (14) - 77093643461234 [12:39:31]1041 (16) - 0000000000871826 [12:39:31]1040 (4) - 187617 [12:39:31]1012 (4) - 21.02.2025 06:16 [12:39:31]1206 (1) - 0 [12:39:31]OFD Sender: Remove packet 187617 [12:39:31]ProducePacketName [12:39:31]name=ofd_packets/00187617 [12:39:31]NVStorageDeleteData [12:39:31]OFD Sender: Processing packet 187618 [packets to send 54, broken 48] [12:39:31]ProducePacketName [12:39:31]name=ofd_packets/00187618 [12:39:31]OFD Sender: To server: pG, [12:39:31]CommunicateWithHost lk.salyk.kg:30040 [12:39:31]ConnectInit lk.salyk.kg [12:39:31]Connected sock=7 [12:39:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 60 9E 07 01 1A 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 F8 6F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 DC 02 00 35 04 06 00 64 27 6E E3 64 DE 2C A6 A7 42 5A 79 4A EE [12:39:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 61 65 47 00 AF 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 38 32 36 10 04 04 00 E2 DC 02 00 F4 03 04 00 4F 1A B8 67 B6 04 01 00 00 31 52 FB AF 73 1D 32 32 [12:39:32]CommunicateWithHost err = 0 [12:39:32]CheckOFDResponse [12:39:32]1017 (14) - 77093643461234 [12:39:32]1041 (16) - 0000000000871826 [12:39:32]1040 (4) - 187618 [12:39:32]1012 (4) - 21.02.2025 06:16 [12:39:32]1206 (1) - 0 [12:39:32]OFD Sender: Remove packet 187618 [12:39:32]ProducePacketName [12:39:32]name=ofd_packets/00187618 [12:39:32]NVStorageDeleteData [12:39:32]OFD Sender: Processing packet 187619 [packets to send 53, broken 48] [12:39:32]ProducePacketName [12:39:32]name=ofd_packets/00187619 [12:39:32]OFD Sender: To server: pG, [12:39:32]CommunicateWithHost lk.salyk.kg:30040 [12:39:32]ConnectInit lk.salyk.kg [12:39:32]Connected sock=7 [12:39:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B6 DE 07 01 66 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B9 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B9 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 0A 70 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 DC 02 00 35 04 06 00 65 5B FA A2 50 41 BC 1A FB A5 D8 D7 E4 5F [12:39:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 98 27 47 00 C0 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 DC 02 00 F4 03 04 00 50 1A B8 67 B6 04 01 00 00 20 69 DB 82 98 FC B8 FE [12:39:32]CommunicateWithHost err = 0 [12:39:32]CheckOFDResponse [12:39:32]1017 (14) - 77093643461234 [12:39:32]1041 (16) - 0000000000871826 [12:39:32]1040 (4) - 187619 [12:39:32]1012 (4) - 21.02.2025 06:16 [12:39:32]1206 (1) - 0 [12:39:32]OFD Sender: Remove packet 187619 [12:39:32]ProducePacketName [12:39:32]name=ofd_packets/00187619 [12:39:32]NVStorageDeleteData [12:39:33]OFD Sender: Processing packet 187620 [packets to send 52, broken 48] [12:39:33]ProducePacketName [12:39:33]name=ofd_packets/00187620 [12:39:33]OFD Sender: To server: pG, [12:39:33]CommunicateWithHost lk.salyk.kg:30040 [12:39:33]ConnectInit lk.salyk.kg [12:39:33]Connected sock=7 [12:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 17 AE 07 01 31 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 39 70 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 DC 02 00 35 04 06 00 DF 21 9E 95 A6 89 87 6E BD B1 FF F1 34 A1 [12:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 69 9E 47 00 CD 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 DC 02 00 F4 03 04 00 51 1A B8 67 B6 04 01 00 00 CE D8 B6 9F EB 30 CB 66 [12:39:33]CommunicateWithHost err = 0 [12:39:33]CheckOFDResponse [12:39:33]1017 (14) - 77093643461234 [12:39:33]1041 (16) - 0000000000871826 [12:39:33]1040 (4) - 187620 [12:39:33]1012 (4) - 21.02.2025 06:16 [12:39:33]1206 (1) - 0 [12:39:33]OFD Sender: Remove packet 187620 [12:39:33]ProducePacketName [12:39:33]name=ofd_packets/00187620 [12:39:33]NVStorageDeleteData [12:39:34]OFD Sender: Processing packet 187621 [packets to send 51, broken 48] [12:39:34]ProducePacketName [12:39:34]name=ofd_packets/00187621 [12:39:34]OFD Sender: To server: pG, [12:39:34]CommunicateWithHost lk.salyk.kg:30040 [12:39:34]ConnectInit lk.salyk.kg [12:39:34]Connected sock=9 [12:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E2 3B 07 01 0B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 F7 71 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 DC 02 00 35 04 06 00 90 43 AC 3A DF E3 20 CC 51 DF 33 8A 66 E3 [12:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B2 E6 47 00 36 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 38 32 36 10 04 04 00 E5 DC 02 00 F4 03 04 00 52 1A B8 67 B6 04 01 00 00 F7 33 99 8B 0C 9E 5F 75 [12:39:34]CommunicateWithHost err = 0 [12:39:34]CheckOFDResponse [12:39:34]1017 (14) - 77093643461234 [12:39:34]1041 (16) - 0000000000871826 [12:39:34]1040 (4) - 187621 [12:39:34]1012 (4) - 21.02.2025 06:16 [12:39:34]1206 (1) - 0 [12:39:34]OFD Sender: Remove packet 187621 [12:39:34]ProducePacketName [12:39:34]name=ofd_packets/00187621 [12:39:34]NVStorageDeleteData [12:39:35]OFD Sender: Processing packet 187622 [packets to send 50, broken 48] [12:39:35]ProducePacketName [12:39:35]name=ofd_packets/00187622 [12:39:35]OFD Sender: To server: pG, [12:39:35]CommunicateWithHost lk.salyk.kg:30040 [12:39:35]ConnectInit lk.salyk.kg [12:39:35]Connected sock=7 [12:39:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B4 CB 04 01 A0 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 B5 72 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 DC 02 00 35 04 06 00 7C 27 88 0E C8 D1 41 14 A6 2A 46 78 35 3F [12:39:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B9 5A 47 00 9D 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 DC 02 00 F4 03 04 00 53 1A B8 67 B6 04 01 00 00 47 FE 6C E4 13 D4 BB E0 [12:39:35]CommunicateWithHost err = 0 [12:39:35]CheckOFDResponse [12:39:35]1017 (14) - 77093643461234 [12:39:35]1041 (16) - 0000000000871826 [12:39:35]1040 (4) - 187622 [12:39:35]1012 (4) - 21.02.2025 06:16 [12:39:35]1206 (1) - 0 [12:39:35]OFD Sender: Remove packet 187622 [12:39:35]ProducePacketName [12:39:35]name=ofd_packets/00187622 [12:39:35]NVStorageDeleteData [12:39:36]OFD Sender: Processing packet 187623 [packets to send 49, broken 48] [12:39:36]ProducePacketName [12:39:36]name=ofd_packets/00187623 [12:39:36]OFD Sender: To server: pG, [12:39:36]CommunicateWithHost lk.salyk.kg:30040 [12:39:36]ConnectInit lk.salyk.kg [12:39:36]Connected sock=7 [12:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F6 C7 04 01 C3 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 8C 73 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 DC 02 00 35 04 06 00 4B E9 0E FF 5B 43 0F B6 94 C6 39 DA ED 5E [12:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FB CC 47 00 E4 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E7 DC 02 00 F4 03 04 00 54 1A B8 67 B6 04 01 00 00 7B 80 94 D4 77 4F 35 CF [12:39:36]CommunicateWithHost err = 0 [12:39:36]CheckOFDResponse [12:39:36]1017 (14) - 77093643461234 [12:39:36]1041 (16) - 0000000000871826 [12:39:36]1040 (4) - 187623 [12:39:36]1012 (4) - 21.02.2025 06:16 [12:39:36]1206 (1) - 0 [12:39:36]OFD Sender: Remove packet 187623 [12:39:36]ProducePacketName [12:39:36]name=ofd_packets/00187623 [12:39:36]NVStorageDeleteData [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:46]accept exits with 11 [12:40:46]New connection [12:40:46]New thread 3067481444 created [12:40:46]Thread 3067624804 joined [12:40:46]Waiting for new connection... [12:40:46] Sock 11.Parse request [12:40:46]Sock 11.Check first char [12:40:46]Sock 11.First char is OK [12:40:46]request: POST /json_proto HTTP/1.0 [12:40:46]Method: POST [12:40:46]URL: /json_proto [12:40:46]Method is POST - this is cgi request [12:40:46]url: /json_proto [12:40:46]query_string will be loaded in cgi processing [12:40:46]execute_cgi json_proto POST (null) [12:40:46]execute_cgi path=json_proto method=POST [12:40:46]POST find Content-Length [12:40:46]Host: 172.17.46.131:8080 [12:40:46]Content-Length: 800 [12:40:46]Content-Type: application/json [12:40:46] [12:40:46]POST finish read [12:40:46]Found Content-Length = 800 [12:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.590, "sum" : 230.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 230.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:46]execute_script... [12:40:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.590, "sum" : 230.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 230.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:46]POST & json_proto [12:40:46]process_json_proto [12:40:46]json parsed OK: [12:40:46]protocol is kg_v1.0 [12:40:46]action value=close_receipt [12:40:46]process_action close_receipt [12:40:46]cmd_close_receipt [12:40:46]MH_GetDate [12:40:46]Write to MH i2c: F0 00 00 FE 00 ED [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: F0 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: F0 09 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: F0 09 00 FE 00 00 4E 74 B8 67 7E 41 4F 65 4A [12:40:46]GetLastDocTimeStamp 1740141452 [12:40:46]current date 1740141646 [12:40:46]FM_GetShiftState [12:40:46]SAM_PROTO_GetShiftState [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 13 01 00 [12:40:46]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0E 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6A [12:40:46]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:40:46]wFMCommunicate OK [12:40:46]SAM_PROTO_GetShiftState done [12:40:46]FM_GetShiftState done [12:40:46]opened in 1740098043 [12:40:46]opened+sec_in_day 1740184443 [12:40:46]quantity*price = 23047 [12:40:46]sum+1 = 23049 [12:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.48 НСП 1% : 2.04 НДС 12% : 24.48 Наличными: 0.00 Безнал.: 230.48 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 118 21.02.2025 12:40 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187624 ФПД: 165466205455067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T124046&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187624&fm=165466205455067&tin=02508201610067®Number=0000000000091857&sum=23048 [12:40:47]StoreToDocumentArchive [12:40:47]shift 649 fd 187624 [12:40:47]save to /storage/0649/doc_00187624 [12:40:47]save last doc name /storage/0649/doc_00187624 to /storage/kkm_last_doc_name [12:40:47]save OK [12:40:47]Clear old archive folders... [12:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:47]tlvbuf is 00B9BD40 [12:40:47]SAM_PROTO_ClearQueue [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 09 00 00 [12:40:47]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [12:40:47]RAPDU: 90 00 [12:40:47]wFMCommunicate OK [12:40:47]SAM_PROTO_ClearQueue done [12:40:47]KKMCreateOFDPacket [12:40:47]OFDProtocolAddRootSTLVToBuf [12:40:47]FM_MakeSignedData [12:40:47]FM_MakeSignedData [12:40:47]SAM_PROTO_SignData [12:40:47]wFMCommunicate request_size=4 [12:40:47]MH_SAM_APDU [12:40:47]CAPDU: 80 0D 01 02 [12:40:47]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:47]Read from MH i2c: E2 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 [12:40:47]MH_I2C_Read... [12:40:47]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [12:40:47]RAPDU: 90 00 [12:40:47]wFMCommunicate OK [12:40:47]wFMCommunicate request_size=255 [12:40:47]MH_SAM_APDU [12: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 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 08 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 5A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4E 74 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 DC 02 00 35 04 06 00 96 [12:40:47]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 08 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 5A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4E 74 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 DC 02 00 35 04 06 00 96 00 00 9D [12:40:47]Write i2c OK [12:40:47]MH_I2C_Read... [12:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:48]Read from MH i2c: E2 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 03 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [12:40:48]RAPDU: 90 00 [12:40:48]wFMCommunicate OK [12:40:48]wFMCommunicate request_size=10 [12:40:48]MH_SAM_APDU [12:40:48]CAPDU: 80 0D 02 02 05 7D 9A 66 02 DB [12:40:48]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 7D 9A 66 02 DB 00 00 EE [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:48]Read from MH i2c: E2 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 03 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [12:40:48]RAPDU: 90 00 [12:40:48]wFMCommunicate OK [12:40:48]wFMCommunicate request_size=4 [12:40:48]MH_SAM_APDU [12:40:48]CAPDU: 80 0D 03 02 [12:40:48]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:48]Read from MH i2c: E2 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 0B 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 0B 00 10 01 00 31 39 14 6F C0 C6 9C FC 90 00 98 [12:40:48]RAPDU: 31 39 14 6F C0 C6 9C FC 90 00 [12:40:48]wFMCommunicate OK [12:40:48]SAM_PROTO_SignData done [12:40:48]FM_MakeSignedData done [12:40:48]CreateOFDProtocolMessage [12:40:48]wFMCommunicate request_size=4 [12:40:48]MH_SAM_APDU [12:40:48]CAPDU: 80 11 00 00 [12:40:48]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:48]Read from MH i2c: E2 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 17 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [12:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:40:48]wFMCommunicate OK [12:40:48]CreateOFDProtocolMessage done [12:40:48]OFDSenderStorePacket 187624 [12:40:48]StoreOFDPacket docnum=187624 [12:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 31 63 07 01 5B 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 08 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 5A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4E 74 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 DC 02 00 35 04 06 00 96 7D 9A 66 02 DB 31 39 14 6F C0 C6 9C FC [12:40:48]CheckFolder [12:40:48]dirname=/storage/ofd_packets [12:40:48]CheckFolder done [12:40:48]ProducePacketName [12:40:48]name=ofd_packets/00187624 [12:40:48]NVStorageSaveData ofd_packets/00187624 [12:40:48]File name is /storage/ofd_packets/00187624 [12:40:48]Write 301 bytes [12:40:48]NVStorageSaveData done [12:40:48]OFDSenderStorePacket done [12:40:48]KKMCreateOFDPacket done [12:40:48]NVStorageSaveData kkm_last_timestamp [12:40:48]File name is /storage/kkm_last_timestamp [12:40:48]Write 4 bytes [12:40:48]NVStorageSaveData done [12:40:48]ExternCall_PrintAddStr [12:40:48]wPrintStart [12:40:48]Write to MH i2c: 01 00 00 12 01 13 [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 07 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [12:40:48]RasterBufferAndPrint [12:40:48]line Счет N : (1)412784 [12:40:48]line ИНН: 02508201610067 [12:40:48]line Контрольно-Кассовый Чек [12:40:48]line ПРОДАЖА [12:40:48]line ТРК (МРК, ГНК) : 32 [12:40:48]line Товар: 2710124130 [12:40:48]line Аи-92-К-2 [12:40:48]line 3.590 * 64.20 [12:40:48]line = 230.48 [12:40:48]line НДС 12% НСП 1% [12:40:48]line > о реализуемом товаре [12:40:48]line ИТОГО: 230.48 [12:40:48]line НСП 1% : 2.04 [12:40:48]line НДС 12% : 24.48 [12:40:48]line Наличными: 0.00 [12:40:48]line Безнал.: 230.48 [12:40:48]line Место: АЗС № 92 "Партнер Нефть" [12:40:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:40:48]line СНО: Общий режим [12:40:48]line Чек 118 21.02.2025 12:40 [12:40:48]line Смена: 649 ФФД: 1.0 [12:40:48]line ЗНМ: 0300000118 [12:40:48]line РНМ: 0000000000091857 [12:40:48]line Версия ККМ: 001 [12:40:48]line Платежная система: O! деньги [12:40:48]line ФМ: 0000000000871826 [12:40:48]line ФД: 187624 [12:40:48]line ФПД: 165466205455067 [12:40:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T124046&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187624&fm=165466205455067&tin=02508201610067®Number=0000000000091857&sum=23048 [12:40:48]written 0, free lines is 4095 [12:40:48]OFD Sender: Processing packet 187624 [packets to send 49, broken 48] [12:40:48]ProducePacketName [12:40:48]name=ofd_packets/00187624 [12:40:48]OFD Sender: To server: pG, [12:40:48]CommunicateWithHost lk.salyk.kg:30040 [12:40:48]ConnectInit lk.salyk.kg [12:40:48]Write to MH i2c: 01 00 00 3C 01 3D [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 07 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 01 0D 52 [12:40:48]RasterBufferAndPrint [12:40:48]line [12:40:48]line [12:40:48]line [12:40:48]line [12:40:48]line [12:40:48]written 0, free lines is 3335 [12:40:48]MH_Cut [12:40:48]Write to MH i2c: D1 01 00 43 01 01 16 [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: D1 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: D1 01 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: D1 01 00 43 01 00 15 [12:40:48]Write to MH i2c: 01 00 00 44 01 45 [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Connected sock=9 [12: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 38 32 36 0F 01 00 00 31 63 07 01 5B 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 06 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 08 5A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 08 5A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 4E 74 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E8 DC 02 00 35 04 06 00 96 7D 9A 66 02 DB 31 39 14 6F C0 C6 9C FC [12:40:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FC FB 47 00 5E 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 38 32 36 10 04 04 00 E8 DC 02 00 F4 03 04 00 9C 1A B8 67 B6 04 01 00 00 30 1A A8 81 A8 91 12 39 [12:40:49]CommunicateWithHost err = 0 [12:40:49]CheckOFDResponse [12:40:49]1017 (14) - 77093643461234 [12:40:49]1041 (16) - 0000000000871826 [12:40:49]1040 (4) - 187624 [12:40:49]1012 (4) - 21.02.2025 06:18 [12:40:49]1206 (1) - 0 [12:40:49]OFD Sender: Remove packet 187624 [12:40:49]ProducePacketName [12:40:49]name=ofd_packets/00187624 [12:40:49]NVStorageDeleteData [12:40:49]*** Cut start [12:40:49]*** Partial cut [12:40:49]*** CUTSNS_PIN = 1 [12:40:49]*** CUTSNS_PIN = 0 [12:40:49]OFD Sender: No OFD packet to send [12:40:49]*** Brake cut motor [12:40:50]Read from MH i2c: 01 [12:40:50]MH_I2C_Read... [12:40:50]*** Stop cut motor [12:40:50]*** Cut end [12:40:50]Read from MH i2c: 01 07 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [12:40:50]process_action close_receipt done [12:40:50]requested_data is exist [12:40:50]produce_requested_data [12:40:50]requested_item fm.sn is exist - process it [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 11 00 00 [12:40:50]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 17 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [12:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:40:50]wFMCommunicate OK [12:40:50]requested_item fd.num is exist - process it [12:40:50]SAM_PROTO_GetFieldsCounters [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 13 00 00 [12:40:50]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 62 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E8 DC 02 00 0E 04 04 00 89 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 9C [12: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E8 DC 02 00 0E 04 04 00 89 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 [12:40:50]wFMCommunicate OK [12:40:50]SAM_PROTO_GetFieldsCounters done [12:40:50]requested_item shift.num is exist - process it [12:40:50]requested_item shift.opened is exist - process it [12:40:50]req_shift_opened [12:40:50]FM_GetShiftState [12:40:50]SAM_PROTO_GetShiftState [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 13 01 00 [12:40:50]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 0E 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B3 [12:40:50]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:40:50]wFMCommunicate OK [12:40:50]SAM_PROTO_GetShiftState done [12:40:50]FM_GetShiftState done [12:40:50]req_shift_opened done [12:40:50]requested_item shift.open_date is exist - process it [12:40:50]req_shift_open_date [12:40:50]req_shift_open_date done [12:40:50]produce_requested_data done [12:40:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187624,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [12:40:50]process_action_free close_receipt [12:40:50]json_value_free [12:40:50]json_value_free done [12:40:50]process_json_proto returns [12:40:50]Send response to host [12:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187624,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [12:40:50]free response buf [12:40:50]execute_script done [12:40:50]execute_script returns [12:40:50]free content buf [12:40:50]Sock 11.Close socket [12:40:50]Sock 11.Thread stoped [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:40]accept exits with 7 [12:48:40]New connection [12:48:40]New thread 3067624804 created [12:48:40]Thread 3067481444 joined [12:48:40]Waiting for new connection... [12:48:40] Sock 7.Parse request [12:48:40]Sock 7.Check first char [12:48:40]Sock 7.First char is OK [12:48:40]request: POST /json_proto HTTP/1.0 [12:48:40]Method: POST [12:48:40]URL: /json_proto [12:48:40]Method is POST - this is cgi request [12:48:40]url: /json_proto [12:48:40]query_string will be loaded in cgi processing [12:48:40]execute_cgi json_proto POST (null) [12:48:40]execute_cgi path=json_proto method=POST [12:48:40]POST find Content-Length [12:48:40]Host: 172.17.46.131:8080 [12:48:40]Content-Length: 673 [12:48:40]Content-Type: application/json [12:48:40] [12:48:40]POST finish read [12:48:40]Found Content-Length = 673 [12:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:40]execute_script... [12:48: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)412785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:40]POST & json_proto [12:48:40]process_json_proto [12:48:40]json parsed OK: [12:48:40]protocol is kg_v1.0 [12:48:40]action value=close_receipt [12:48:40]process_action close_receipt [12:48:40]cmd_close_receipt [12:48:40]MH_GetDate [12:48:40]Write to MH i2c: F0 00 00 48 01 38 [12:48:40]Write i2c OK [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: F0 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: F0 09 00 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: F0 09 00 48 01 00 28 76 B8 67 7E 41 4F 65 71 [12:48:40]GetLastDocTimeStamp 1740141646 [12:48:40]current date 1740142120 [12:48:40]FM_GetShiftState [12:48:40]SAM_PROTO_GetShiftState [12:48:40]wFMCommunicate request_size=4 [12:48:40]MH_SAM_APDU [12:48:40]CAPDU: 80 13 01 00 [12:48:40]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [12:48:40]Write i2c OK [12:48:40]MH_I2C_Read... [12:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:40]Read from MH i2c: E2 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: E2 0E 00 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B5 [12:48:40]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:48:40]wFMCommunicate OK [12:48:40]SAM_PROTO_GetShiftState done [12:48:40]FM_GetShiftState done [12:48:40]opened in 1740098043 [12:48:40]opened+sec_in_day 1740184443 [12:48:40]quantity*price = 40002 [12:48:40]sum+1 = 40004 [12:48:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 119 21.02.2025 12:48 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187625 ФПД: 154398358663704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T124840&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187625&fm=154398358663704&tin=02508201610067®Number=0000000000091857&sum=40000 [12:48:41]StoreToDocumentArchive [12:48:41]shift 649 fd 187625 [12:48:41]save to /storage/0649/doc_00187625 [12:48:41]save last doc name /storage/0649/doc_00187625 to /storage/kkm_last_doc_name [12:48:41]save OK [12:48:41]Clear old archive folders... [12:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:48:41]tlvbuf is 00BB8A70 [12:48:41]SAM_PROTO_ClearQueue [12:48:41]wFMCommunicate request_size=4 [12:48:41]MH_SAM_APDU [12:48:41]CAPDU: 80 09 00 00 [12:48:41]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [12:48:41]Write i2c OK [12:48:41]MH_I2C_Read... [12:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:41]Read from MH i2c: E2 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 03 00 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [12:48:41]RAPDU: 90 00 [12:48:41]wFMCommunicate OK [12:48:41]SAM_PROTO_ClearQueue done [12:48:41]KKMCreateOFDPacket [12:48:41]OFDProtocolAddRootSTLVToBuf [12:48:41]FM_MakeSignedData [12:48:41]FM_MakeSignedData [12:48:41]SAM_PROTO_SignData [12:48:41]wFMCommunicate request_size=4 [12:48:41]MH_SAM_APDU [12:48:41]CAPDU: 80 0D 01 02 [12:48:41]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [12:48:41]Write i2c OK [12:48:41]MH_I2C_Read... [12:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:41]Read from MH i2c: E2 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 03 00 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [12:48:41]RAPDU: 90 00 [12:48:41]wFMCommunicate OK [12:48:41]wFMCommunicate request_size=255 [12:48:41]MH_SAM_APDU [12:48: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 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 00 00 00 F4 03 04 00 28 76 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DC 02 00 35 04 06 00 8C 6C AB 52 [12:48:41]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 00 00 00 F4 03 04 00 28 76 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DC 02 00 35 04 06 00 8C 6C AB 52 00 00 63 [12:48:41]Write i2c OK [12:48:41]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [12:48:42]RAPDU: 90 00 [12:48:42]wFMCommunicate OK [12:48:42]wFMCommunicate request_size=7 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 0D 02 02 02 72 18 [12:48:42]Write to MH i2c: E2 0A 00 59 01 80 0D 02 02 02 00 72 18 00 00 62 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [12:48:42]RAPDU: 90 00 [12:48:42]wFMCommunicate OK [12:48:42]wFMCommunicate request_size=4 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 0D 03 02 [12:48:42]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 0B 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 0B 00 5A 01 00 89 AB 85 43 3A 14 57 E8 90 00 60 [12:48:42]RAPDU: 89 AB 85 43 3A 14 57 E8 90 00 [12:48:42]wFMCommunicate OK [12:48:42]SAM_PROTO_SignData done [12:48:42]FM_MakeSignedData done [12:48:42]CreateOFDProtocolMessage [12:48:42]wFMCommunicate request_size=4 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 11 00 00 [12:48:42]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 17 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [12:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:48:42]wFMCommunicate OK [12:48:42]CreateOFDProtocolMessage done [12:48:42]OFDSenderStorePacket 187625 [12:48:42]StoreOFDPacket docnum=187625 [12:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 34 21 04 01 28 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 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 00 00 00 F4 03 04 00 28 76 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DC 02 00 35 04 06 00 8C 6C AB 52 72 18 89 AB 85 43 3A 14 57 E8 [12:48:42]CheckFolder [12:48:42]dirname=/storage/ofd_packets [12:48:42]CheckFolder done [12:48:42]ProducePacketName [12:48:42]name=ofd_packets/00187625 [12:48:42]NVStorageSaveData ofd_packets/00187625 [12:48:42]File name is /storage/ofd_packets/00187625 [12:48:42]Write 298 bytes [12:48:42]NVStorageSaveData done [12:48:42]OFDSenderStorePacket done [12:48:42]KKMCreateOFDPacket done [12:48:42]NVStorageSaveData kkm_last_timestamp [12:48:42]File name is /storage/kkm_last_timestamp [12:48:42]Write 4 bytes [12:48:42]NVStorageSaveData done [12:48:42]ExternCall_PrintAddStr [12:48:42]wPrintStart [12:48:42]Write to MH i2c: 01 00 00 5C 01 5D [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: 01 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: 01 07 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [12:48:42]RasterBufferAndPrint [12:48:42]line Счет N : (1)412785 [12:48:42]line ИНН: 02508201610067 [12:48:42]line Контрольно-Кассовый Чек [12:48:42]line ПРОДАЖА [12:48:42]line ТРК (МРК, ГНК) : 5 [12:48:42]line Товар: 2710194210 [12:48:42]line ДТ-К-5 [12:48:42]line 5.510 * 72.60 [12:48:42]line = 400.03 [12:48:42]line НДС 12% НСП 1% [12:48:42]line > о реализуемом товаре [12:48:42]line ОКРУГЛЕНИЕ: -0.03 [12:48:42]line ИТОГО: 400.00 [12:48:42]line Внесено: 400.00 [12:48:42]line СДАЧА: 0.00 [12:48:42]line НСП 1% : 3.54 [12:48:42]line НДС 12% : 42.48 [12:48:42]line Наличными: 400.00 [12:48:42]line Безнал.: 0.00 [12:48:42]line Место: АЗС № 92 "Партнер Нефть" [12:48:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:48:42]line СНО: Общий режим [12:48:42]line Чек 119 21.02.2025 12:48 [12:48:42]line Смена: 649 ФФД: 1.0 [12:48:42]line ЗНМ: 0300000118 [12:48:42]line РНМ: 0000000000091857 [12:48:42]line Версия ККМ: 001 [12:48:42]line ФМ: 0000000000871826 [12:48:42]line ФД: 187625 [12:48:42]line ФПД: 154398358663704 [12:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T124840&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187625&fm=154398358663704&tin=02508201610067®Number=0000000000091857&sum=40000 [12:48:42]OFD Sender: Processing packet 187625 [packets to send 49, broken 48] [12:48:42]ProducePacketName [12:48:42]name=ofd_packets/00187625 [12:48:42]OFD Sender: To server: pG, [12:48:42]CommunicateWithHost lk.salyk.kg:30040 [12:48:42]ConnectInit lk.salyk.kg [12:48:42]written 0, free lines is 4095 [12:48:42]Connected sock=9 [12:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 34 21 04 01 28 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 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 77 00 00 00 F4 03 04 00 28 76 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DC 02 00 35 04 06 00 8C 6C AB 52 72 18 89 AB 85 43 3A 14 57 E8 [12:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D5 FC 47 00 31 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E9 DC 02 00 F4 03 04 00 76 1C B8 67 B6 04 01 00 00 57 5D BF 7B 77 51 6A F0 [12:48:43]CommunicateWithHost err = 0 [12:48:43]CheckOFDResponse [12:48:43]1017 (14) - 77093643461234 [12:48:43]1041 (16) - 0000000000871826 [12:48:43]1040 (4) - 187625 [12:48:43]1012 (4) - 21.02.2025 06:25 [12:48:43]1206 (1) - 0 [12:48:43]OFD Sender: Remove packet 187625 [12:48:43]ProducePacketName [12:48:43]name=ofd_packets/00187625 [12:48:43]NVStorageDeleteData [12:48:43]Write to MH i2c: 01 00 00 87 01 88 [12:48:43]Write i2c OK [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: 01 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: 01 07 00 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 FF 0C 9A [12:48:43]RasterBufferAndPrint [12:48:43]line [12:48:43]line [12:48:43]line [12:48:43]line [12:48:43]line [12:48:43]written 0, free lines is 3333 [12:48:43]MH_Cut [12:48:43]Write to MH i2c: D1 01 00 8E 01 01 61 [12:48:43]Write i2c OK [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: D1 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: D1 01 00 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: D1 01 00 8E 01 00 60 [12:48:43]Write to MH i2c: 01 00 00 8F 01 90 [12:48:43]Write i2c OK [12:48:43]MH_I2C_Read... [12:48:43]OFD Sender: No OFD packet to send [12:48:43]*** Cut start [12:48:43]*** Partial cut [12:48:43]*** CUTSNS_PIN = 1 [12:48:43]*** CUTSNS_PIN = 0 [12:48:44]*** Brake cut motor [12:48:44]Read from MH i2c: 01 [12:48:44]MH_I2C_Read... [12:48:44]*** Stop cut motor [12:48:44]*** Cut end [12:48:44]Read from MH i2c: 01 07 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [12:48:44]process_action close_receipt done [12:48:44]requested_data is exist [12:48:44]produce_requested_data [12:48:44]requested_item fm.sn is exist - process it [12:48:44]wFMCommunicate request_size=4 [12:48:44]MH_SAM_APDU [12:48:44]CAPDU: 80 11 00 00 [12:48:44]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [12:48:44]Write i2c OK [12:48:44]MH_I2C_Read... [12:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:44]Read from MH i2c: E2 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 17 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [12:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:48:44]wFMCommunicate OK [12:48:44]requested_item fd.num is exist - process it [12:48:44]SAM_PROTO_GetFieldsCounters [12:48:44]wFMCommunicate request_size=4 [12:48:44]MH_SAM_APDU [12:48:44]CAPDU: 80 13 00 00 [12:48:44]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [12:48:44]Write i2c OK [12:48:44]MH_I2C_Read... [12:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:44]Read from MH i2c: E2 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 62 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E9 DC 02 00 0E 04 04 00 89 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 EB [12:48:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 E9 DC 02 00 0E 04 04 00 89 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 [12:48:44]wFMCommunicate OK [12:48:44]SAM_PROTO_GetFieldsCounters done [12:48:44]requested_item shift.num is exist - process it [12:48:44]requested_item shift.opened is exist - process it [12:48:44]req_shift_opened [12:48:44]FM_GetShiftState [12:48:44]SAM_PROTO_GetShiftState [12:48:44]wFMCommunicate request_size=4 [12:48:44]MH_SAM_APDU [12:48:44]CAPDU: 80 13 01 00 [12:48:44]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [12:48:44]Write i2c OK [12:48:44]MH_I2C_Read... [12:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:44]Read from MH i2c: E2 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 0E 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FE [12:48:44]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:48:44]wFMCommunicate OK [12:48:44]SAM_PROTO_GetShiftState done [12:48:44]FM_GetShiftState done [12:48:44]req_shift_opened done [12:48:44]requested_item shift.open_date is exist - process it [12:48:44]req_shift_open_date [12:48:44]req_shift_open_date done [12:48:44]produce_requested_data done [12:48:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187625,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [12:48:44]process_action_free close_receipt [12:48:44]json_value_free [12:48:44]json_value_free done [12:48:44]process_json_proto returns [12:48:44]Send response to host [12:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187625,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [12:48:44]free response buf [12:48:44]execute_script done [12:48:44]execute_script returns [12:48:44]free content buf [12:48:44]Sock 7.Close socket [12:48:44]Sock 7.Thread stoped [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:11]accept exits with 10 [12:50:11]New connection [12:50:11]New thread 3067481444 created [12:50:11]Thread 3067624804 joined [12:50:11]Waiting for new connection... [12:50:11] Sock 10.Parse request [12:50:11]Sock 10.Check first char [12:50:11]Sock 10.First char is OK [12:50:11]request: POST /json_proto HTTP/1.0 [12:50:11]Method: POST [12:50:11]URL: /json_proto [12:50:11]Method is POST - this is cgi request [12:50:11]url: /json_proto [12:50:11]query_string will be loaded in cgi processing [12:50:11]execute_cgi json_proto POST (null) [12:50:11]execute_cgi path=json_proto method=POST [12:50:11]POST find Content-Length [12:50:11]Host: 172.17.46.131:8080 [12:50:11]Content-Length: 677 [12:50:11]Content-Type: application/json [12:50:11] [12:50:11]POST finish read [12:50:11]Found Content-Length = 677 [12:50:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:11]execute_script... [12:50: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)412786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:11]POST & json_proto [12:50:11]process_json_proto [12:50:11]json parsed OK: [12:50:11]protocol is kg_v1.0 [12:50:11]action value=close_receipt [12:50:11]process_action close_receipt [12:50:11]cmd_close_receipt [12:50:11]MH_GetDate [12:50:11]Write to MH i2c: F0 00 00 93 01 83 [12:50:11]Write i2c OK [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: F0 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: F0 09 00 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: F0 09 00 93 01 00 83 76 B8 67 7E 41 4F 65 17 [12:50:11]GetLastDocTimeStamp 1740142120 [12:50:11]current date 1740142211 [12:50:11]FM_GetShiftState [12:50:11]SAM_PROTO_GetShiftState [12:50:11]wFMCommunicate request_size=4 [12:50:11]MH_SAM_APDU [12:50:11]CAPDU: 80 13 01 00 [12:50:11]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [12:50:11]Write i2c OK [12:50:11]MH_I2C_Read... [12:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:11]Read from MH i2c: E2 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: E2 0E 00 [12:50:11]MH_I2C_Read... [12:50:11]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 00 [12:50:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:50:11]wFMCommunicate OK [12:50:11]SAM_PROTO_GetShiftState done [12:50:11]FM_GetShiftState done [12:50:11]opened in 1740098043 [12:50:11]opened+sec_in_day 1740184443 [12:50:11]quantity*price = 50011 [12:50:11]sum+1 = 50013 [12:50:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 120 21.02.2025 12:50 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187626 ФПД: 259025772186340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T125011&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187626&fm=259025772186340&tin=02508201610067®Number=0000000000091857&sum=50000 [12:50:12]StoreToDocumentArchive [12:50:12]shift 649 fd 187626 [12:50:12]save to /storage/0649/doc_00187626 [12:50:12]save last doc name /storage/0649/doc_00187626 to /storage/kkm_last_doc_name [12:50:12]save OK [12:50:12]Clear old archive folders... [12:50:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:12]tlvbuf is 00C01FF0 [12:50:12]SAM_PROTO_ClearQueue [12:50:12]wFMCommunicate request_size=4 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 09 00 00 [12:50:12]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [12:50:12]RAPDU: 90 00 [12:50:12]wFMCommunicate OK [12:50:12]SAM_PROTO_ClearQueue done [12:50:12]KKMCreateOFDPacket [12:50:12]OFDProtocolAddRootSTLVToBuf [12:50:12]FM_MakeSignedData [12:50:12]FM_MakeSignedData [12:50:12]SAM_PROTO_SignData [12:50:12]wFMCommunicate request_size=4 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 0D 01 02 [12:50:12]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [12:50:12]RAPDU: 90 00 [12:50:12]wFMCommunicate OK [12:50:12]wFMCommunicate request_size=255 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 83 76 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA DC 02 00 35 04 06 00 EB [12:50:12]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 83 76 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA DC 02 00 35 04 06 00 EB 00 00 83 [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [12:50:12]RAPDU: 90 00 [12:50:12]wFMCommunicate OK [12:50:12]wFMCommunicate request_size=10 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 0D 02 02 05 95 23 23 8A E4 [12:50:12]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 95 23 23 8A E4 00 00 72 [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [12:50:12]RAPDU: 90 00 [12:50:12]wFMCommunicate OK [12:50:12]wFMCommunicate request_size=4 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 0D 03 02 [12:50:12]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 0B 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 0B 00 A5 01 00 7E AF DD 93 65 9F 9A AF 90 00 0C [12:50:12]RAPDU: 7E AF DD 93 65 9F 9A AF 90 00 [12:50:12]wFMCommunicate OK [12:50:12]SAM_PROTO_SignData done [12:50:12]FM_MakeSignedData done [12:50:12]CreateOFDProtocolMessage [12:50:12]wFMCommunicate request_size=4 [12:50:12]MH_SAM_APDU [12:50:12]CAPDU: 80 11 00 00 [12:50:12]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:12]Read from MH i2c: E2 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 17 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [12:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:50:12]wFMCommunicate OK [12:50:12]CreateOFDProtocolMessage done [12:50:12]OFDSenderStorePacket 187626 [12:50:12]StoreOFDPacket docnum=187626 [12:50:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E C7 07 01 B4 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 83 76 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA DC 02 00 35 04 06 00 EB 95 23 23 8A E4 7E AF DD 93 65 9F 9A AF [12:50:12]CheckFolder [12:50:12]dirname=/storage/ofd_packets [12:50:12]CheckFolder done [12:50:12]ProducePacketName [12:50:12]name=ofd_packets/00187626 [12:50:12]NVStorageSaveData ofd_packets/00187626 [12:50:12]File name is /storage/ofd_packets/00187626 [12:50:12]Write 301 bytes [12:50:12]NVStorageSaveData done [12:50:12]OFDSenderStorePacket done [12:50:12]KKMCreateOFDPacket done [12:50:12]NVStorageSaveData kkm_last_timestamp [12:50:12]File name is /storage/kkm_last_timestamp [12:50:12]Write 4 bytes [12:50:12]NVStorageSaveData done [12:50:12]ExternCall_PrintAddStr [12:50:12]wPrintStart [12:50:12]Write to MH i2c: 01 00 00 A7 01 A8 [12:50:12]OFD Sender: Processing packet 187626 [packets to send 49, broken 48] [12:50:12]ProducePacketName [12:50:12]name=ofd_packets/00187626 [12:50:12]OFD Sender: To server: pG, [12:50:12]CommunicateWithHost lk.salyk.kg:30040 [12:50:12]ConnectInit lk.salyk.kg [12:50:12]Write i2c OK [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: 01 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: 01 07 00 [12:50:12]MH_I2C_Read... [12:50:12]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [12:50:12]RasterBufferAndPrint [12:50:12]line Счет N : (1)412786 [12:50:12]line ИНН: 02508201610067 [12:50:12]line Контрольно-Кассовый Чек [12:50:12]line ПРОДАЖА [12:50:12]line ТРК (МРК, ГНК) : 32 [12:50:12]line Товар: 2710124130 [12:50:12]line Аи-92-К-2 [12:50:12]line 7.790 * 64.20 [12:50:12]line = 500.12 [12:50:12]line НДС 12% НСП 1% [12:50:12]line > о реализуемом товаре [12:50:12]line ОКРУГЛЕНИЕ: -0.12 [12:50:12]line ИТОГО: 500.00 [12:50:12]line Внесено: 500.00 [12:50:12]line СДАЧА: 0.00 [12:50:12]line НСП 1% : 4.43 [12:50:12]line НДС 12% : 53.11 [12:50:12]line Наличными: 500.00 [12:50:12]line Безнал.: 0.00 [12:50:12]line Место: АЗС № 92 "Партнер Нефть" [12:50:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:50:12]line СНО: Общий режим [12:50:12]line Чек 120 21.02.2025 12:50 [12:50:12]line Смена: 649 ФФД: 1.0 [12:50:12]line ЗНМ: 0300000118 [12:50:12]line РНМ: 0000000000091857 [12:50:12]line Версия ККМ: 001 [12:50:12]line ФМ: 0000000000871826 [12:50:12]line ФД: 187626 [12:50:12]line ФПД: 259025772186340 [12:50:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T125011&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187626&fm=259025772186340&tin=02508201610067®Number=0000000000091857&sum=50000 [12:50:13]Connected sock=9 [12:50:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2E C7 07 01 B4 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 83 76 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA DC 02 00 35 04 06 00 EB 95 23 23 8A E4 7E AF DD 93 65 9F 9A AF [12:50:13]written 0, free lines is 4095 [12:50:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 59 FB 47 00 57 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EA DC 02 00 F4 03 04 00 D0 1C B8 67 B6 04 01 00 00 33 DD A6 35 40 1D E0 75 [12:50:13]CommunicateWithHost err = 0 [12:50:13]CheckOFDResponse [12:50:13]1017 (14) - 77093643461234 [12:50:13]1041 (16) - 0000000000871826 [12:50:13]1040 (4) - 187626 [12:50:13]1012 (4) - 21.02.2025 06:27 [12:50:13]1206 (1) - 0 [12:50:13]OFD Sender: Remove packet 187626 [12:50:13]ProducePacketName [12:50:13]name=ofd_packets/00187626 [12:50:13]NVStorageDeleteData [12:50:13]Write to MH i2c: 01 00 00 D2 01 D3 [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: 01 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: 01 07 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 EC 0C D2 [12:50:13]RasterBufferAndPrint [12:50:13]line [12:50:13]line [12:50:13]line [12:50:13]line [12:50:13]line [12:50:13]written 0, free lines is 3314 [12:50:13]MH_Cut [12:50:13]Write to MH i2c: D1 01 00 D9 01 01 AC [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: D1 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: D1 01 00 [12:50:13]MH_I2C_Read... [12:50:13]Read from MH i2c: D1 01 00 D9 01 00 AB [12:50:13]Write to MH i2c: 01 00 00 DA 01 DB [12:50:13]Write i2c OK [12:50:13]MH_I2C_Read... [12:50:13]OFD Sender: No OFD packet to send [12:50:14]*** Cut start [12:50:14]*** Partial cut [12:50:14]*** CUTSNS_PIN = 1 [12:50:14]*** CUTSNS_PIN = 0 [12:50:14]*** Brake cut motor [12:50:14]Read from MH i2c: 01 [12:50:14]MH_I2C_Read... [12:50:14]*** Stop cut motor [12:50:14]*** Cut end [12:50:14]Read from MH i2c: 01 07 00 [12:50:14]MH_I2C_Read... [12:50:14]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [12:50:14]process_action close_receipt done [12:50:14]requested_data is exist [12:50:14]produce_requested_data [12:50:14]requested_item fm.sn is exist - process it [12:50:14]wFMCommunicate request_size=4 [12:50:14]MH_SAM_APDU [12:50:14]CAPDU: 80 11 00 00 [12:50:14]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [12:50:14]Write i2c OK [12:50:14]MH_I2C_Read... [12:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:15]Read from MH i2c: E2 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 17 00 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [12:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:50:15]wFMCommunicate OK [12:50:15]requested_item fd.num is exist - process it [12:50:15]SAM_PROTO_GetFieldsCounters [12:50:15]wFMCommunicate request_size=4 [12:50:15]MH_SAM_APDU [12:50:15]CAPDU: 80 13 00 00 [12:50:15]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [12:50:15]Write i2c OK [12:50:15]MH_I2C_Read... [12:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:15]Read from MH i2c: E2 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 62 00 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EA DC 02 00 0E 04 04 00 89 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 3A [12:50:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EA DC 02 00 0E 04 04 00 89 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 [12:50:15]wFMCommunicate OK [12:50:15]SAM_PROTO_GetFieldsCounters done [12:50:15]requested_item shift.num is exist - process it [12:50:15]requested_item shift.opened is exist - process it [12:50:15]req_shift_opened [12:50:15]FM_GetShiftState [12:50:15]SAM_PROTO_GetShiftState [12:50:15]wFMCommunicate request_size=4 [12:50:15]MH_SAM_APDU [12:50:15]CAPDU: 80 13 01 00 [12:50:15]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [12:50:15]Write i2c OK [12:50:15]MH_I2C_Read... [12:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:15]Read from MH i2c: E2 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 0E 00 [12:50:15]MH_I2C_Read... [12:50:15]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 49 [12:50:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:50:15]wFMCommunicate OK [12:50:15]SAM_PROTO_GetShiftState done [12:50:15]FM_GetShiftState done [12:50:15]req_shift_opened done [12:50:15]requested_item shift.open_date is exist - process it [12:50:15]req_shift_open_date [12:50:15]req_shift_open_date done [12:50:15]produce_requested_data done [12:50:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187626,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [12:50:15]process_action_free close_receipt [12:50:15]json_value_free [12:50:15]json_value_free done [12:50:15]process_json_proto returns [12:50:15]Send response to host [12:50:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187626,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [12:50:15]free response buf [12:50:15]execute_script done [12:50:15]execute_script returns [12:50:15]free content buf [12:50:15]Sock 10.Close socket [12:50:15]Sock 10.Thread stoped [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52: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:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [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:15]accept exits with 7 [12:56:15]New connection [12:56:15]New thread 3067624804 created [12:56:15]Thread 3067481444 joined [12:56:15]Waiting for new connection... [12:56:15] Sock 7.Parse request [12:56:15]Sock 7.Check first char [12:56:15]Sock 7.First char is OK [12:56:15]request: POST /json_proto HTTP/1.0 [12:56:15]Method: POST [12:56:15]URL: /json_proto [12:56:15]Method is POST - this is cgi request [12:56:15]url: /json_proto [12:56:15]query_string will be loaded in cgi processing [12:56:15]execute_cgi json_proto POST (null) [12:56:15]execute_cgi path=json_proto method=POST [12:56:15]POST find Content-Length [12:56:15]Host: 172.17.46.131:8080 [12:56:15]Content-Length: 678 [12:56:15]Content-Type: application/json [12:56:15] [12:56:15]POST finish read [12:56:15]Found Content-Length = 678 [12:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:15]execute_script... [12:56: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)412787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:15]POST & json_proto [12:56:15]process_json_proto [12:56:15]json parsed OK: [12:56:15]protocol is kg_v1.0 [12:56:15]action value=close_receipt [12:56:15]process_action close_receipt [12:56:15]cmd_close_receipt [12:56:15]MH_GetDate [12:56:15]Write to MH i2c: F0 00 00 DE 01 CE [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: F0 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: F0 09 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: F0 09 00 DE 01 00 EF 77 B8 67 7E 41 4F 65 CF [12:56:15]GetLastDocTimeStamp 1740142211 [12:56:15]current date 1740142575 [12:56:15]FM_GetShiftState [12:56:15]SAM_PROTO_GetShiftState [12:56:15]wFMCommunicate request_size=4 [12:56:15]MH_SAM_APDU [12:56:15]CAPDU: 80 13 01 00 [12:56:15]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [12:56:15]Write i2c OK [12:56:15]MH_I2C_Read... [12:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:15]Read from MH i2c: E2 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 0E 00 [12:56:15]MH_I2C_Read... [12:56:15]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4B [12:56:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:56:15]wFMCommunicate OK [12:56:15]SAM_PROTO_GetShiftState done [12:56:15]FM_GetShiftState done [12:56:15]opened in 1740098043 [12:56:15]opened+sec_in_day 1740184443 [12:56:15]quantity*price = 80057 [12:56:15]sum+1 = 80058 [12:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 121 21.02.2025 12:56 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187627 ФПД: 143193050011815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T125615&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187627&fm=143193050011815&tin=02508201610067®Number=0000000000091857&sum=80000 [12:56:16]StoreToDocumentArchive [12:56:16]shift 649 fd 187627 [12:56:16]save to /storage/0649/doc_00187627 [12:56:16]save last doc name /storage/0649/doc_00187627 to /storage/kkm_last_doc_name [12:56:16]save OK [12:56:16]Clear old archive folders... [12:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:16]tlvbuf is 00C03920 [12:56:16]SAM_PROTO_ClearQueue [12:56:16]wFMCommunicate request_size=4 [12:56:16]MH_SAM_APDU [12:56:16]CAPDU: 80 09 00 00 [12:56:16]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [12:56:16]Write i2c OK [12:56:16]MH_I2C_Read... [12:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:16]Read from MH i2c: E2 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: E2 03 00 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [12:56:16]RAPDU: 90 00 [12:56:16]wFMCommunicate OK [12:56:16]SAM_PROTO_ClearQueue done [12:56:16]KKMCreateOFDPacket [12:56:16]OFDProtocolAddRootSTLVToBuf [12:56:16]FM_MakeSignedData [12:56:16]FM_MakeSignedData [12:56:16]SAM_PROTO_SignData [12:56:16]wFMCommunicate request_size=4 [12:56:16]MH_SAM_APDU [12:56:16]CAPDU: 80 0D 01 02 [12:56:16]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [12:56:16]Write i2c OK [12:56:16]MH_I2C_Read... [12:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:16]Read from MH i2c: E2 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: E2 03 00 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [12:56:16]RAPDU: 90 00 [12:56:16]wFMCommunicate OK [12:56:16]wFMCommunicate request_size=255 [12:56:16]MH_SAM_APDU [12:56:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 EF 77 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DC 02 00 35 04 06 00 82 [12:56:16]Write to MH i2c: E2 02 01 EE 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 EF 77 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DC 02 00 35 04 06 00 82 00 00 DB [12:56:16]Write i2c OK [12:56:16]MH_I2C_Read... [12:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:16]Read from MH i2c: E2 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: E2 03 00 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [12:56:16]RAPDU: 90 00 [12:56:16]wFMCommunicate OK [12:56:16]wFMCommunicate request_size=10 [12:56:16]MH_SAM_APDU [12:56:16]CAPDU: 80 0D 02 02 05 3B BA E1 58 A7 [12:56:16]Write to MH i2c: E2 0D 00 EF 01 80 0D 02 02 05 00 3B BA E1 58 A7 00 00 49 [12:56:16]Write i2c OK [12:56:16]MH_I2C_Read... [12:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:16]Read from MH i2c: E2 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: E2 03 00 [12:56:16]MH_I2C_Read... [12:56:16]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [12:56:16]RAPDU: 90 00 [12:56:16]wFMCommunicate OK [12:56:16]wFMCommunicate request_size=4 [12:56:16]MH_SAM_APDU [12:56:16]CAPDU: 80 0D 03 02 [12:56:16]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [12:56:16]Write i2c OK [12:56:16]MH_I2C_Read... [12:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:17]Read from MH i2c: E2 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: E2 0B 00 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: E2 0B 00 F0 01 00 82 8C 6C 4B C7 09 20 33 90 00 55 [12:56:17]RAPDU: 82 8C 6C 4B C7 09 20 33 90 00 [12:56:17]wFMCommunicate OK [12:56:17]SAM_PROTO_SignData done [12:56:17]FM_MakeSignedData done [12:56:17]CreateOFDProtocolMessage [12:56:17]wFMCommunicate request_size=4 [12:56:17]MH_SAM_APDU [12:56:17]CAPDU: 80 11 00 00 [12:56:17]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [12:56:17]Write i2c OK [12:56:17]MH_I2C_Read... [12:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:17]Read from MH i2c: E2 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: E2 17 00 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [12:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:56:17]wFMCommunicate OK [12:56:17]CreateOFDProtocolMessage done [12:56:17]OFDSenderStorePacket 187627 [12:56:17]StoreOFDPacket docnum=187627 [12:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 08 2B 07 01 72 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 EF 77 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DC 02 00 35 04 06 00 82 3B BA E1 58 A7 82 8C 6C 4B C7 09 20 33 [12:56:17]CheckFolder [12:56:17]dirname=/storage/ofd_packets [12:56:17]CheckFolder done [12:56:17]ProducePacketName [12:56:17]name=ofd_packets/00187627 [12:56:17]NVStorageSaveData ofd_packets/00187627 [12:56:17]File name is /storage/ofd_packets/00187627 [12:56:17]Write 301 bytes [12:56:17]NVStorageSaveData done [12:56:17]OFDSenderStorePacket done [12:56:17]KKMCreateOFDPacket done [12:56:17]NVStorageSaveData kkm_last_timestamp [12:56:17]File name is /storage/kkm_last_timestamp [12:56:17]Write 4 bytes [12:56:17]NVStorageSaveData done [12:56:17]ExternCall_PrintAddStr [12:56:17]wPrintStart [12:56:17]Write to MH i2c: 01 00 00 F2 01 F3 [12:56:17]Write i2c OK [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: 01 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: 01 07 00 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [12:56:17]RasterBufferAndPrint [12:56:17]line Счет N : (1)412787 [12:56:17]line ИНН: 02508201610067 [12:56:17]line Контрольно-Кассовый Чек [12:56:17]line ПРОДАЖА [12:56:17]line ТРК (МРК, ГНК) : 22 [12:56:17]line Товар: 2710124130 [12:56:17]line Аи-92-К-2 [12:56:17]line 12.470 * 64.20 [12:56:17]line = 800.57 [12:56:17]line НДС 12% НСП 1% [12:56:17]line > о реализуемом товаре [12:56:17]line ОКРУГЛЕНИЕ: -0.57 [12:56:17]line ИТОГО: 800.00 [12:56:17]line Внесено: 800.00 [12:56:17]line СДАЧА: 0.00 [12:56:17]line НСП 1% : 7.08 [12:56:17]line НДС 12% : 85.02 [12:56:17]line Наличными: 800.00 [12:56:17]line Безнал.: 0.00 [12:56:17]line Место: АЗС № 92 "Партнер Нефть" [12:56:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:56:17]line СНО: Общий режим [12:56:17]line Чек 121 21.02.2025 12:56 [12:56:17]line Смена: 649 ФФД: 1.0 [12:56:17]line ЗНМ: 0300000118 [12:56:17]line РНМ: 0000000000091857 [12:56:17]line Версия ККМ: 001 [12:56:17]line ФМ: 0000000000871826 [12:56:17]line ФД: 187627 [12:56:17]line ФПД: 143193050011815 [12:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T125615&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187627&fm=143193050011815&tin=02508201610067®Number=0000000000091857&sum=80000 [12:56:17]written 0, free lines is 4095 [12:56:17]OFD Sender: Processing packet 187627 [packets to send 49, broken 48] [12:56:17]ProducePacketName [12:56:17]name=ofd_packets/00187627 [12:56:17]OFD Sender: To server: pG, [12:56:17]CommunicateWithHost lk.salyk.kg:30040 [12:56:17]ConnectInit lk.salyk.kg [12:56:17]Connected sock=10 [12:56:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 08 2B 07 01 72 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 EF 77 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DC 02 00 35 04 06 00 82 3B BA E1 58 A7 82 8C 6C 4B C7 09 20 33 [12:56:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8F 21 47 00 B2 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EB DC 02 00 F4 03 04 00 3D 1E B8 67 B6 04 01 00 00 3B E3 D3 20 92 27 87 ED [12:56:17]CommunicateWithHost err = 0 [12:56:17]CheckOFDResponse [12:56:17]1017 (14) - 77093643461234 [12:56:17]1041 (16) - 0000000000871826 [12:56:17]1040 (4) - 187627 [12:56:17]1012 (4) - 21.02.2025 06:33 [12:56:17]1206 (1) - 0 [12:56:17]OFD Sender: Remove packet 187627 [12:56:17]ProducePacketName [12:56:17]name=ofd_packets/00187627 [12:56:17]NVStorageDeleteData [12:56:17]Write to MH i2c: 01 00 00 1D 02 1F [12:56:17]Write i2c OK [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: 01 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: 01 07 00 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 FB 0C 2D [12:56:17]RasterBufferAndPrint [12:56:17]line [12:56:17]line [12:56:17]line [12:56:17]line [12:56:17]line [12:56:17]written 0, free lines is 3329 [12:56:17]MH_Cut [12:56:17]Write to MH i2c: D1 01 00 24 02 01 F8 [12:56:17]Write i2c OK [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: D1 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: D1 01 00 [12:56:17]MH_I2C_Read... [12:56:17]Read from MH i2c: D1 01 00 24 02 00 F7 [12:56:17]Write to MH i2c: 01 00 00 25 02 27 [12:56:17]Write i2c OK [12:56:17]MH_I2C_Read... [12:56:18]OFD Sender: No OFD packet to send [12:56:18]*** Cut start [12:56:18]*** Partial cut [12:56:18]*** CUTSNS_PIN = 1 [12:56:18]*** CUTSNS_PIN = 0 [12:56:18]*** Brake cut motor [12:56:18]Read from MH i2c: 01 [12:56:18]MH_I2C_Read... [12:56:18]*** Stop cut motor [12:56:18]*** Cut end [12:56:18]Read from MH i2c: 01 07 00 [12:56:18]MH_I2C_Read... [12:56:18]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [12:56:18]process_action close_receipt done [12:56:18]requested_data is exist [12:56:18]produce_requested_data [12:56:18]requested_item fm.sn is exist - process it [12:56:18]wFMCommunicate request_size=4 [12:56:18]MH_SAM_APDU [12:56:18]CAPDU: 80 11 00 00 [12:56:18]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [12:56:18]Write i2c OK [12:56:18]MH_I2C_Read... [12:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:18]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 17 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [12:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:56:19]wFMCommunicate OK [12:56:19]requested_item fd.num is exist - process it [12:56:19]SAM_PROTO_GetFieldsCounters [12:56:19]wFMCommunicate request_size=4 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 13 00 00 [12:56:19]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:19]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 62 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EB DC 02 00 0E 04 04 00 89 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 8A [12:56:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EB DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:19]wFMCommunicate OK [12:56:19]SAM_PROTO_GetFieldsCounters done [12:56:19]requested_item shift.num is exist - process it [12:56:19]requested_item shift.opened is exist - process it [12:56:19]req_shift_opened [12:56:19]FM_GetShiftState [12:56:19]SAM_PROTO_GetShiftState [12:56:19]wFMCommunicate request_size=4 [12:56:19]MH_SAM_APDU [12:56:19]CAPDU: 80 13 01 00 [12:56:19]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [12:56:19]Write i2c OK [12:56:19]MH_I2C_Read... [12:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:19]Read from MH i2c: E2 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 0E 00 [12:56:19]MH_I2C_Read... [12:56:19]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 95 [12:56:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:56:19]wFMCommunicate OK [12:56:19]SAM_PROTO_GetShiftState done [12:56:19]FM_GetShiftState done [12:56:19]req_shift_opened done [12:56:19]requested_item shift.open_date is exist - process it [12:56:19]req_shift_open_date [12:56:19]req_shift_open_date done [12:56:19]produce_requested_data done [12:56:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187627,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [12:56:19]process_action_free close_receipt [12:56:19]json_value_free [12:56:19]json_value_free done [12:56:19]process_json_proto returns [12:56:19]Send response to host [12:56:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187627,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [12:56:19]free response buf [12:56:19]execute_script done [12:56:19]execute_script returns [12:56:19]free content buf [12:56:19]Sock 7.Close socket [12:56:19]Sock 7.Thread stoped [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:52]accept exits with 9 [12:56:52]New connection [12:56:52]New thread 3067481444 created [12:56:52]Thread 3067624804 joined [12:56:52]Waiting for new connection... [12:56:52] Sock 9.Parse request [12:56:52]Sock 9.Check first char [12:56:52]Sock 9.First char is OK [12:56:52]request: POST /json_proto HTTP/1.0 [12:56:52]Method: POST [12:56:52]URL: /json_proto [12:56:52]Method is POST - this is cgi request [12:56:52]url: /json_proto [12:56:52]query_string will be loaded in cgi processing [12:56:52]execute_cgi json_proto POST (null) [12:56:52]execute_cgi path=json_proto method=POST [12:56:52]POST find Content-Length [12:56:52]Host: 172.17.46.131:8080 [12:56:52]Content-Length: 682 [12:56:52]Content-Type: application/json [12:56:52] [12:56:52]POST finish read [12:56:52]Found Content-Length = 682 [12:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:52]execute_script... [12:56:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:52]POST & json_proto [12:56:52]process_json_proto [12:56:52]json parsed OK: [12:56:52]protocol is kg_v1.0 [12:56:52]action value=close_receipt [12:56:52]process_action close_receipt [12:56:52]cmd_close_receipt [12:56:52]MH_GetDate [12:56:52]Write to MH i2c: F0 00 00 29 02 1A [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: F0 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: F0 09 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: F0 09 00 29 02 00 14 78 B8 67 7E 41 4F 65 41 [12:56:52]GetLastDocTimeStamp 1740142575 [12:56:52]current date 1740142612 [12:56:52]FM_GetShiftState [12:56:52]SAM_PROTO_GetShiftState [12:56:52]wFMCommunicate request_size=4 [12:56:52]MH_SAM_APDU [12:56:52]CAPDU: 80 13 01 00 [12:56:52]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [12:56:52]Write i2c OK [12:56:52]MH_I2C_Read... [12:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:52]Read from MH i2c: E2 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 [12:56:52]MH_I2C_Read... [12:56:52]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 97 [12:56:52]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:56:52]wFMCommunicate OK [12:56:52]SAM_PROTO_GetShiftState done [12:56:52]FM_GetShiftState done [12:56:52]opened in 1740098043 [12:56:52]opened+sec_in_day 1740184443 [12:56:52]quantity*price = 100012 [12:56:52]sum+1 = 100014 [12:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 122 21.02.2025 12:56 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187628 ФПД: 152517995761356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T125652&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187628&fm=152517995761356&tin=02508201610067®Number=0000000000091857&sum=100000 [12:56:53]StoreToDocumentArchive [12:56:53]shift 649 fd 187628 [12:56:53]save to /storage/0649/doc_00187628 [12:56:53]save last doc name /storage/0649/doc_00187628 to /storage/kkm_last_doc_name [12:56:53]save OK [12:56:53]Clear old archive folders... [12:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:53]tlvbuf is 00C010D0 [12:56:53]SAM_PROTO_ClearQueue [12:56:53]wFMCommunicate request_size=4 [12:56:53]MH_SAM_APDU [12:56:53]CAPDU: 80 09 00 00 [12:56:53]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [12:56:53]Write i2c OK [12:56:53]MH_I2C_Read... [12:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:53]Read from MH i2c: E2 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: E2 03 00 [12:56:53]MH_I2C_Read... [12:56:53]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [12:56:53]RAPDU: 90 00 [12:56:53]wFMCommunicate OK [12:56:53]SAM_PROTO_ClearQueue done [12:56:53]KKMCreateOFDPacket [12:56:53]OFDProtocolAddRootSTLVToBuf [12:56:53]FM_MakeSignedData [12:56:53]FM_MakeSignedData [12:56:53]SAM_PROTO_SignData [12:56:53]wFMCommunicate request_size=4 [12:56:53]MH_SAM_APDU [12:56:53]CAPDU: 80 0D 01 02 [12:56:53]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [12:56:53]Write i2c OK [12:56:53]MH_I2C_Read... [12:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [12:56:54]RAPDU: 90 00 [12:56:54]wFMCommunicate OK [12:56:54]wFMCommunicate request_size=255 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 14 78 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DC 02 00 35 04 06 00 8A [12:56:54]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 14 78 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DC 02 00 35 04 06 00 8A 00 00 28 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [12:56:54]RAPDU: 90 00 [12:56:54]wFMCommunicate OK [12:56:54]wFMCommunicate request_size=10 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 0D 02 02 05 B6 DC F5 8E CC [12:56:54]Write to MH i2c: E2 0D 00 3A 02 80 0D 02 02 05 00 B6 DC F5 8E CC 00 00 A1 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [12:56:54]RAPDU: 90 00 [12:56:54]wFMCommunicate OK [12:56:54]wFMCommunicate request_size=4 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 0D 03 02 [12:56:54]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 0B 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 0B 00 3B 02 00 2B 1D D3 63 F3 80 55 05 90 00 04 [12:56:54]RAPDU: 2B 1D D3 63 F3 80 55 05 90 00 [12:56:54]wFMCommunicate OK [12:56:54]SAM_PROTO_SignData done [12:56:54]FM_MakeSignedData done [12:56:54]CreateOFDProtocolMessage [12:56:54]wFMCommunicate request_size=4 [12:56:54]MH_SAM_APDU [12:56:54]CAPDU: 80 11 00 00 [12:56:54]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:54]Read from MH i2c: E2 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 17 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [12:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:56:54]wFMCommunicate OK [12:56:54]CreateOFDProtocolMessage done [12:56:54]OFDSenderStorePacket 187628 [12:56:54]StoreOFDPacket docnum=187628 [12:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 4D 07 01 A1 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 14 78 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DC 02 00 35 04 06 00 8A B6 DC F5 8E CC 2B 1D D3 63 F3 80 55 05 [12:56:54]CheckFolder [12:56:54]dirname=/storage/ofd_packets [12:56:54]CheckFolder done [12:56:54]ProducePacketName [12:56:54]name=ofd_packets/00187628 [12:56:54]NVStorageSaveData ofd_packets/00187628 [12:56:54]File name is /storage/ofd_packets/00187628 [12:56:54]Write 301 bytes [12:56:54]NVStorageSaveData done [12:56:54]OFDSenderStorePacket done [12:56:54]KKMCreateOFDPacket done [12:56:54]NVStorageSaveData kkm_last_timestamp [12:56:54]File name is /storage/kkm_last_timestamp [12:56:54]Write 4 bytes [12:56:54]NVStorageSaveData done [12:56:54]ExternCall_PrintAddStr [12:56:54]wPrintStart [12:56:54]Write to MH i2c: 01 00 00 3D 02 3F [12:56:54]Write i2c OK [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: 01 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: 01 07 00 [12:56:54]MH_I2C_Read... [12:56:54]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [12:56:54]RasterBufferAndPrint [12:56:54]line Счет N : (1)412788 [12:56:54]line ИНН: 02508201610067 [12:56:54]line Контрольно-Кассовый Чек [12:56:54]line ПРОДАЖА [12:56:54]line ТРК (МРК, ГНК) : 33 [12:56:54]line Товар: 2710124500 [12:56:54]line Аи-95-К-5 [12:56:54]line 13.910 * 71.90 [12:56:54]line = 1000.13 [12:56:54]line НДС 12% НСП 1% [12:56:54]line > о реализуемом товаре [12:56:54]line ОКРУГЛЕНИЕ: -0.13 [12:56:54]line ИТОГО: 1000.00 [12:56:54]line Внесено: 1000.00 [12:56:54]line СДАЧА: 0.00 [12:56:54]line НСП 1% : 8.85 [12:56:54]line НДС 12% : 106.21 [12:56:54]line Наличными: 1000.00 [12:56:54]line Безнал.: 0.00 [12:56:54]line Место: АЗС № 92 "Партнер Нефть" [12:56:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:56:54]line СНО: Общий режим [12:56:54]line Чек 122 21.02.2025 12:56 [12:56:54]line Смена: 649 ФФД: 1.0 [12:56:54]line ЗНМ: 0300000118 [12:56:54]line РНМ: 0000000000091857 [12:56:54]line Версия ККМ: 001 [12:56:54]line ФМ: 0000000000871826 [12:56:54]line ФД: 187628 [12:56:54]line ФПД: 152517995761356 [12:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T125652&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187628&fm=152517995761356&tin=02508201610067®Number=0000000000091857&sum=100000 [12:56:54]OFD Sender: Processing packet 187628 [packets to send 49, broken 48] [12:56:54]ProducePacketName [12:56:54]name=ofd_packets/00187628 [12:56:54]OFD Sender: To server: pG, [12:56:54]CommunicateWithHost lk.salyk.kg:30040 [12:56:54]ConnectInit lk.salyk.kg [12:56:54]written 0, free lines is 4095 [12:56:54]Connected sock=10 [12:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 4D 07 01 A1 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 14 78 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DC 02 00 35 04 06 00 8A B6 DC F5 8E CC 2B 1D D3 63 F3 80 55 05 [12:56:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FB FC 47 00 CE 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DC 02 00 F4 03 04 00 62 1E B8 67 B6 04 01 00 00 14 FE 44 F9 C3 77 C3 88 [12:56:55]CommunicateWithHost err = 0 [12:56:55]CheckOFDResponse [12:56:55]1017 (14) - 77093643461234 [12:56:55]1041 (16) - 0000000000871826 [12:56:55]1040 (4) - 187628 [12:56:55]1012 (4) - 21.02.2025 06:34 [12:56:55]1206 (1) - 0 [12:56:55]OFD Sender: Remove packet 187628 [12:56:55]ProducePacketName [12:56:55]name=ofd_packets/00187628 [12:56:55]NVStorageDeleteData [12:56:55]Write to MH i2c: 01 00 00 68 02 6A [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: 01 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: 01 07 00 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 F9 0C 76 [12:56:55]RasterBufferAndPrint [12:56:55]line [12:56:55]line [12:56:55]line [12:56:55]line [12:56:55]line [12:56:55]written 0, free lines is 3328 [12:56:55]MH_Cut [12:56:55]Write to MH i2c: D1 01 00 6F 02 01 43 [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: D1 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: D1 01 00 [12:56:55]MH_I2C_Read... [12:56:55]Read from MH i2c: D1 01 00 6F 02 00 42 [12:56:55]Write to MH i2c: 01 00 00 70 02 72 [12:56:55]Write i2c OK [12:56:55]MH_I2C_Read... [12:56:55]OFD Sender: No OFD packet to send [12:56:55]*** Cut start [12:56:55]*** Partial cut [12:56:55]*** CUTSNS_PIN = 1 [12:56:55]*** CUTSNS_PIN = 0 [12:56:56]*** Brake cut motor [12:56:56]Read from MH i2c: 01 [12:56:56]MH_I2C_Read... [12:56:56]*** Stop cut motor [12:56:56]*** Cut end [12:56:56]Read from MH i2c: 01 07 00 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [12:56:56]process_action close_receipt done [12:56:56]requested_data is exist [12:56:56]produce_requested_data [12:56:56]requested_item fm.sn is exist - process it [12:56:56]wFMCommunicate request_size=4 [12:56:56]MH_SAM_APDU [12:56:56]CAPDU: 80 11 00 00 [12:56:56]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [12:56:56]Write i2c OK [12:56:56]MH_I2C_Read... [12:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:56]Read from MH i2c: E2 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: E2 17 00 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [12:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:56:56]wFMCommunicate OK [12:56:56]requested_item fd.num is exist - process it [12:56:56]SAM_PROTO_GetFieldsCounters [12:56:56]wFMCommunicate request_size=4 [12:56:56]MH_SAM_APDU [12:56:56]CAPDU: 80 13 00 00 [12:56:56]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [12:56:56]Write i2c OK [12:56:56]MH_I2C_Read... [12:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:56]Read from MH i2c: E2 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: E2 62 00 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EC DC 02 00 0E 04 04 00 89 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 D9 [12:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EC DC 02 00 0E 04 04 00 89 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 [12:56:56]wFMCommunicate OK [12:56:56]SAM_PROTO_GetFieldsCounters done [12:56:56]requested_item shift.num is exist - process it [12:56:56]requested_item shift.opened is exist - process it [12:56:56]req_shift_opened [12:56:56]FM_GetShiftState [12:56:56]SAM_PROTO_GetShiftState [12:56:56]wFMCommunicate request_size=4 [12:56:56]MH_SAM_APDU [12:56:56]CAPDU: 80 13 01 00 [12:56:56]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [12:56:56]Write i2c OK [12:56:56]MH_I2C_Read... [12:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:56]Read from MH i2c: E2 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: E2 0E 00 [12:56:56]MH_I2C_Read... [12:56:56]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E0 [12:56:56]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:56:56]wFMCommunicate OK [12:56:56]SAM_PROTO_GetShiftState done [12:56:56]FM_GetShiftState done [12:56:56]req_shift_opened done [12:56:56]requested_item shift.open_date is exist - process it [12:56:56]req_shift_open_date [12:56:56]req_shift_open_date done [12:56:56]produce_requested_data done [12:56:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187628,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [12:56:56]process_action_free close_receipt [12:56:56]json_value_free [12:56:56]json_value_free done [12:56:56]process_json_proto returns [12:56:56]Send response to host [12:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187628,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [12:56:56]free response buf [12:56:56]execute_script done [12:56:56]execute_script returns [12:56:56]free content buf [12:56:56]Sock 9.Close socket [12:56:56]Sock 9.Thread stoped [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:57:57]accept exits with 7 [12:57:57]New connection [12:57:57]New thread 3067624804 created [12:57:57]Thread 3067481444 joined [12:57:57]Waiting for new connection... [12:57:57] Sock 7.Parse request [12:57:57]Sock 7.Check first char [12:57:57]Sock 7.First char is OK [12:57:57]request: POST /json_proto HTTP/1.0 [12:57:57]Method: POST [12:57:57]URL: /json_proto [12:57:57]Method is POST - this is cgi request [12:57:57]url: /json_proto [12:57:57]query_string will be loaded in cgi processing [12:57:57]execute_cgi json_proto POST (null) [12:57:57]execute_cgi path=json_proto method=POST [12:57:57]POST find Content-Length [12:57:57]Host: 172.17.46.131:8080 [12:57:57]Content-Length: 682 [12:57:57]Content-Type: application/json [12:57:57] [12:57:57]POST finish read [12:57:57]Found Content-Length = 682 [12:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:57]execute_script... [12: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)412789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:57]POST & json_proto [12:57:57]process_json_proto [12:57:57]json parsed OK: [12:57:57]protocol is kg_v1.0 [12:57:57]action value=close_receipt [12:57:57]process_action close_receipt [12:57:57]cmd_close_receipt [12:57:57]MH_GetDate [12:57:57]Write to MH i2c: F0 00 00 74 02 65 [12:57:57]Write i2c OK [12:57:57]MH_I2C_Read... [12:57:57]Read from MH i2c: F0 [12:57:57]MH_I2C_Read... [12:57:57]Read from MH i2c: F0 09 00 [12:57:57]MH_I2C_Read... [12:57:57]Read from MH i2c: F0 09 00 74 02 00 55 78 B8 67 7E 41 4F 65 CD [12:57:57]GetLastDocTimeStamp 1740142612 [12:57:57]current date 1740142677 [12:57:57]FM_GetShiftState [12:57:57]SAM_PROTO_GetShiftState [12:57:57]wFMCommunicate request_size=4 [12:57:57]MH_SAM_APDU [12:57:57]CAPDU: 80 13 01 00 [12:57:57]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [12:57:57]Write i2c OK [12:57:57]MH_I2C_Read... [12:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:57]Read from MH i2c: E2 [12:57:57]MH_I2C_Read... [12:57:57]Read from MH i2c: E2 0E 00 [12:57:57]MH_I2C_Read... [12:57:57]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E2 [12:57:57]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:57:57]wFMCommunicate OK [12:57:57]SAM_PROTO_GetShiftState done [12:57:57]FM_GetShiftState done [12:57:57]opened in 1740098043 [12:57:57]opened+sec_in_day 1740184443 [12:57:57]quantity*price = 100012 [12:57:57]sum+1 = 100014 [12:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 123 21.02.2025 12:57 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187629 ФПД: 222549911597561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T125758&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187629&fm=222549911597561&tin=02508201610067®Number=0000000000091857&sum=100000 [12:57:58]StoreToDocumentArchive [12:57:58]shift 649 fd 187629 [12:57:58]save to /storage/0649/doc_00187629 [12:57:58]save last doc name /storage/0649/doc_00187629 to /storage/kkm_last_doc_name [12:57:58]save OK [12:57:58]Clear old archive folders... [12:57:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:59]tlvbuf is 00C02A00 [12:57:59]SAM_PROTO_ClearQueue [12:57:59]wFMCommunicate request_size=4 [12:57:59]MH_SAM_APDU [12:57:59]CAPDU: 80 09 00 00 [12:57:59]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:59]Read from MH i2c: E2 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 03 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [12:57:59]RAPDU: 90 00 [12:57:59]wFMCommunicate OK [12:57:59]SAM_PROTO_ClearQueue done [12:57:59]KKMCreateOFDPacket [12:57:59]OFDProtocolAddRootSTLVToBuf [12:57:59]FM_MakeSignedData [12:57:59]FM_MakeSignedData [12:57:59]SAM_PROTO_SignData [12:57:59]wFMCommunicate request_size=4 [12:57:59]MH_SAM_APDU [12:57:59]CAPDU: 80 0D 01 02 [12:57:59]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:59]Read from MH i2c: E2 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 03 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [12:57:59]RAPDU: 90 00 [12:57:59]wFMCommunicate OK [12:57:59]wFMCommunicate request_size=255 [12:57:59]MH_SAM_APDU [12: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 56 78 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED DC 02 00 35 04 06 00 CA [12:57:59]Write to MH i2c: E2 02 01 84 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 56 78 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED DC 02 00 35 04 06 00 CA 00 00 F7 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:59]Read from MH i2c: E2 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 03 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [12:57:59]RAPDU: 90 00 [12:57:59]wFMCommunicate OK [12:57:59]wFMCommunicate request_size=10 [12:57:59]MH_SAM_APDU [12:57:59]CAPDU: 80 0D 02 02 05 68 70 6C F1 F9 [12:57:59]Write to MH i2c: E2 0D 00 85 02 80 0D 02 02 05 00 68 70 6C F1 F9 00 00 39 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:59]Read from MH i2c: E2 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 03 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [12:57:59]RAPDU: 90 00 [12:57:59]wFMCommunicate OK [12:57:59]wFMCommunicate request_size=4 [12:57:59]MH_SAM_APDU [12:57:59]CAPDU: 80 0D 03 02 [12:57:59]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:59]Read from MH i2c: E2 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 0B 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 0B 00 86 02 00 51 F9 AF 31 C6 7D C1 05 90 00 37 [12:57:59]RAPDU: 51 F9 AF 31 C6 7D C1 05 90 00 [12:57:59]wFMCommunicate OK [12:57:59]SAM_PROTO_SignData done [12:57:59]FM_MakeSignedData done [12:57:59]CreateOFDProtocolMessage [12:57:59]wFMCommunicate request_size=4 [12:57:59]MH_SAM_APDU [12:57:59]CAPDU: 80 11 00 00 [12:57:59]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:59]Read from MH i2c: E2 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 17 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 56 [12:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:57:59]wFMCommunicate OK [12:57:59]CreateOFDProtocolMessage done [12:57:59]OFDSenderStorePacket 187629 [12:57:59]StoreOFDPacket docnum=187629 [12:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 11 8F 07 01 E2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 56 78 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED DC 02 00 35 04 06 00 CA 68 70 6C F1 F9 51 F9 AF 31 C6 7D C1 05 [12:57:59]CheckFolder [12:57:59]dirname=/storage/ofd_packets [12:57:59]CheckFolder done [12:57:59]ProducePacketName [12:57:59]name=ofd_packets/00187629 [12:57:59]NVStorageSaveData ofd_packets/00187629 [12:57:59]File name is /storage/ofd_packets/00187629 [12:57:59]Write 301 bytes [12:57:59]NVStorageSaveData done [12:57:59]OFDSenderStorePacket done [12:57:59]KKMCreateOFDPacket done [12:57:59]NVStorageSaveData kkm_last_timestamp [12:57:59]File name is /storage/kkm_last_timestamp [12:57:59]Write 4 bytes [12:57:59]NVStorageSaveData done [12:57:59]ExternCall_PrintAddStr [12:57:59]wPrintStart [12:57:59]Write to MH i2c: 01 00 00 88 02 8A [12:57:59]Write i2c OK [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: 01 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: 01 07 00 [12:57:59]MH_I2C_Read... [12:57:59]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [12:57:59]RasterBufferAndPrint [12:57:59]line Счет N : (1)412789 [12:57:59]line ИНН: 02508201610067 [12:57:59]line Контрольно-Кассовый Чек [12:57:59]line ПРОДАЖА [12:57:59]line ТРК (МРК, ГНК) : 13 [12:57:59]line Товар: 2710124500 [12:57:59]line Аи-95-К-5 [12:57:59]line 13.910 * 71.90 [12:57:59]line = 1000.13 [12:57:59]line НДС 12% НСП 1% [12:57:59]line > о реализуемом товаре [12:57:59]line ОКРУГЛЕНИЕ: -0.13 [12:57:59]line ИТОГО: 1000.00 [12:57:59]line Внесено: 1000.00 [12:57:59]line СДАЧА: 0.00 [12:57:59]line НСП 1% : 8.85 [12:57:59]line НДС 12% : 106.21 [12:57:59]line Наличными: 1000.00 [12:57:59]line Безнал.: 0.00 [12:57:59]line Место: АЗС № 92 "Партнер Нефть" [12:57:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:57:59]line СНО: Общий режим [12:57:59]line Чек 123 21.02.2025 12:57 [12:57:59]line Смена: 649 ФФД: 1.0 [12:57:59]line ЗНМ: 0300000118 [12:57:59]line РНМ: 0000000000091857 [12:57:59]line Версия ККМ: 001 [12:57:59]line ФМ: 0000000000871826 [12:57:59]line ФД: 187629 [12:57:59]line ФПД: 222549911597561 [12:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T125758&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187629&fm=222549911597561&tin=02508201610067®Number=0000000000091857&sum=100000 [12:57:59]OFD Sender: Processing packet 187629 [packets to send 49, broken 48] [12:57:59]ProducePacketName [12:57:59]name=ofd_packets/00187629 [12:57:59]OFD Sender: To server: pG, [12:57:59]CommunicateWithHost lk.salyk.kg:30040 [12:57:59]ConnectInit lk.salyk.kg [12:57:59]written 0, free lines is 4095 [12:58:00]Connected sock=10 [12: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 38 32 36 0F 01 00 00 11 8F 07 01 E2 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 56 78 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 ED DC 02 00 35 04 06 00 CA 68 70 6C F1 F9 51 F9 AF 31 C6 7D C1 05 [12: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 38 32 36 4F 00 00 00 BE 29 47 00 F8 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 38 32 36 10 04 04 00 ED DC 02 00 F4 03 04 00 A3 1E B8 67 B6 04 01 00 00 B7 A7 E1 68 E6 CF B0 42 [12:58:00]CommunicateWithHost err = 0 [12:58:00]CheckOFDResponse [12:58:00]1017 (14) - 77093643461234 [12:58:00]1041 (16) - 0000000000871826 [12:58:00]1040 (4) - 187629 [12:58:00]1012 (4) - 21.02.2025 06:35 [12:58:00]1206 (1) - 0 [12:58:00]OFD Sender: Remove packet 187629 [12:58:00]ProducePacketName [12:58:00]name=ofd_packets/00187629 [12:58:00]NVStorageDeleteData [12:58:00]Write to MH i2c: 01 00 00 B3 02 B5 [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: 01 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: 01 07 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 F9 0C C1 [12:58:00]RasterBufferAndPrint [12:58:00]line [12:58:00]line [12:58:00]line [12:58:00]line [12:58:00]line [12:58:00]written 0, free lines is 3327 [12:58:00]MH_Cut [12:58:00]Write to MH i2c: D1 01 00 BA 02 01 8E [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: D1 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: D1 01 00 [12:58:00]MH_I2C_Read... [12:58:00]Read from MH i2c: D1 01 00 BA 02 00 8D [12:58:00]Write to MH i2c: 01 00 00 BB 02 BD [12:58:00]Write i2c OK [12:58:00]MH_I2C_Read... [12:58:00]OFD Sender: No OFD packet to send [12:58:01]*** Cut start [12:58:01]*** Partial cut [12:58:01]*** CUTSNS_PIN = 1 [12:58:01]*** CUTSNS_PIN = 0 [12:58:01]*** Brake cut motor [12:58:01]Read from MH i2c: 01 [12:58:01]MH_I2C_Read... [12:58:01]*** Stop cut motor [12:58:01]*** Cut end [12:58:01]Read from MH i2c: 01 07 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [12:58:01]process_action close_receipt done [12:58:01]requested_data is exist [12:58:01]produce_requested_data [12:58:01]requested_item fm.sn is exist - process it [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 11 00 00 [12:58:01]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 17 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [12:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:58:01]wFMCommunicate OK [12:58:01]requested_item fd.num is exist - process it [12:58:01]SAM_PROTO_GetFieldsCounters [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 13 00 00 [12:58:01]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 62 00 [12:58:01]MH_I2C_Read... [12:58:01]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 ED DC 02 00 0E 04 04 00 89 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 28 [12:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 ED DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:01]wFMCommunicate OK [12:58:01]SAM_PROTO_GetFieldsCounters done [12:58:01]requested_item shift.num is exist - process it [12:58:01]requested_item shift.opened is exist - process it [12:58:01]req_shift_opened [12:58:01]FM_GetShiftState [12:58:01]SAM_PROTO_GetShiftState [12:58:01]wFMCommunicate request_size=4 [12:58:01]MH_SAM_APDU [12:58:01]CAPDU: 80 13 01 00 [12:58:01]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [12:58:01]Write i2c OK [12:58:01]MH_I2C_Read... [12:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:01]Read from MH i2c: E2 [12:58:01]MH_I2C_Read... [12:58:02]Read from MH i2c: E2 0E 00 [12:58:02]MH_I2C_Read... [12:58:02]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2B [12:58:02]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [12:58:02]wFMCommunicate OK [12:58:02]SAM_PROTO_GetShiftState done [12:58:02]FM_GetShiftState done [12:58:02]req_shift_opened done [12:58:02]requested_item shift.open_date is exist - process it [12:58:02]req_shift_open_date [12:58:02]req_shift_open_date done [12:58:02]produce_requested_data done [12:58:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187629,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [12:58:02]process_action_free close_receipt [12:58:02]json_value_free [12:58:02]json_value_free done [12:58:02]process_json_proto returns [12:58:02]Send response to host [12:58:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187629,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [12:58:02]free response buf [12:58:02]execute_script done [12:58:02]execute_script returns [12:58:02]free content buf [12:58:02]Sock 7.Close socket [12:58:02]Sock 7.Thread stoped [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:04:58]accept exits with 9 [13:04:58]New connection [13:04:58]New thread 3067481444 created [13:04:58]Thread 3067624804 joined [13:04:58]Waiting for new connection... [13:04:58] Sock 9.Parse request [13:04:58]Sock 9.Check first char [13:04:58]Sock 9.First char is OK [13:04:58]request: POST /json_proto HTTP/1.0 [13:04:58]Method: POST [13:04:58]URL: /json_proto [13:04:58]Method is POST - this is cgi request [13:04:58]url: /json_proto [13:04:58]query_string will be loaded in cgi processing [13:04:58]execute_cgi json_proto POST (null) [13:04:58]execute_cgi path=json_proto method=POST [13:04:58]POST find Content-Length [13:04:58]Host: 172.17.46.131:8080 [13:04:58]Content-Length: 754 [13:04:58]Content-Type: application/json [13:04:58] [13:04:58]POST finish read [13:04:58]Found Content-Length = 754 [13:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30172474", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:58]execute_script... [13:04: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)412790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30172474", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:58]POST & json_proto [13:04:58]process_json_proto [13:04:58]json parsed OK: [13:04:58]protocol is kg_v1.0 [13:04:58]action value=close_receipt [13:04:58]process_action close_receipt [13:04:58]cmd_close_receipt [13:04:58]MH_GetDate [13:04:58]Write to MH i2c: F0 00 00 BF 02 B0 [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: F0 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: F0 09 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: F0 09 00 BF 02 00 FA 79 B8 67 7E 41 4F 65 BE [13:04:58]GetLastDocTimeStamp 1740142678 [13:04:58]current date 1740143098 [13:04:58]FM_GetShiftState [13:04:58]SAM_PROTO_GetShiftState [13:04:58]wFMCommunicate request_size=4 [13:04:58]MH_SAM_APDU [13:04:58]CAPDU: 80 13 01 00 [13:04:58]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [13:04:58]Write i2c OK [13:04:58]MH_I2C_Read... [13:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:58]Read from MH i2c: E2 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 0E 00 [13:04:58]MH_I2C_Read... [13:04:58]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2D [13:04:58]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:04:58]wFMCommunicate OK [13:04:58]SAM_PROTO_GetShiftState done [13:04:58]FM_GetShiftState done [13:04:58]opened in 1740098043 [13:04:58]opened+sec_in_day 1740184443 [13:04:58]quantity*price = 0 [13:04:58]sum+1 = 1 [13:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 124 21.02.2025 13:04 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30172474 ФМ: 0000000000871826 ФД: 187630 ФПД: 243320255301637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T130458&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187630&fm=243320255301637&tin=02508201610067®Number=0000000000091857&sum=0 [13:04:59]StoreToDocumentArchive [13:04:59]shift 649 fd 187630 [13:04:59]save to /storage/0649/doc_00187630 [13:04:59]save last doc name /storage/0649/doc_00187630 to /storage/kkm_last_doc_name [13:04:59]save OK [13:04:59]Clear old archive folders... [13:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:59]tlvbuf is 00BBB040 [13:04:59]SAM_PROTO_ClearQueue [13:04:59]wFMCommunicate request_size=4 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 09 00 00 [13:04:59]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:59]Read from MH i2c: E2 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [13:04:59]RAPDU: 90 00 [13:04:59]wFMCommunicate OK [13:04:59]SAM_PROTO_ClearQueue done [13:04:59]KKMCreateOFDPacket [13:04:59]OFDProtocolAddRootSTLVToBuf [13:04:59]FM_MakeSignedData [13:04:59]FM_MakeSignedData [13:04:59]SAM_PROTO_SignData [13:04:59]wFMCommunicate request_size=4 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 0D 01 02 [13:04:59]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:59]Read from MH i2c: E2 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [13:04:59]RAPDU: 90 00 [13:04:59]wFMCommunicate OK [13:04:59]wFMCommunicate request_size=255 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 FA 79 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DC 02 00 35 04 06 00 DD [13:04:59]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 FA 79 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DC 02 00 35 04 06 00 DD 00 00 CE [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:59]Read from MH i2c: E2 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 [13:04:59]MH_I2C_Read... [13:04:59]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [13:04:59]RAPDU: 90 00 [13:04:59]wFMCommunicate OK [13:04:59]wFMCommunicate request_size=10 [13:04:59]MH_SAM_APDU [13:04:59]CAPDU: 80 0D 02 02 05 4C 69 62 48 05 [13:04:59]Write to MH i2c: E2 0D 00 D0 02 80 0D 02 02 05 00 4C 69 62 48 05 00 00 BA [13:04:59]Write i2c OK [13:04:59]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [13:05:00]RAPDU: 90 00 [13:05:00]wFMCommunicate OK [13:05:00]wFMCommunicate request_size=4 [13:05:00]MH_SAM_APDU [13:05:00]CAPDU: 80 0D 03 02 [13:05:00]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0B 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 0B 00 D1 02 00 5A 3E 2F 23 14 4F 46 18 90 00 FA [13:05:00]RAPDU: 5A 3E 2F 23 14 4F 46 18 90 00 [13:05:00]wFMCommunicate OK [13:05:00]SAM_PROTO_SignData done [13:05:00]FM_MakeSignedData done [13:05:00]CreateOFDProtocolMessage [13:05:00]wFMCommunicate request_size=4 [13:05:00]MH_SAM_APDU [13:05:00]CAPDU: 80 11 00 00 [13:05:00]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:00]Read from MH i2c: E2 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 17 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A1 [13:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:00]wFMCommunicate OK [13:05:00]CreateOFDProtocolMessage done [13:05:00]OFDSenderStorePacket 187630 [13:05:00]StoreOFDPacket docnum=187630 [13:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8F 9C 07 01 27 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 FA 79 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DC 02 00 35 04 06 00 DD 4C 69 62 48 05 5A 3E 2F 23 14 4F 46 18 [13:05:00]CheckFolder [13:05:00]dirname=/storage/ofd_packets [13:05:00]CheckFolder done [13:05:00]ProducePacketName [13:05:00]name=ofd_packets/00187630 [13:05:00]NVStorageSaveData ofd_packets/00187630 [13:05:00]File name is /storage/ofd_packets/00187630 [13:05:00]Write 301 bytes [13:05:00]NVStorageSaveData done [13:05:00]OFDSenderStorePacket done [13:05:00]KKMCreateOFDPacket done [13:05:00]NVStorageSaveData kkm_last_timestamp [13:05:00]File name is /storage/kkm_last_timestamp [13:05:00]Write 4 bytes [13:05:00]NVStorageSaveData done [13:05:00]ExternCall_PrintAddStr [13:05:00]wPrintStart [13:05:00]Write to MH i2c: 01 00 00 D3 02 D5 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [13:05:00]RasterBufferAndPrint [13:05:00]line Счет N : (1)412790 [13:05:00]line ИНН: 02508201610067 [13:05:00]line Контрольно-Кассовый Чек [13:05:00]line ПРОДАЖА [13:05:00]line ТРК (МРК, ГНК) : 32 [13:05:00]line Товар: 2710124130 [13:05:00]line Аи-92-К-2 [13:05:00]line 10.000 * 0.00 [13:05:00]line = 0.00 [13:05:00]line НДС 12% НСП 1% [13:05:00]line > о реализуемом товаре [13:05:00]line ИТОГО: 0.00 [13:05:00]line НСП 1% : 0.00 [13:05:00]line НДС 12% : 0.00 [13:05:00]line Наличными: 0.00 [13:05:00]line Безнал.: 0.00 [13:05:00]line Место: АЗС № 92 "Партнер Нефть" [13:05:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:05:00]line СНО: Общий режим [13:05:00]line Чек 124 21.02.2025 13:04 [13:05:00]line Смена: 649 ФФД: 1.0 [13:05:00]line ЗНМ: 0300000118 [13:05:00]line РНМ: 0000000000091857 [13:05:00]line Версия ККМ: 001 [13:05:00]line Талоны: ТК ГПНА Online [13:05:00]line 30172474 [13:05:00]line ФМ: 0000000000871826 [13:05:00]line ФД: 187630 [13:05:00]line ФПД: 243320255301637 [13:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T130458&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187630&fm=243320255301637&tin=02508201610067®Number=0000000000091857&sum=0 [13:05:00]written 0, free lines is 4095 [13:05:00]OFD Sender: Processing packet 187630 [packets to send 49, broken 48] [13:05:00]ProducePacketName [13:05:00]name=ofd_packets/00187630 [13:05:00]OFD Sender: To server: pG, [13:05:00]CommunicateWithHost lk.salyk.kg:30040 [13:05:00]ConnectInit lk.salyk.kg [13:05:00]Write to MH i2c: 01 00 00 FD 02 FF [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 F8 0C 0A [13:05:00]RasterBufferAndPrint [13:05:00]line [13:05:00]line [13:05:00]line [13:05:00]line [13:05:00]line [13:05:00]written 0, free lines is 3326 [13:05:00]MH_Cut [13:05:00]Write to MH i2c: D1 01 00 04 03 01 D9 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: D1 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: D1 01 00 [13:05:00]MH_I2C_Read... [13:05:00]Read from MH i2c: D1 01 00 04 03 00 D8 [13:05:00]Write to MH i2c: 01 00 00 05 03 08 [13:05:00]Write i2c OK [13:05:00]MH_I2C_Read... [13:05:00]Connected sock=10 [13:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8F 9C 07 01 27 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 FA 79 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DC 02 00 35 04 06 00 DD 4C 69 62 48 05 5A 3E 2F 23 14 4F 46 18 [13:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7B 13 47 00 B6 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EE DC 02 00 F4 03 04 00 48 20 B8 67 B6 04 01 00 00 E9 DF FF 86 C4 27 FE 21 [13:05:00]CommunicateWithHost err = 0 [13:05:00]CheckOFDResponse [13:05:00]1017 (14) - 77093643461234 [13:05:00]1041 (16) - 0000000000871826 [13:05:00]1040 (4) - 187630 [13:05:00]1012 (4) - 21.02.2025 06:42 [13:05:00]1206 (1) - 0 [13:05:00]OFD Sender: Remove packet 187630 [13:05:00]ProducePacketName [13:05:00]name=ofd_packets/00187630 [13:05:00]NVStorageDeleteData [13:05:01]*** Cut start [13:05:01]*** Partial cut [13:05:01]*** CUTSNS_PIN = 1 [13:05:01]*** CUTSNS_PIN = 0 [13:05:01]OFD Sender: No OFD packet to send [13:05:01]*** Brake cut motor [13:05:01]Read from MH i2c: 01 [13:05:01]MH_I2C_Read... [13:05:01]*** Stop cut motor [13:05:01]*** Cut end [13:05:01]Read from MH i2c: 01 07 00 [13:05:01]MH_I2C_Read... [13:05:01]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [13:05:01]process_action close_receipt done [13:05:01]requested_data is exist [13:05:01]produce_requested_data [13:05:01]requested_item fm.sn is exist - process it [13:05:01]wFMCommunicate request_size=4 [13:05:01]MH_SAM_APDU [13:05:01]CAPDU: 80 11 00 00 [13:05:01]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [13:05:01]Write i2c OK [13:05:01]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 17 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [13:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:02]wFMCommunicate OK [13:05:02]requested_item fd.num is exist - process it [13:05:02]SAM_PROTO_GetFieldsCounters [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 13 00 00 [13:05:02]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 62 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EE DC 02 00 0E 04 04 00 89 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 77 [13:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EE DC 02 00 0E 04 04 00 89 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 [13:05:02]wFMCommunicate OK [13:05:02]SAM_PROTO_GetFieldsCounters done [13:05:02]requested_item shift.num is exist - process it [13:05:02]requested_item shift.opened is exist - process it [13:05:02]req_shift_opened [13:05:02]FM_GetShiftState [13:05:02]SAM_PROTO_GetShiftState [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 13 01 00 [13:05:02]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0E 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 76 [13:05:02]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:05:02]wFMCommunicate OK [13:05:02]SAM_PROTO_GetShiftState done [13:05:02]FM_GetShiftState done [13:05:02]req_shift_opened done [13:05:02]requested_item shift.open_date is exist - process it [13:05:02]req_shift_open_date [13:05:02]req_shift_open_date done [13:05:02]produce_requested_data done [13:05:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187630,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:05:02]process_action_free close_receipt [13:05:02]json_value_free [13:05:02]json_value_free done [13:05:02]process_json_proto returns [13:05:02]Send response to host [13:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187630,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:05:02]free response buf [13:05:02]execute_script done [13:05:02]execute_script returns [13:05:02]free content buf [13:05:02]Sock 9.Close socket [13:05:02]Sock 9.Thread stoped [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:42]accept exits with 7 [13:05:42]New connection [13:05:42]New thread 3067624804 created [13:05:42]Thread 3067481444 joined [13:05:42]Waiting for new connection... [13:05:42] Sock 7.Parse request [13:05:42]Sock 7.Check first char [13:05:42]Sock 7.First char is OK [13:05:42]request: POST /json_proto HTTP/1.0 [13:05:42]Method: POST [13:05:42]URL: /json_proto [13:05:42]Method is POST - this is cgi request [13:05:42]url: /json_proto [13:05:42]query_string will be loaded in cgi processing [13:05:42]execute_cgi json_proto POST (null) [13:05:42]execute_cgi path=json_proto method=POST [13:05:42]POST find Content-Length [13:05:42]Host: 172.17.46.131:8080 [13:05:42]Content-Length: 677 [13:05:42]Content-Type: application/json [13:05:42] [13:05:42]POST finish read [13:05:42]Found Content-Length = 677 [13:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:42]execute_script... [13:05: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)412791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:42]POST & json_proto [13:05:42]process_json_proto [13:05:42]json parsed OK: [13:05:42]protocol is kg_v1.0 [13:05:42]action value=close_receipt [13:05:42]process_action close_receipt [13:05:42]cmd_close_receipt [13:05:42]MH_GetDate [13:05:42]Write to MH i2c: F0 00 00 09 03 FB [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: F0 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: F0 09 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: F0 09 00 09 03 00 27 7A B8 67 7E 41 4F 65 37 [13:05:42]GetLastDocTimeStamp 1740143098 [13:05:42]current date 1740143143 [13:05:42]FM_GetShiftState [13:05:42]SAM_PROTO_GetShiftState [13:05:42]wFMCommunicate request_size=4 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 13 01 00 [13:05:42]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 0E 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 78 [13:05:42]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:05:42]wFMCommunicate OK [13:05:42]SAM_PROTO_GetShiftState done [13:05:42]FM_GetShiftState done [13:05:42]opened in 1740098043 [13:05:42]opened+sec_in_day 1740184443 [13:05:42]quantity*price = 50011 [13:05:42]sum+1 = 50013 [13:05:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 125 21.02.2025 13:05 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187631 ФПД: 150461762695089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T130543&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187631&fm=150461762695089&tin=02508201610067®Number=0000000000091857&sum=50000 [13:05:44]StoreToDocumentArchive [13:05:44]shift 649 fd 187631 [13:05:44]save to /storage/0649/doc_00187631 [13:05:44]save last doc name /storage/0649/doc_00187631 to /storage/kkm_last_doc_name [13:05:44]save OK [13:05:44]Clear old archive folders... [13:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:44]tlvbuf is 00BB75B0 [13:05:44]SAM_PROTO_ClearQueue [13:05:44]wFMCommunicate request_size=4 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 09 00 00 [13:05:44]Write to MH i2c: E2 08 00 17 03 80 09 00 00 00 00 00 00 8C [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [13:05:44]RAPDU: 90 00 [13:05:44]wFMCommunicate OK [13:05:44]SAM_PROTO_ClearQueue done [13:05:44]KKMCreateOFDPacket [13:05:44]OFDProtocolAddRootSTLVToBuf [13:05:44]FM_MakeSignedData [13:05:44]FM_MakeSignedData [13:05:44]SAM_PROTO_SignData [13:05:44]wFMCommunicate request_size=4 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 0D 01 02 [13:05:44]Write to MH i2c: E2 08 00 18 03 80 0D 01 02 00 00 00 00 94 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [13:05:44]RAPDU: 90 00 [13:05:44]wFMCommunicate OK [13:05:44]wFMCommunicate request_size=255 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 27 7A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DC 02 00 35 04 06 00 88 [13:05:44]Write to MH i2c: E2 02 01 19 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 27 7A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DC 02 00 35 04 06 00 88 00 00 4A [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [13:05:44]RAPDU: 90 00 [13:05:44]wFMCommunicate OK [13:05:44]wFMCommunicate request_size=10 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 0D 02 02 05 D8 1B EA EF B1 [13:05:44]Write to MH i2c: E2 0D 00 1A 03 80 0D 02 02 05 00 D8 1B EA EF B1 00 00 1E [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [13:05:44]RAPDU: 90 00 [13:05:44]wFMCommunicate OK [13:05:44]wFMCommunicate request_size=4 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 0D 03 02 [13:05:44]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 0B 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 0B 00 1B 03 00 20 B2 27 96 50 FD 6D 06 90 00 E9 [13:05:44]RAPDU: 20 B2 27 96 50 FD 6D 06 90 00 [13:05:44]wFMCommunicate OK [13:05:44]SAM_PROTO_SignData done [13:05:44]FM_MakeSignedData done [13:05:44]CreateOFDProtocolMessage [13:05:44]wFMCommunicate request_size=4 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 11 00 00 [13:05:44]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 17 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EC [13:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:44]wFMCommunicate OK [13:05:44]CreateOFDProtocolMessage done [13:05:44]OFDSenderStorePacket 187631 [13:05:44]StoreOFDPacket docnum=187631 [13:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4A 22 07 01 1F 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 27 7A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DC 02 00 35 04 06 00 88 D8 1B EA EF B1 20 B2 27 96 50 FD 6D 06 [13:05:44]CheckFolder [13:05:44]dirname=/storage/ofd_packets [13:05:44]CheckFolder done [13:05:44]ProducePacketName [13:05:44]name=ofd_packets/00187631 [13:05:44]NVStorageSaveData ofd_packets/00187631 [13:05:44]File name is /storage/ofd_packets/00187631 [13:05:44]Write 301 bytes [13:05:44]NVStorageSaveData done [13:05:44]OFDSenderStorePacket done [13:05:44]KKMCreateOFDPacket done [13:05:44]NVStorageSaveData kkm_last_timestamp [13:05:44]File name is /storage/kkm_last_timestamp [13:05:44]Write 4 bytes [13:05:44]NVStorageSaveData done [13:05:44]ExternCall_PrintAddStr [13:05:44]wPrintStart [13:05:44]Write to MH i2c: 01 00 00 1D 03 20 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [13:05:44]RasterBufferAndPrint [13:05:44]line Счет N : (1)412791 [13:05:44]line ИНН: 02508201610067 [13:05:44]line Контрольно-Кассовый Чек [13:05:44]line ПРОДАЖА [13:05:44]line ТРК (МРК, ГНК) : 22 [13:05:44]line Товар: 2710124130 [13:05:44]line Аи-92-К-2 [13:05:44]line 7.790 * 64.20 [13:05:44]line = 500.12 [13:05:44]line НДС 12% НСП 1% [13:05:44]line > о реализуемом товаре [13:05:44]line ОКРУГЛЕНИЕ: -0.12 [13:05:44]line ИТОГО: 500.00 [13:05:44]line Внесено: 500.00 [13:05:44]line СДАЧА: 0.00 [13:05:44]line НСП 1% : 4.43 [13:05:44]line НДС 12% : 53.11 [13:05:44]line Наличными: 500.00 [13:05:44]line Безнал.: 0.00 [13:05:44]line Место: АЗС № 92 "Партнер Нефть" [13:05:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:05:44]line СНО: Общий режим [13:05:44]line Чек 125 21.02.2025 13:05 [13:05:44]line Смена: 649 ФФД: 1.0 [13:05:44]line ЗНМ: 0300000118 [13:05:44]line РНМ: 0000000000091857 [13:05:44]line Версия ККМ: 001 [13:05:44]line ФМ: 0000000000871826 [13:05:44]line ФД: 187631 [13:05:44]line ФПД: 150461762695089 [13:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T130543&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187631&fm=150461762695089&tin=02508201610067®Number=0000000000091857&sum=50000 [13:05:44]OFD Sender: Processing packet 187631 [packets to send 49, broken 48] [13:05:44]ProducePacketName [13:05:44]name=ofd_packets/00187631 [13:05:44]OFD Sender: To server: pG, [13:05:44]CommunicateWithHost lk.salyk.kg:30040 [13:05:44]ConnectInit lk.salyk.kg [13:05:44]written 0, free lines is 4095 [13:05:45]Connected sock=10 [13:05:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4A 22 07 01 1F 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 27 7A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DC 02 00 35 04 06 00 88 D8 1B EA EF B1 20 B2 27 96 50 FD 6D 06 [13:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7A E7 47 00 00 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DC 02 00 F4 03 04 00 74 20 B8 67 B6 04 01 00 00 8E 84 D9 4A A4 03 22 E8 [13:05:45]CommunicateWithHost err = 0 [13:05:45]CheckOFDResponse [13:05:45]1017 (14) - 77093643461234 [13:05:45]1041 (16) - 0000000000871826 [13:05:45]1040 (4) - 187631 [13:05:45]1012 (4) - 21.02.2025 06:43 [13:05:45]1206 (1) - 0 [13:05:45]OFD Sender: Remove packet 187631 [13:05:45]ProducePacketName [13:05:45]name=ofd_packets/00187631 [13:05:45]NVStorageDeleteData [13:05:45]Write to MH i2c: 01 00 00 48 03 4B [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: 01 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: 01 07 00 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 04 0D 63 [13:05:45]RasterBufferAndPrint [13:05:45]line [13:05:45]line [13:05:45]line [13:05:45]line [13:05:45]line [13:05:45]written 0, free lines is 3339 [13:05:45]MH_Cut [13:05:45]Write to MH i2c: D1 01 00 4F 03 01 24 [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: D1 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: D1 01 00 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: D1 01 00 4F 03 00 23 [13:05:45]Write to MH i2c: 01 00 00 50 03 53 [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:45]OFD Sender: No OFD packet to send [13:05:46]*** Cut start [13:05:46]*** Partial cut [13:05:46]*** CUTSNS_PIN = 1 [13:05:46]*** CUTSNS_PIN = 0 [13:05:46]*** Brake cut motor [13:05:46]Read from MH i2c: 01 [13:05:46]MH_I2C_Read... [13:05:46]*** Stop cut motor [13:05:46]*** Cut end [13:05:46]Read from MH i2c: 01 07 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [13:05:46]process_action close_receipt done [13:05:46]requested_data is exist [13:05:46]produce_requested_data [13:05:46]requested_item fm.sn is exist - process it [13:05:46]wFMCommunicate request_size=4 [13:05:46]MH_SAM_APDU [13:05:46]CAPDU: 80 11 00 00 [13:05:46]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [13:05:46]Write i2c OK [13:05:46]MH_I2C_Read... [13:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:46]Read from MH i2c: E2 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 17 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [13:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:46]wFMCommunicate OK [13:05:46]requested_item fd.num is exist - process it [13:05:46]SAM_PROTO_GetFieldsCounters [13:05:46]wFMCommunicate request_size=4 [13:05:46]MH_SAM_APDU [13:05:46]CAPDU: 80 13 00 00 [13:05:46]Write to MH i2c: E2 08 00 52 03 80 13 00 00 00 00 00 00 D1 [13:05:46]Write i2c OK [13:05:46]MH_I2C_Read... [13:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:47]Read from MH i2c: E2 [13:05:47]MH_I2C_Read... [13:05:47]Read from MH i2c: E2 62 00 [13:05:47]MH_I2C_Read... [13:05:47]Read from MH i2c: E2 62 00 52 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EF DC 02 00 0E 04 04 00 89 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 C6 [13:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 EF DC 02 00 0E 04 04 00 89 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 [13:05:47]wFMCommunicate OK [13:05:47]SAM_PROTO_GetFieldsCounters done [13:05:47]requested_item shift.num is exist - process it [13:05:47]requested_item shift.opened is exist - process it [13:05:47]req_shift_opened [13:05:47]FM_GetShiftState [13:05:47]SAM_PROTO_GetShiftState [13:05:47]wFMCommunicate request_size=4 [13:05:47]MH_SAM_APDU [13:05:47]CAPDU: 80 13 01 00 [13:05:47]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [13:05:47]Write i2c OK [13:05:47]MH_I2C_Read... [13:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:47]Read from MH i2c: E2 [13:05:47]MH_I2C_Read... [13:05:47]Read from MH i2c: E2 0E 00 [13:05:47]MH_I2C_Read... [13:05:47]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C1 [13:05:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:05:47]wFMCommunicate OK [13:05:47]SAM_PROTO_GetShiftState done [13:05:47]FM_GetShiftState done [13:05:47]req_shift_opened done [13:05:47]requested_item shift.open_date is exist - process it [13:05:47]req_shift_open_date [13:05:47]req_shift_open_date done [13:05:47]produce_requested_data done [13:05:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187631,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:05:47]process_action_free close_receipt [13:05:47]json_value_free [13:05:47]json_value_free done [13:05:47]process_json_proto returns [13:05:47]Send response to host [13:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187631,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:05:47]free response buf [13:05:47]execute_script done [13:05:47]execute_script returns [13:05:47]free content buf [13:05:47]Sock 7.Close socket [13:05:47]Sock 7.Thread stoped [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [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:31]accept exits with 9 [13:07:31]New connection [13:07:31]New thread 3067481444 created [13:07:31]Thread 3067624804 joined [13:07:31]Waiting for new connection... [13:07:31] Sock 9.Parse request [13:07:31]Sock 9.Check first char [13:07:31]Sock 9.First char is OK [13:07:31]request: POST /json_proto HTTP/1.0 [13:07:31]Method: POST [13:07:31]URL: /json_proto [13:07:31]Method is POST - this is cgi request [13:07:31]url: /json_proto [13:07:31]query_string will be loaded in cgi processing [13:07:31]execute_cgi json_proto POST (null) [13:07:31]execute_cgi path=json_proto method=POST [13:07:31]POST find Content-Length [13:07:31]Host: 172.17.46.131:8080 [13:07:31]Content-Length: 682 [13:07:31]Content-Type: application/json [13:07:31] [13:07:31]POST finish read [13:07:31]Found Content-Length = 682 [13:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 17.920, "sum" : 1150.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:31]execute_script... [13:07: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)412792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 17.920, "sum" : 1150.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:31]POST & json_proto [13:07:31]process_json_proto [13:07:31]json parsed OK: [13:07:31]protocol is kg_v1.0 [13:07:31]action value=close_receipt [13:07:31]process_action close_receipt [13:07:31]cmd_close_receipt [13:07:31]MH_GetDate [13:07:31]Write to MH i2c: F0 00 00 54 03 46 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: F0 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: F0 09 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: F0 09 00 54 03 00 93 7A B8 67 7E 41 4F 65 EE [13:07:31]GetLastDocTimeStamp 1740143143 [13:07:31]current date 1740143251 [13:07:31]FM_GetShiftState [13:07:31]SAM_PROTO_GetShiftState [13:07:31]wFMCommunicate request_size=4 [13:07:31]MH_SAM_APDU [13:07:31]CAPDU: 80 13 01 00 [13:07:31]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:31]Read from MH i2c: E2 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 0E 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C3 [13:07:31]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:07:31]wFMCommunicate OK [13:07:31]SAM_PROTO_GetShiftState done [13:07:31]FM_GetShiftState done [13:07:31]opened in 1740098043 [13:07:31]opened+sec_in_day 1740184443 [13:07:31]quantity*price = 115046 [13:07:31]sum+1 = 115047 [13:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1150.00 Внесено: 1150.00 СДАЧА: 0.00 НСП 1% : 10.18 НДС 12% : 122.17 Наличными: 1150.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 126 21.02.2025 13:07 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187632 ФПД: 59035518929160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T130731&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187632&fm=59035518929160&tin=02508201610067®Number=0000000000091857&sum=115000 [13:07:32]StoreToDocumentArchive [13:07:32]shift 649 fd 187632 [13:07:32]save to /storage/0649/doc_00187632 [13:07:32]save last doc name /storage/0649/doc_00187632 to /storage/kkm_last_doc_name [13:07:32]save OK [13:07:32]Clear old archive folders... [13:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:32]tlvbuf is 00BB6EB0 [13:07:32]SAM_PROTO_ClearQueue [13:07:32]wFMCommunicate request_size=4 [13:07:32]MH_SAM_APDU [13:07:32]CAPDU: 80 09 00 00 [13:07:32]Write to MH i2c: E2 08 00 62 03 80 09 00 00 00 00 00 00 D7 [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:32]Read from MH i2c: E2 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 03 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [13:07:32]RAPDU: 90 00 [13:07:32]wFMCommunicate OK [13:07:32]SAM_PROTO_ClearQueue done [13:07:32]KKMCreateOFDPacket [13:07:32]OFDProtocolAddRootSTLVToBuf [13:07:32]FM_MakeSignedData [13:07:32]FM_MakeSignedData [13:07:32]SAM_PROTO_SignData [13:07:32]wFMCommunicate request_size=4 [13:07:32]MH_SAM_APDU [13:07:32]CAPDU: 80 0D 01 02 [13:07:32]Write to MH i2c: E2 08 00 63 03 80 0D 01 02 00 00 00 00 DF [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:32]Read from MH i2c: E2 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 03 00 [13:07:32]MH_I2C_Read... [13:07:32]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [13:07:32]RAPDU: 90 00 [13:07:32]wFMCommunicate OK [13:07:32]wFMCommunicate request_size=255 [13:07:32]MH_SAM_APDU [13:07:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 46 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 66 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 2F 00 00 00 00 07 04 06 00 38 C1 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 93 7A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DC 02 00 35 04 06 00 35 [13:07:32]Write to MH i2c: E2 02 01 64 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 46 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 66 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 2F 00 00 00 00 07 04 06 00 38 C1 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 93 7A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DC 02 00 35 04 06 00 35 00 00 97 [13:07:32]Write i2c OK [13:07:32]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [13:07:33]RAPDU: 90 00 [13:07:33]wFMCommunicate OK [13:07:33]wFMCommunicate request_size=10 [13:07:33]MH_SAM_APDU [13:07:33]CAPDU: 80 0D 02 02 05 B1 47 22 89 08 [13:07:33]Write to MH i2c: E2 0D 00 65 03 80 0D 02 02 05 00 B1 47 22 89 08 00 00 97 [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [13:07:33]RAPDU: 90 00 [13:07:33]wFMCommunicate OK [13:07:33]wFMCommunicate request_size=4 [13:07:33]MH_SAM_APDU [13:07:33]CAPDU: 80 0D 03 02 [13:07:33]Write to MH i2c: E2 08 00 66 03 80 0D 03 02 00 00 00 00 E4 [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 0B 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 0B 00 66 03 00 F6 21 01 EB 88 70 AF 50 90 00 DF [13:07:33]RAPDU: F6 21 01 EB 88 70 AF 50 90 00 [13:07:33]wFMCommunicate OK [13:07:33]SAM_PROTO_SignData done [13:07:33]FM_MakeSignedData done [13:07:33]CreateOFDProtocolMessage [13:07:33]wFMCommunicate request_size=4 [13:07:33]MH_SAM_APDU [13:07:33]CAPDU: 80 11 00 00 [13:07:33]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 17 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [13:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:07:33]wFMCommunicate OK [13:07:33]CreateOFDProtocolMessage done [13:07:33]OFDSenderStorePacket 187632 [13:07:33]StoreOFDPacket docnum=187632 [13:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC 09 07 01 DF 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 46 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 66 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 2F 00 00 00 00 07 04 06 00 38 C1 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 93 7A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DC 02 00 35 04 06 00 35 B1 47 22 89 08 F6 21 01 EB 88 70 AF 50 [13:07:33]CheckFolder [13:07:33]dirname=/storage/ofd_packets [13:07:33]CheckFolder done [13:07:33]ProducePacketName [13:07:33]name=ofd_packets/00187632 [13:07:33]NVStorageSaveData ofd_packets/00187632 [13:07:33]File name is /storage/ofd_packets/00187632 [13:07:33]Write 301 bytes [13:07:33]NVStorageSaveData done [13:07:33]OFDSenderStorePacket done [13:07:33]KKMCreateOFDPacket done [13:07:33]NVStorageSaveData kkm_last_timestamp [13:07:33]File name is /storage/kkm_last_timestamp [13:07:33]Write 4 bytes [13:07:33]NVStorageSaveData done [13:07:33]ExternCall_PrintAddStr [13:07:33]wPrintStart [13:07:33]Write to MH i2c: 01 00 00 68 03 6B [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: 01 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: 01 07 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 FF 0F 80 [13:07:33]RasterBufferAndPrint [13:07:33]line Счет N : (1)412792 [13:07:33]line ИНН: 02508201610067 [13:07:33]line Контрольно-Кассовый Чек [13:07:33]line ПРОДАЖА [13:07:33]line ТРК (МРК, ГНК) : 42 [13:07:33]line Товар: 2710124130 [13:07:33]line Аи-92-К-2 [13:07:33]line 17.920 * 64.20 [13:07:33]line = 1150.46 [13:07:33]line НДС 12% НСП 1% [13:07:33]line > о реализуемом товаре [13:07:33]line ОКРУГЛЕНИЕ: -0.46 [13:07:33]line ИТОГО: 1150.00 [13:07:33]line Внесено: 1150.00 [13:07:33]line СДАЧА: 0.00 [13:07:33]line НСП 1% : 10.18 [13:07:33]line НДС 12% : 122.17 [13:07:33]line Наличными: 1150.00 [13:07:33]line Безнал.: 0.00 [13:07:33]line Место: АЗС № 92 "Партнер Нефть" [13:07:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:07:33]line СНО: Общий режим [13:07:33]line Чек 126 21.02.2025 13:07 [13:07:33]line Смена: 649 ФФД: 1.0 [13:07:33]line ЗНМ: 0300000118 [13:07:33]line РНМ: 0000000000091857 [13:07:33]line Версия ККМ: 001 [13:07:33]line ФМ: 0000000000871826 [13:07:33]line ФД: 187632 [13:07:33]line ФПД: 59035518929160 [13:07:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T130731&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187632&fm=59035518929160&tin=02508201610067®Number=0000000000091857&sum=115000 [13:07:33]OFD Sender: Processing packet 187632 [packets to send 49, broken 48] [13:07:33]ProducePacketName [13:07:33]name=ofd_packets/00187632 [13:07:33]OFD Sender: To server: pG, [13:07:33]CommunicateWithHost lk.salyk.kg:30040 [13:07:33]ConnectInit lk.salyk.kg [13:07:33]written 0, free lines is 4095 [13:07:33]Connected sock=10 [13:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC 09 07 01 DF 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 00 46 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 66 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 2F 00 00 00 00 07 04 06 00 38 C1 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 93 7A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DC 02 00 35 04 06 00 35 B1 47 22 89 08 F6 21 01 EB 88 70 AF 50 [13:07:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 09 1A 47 00 7A 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DC 02 00 F4 03 04 00 E1 20 B8 67 B6 04 01 00 00 21 E3 EB 37 6A 18 B3 25 [13:07:34]CommunicateWithHost err = 0 [13:07:34]CheckOFDResponse [13:07:34]1017 (14) - 77093643461234 [13:07:34]1041 (16) - 0000000000871826 [13:07:34]1040 (4) - 187632 [13:07:34]1012 (4) - 21.02.2025 06:44 [13:07:34]1206 (1) - 0 [13:07:34]OFD Sender: Remove packet 187632 [13:07:34]ProducePacketName [13:07:34]name=ofd_packets/00187632 [13:07:34]NVStorageDeleteData [13:07:34]Write to MH i2c: 01 00 00 93 03 96 [13:07:34]Write i2c OK [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: 01 [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: 01 07 00 [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 F4 0C 9D [13:07:34]RasterBufferAndPrint [13:07:34]line [13:07:34]line [13:07:34]line [13:07:34]line [13:07:34]line [13:07:34]written 0, free lines is 3322 [13:07:34]MH_Cut [13:07:34]Write to MH i2c: D1 01 00 9A 03 01 6F [13:07:34]Write i2c OK [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: D1 [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: D1 01 00 [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: D1 01 00 9A 03 00 6E [13:07:34]Write to MH i2c: 01 00 00 9B 03 9E [13:07:34]Write i2c OK [13:07:34]MH_I2C_Read... [13:07:34]OFD Sender: No OFD packet to send [13:07:34]*** Cut start [13:07:34]*** Partial cut [13:07:34]*** CUTSNS_PIN = 1 [13:07:34]*** CUTSNS_PIN = 0 [13:07:35]*** Brake cut motor [13:07:35]Read from MH i2c: 01 [13:07:35]MH_I2C_Read... [13:07:35]*** Stop cut motor [13:07:35]*** Cut end [13:07:35]Read from MH i2c: 01 07 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [13:07:35]process_action close_receipt done [13:07:35]requested_data is exist [13:07:35]produce_requested_data [13:07:35]requested_item fm.sn is exist - process it [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 11 00 00 [13:07:35]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 17 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6C [13:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:07:35]wFMCommunicate OK [13:07:35]requested_item fd.num is exist - process it [13:07:35]SAM_PROTO_GetFieldsCounters [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 13 00 00 [13:07:35]Write to MH i2c: E2 08 00 9D 03 80 13 00 00 00 00 00 00 1C [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 62 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 62 00 9D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F0 DC 02 00 0E 04 04 00 89 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 15 [13:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F0 DC 02 00 0E 04 04 00 89 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 [13:07:35]wFMCommunicate OK [13:07:35]SAM_PROTO_GetFieldsCounters done [13:07:35]requested_item shift.num is exist - process it [13:07:35]requested_item shift.opened is exist - process it [13:07:35]req_shift_opened [13:07:35]FM_GetShiftState [13:07:35]SAM_PROTO_GetShiftState [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 13 01 00 [13:07:35]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 0E 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0C [13:07:35]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:07:35]wFMCommunicate OK [13:07:35]SAM_PROTO_GetShiftState done [13:07:35]FM_GetShiftState done [13:07:35]req_shift_opened done [13:07:35]requested_item shift.open_date is exist - process it [13:07:35]req_shift_open_date [13:07:35]req_shift_open_date done [13:07:35]produce_requested_data done [13:07:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187632,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:07:35]process_action_free close_receipt [13:07:35]json_value_free [13:07:35]json_value_free done [13:07:35]process_json_proto returns [13:07:35]Send response to host [13:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187632,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:07:35]free response buf [13:07:35]execute_script done [13:07:35]execute_script returns [13:07:35]free content buf [13:07:35]Sock 9.Close socket [13:07:35]Sock 9.Thread stoped [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:43]accept exits with 7 [13:12:43]New connection [13:12:43]New thread 3067624804 created [13:12:43]Thread 3067481444 joined [13:12:43]Waiting for new connection... [13:12:43] Sock 7.Parse request [13:12:43]Sock 7.Check first char [13:12:43]Sock 7.First char is OK [13:12:43]request: POST /json_proto HTTP/1.0 [13:12:43]Method: POST [13:12:43]URL: /json_proto [13:12:43]Method is POST - this is cgi request [13:12:43]url: /json_proto [13:12:43]query_string will be loaded in cgi processing [13:12:43]execute_cgi json_proto POST (null) [13:12:43]execute_cgi path=json_proto method=POST [13:12:43]POST find Content-Length [13:12:43]Host: 172.17.46.131:8080 [13:12:43]Content-Length: 679 [13:12:43]Content-Type: application/json [13:12:43] [13:12:43]POST finish read [13:12:43]Found Content-Length = 679 [13:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:43]execute_script... [13:12: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)412793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:43]POST & json_proto [13:12:43]process_json_proto [13:12:43]json parsed OK: [13:12:43]protocol is kg_v1.0 [13:12:43]action value=close_receipt [13:12:43]process_action close_receipt [13:12:43]cmd_close_receipt [13:12:43]MH_GetDate [13:12:43]Write to MH i2c: F0 00 00 9F 03 91 [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: F0 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: F0 09 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: F0 09 00 9F 03 00 CC 7B B8 67 7E 41 4F 65 73 [13:12:43]GetLastDocTimeStamp 1740143251 [13:12:43]current date 1740143564 [13:12:43]FM_GetShiftState [13:12:43]SAM_PROTO_GetShiftState [13:12:43]wFMCommunicate request_size=4 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 13 01 00 [13:12:43]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 0E 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0E [13:12:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:12:43]wFMCommunicate OK [13:12:43]SAM_PROTO_GetShiftState done [13:12:43]FM_GetShiftState done [13:12:43]opened in 1740098043 [13:12:43]opened+sec_in_day 1740184443 [13:12:43]quantity*price = 100042 [13:12:43]sum+1 = 100044 [13:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 127 21.02.2025 13:12 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187633 ФПД: 228891482605227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T131244&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187633&fm=228891482605227&tin=02508201610067®Number=0000000000091857&sum=100000 [13:12:45]StoreToDocumentArchive [13:12:45]shift 649 fd 187633 [13:12:45]save to /storage/0649/doc_00187633 [13:12:45]save last doc name /storage/0649/doc_00187633 to /storage/kkm_last_doc_name [13:12:45]save OK [13:12:45]Clear old archive folders... [13:12:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:12:45]tlvbuf is 00BB6B80 [13:12:45]SAM_PROTO_ClearQueue [13:12:45]wFMCommunicate request_size=4 [13:12:45]MH_SAM_APDU [13:12:45]CAPDU: 80 09 00 00 [13:12:45]Write to MH i2c: E2 08 00 AD 03 80 09 00 00 00 00 00 00 22 [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:45]Read from MH i2c: E2 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 03 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [13:12:45]RAPDU: 90 00 [13:12:45]wFMCommunicate OK [13:12:45]SAM_PROTO_ClearQueue done [13:12:45]KKMCreateOFDPacket [13:12:45]OFDProtocolAddRootSTLVToBuf [13:12:45]FM_MakeSignedData [13:12:45]FM_MakeSignedData [13:12:45]SAM_PROTO_SignData [13:12:45]wFMCommunicate request_size=4 [13:12:45]MH_SAM_APDU [13:12:45]CAPDU: 80 0D 01 02 [13:12:45]Write to MH i2c: E2 08 00 AE 03 80 0D 01 02 00 00 00 00 2A [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:45]Read from MH i2c: E2 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 03 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [13:12:45]RAPDU: 90 00 [13:12:45]wFMCommunicate OK [13:12:45]wFMCommunicate request_size=255 [13:12:45]MH_SAM_APDU [13:12: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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CC 7B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DC 02 00 35 04 06 00 D0 2C F3 83 [13:12:45]Write to MH i2c: E2 02 01 AF 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CC 7B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DC 02 00 35 04 06 00 D0 2C F3 83 00 00 7C [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:45]Read from MH i2c: E2 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 03 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [13:12:45]RAPDU: 90 00 [13:12:45]wFMCommunicate OK [13:12:45]wFMCommunicate request_size=7 [13:12:45]MH_SAM_APDU [13:12:45]CAPDU: 80 0D 02 02 02 46 AB [13:12:45]Write to MH i2c: E2 0A 00 B0 03 80 0D 02 02 02 00 46 AB 00 00 22 [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:45]Read from MH i2c: E2 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 03 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [13:12:45]RAPDU: 90 00 [13:12:45]wFMCommunicate OK [13:12:45]wFMCommunicate request_size=4 [13:12:45]MH_SAM_APDU [13:12:45]CAPDU: 80 0D 03 02 [13:12:45]Write to MH i2c: E2 08 00 B1 03 80 0D 03 02 00 00 00 00 2F [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:45]Read from MH i2c: E2 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 0B 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 0B 00 B1 03 00 78 07 FE 42 F0 5E CA 3E 90 00 45 [13:12:45]RAPDU: 78 07 FE 42 F0 5E CA 3E 90 00 [13:12:45]wFMCommunicate OK [13:12:45]SAM_PROTO_SignData done [13:12:45]FM_MakeSignedData done [13:12:45]CreateOFDProtocolMessage [13:12:45]wFMCommunicate request_size=4 [13:12:45]MH_SAM_APDU [13:12:45]CAPDU: 80 11 00 00 [13:12:45]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:45]Read from MH i2c: E2 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 17 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 17 00 B2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [13:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:45]wFMCommunicate OK [13:12:45]CreateOFDProtocolMessage done [13:12:45]OFDSenderStorePacket 187633 [13:12:45]StoreOFDPacket docnum=187633 [13:12:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EA 82 04 01 7F 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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CC 7B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DC 02 00 35 04 06 00 D0 2C F3 83 46 AB 78 07 FE 42 F0 5E CA 3E [13:12:45]CheckFolder [13:12:45]dirname=/storage/ofd_packets [13:12:45]CheckFolder done [13:12:45]ProducePacketName [13:12:45]name=ofd_packets/00187633 [13:12:45]NVStorageSaveData ofd_packets/00187633 [13:12:45]File name is /storage/ofd_packets/00187633 [13:12:45]Write 298 bytes [13:12:45]NVStorageSaveData done [13:12:45]OFDSenderStorePacket done [13:12:45]KKMCreateOFDPacket done [13:12:45]NVStorageSaveData kkm_last_timestamp [13:12:45]File name is /storage/kkm_last_timestamp [13:12:45]Write 4 bytes [13:12:45]NVStorageSaveData done [13:12:45]ExternCall_PrintAddStr [13:12:45]wPrintStart [13:12:45]Write to MH i2c: 01 00 00 B3 03 B6 [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: 01 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: 01 07 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 FF 0F CB [13:12:45]RasterBufferAndPrint [13:12:45]line Счет N : (1)412793 [13:12:45]line ИНН: 02508201610067 [13:12:45]line Контрольно-Кассовый Чек [13:12:45]line ПРОДАЖА [13:12:45]line ТРК (МРК, ГНК) : 11 [13:12:45]line Товар: 2710194210 [13:12:45]line ДТ-К-2 [13:12:45]line 13.780 * 72.60 [13:12:45]line = 1000.43 [13:12:45]line НДС 12% НСП 1% [13:12:45]line > о реализуемом товаре [13:12:45]line ОКРУГЛЕНИЕ: -0.43 [13:12:45]line ИТОГО: 1000.00 [13:12:45]line Внесено: 1000.00 [13:12:45]line СДАЧА: 0.00 [13:12:45]line НСП 1% : 8.85 [13:12:45]line НДС 12% : 106.24 [13:12:45]line Наличными: 1000.00 [13:12:45]line Безнал.: 0.00 [13:12:45]line Место: АЗС № 92 "Партнер Нефть" [13:12:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:12:45]line СНО: Общий режим [13:12:45]line Чек 127 21.02.2025 13:12 [13:12:45]line Смена: 649 ФФД: 1.0 [13:12:45]line ЗНМ: 0300000118 [13:12:45]line РНМ: 0000000000091857 [13:12:45]line Версия ККМ: 001 [13:12:45]line ФМ: 0000000000871826 [13:12:45]line ФД: 187633 [13:12:45]line ФПД: 228891482605227 [13:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T131244&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187633&fm=228891482605227&tin=02508201610067®Number=0000000000091857&sum=100000 [13:12:45]OFD Sender: Processing packet 187633 [packets to send 49, broken 48] [13:12:45]ProducePacketName [13:12:45]name=ofd_packets/00187633 [13:12:45]OFD Sender: To server: pG, [13:12:45]CommunicateWithHost lk.salyk.kg:30040 [13:12:45]ConnectInit lk.salyk.kg [13:12:45]written 0, free lines is 4095 [13:12:46]Connected sock=10 [13:12:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EA 82 04 01 7F 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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 CC 7B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DC 02 00 35 04 06 00 D0 2C F3 83 46 AB 78 07 FE 42 F0 5E CA 3E [13:12:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9B ED 47 00 42 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F1 DC 02 00 F4 03 04 00 19 22 B8 67 B6 04 01 00 00 BA E4 F8 0E 57 50 53 40 [13:12:46]CommunicateWithHost err = 0 [13:12:46]CheckOFDResponse [13:12:46]1017 (14) - 77093643461234 [13:12:46]1041 (16) - 0000000000871826 [13:12:46]1040 (4) - 187633 [13:12:46]1012 (4) - 21.02.2025 06:50 [13:12:46]1206 (1) - 0 [13:12:46]OFD Sender: Remove packet 187633 [13:12:46]ProducePacketName [13:12:46]name=ofd_packets/00187633 [13:12:46]NVStorageDeleteData [13:12:46]Write to MH i2c: 01 00 00 DE 03 E1 [13:12:46]Write i2c OK [13:12:46]MH_I2C_Read... [13:12:46]Read from MH i2c: 01 [13:12:46]MH_I2C_Read... [13:12:46]Read from MH i2c: 01 07 00 [13:12:46]MH_I2C_Read... [13:12:46]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 04 0D F9 [13:12:46]RasterBufferAndPrint [13:12:46]line [13:12:46]line [13:12:46]line [13:12:46]line [13:12:46]line [13:12:46]written 0, free lines is 3339 [13:12:46]MH_Cut [13:12:46]Write to MH i2c: D1 01 00 E5 03 01 BA [13:12:46]Write i2c OK [13:12:46]MH_I2C_Read... [13:12:46]Read from MH i2c: D1 [13:12:46]MH_I2C_Read... [13:12:46]Read from MH i2c: D1 01 00 [13:12:46]MH_I2C_Read... [13:12:46]Read from MH i2c: D1 01 00 E5 03 00 B9 [13:12:46]Write to MH i2c: 01 00 00 E6 03 E9 [13:12:46]Write i2c OK [13:12:46]MH_I2C_Read... [13:12:46]OFD Sender: No OFD packet to send [13:12:47]*** Cut start [13:12:47]*** Partial cut [13:12:47]*** CUTSNS_PIN = 1 [13:12:47]*** CUTSNS_PIN = 0 [13:12:47]*** Brake cut motor [13:12:47]Read from MH i2c: 01 [13:12:47]MH_I2C_Read... [13:12:47]*** Stop cut motor [13:12:47]*** Cut end [13:12:47]Read from MH i2c: 01 07 00 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [13:12:47]process_action close_receipt done [13:12:47]requested_data is exist [13:12:47]produce_requested_data [13:12:47]requested_item fm.sn is exist - process it [13:12:47]wFMCommunicate request_size=4 [13:12:47]MH_SAM_APDU [13:12:47]CAPDU: 80 11 00 00 [13:12:47]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [13:12:47]Write i2c OK [13:12:47]MH_I2C_Read... [13:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:47]Read from MH i2c: E2 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 17 00 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B7 [13:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:47]wFMCommunicate OK [13:12:47]requested_item fd.num is exist - process it [13:12:47]SAM_PROTO_GetFieldsCounters [13:12:47]wFMCommunicate request_size=4 [13:12:47]MH_SAM_APDU [13:12:47]CAPDU: 80 13 00 00 [13:12:47]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [13:12:47]Write i2c OK [13:12:47]MH_I2C_Read... [13:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:47]Read from MH i2c: E2 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 62 00 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 62 00 E8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F1 DC 02 00 0E 04 04 00 89 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 64 [13:12:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F1 DC 02 00 0E 04 04 00 89 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 [13:12:47]wFMCommunicate OK [13:12:47]SAM_PROTO_GetFieldsCounters done [13:12:47]requested_item shift.num is exist - process it [13:12:47]requested_item shift.opened is exist - process it [13:12:47]req_shift_opened [13:12:47]FM_GetShiftState [13:12:47]SAM_PROTO_GetShiftState [13:12:47]wFMCommunicate request_size=4 [13:12:47]MH_SAM_APDU [13:12:47]CAPDU: 80 13 01 00 [13:12:47]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [13:12:47]Write i2c OK [13:12:47]MH_I2C_Read... [13:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:47]Read from MH i2c: E2 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 0E 00 [13:12:47]MH_I2C_Read... [13:12:47]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 57 [13:12:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:12:47]wFMCommunicate OK [13:12:47]SAM_PROTO_GetShiftState done [13:12:47]FM_GetShiftState done [13:12:47]req_shift_opened done [13:12:47]requested_item shift.open_date is exist - process it [13:12:47]req_shift_open_date [13:12:47]req_shift_open_date done [13:12:47]produce_requested_data done [13:12:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187633,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:12:47]process_action_free close_receipt [13:12:47]json_value_free [13:12:47]json_value_free done [13:12:47]process_json_proto returns [13:12:47]Send response to host [13:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187633,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:12:47]free response buf [13:12:47]execute_script done [13:12:47]execute_script returns [13:12:47]free content buf [13:12:47]Sock 7.Close socket [13:12:47]Sock 7.Thread stoped [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:06]OFD Sender: No OFD packet to send [13:13:11]OFD Sender: No OFD packet to send [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:51]accept exits with 9 [13:21:51]New connection [13:21:51]New thread 3067481444 created [13:21:51]Thread 3067624804 joined [13:21:51]Waiting for new connection... [13:21:51] Sock 9.Parse request [13:21:51]Sock 9.Check first char [13:21:51]Sock 9.First char is OK [13:21:51]request: POST /json_proto HTTP/1.0 [13:21:51]Method: POST [13:21:51]URL: /json_proto [13:21:51]Method is POST - this is cgi request [13:21:51]url: /json_proto [13:21:51]query_string will be loaded in cgi processing [13:21:51]execute_cgi json_proto POST (null) [13:21:51]execute_cgi path=json_proto method=POST [13:21:51]POST find Content-Length [13:21:51]Host: 172.17.46.131:8080 [13:21:51]Content-Length: 677 [13:21:51]Content-Type: application/json [13:21:51] [13:21:51]POST finish read [13:21:51]Found Content-Length = 677 [13:21:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 3.480, "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" ] } } [13:21:51]execute_script... [13:21: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)412794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 3.480, "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" ] } } [13:21:51]POST & json_proto [13:21:51]process_json_proto [13:21:51]json parsed OK: [13:21:51]protocol is kg_v1.0 [13:21:51]action value=close_receipt [13:21:51]process_action close_receipt [13:21:51]cmd_close_receipt [13:21:51]MH_GetDate [13:21:51]Write to MH i2c: F0 00 00 EA 03 DC [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: F0 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: F0 09 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: F0 09 00 EA 03 00 EF 7D B8 67 7E 41 4F 65 E3 [13:21:51]GetLastDocTimeStamp 1740143564 [13:21:51]current date 1740144111 [13:21:51]FM_GetShiftState [13:21:51]SAM_PROTO_GetShiftState [13:21:51]wFMCommunicate request_size=4 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 13 01 00 [13:21:51]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 0E 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 59 [13:21:51]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:21:51]wFMCommunicate OK [13:21:51]SAM_PROTO_GetShiftState done [13:21:51]FM_GetShiftState done [13:21:51]opened in 1740098043 [13:21:51]opened+sec_in_day 1740184443 [13:21:51]quantity*price = 25021 [13:21:51]sum+1 = 25022 [13:21: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 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 128 21.02.2025 13:21 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187634 ФПД: 80475055973326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T132151&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187634&fm=80475055973326&tin=02508201610067®Number=0000000000091857&sum=25000 [13:21:52]StoreToDocumentArchive [13:21:52]shift 649 fd 187634 [13:21:52]save to /storage/0649/doc_00187634 [13:21:52]save last doc name /storage/0649/doc_00187634 to /storage/kkm_last_doc_name [13:21:52]save OK [13:21:52]Clear old archive folders... [13:21:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:21:52]tlvbuf is 00BCE150 [13:21:52]SAM_PROTO_ClearQueue [13:21:52]wFMCommunicate request_size=4 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 09 00 00 [13:21:52]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [13:21:52]RAPDU: 90 00 [13:21:52]wFMCommunicate OK [13:21:52]SAM_PROTO_ClearQueue done [13:21:52]KKMCreateOFDPacket [13:21:52]OFDProtocolAddRootSTLVToBuf [13:21:52]FM_MakeSignedData [13:21:52]FM_MakeSignedData [13:21:52]SAM_PROTO_SignData [13:21:52]wFMCommunicate request_size=4 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 0D 01 02 [13:21:52]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [13:21:52]RAPDU: 90 00 [13:21:52]wFMCommunicate OK [13:21:52]wFMCommunicate request_size=255 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 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 80 00 00 00 F4 03 04 00 EF 7D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DC 02 00 35 04 06 00 49 [13:21:52]Write to MH i2c: E2 02 01 FA 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 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 80 00 00 00 F4 03 04 00 EF 7D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DC 02 00 35 04 06 00 49 00 00 86 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [13:21:53]RAPDU: 90 00 [13:21:53]wFMCommunicate OK [13:21:53]wFMCommunicate request_size=10 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 0D 02 02 05 31 0F 1F E3 CE [13:21:53]Write to MH i2c: E2 0D 00 FB 03 80 0D 02 02 05 00 31 0F 1F E3 CE 00 00 92 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [13:21:53]RAPDU: 90 00 [13:21:53]wFMCommunicate OK [13:21:53]wFMCommunicate request_size=4 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 0D 03 02 [13:21:53]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 0B 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 0B 00 FC 03 00 A9 12 F3 E7 9D CC 47 2A 90 00 EA [13:21:53]RAPDU: A9 12 F3 E7 9D CC 47 2A 90 00 [13:21:53]wFMCommunicate OK [13:21:53]SAM_PROTO_SignData done [13:21:53]FM_MakeSignedData done [13:21:53]CreateOFDProtocolMessage [13:21:53]wFMCommunicate request_size=4 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 11 00 00 [13:21:53]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 17 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [13:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:21:53]wFMCommunicate OK [13:21:53]CreateOFDProtocolMessage done [13:21:53]OFDSenderStorePacket 187634 [13:21:53]StoreOFDPacket docnum=187634 [13:21:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E8 BA 07 01 DB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 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 80 00 00 00 F4 03 04 00 EF 7D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DC 02 00 35 04 06 00 49 31 0F 1F E3 CE A9 12 F3 E7 9D CC 47 2A [13:21:53]CheckFolder [13:21:53]dirname=/storage/ofd_packets [13:21:53]CheckFolder done [13:21:53]ProducePacketName [13:21:53]name=ofd_packets/00187634 [13:21:53]NVStorageSaveData ofd_packets/00187634 [13:21:53]File name is /storage/ofd_packets/00187634 [13:21:53]Write 301 bytes [13:21:53]NVStorageSaveData done [13:21:53]OFDSenderStorePacket done [13:21:53]KKMCreateOFDPacket done [13:21:53]NVStorageSaveData kkm_last_timestamp [13:21:53]File name is /storage/kkm_last_timestamp [13:21:53]Write 4 bytes [13:21:53]NVStorageSaveData done [13:21:53]ExternCall_PrintAddStr [13:21:53]wPrintStart [13:21:53]Write to MH i2c: 01 00 00 FE 03 01 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 07 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FF 0F 16 [13:21:53]RasterBufferAndPrint [13:21:53]line Счет N : (1)412794 [13:21:53]line ИНН: 02508201610067 [13:21:53]line Контрольно-Кассовый Чек [13:21:53]line ПРОДАЖА [13:21:53]line ТРК (МРК, ГНК) : 23 [13:21:53]line Товар: 2710124500 [13:21:53]line Аи-95-К-5 [13:21:53]line 3.480 * 71.90 [13:21:53]line = 250.21 [13:21:53]line НДС 12% НСП 1% [13:21:53]line > о реализуемом товаре [13:21:53]line ОКРУГЛЕНИЕ: -0.21 [13:21:53]line ИТОГО: 250.00 [13:21:53]line Внесено: 250.00 [13:21:53]line СДАЧА: 0.00 [13:21:53]line НСП 1% : 2.21 [13:21:53]line НДС 12% : 26.57 [13:21:53]line Наличными: 250.00 [13:21:53]line Безнал.: 0.00 [13:21:53]line Место: АЗС № 92 "Партнер Нефть" [13:21:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:21:53]line СНО: Общий режим [13:21:53]line Чек 128 21.02.2025 13:21 [13:21:53]line Смена: 649 ФФД: 1.0 [13:21:53]line ЗНМ: 0300000118 [13:21:53]line РНМ: 0000000000091857 [13:21:53]line Версия ККМ: 001 [13:21:53]line ФМ: 0000000000871826 [13:21:53]line ФД: 187634 [13:21:53]line ФПД: 80475055973326 [13:21:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T132151&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187634&fm=80475055973326&tin=02508201610067®Number=0000000000091857&sum=25000 [13:21:53]written 0, free lines is 4095 [13:21:53]OFD Sender: Processing packet 187634 [packets to send 49, broken 48] [13:21:53]ProducePacketName [13:21:53]name=ofd_packets/00187634 [13:21:53]OFD Sender: To server: pG, [13:21:53]CommunicateWithHost lk.salyk.kg:30040 [13:21:53]ConnectInit lk.salyk.kg [13:21:53]Connected sock=10 [13:21:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E8 BA 07 01 DB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 0D 00 00 00 00 00 37 04 06 00 16 1C 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 80 00 00 00 F4 03 04 00 EF 7D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DC 02 00 35 04 06 00 49 31 0F 1F E3 CE A9 12 F3 E7 9D CC 47 2A [13:21:53]Write to MH i2c: 01 00 00 29 04 2D [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 07 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 F4 0C 34 [13:21:53]RasterBufferAndPrint [13:21:53]line [13:21:53]line [13:21:53]line [13:21:53]line [13:21:53]line [13:21:53]written 0, free lines is 3322 [13:21:53]MH_Cut [13:21:53]Write to MH i2c: D1 01 00 30 04 01 06 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: D1 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: D1 01 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: D1 01 00 30 04 00 05 [13:21:53]Write to MH i2c: 01 00 00 31 04 35 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AB 90 47 00 CD CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DC 02 00 F4 03 04 00 3D 24 B8 67 B6 04 01 00 00 7F 64 5C 47 29 32 B3 D6 [13:21:53]CommunicateWithHost err = 0 [13:21:53]CheckOFDResponse [13:21:53]1017 (14) - 77093643461234 [13:21:53]1041 (16) - 0000000000871826 [13:21:53]1040 (4) - 187634 [13:21:53]1012 (4) - 21.02.2025 06:59 [13:21:53]1206 (1) - 0 [13:21:53]OFD Sender: Remove packet 187634 [13:21:53]ProducePacketName [13:21:53]name=ofd_packets/00187634 [13:21:53]NVStorageDeleteData [13:21:54]OFD Sender: No OFD packet to send [13:21:54]*** Cut start [13:21:54]*** Partial cut [13:21:54]*** CUTSNS_PIN = 1 [13:21:54]*** CUTSNS_PIN = 0 [13:21:54]*** Brake cut motor [13:21:55]Read from MH i2c: 01 [13:21:55]MH_I2C_Read... [13:21:55]*** Stop cut motor [13:21:55]*** Cut end [13:21:55]Read from MH i2c: 01 07 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [13:21:55]process_action close_receipt done [13:21:55]requested_data is exist [13:21:55]produce_requested_data [13:21:55]requested_item fm.sn is exist - process it [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 11 00 00 [13:21:55]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 17 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [13:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:21:55]wFMCommunicate OK [13:21:55]requested_item fd.num is exist - process it [13:21:55]SAM_PROTO_GetFieldsCounters [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 13 00 00 [13:21:55]Write to MH i2c: E2 08 00 33 04 80 13 00 00 00 00 00 00 B3 [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 62 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 62 00 33 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F2 DC 02 00 0E 04 04 00 89 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 B4 [13:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F2 DC 02 00 0E 04 04 00 89 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 [13:21:55]wFMCommunicate OK [13:21:55]SAM_PROTO_GetFieldsCounters done [13:21:55]requested_item shift.num is exist - process it [13:21:55]requested_item shift.opened is exist - process it [13:21:55]req_shift_opened [13:21:55]FM_GetShiftState [13:21:55]SAM_PROTO_GetShiftState [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 13 01 00 [13:21:55]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 0E 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A3 [13:21:55]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:21:55]wFMCommunicate OK [13:21:55]SAM_PROTO_GetShiftState done [13:21:55]FM_GetShiftState done [13:21:55]req_shift_opened done [13:21:55]requested_item shift.open_date is exist - process it [13:21:55]req_shift_open_date [13:21:55]req_shift_open_date done [13:21:55]produce_requested_data done [13:21:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187634,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:21:55]process_action_free close_receipt [13:21:55]json_value_free [13:21:55]json_value_free done [13:21:55]process_json_proto returns [13:21:55]Send response to host [13:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187634,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:21:55]free response buf [13:21:55]execute_script done [13:21:55]execute_script returns [13:21:55]free content buf [13:21:55]Sock 9.Close socket [13:21:55]Sock 9.Thread stoped [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:24]OFD Sender: No OFD packet to send [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:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:08]accept exits with 7 [13:30:08]New connection [13:30:08]New thread 3067624804 created [13:30:08]Thread 3067481444 joined [13:30:08]Waiting for new connection... [13:30:08] Sock 7.Parse request [13:30:08]Sock 7.Check first char [13:30:08]Sock 7.First char is OK [13:30:08]request: POST /json_proto HTTP/1.0 [13:30:08]Method: POST [13:30:08]URL: /json_proto [13:30:08]Method is POST - this is cgi request [13:30:08]url: /json_proto [13:30:08]query_string will be loaded in cgi processing [13:30:08]execute_cgi json_proto POST (null) [13:30:08]execute_cgi path=json_proto method=POST [13:30:08]POST find Content-Length [13:30:08]Host: 172.17.46.131:8080 [13:30:08]Content-Length: 682 [13:30:08]Content-Type: application/json [13:30:08] [13:30:08]POST finish read [13:30:08]Found Content-Length = 682 [13:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:08]execute_script... [13:30: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)412795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:08]POST & json_proto [13:30:08]process_json_proto [13:30:08]json parsed OK: [13:30:08]protocol is kg_v1.0 [13:30:08]action value=close_receipt [13:30:08]process_action close_receipt [13:30:08]cmd_close_receipt [13:30:08]MH_GetDate [13:30:08]Write to MH i2c: F0 00 00 35 04 28 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: F0 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: F0 09 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: F0 09 00 35 04 00 E1 7F B8 67 7E 41 4F 65 23 [13:30:08]GetLastDocTimeStamp 1740144111 [13:30:08]current date 1740144609 [13:30:08]FM_GetShiftState [13:30:08]SAM_PROTO_GetShiftState [13:30:08]wFMCommunicate request_size=4 [13:30:08]MH_SAM_APDU [13:30:08]CAPDU: 80 13 01 00 [13:30:08]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [13:30:08]Write i2c OK [13:30:08]MH_I2C_Read... [13:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:08]Read from MH i2c: E2 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 0E 00 [13:30:08]MH_I2C_Read... [13:30:08]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A5 [13:30:08]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:30:08]wFMCommunicate OK [13:30:08]SAM_PROTO_GetShiftState done [13:30:08]FM_GetShiftState done [13:30:08]opened in 1740098043 [13:30:08]opened+sec_in_day 1740184443 [13:30:08]quantity*price = 150055 [13:30:08]sum+1 = 150056 [13:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 129 21.02.2025 13:30 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187635 ФПД: 30655970555517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T133009&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187635&fm=30655970555517&tin=02508201610067®Number=0000000000091857&sum=150000 [13:30:09]StoreToDocumentArchive [13:30:09]shift 649 fd 187635 [13:30:09]save to /storage/0649/doc_00187635 [13:30:09]save last doc name /storage/0649/doc_00187635 to /storage/kkm_last_doc_name [13:30:09]save OK [13:30:09]Clear old archive folders... [13:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:09]tlvbuf is 00BDE4B0 [13:30:09]SAM_PROTO_ClearQueue [13:30:09]wFMCommunicate request_size=4 [13:30:09]MH_SAM_APDU [13:30:09]CAPDU: 80 09 00 00 [13:30:09]Write to MH i2c: E2 08 00 43 04 80 09 00 00 00 00 00 00 B9 [13:30:09]Write i2c OK [13:30:09]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]SAM_PROTO_ClearQueue done [13:30:10]KKMCreateOFDPacket [13:30:10]OFDProtocolAddRootSTLVToBuf [13:30:10]FM_MakeSignedData [13:30:10]FM_MakeSignedData [13:30:10]SAM_PROTO_SignData [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 01 02 [13:30:10]Write to MH i2c: E2 08 00 44 04 80 0D 01 02 00 00 00 00 C1 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]wFMCommunicate request_size=255 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E1 7F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 DC 02 00 35 04 06 00 1B [13:30:10]Write to MH i2c: E2 02 01 45 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E1 7F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 DC 02 00 35 04 06 00 1B 00 00 EF [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]wFMCommunicate request_size=10 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 02 02 05 E1 A6 3C 36 7D [13:30:10]Write to MH i2c: E2 0D 00 46 04 80 0D 02 02 05 00 E1 A6 3C 36 7D 00 00 44 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [13:30:10]RAPDU: 90 00 [13:30:10]wFMCommunicate OK [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 0D 03 02 [13:30:10]Write to MH i2c: E2 08 00 47 04 80 0D 03 02 00 00 00 00 C6 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 0B 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 0B 00 47 04 00 90 94 A7 09 67 67 64 5D 90 00 2A [13:30:10]RAPDU: 90 94 A7 09 67 67 64 5D 90 00 [13:30:10]wFMCommunicate OK [13:30:10]SAM_PROTO_SignData done [13:30:10]FM_MakeSignedData done [13:30:10]CreateOFDProtocolMessage [13:30:10]wFMCommunicate request_size=4 [13:30:10]MH_SAM_APDU [13:30:10]CAPDU: 80 11 00 00 [13:30:10]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:10]Read from MH i2c: E2 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 17 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [13:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:30:10]wFMCommunicate OK [13:30:10]CreateOFDProtocolMessage done [13:30:10]OFDSenderStorePacket 187635 [13:30:10]StoreOFDPacket docnum=187635 [13:30:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1A D1 07 01 2E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E1 7F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 DC 02 00 35 04 06 00 1B E1 A6 3C 36 7D 90 94 A7 09 67 67 64 5D [13:30:10]CheckFolder [13:30:10]dirname=/storage/ofd_packets [13:30:10]CheckFolder done [13:30:10]ProducePacketName [13:30:10]name=ofd_packets/00187635 [13:30:10]NVStorageSaveData ofd_packets/00187635 [13:30:10]File name is /storage/ofd_packets/00187635 [13:30:10]Write 301 bytes [13:30:10]NVStorageSaveData done [13:30:10]OFDSenderStorePacket done [13:30:10]KKMCreateOFDPacket done [13:30:10]NVStorageSaveData kkm_last_timestamp [13:30:10]File name is /storage/kkm_last_timestamp [13:30:10]Write 4 bytes [13:30:10]NVStorageSaveData done [13:30:10]ExternCall_PrintAddStr [13:30:10]wPrintStart [13:30:10]Write to MH i2c: 01 00 00 49 04 4D [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 07 00 [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [13:30:10]RasterBufferAndPrint [13:30:10]line Счет N : (1)412795 [13:30:10]line ИНН: 02508201610067 [13:30:10]line Контрольно-Кассовый Чек [13:30:10]line ПРОДАЖА [13:30:10]line ТРК (МРК, ГНК) : 23 [13:30:10]line Товар: 2710124500 [13:30:10]line Аи-95-К-5 [13:30:10]line 20.870 * 71.90 [13:30:10]line = 1500.55 [13:30:10]line НДС 12% НСП 1% [13:30:10]line > о реализуемом товаре [13:30:10]line ОКРУГЛЕНИЕ: -0.55 [13:30:10]line ИТОГО: 1500.00 [13:30:10]line Внесено: 1500.00 [13:30:10]line СДАЧА: 0.00 [13:30:10]line НСП 1% : 13.28 [13:30:10]line НДС 12% : 159.35 [13:30:10]line Наличными: 1500.00 [13:30:10]line Безнал.: 0.00 [13:30:10]line Место: АЗС № 92 "Партнер Нефть" [13:30:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:30:10]line СНО: Общий режим [13:30:10]line Чек 129 21.02.2025 13:30 [13:30:10]line Смена: 649 ФФД: 1.0 [13:30:10]line ЗНМ: 0300000118 [13:30:10]line РНМ: 0000000000091857 [13:30:10]line Версия ККМ: 001 [13:30:10]line ФМ: 0000000000871826 [13:30:10]line ФД: 187635 [13:30:10]line ФПД: 30655970555517 [13:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T133009&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187635&fm=30655970555517&tin=02508201610067®Number=0000000000091857&sum=150000 [13:30:10]OFD Sender: Processing packet 187635 [packets to send 49, broken 48] [13:30:10]ProducePacketName [13:30:10]name=ofd_packets/00187635 [13:30:10]OFD Sender: To server: pG, [13:30:10]CommunicateWithHost lk.salyk.kg:30040 [13:30:10]ConnectInit lk.salyk.kg [13:30:10]written 0, free lines is 4095 [13:30:11]Connected sock=11 [13:30:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1A D1 07 01 2E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E1 7F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F3 DC 02 00 35 04 06 00 1B E1 A6 3C 36 7D 90 94 A7 09 67 67 64 5D [13:30:11]Write to MH i2c: 01 00 00 74 04 78 [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: 01 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: 01 07 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 E7 0C 72 [13:30:11]RasterBufferAndPrint [13:30:11]line [13:30:11]line [13:30:11]line [13:30:11]line [13:30:11]line [13:30:11]written 0, free lines is 3310 [13:30:11]MH_Cut [13:30:11]Write to MH i2c: D1 01 00 7B 04 01 51 [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: D1 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: D1 01 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: D1 01 00 7B 04 00 50 [13:30:11]Write to MH i2c: 01 00 00 7C 04 80 [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BD 16 47 00 FC 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 38 32 36 10 04 04 00 F3 DC 02 00 F4 03 04 00 2F 26 B8 67 B6 04 01 00 00 15 A1 70 41 32 E4 61 21 [13:30:11]CommunicateWithHost err = 0 [13:30:11]CheckOFDResponse [13:30:11]1017 (14) - 77093643461234 [13:30:11]1041 (16) - 0000000000871826 [13:30:11]1040 (4) - 187635 [13:30:11]1012 (4) - 21.02.2025 07:07 [13:30:11]1206 (1) - 0 [13:30:11]OFD Sender: Remove packet 187635 [13:30:11]ProducePacketName [13:30:11]name=ofd_packets/00187635 [13:30:11]NVStorageDeleteData [13:30:11]OFD Sender: No OFD packet to send [13:30:11]*** Cut start [13:30:11]*** Partial cut [13:30:11]*** CUTSNS_PIN = 1 [13:30:12]*** CUTSNS_PIN = 0 [13:30:12]*** Brake cut motor [13:30:12]Read from MH i2c: 01 [13:30:12]MH_I2C_Read... [13:30:12]*** Stop cut motor [13:30:12]*** Cut end [13:30:12]Read from MH i2c: 01 07 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [13:30:12]process_action close_receipt done [13:30:12]requested_data is exist [13:30:12]produce_requested_data [13:30:12]requested_item fm.sn is exist - process it [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 11 00 00 [13:30:12]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 17 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4E [13:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:30:12]wFMCommunicate OK [13:30:12]requested_item fd.num is exist - process it [13:30:12]SAM_PROTO_GetFieldsCounters [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 13 00 00 [13:30:12]Write to MH i2c: E2 08 00 7E 04 80 13 00 00 00 00 00 00 FE [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 62 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 62 00 7E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F3 DC 02 00 0E 04 04 00 89 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 03 [13:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F3 DC 02 00 0E 04 04 00 89 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 [13:30:12]wFMCommunicate OK [13:30:12]SAM_PROTO_GetFieldsCounters done [13:30:12]requested_item shift.num is exist - process it [13:30:12]requested_item shift.opened is exist - process it [13:30:12]req_shift_opened [13:30:12]FM_GetShiftState [13:30:12]SAM_PROTO_GetShiftState [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 13 01 00 [13:30:12]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 0E 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 EE [13:30:12]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:30:12]wFMCommunicate OK [13:30:12]SAM_PROTO_GetShiftState done [13:30:12]FM_GetShiftState done [13:30:12]req_shift_opened done [13:30:12]requested_item shift.open_date is exist - process it [13:30:12]req_shift_open_date [13:30:12]req_shift_open_date done [13:30:12]produce_requested_data done [13:30:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187635,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:30:12]process_action_free close_receipt [13:30:12]json_value_free [13:30:12]json_value_free done [13:30:12]process_json_proto returns [13:30:12]Send response to host [13:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187635,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:30:12]free response buf [13:30:12]execute_script done [13:30:12]execute_script returns [13:30:12]free content buf [13:30:12]Sock 7.Close socket [13:30:12]Sock 7.Thread stoped [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]accept exits with 9 [13:32:26]New connection [13:32:26]New thread 3067481444 created [13:32:26]Thread 3067624804 joined [13:32:26]Waiting for new connection... [13:32:26] Sock 9.Parse request [13:32:26]Sock 9.Check first char [13:32:26]Sock 9.First char is OK [13:32:26]request: POST /json_proto HTTP/1.0 [13:32:26]Method: POST [13:32:26]URL: /json_proto [13:32:26]Method is POST - this is cgi request [13:32:26]url: /json_proto [13:32:26]query_string will be loaded in cgi processing [13:32:26]execute_cgi json_proto POST (null) [13:32:26]execute_cgi path=json_proto method=POST [13:32:26]POST find Content-Length [13:32:26]Host: 172.17.46.131:8080 [13:32:26]Content-Length: 677 [13:32:26]Content-Type: application/json [13:32:26] [13:32:26]POST finish read [13:32:26]Found Content-Length = 677 [13:32:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.860, "sum" : 493.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 493.00, "payments": [ { "type": 0, "sum" : 493.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:26]execute_script... [13:32: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)412796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.860, "sum" : 493.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 493.00, "payments": [ { "type": 0, "sum" : 493.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:26]POST & json_proto [13:32:26]process_json_proto [13:32:26]json parsed OK: [13:32:26]protocol is kg_v1.0 [13:32:26]action value=close_receipt [13:32:26]process_action close_receipt [13:32:26]cmd_close_receipt [13:32:26]MH_GetDate [13:32:26]Write to MH i2c: F0 00 00 80 04 73 [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: F0 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: F0 09 00 [13:32:26]MH_I2C_Read... [13:32:26]Read from MH i2c: F0 09 00 80 04 00 6B 80 B8 67 7E 41 4F 65 F9 [13:32:26]GetLastDocTimeStamp 1740144609 [13:32:26]current date 1740144747 [13:32:26]FM_GetShiftState [13:32:26]SAM_PROTO_GetShiftState [13:32:26]wFMCommunicate request_size=4 [13:32:26]MH_SAM_APDU [13:32:26]CAPDU: 80 13 01 00 [13:32:26]Write to MH i2c: E2 08 00 81 04 80 13 01 00 00 00 00 00 02 [13:32:26]Write i2c OK [13:32:26]MH_I2C_Read... [13:32:26]OFD Sender: No OFD packet to send [13:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:27]Read from MH i2c: E2 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 0E 00 [13:32:27]MH_I2C_Read... [13:32:27]Read from MH i2c: E2 0E 00 81 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 F0 [13:32:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:32:27]wFMCommunicate OK [13:32:27]SAM_PROTO_GetShiftState done [13:32:27]FM_GetShiftState done [13:32:27]opened in 1740098043 [13:32:27]opened+sec_in_day 1740184443 [13:32:27]quantity*price = 49323 [13:32:27]sum+1 = 49324 [13:32:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 493.00 Внесено: 500.00 СДАЧА: 7.00 НСП 1% : 4.36 НДС 12% : 52.38 Наличными: 493.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 130 21.02.2025 13:32 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187636 ФПД: 110891475715804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T133227&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187636&fm=110891475715804&tin=02508201610067®Number=0000000000091857&sum=49300 [13:32:28]StoreToDocumentArchive [13:32:28]shift 649 fd 187636 [13:32:28]save to /storage/0649/doc_00187636 [13:32:28]save last doc name /storage/0649/doc_00187636 to /storage/kkm_last_doc_name [13:32:28]save OK [13:32:28]Clear old archive folders... [13:32:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:28]tlvbuf is 00BD1D80 [13:32:28]SAM_PROTO_ClearQueue [13:32:28]wFMCommunicate request_size=4 [13:32:28]MH_SAM_APDU [13:32:28]CAPDU: 80 09 00 00 [13:32:28]Write to MH i2c: E2 08 00 8E 04 80 09 00 00 00 00 00 00 04 [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:28]Read from MH i2c: E2 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 03 00 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [13:32:28]RAPDU: 90 00 [13:32:28]wFMCommunicate OK [13:32:28]SAM_PROTO_ClearQueue done [13:32:28]KKMCreateOFDPacket [13:32:28]OFDProtocolAddRootSTLVToBuf [13:32:28]FM_MakeSignedData [13:32:28]FM_MakeSignedData [13:32:28]SAM_PROTO_SignData [13:32:28]wFMCommunicate request_size=4 [13:32:28]MH_SAM_APDU [13:32:28]CAPDU: 80 0D 01 02 [13:32:28]Write to MH i2c: E2 08 00 8F 04 80 0D 01 02 00 00 00 00 0C [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:28]Read from MH i2c: E2 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 03 00 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [13:32:28]RAPDU: 90 00 [13:32:28]wFMCommunicate OK [13:32:28]wFMCommunicate request_size=255 [13:32:28]MH_SAM_APDU [13:32: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AB C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 14 00 00 00 00 07 04 06 00 94 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6B 80 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 DC 02 00 35 04 06 00 64 [13:32:28]Write to MH i2c: E2 02 01 90 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AB C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 14 00 00 00 00 07 04 06 00 94 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6B 80 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 DC 02 00 35 04 06 00 64 00 00 D6 [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:28]Read from MH i2c: E2 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 03 00 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [13:32:28]RAPDU: 90 00 [13:32:28]wFMCommunicate OK [13:32:28]wFMCommunicate request_size=10 [13:32:28]MH_SAM_APDU [13:32:28]CAPDU: 80 0D 02 02 05 DA EF 04 C6 DC [13:32:28]Write to MH i2c: E2 0D 00 91 04 80 0D 02 02 05 00 DA EF 04 C6 DC 00 00 88 [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:28]Read from MH i2c: E2 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 03 00 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [13:32:28]RAPDU: 90 00 [13:32:28]wFMCommunicate OK [13:32:28]wFMCommunicate request_size=4 [13:32:28]MH_SAM_APDU [13:32:28]CAPDU: 80 0D 03 02 [13:32:28]Write to MH i2c: E2 08 00 92 04 80 0D 03 02 00 00 00 00 11 [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:28]Read from MH i2c: E2 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 0B 00 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 0B 00 92 04 00 15 22 CA 8A BF D5 46 1D 90 00 94 [13:32:28]RAPDU: 15 22 CA 8A BF D5 46 1D 90 00 [13:32:28]wFMCommunicate OK [13:32:28]SAM_PROTO_SignData done [13:32:28]FM_MakeSignedData done [13:32:28]CreateOFDProtocolMessage [13:32:28]wFMCommunicate request_size=4 [13:32:28]MH_SAM_APDU [13:32:28]CAPDU: 80 11 00 00 [13:32:28]Write to MH i2c: E2 08 00 93 04 80 11 00 00 00 00 00 00 11 [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:28]Read from MH i2c: E2 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 17 00 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: E2 17 00 93 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 64 [13:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:32:28]wFMCommunicate OK [13:32:28]CreateOFDProtocolMessage done [13:32:28]OFDSenderStorePacket 187636 [13:32:28]StoreOFDPacket docnum=187636 [13:32:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 64 07 01 4F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AB C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 14 00 00 00 00 07 04 06 00 94 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6B 80 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 DC 02 00 35 04 06 00 64 DA EF 04 C6 DC 15 22 CA 8A BF D5 46 1D [13:32:28]CheckFolder [13:32:28]dirname=/storage/ofd_packets [13:32:28]CheckFolder done [13:32:28]ProducePacketName [13:32:28]name=ofd_packets/00187636 [13:32:28]NVStorageSaveData ofd_packets/00187636 [13:32:28]File name is /storage/ofd_packets/00187636 [13:32:28]Write 301 bytes [13:32:28]NVStorageSaveData done [13:32:28]OFDSenderStorePacket done [13:32:28]KKMCreateOFDPacket done [13:32:28]NVStorageSaveData kkm_last_timestamp [13:32:28]File name is /storage/kkm_last_timestamp [13:32:28]Write 4 bytes [13:32:28]NVStorageSaveData done [13:32:28]ExternCall_PrintAddStr [13:32:28]wPrintStart [13:32:28]Write to MH i2c: 01 00 00 94 04 98 [13:32:28]Write i2c OK [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: 01 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: 01 07 00 [13:32:28]MH_I2C_Read... [13:32:28]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 FF 0F AD [13:32:28]RasterBufferAndPrint [13:32:28]line Счет N : (1)412796 [13:32:28]line ИНН: 02508201610067 [13:32:28]line Контрольно-Кассовый Чек [13:32:28]line ПРОДАЖА [13:32:28]line ТРК (МРК, ГНК) : 23 [13:32:28]line Товар: 2710124500 [13:32:28]line Аи-95-К-5 [13:32:28]line 6.860 * 71.90 [13:32:28]line = 493.23 [13:32:28]line НДС 12% НСП 1% [13:32:28]line > о реализуемом товаре [13:32:28]line ОКРУГЛЕНИЕ: -0.23 [13:32:28]line ИТОГО: 493.00 [13:32:28]line Внесено: 500.00 [13:32:28]line СДАЧА: 7.00 [13:32:28]line НСП 1% : 4.36 [13:32:28]line НДС 12% : 52.38 [13:32:28]line Наличными: 493.00 [13:32:28]line Безнал.: 0.00 [13:32:28]line Место: АЗС № 92 "Партнер Нефть" [13:32:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:32:28]line СНО: Общий режим [13:32:28]line Чек 130 21.02.2025 13:32 [13:32:28]line Смена: 649 ФФД: 1.0 [13:32:28]line ЗНМ: 0300000118 [13:32:28]line РНМ: 0000000000091857 [13:32:28]line Версия ККМ: 001 [13:32:28]line ФМ: 0000000000871826 [13:32:28]line ФД: 187636 [13:32:28]line ФПД: 110891475715804 [13:32:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T133227&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187636&fm=110891475715804&tin=02508201610067®Number=0000000000091857&sum=49300 [13:32:29]OFD Sender: Processing packet 187636 [packets to send 49, broken 48] [13:32:29]ProducePacketName [13:32:29]name=ofd_packets/00187636 [13:32:29]OFD Sender: To server: pG, [13:32:29]CommunicateWithHost lk.salyk.kg:30040 [13:32:29]ConnectInit lk.salyk.kg [13:32:29]written 0, free lines is 4095 [13:32:29]Connected sock=10 [13:32:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 64 07 01 4F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AB C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 14 00 00 00 00 07 04 06 00 94 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6B 80 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F4 DC 02 00 35 04 06 00 64 DA EF 04 C6 DC 15 22 CA 8A BF D5 46 1D [13:32:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EB 68 47 00 72 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 38 32 36 10 04 04 00 F4 DC 02 00 F4 03 04 00 B9 26 B8 67 B6 04 01 00 00 66 8F 69 B3 5E 44 E7 30 [13:32:29]CommunicateWithHost err = 0 [13:32:29]CheckOFDResponse [13:32:29]1017 (14) - 77093643461234 [13:32:29]1041 (16) - 0000000000871826 [13:32:29]1040 (4) - 187636 [13:32:29]1012 (4) - 21.02.2025 07:09 [13:32:29]1206 (1) - 0 [13:32:29]OFD Sender: Remove packet 187636 [13:32:29]ProducePacketName [13:32:29]name=ofd_packets/00187636 [13:32:29]NVStorageDeleteData [13:32:29]Write to MH i2c: 01 00 00 BF 04 C3 [13:32:29]Write i2c OK [13:32:29]MH_I2C_Read... [13:32:29]Read from MH i2c: 01 [13:32:29]MH_I2C_Read... [13:32:29]Read from MH i2c: 01 07 00 [13:32:29]MH_I2C_Read... [13:32:29]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 04 0D DB [13:32:29]RasterBufferAndPrint [13:32:29]line [13:32:29]line [13:32:29]line [13:32:29]line [13:32:29]line [13:32:29]written 0, free lines is 3339 [13:32:29]MH_Cut [13:32:29]Write to MH i2c: D1 01 00 C6 04 01 9C [13:32:29]Write i2c OK [13:32:29]MH_I2C_Read... [13:32:29]Read from MH i2c: D1 [13:32:29]MH_I2C_Read... [13:32:29]Read from MH i2c: D1 01 00 [13:32:29]MH_I2C_Read... [13:32:29]Read from MH i2c: D1 01 00 C6 04 00 9B [13:32:29]Write to MH i2c: 01 00 00 C7 04 CB [13:32:29]Write i2c OK [13:32:29]MH_I2C_Read... [13:32:29]OFD Sender: No OFD packet to send [13:32:30]*** Cut start [13:32:30]*** Partial cut [13:32:30]*** CUTSNS_PIN = 1 [13:32:30]*** CUTSNS_PIN = 0 [13:32:30]*** Brake cut motor [13:32:30]Read from MH i2c: 01 [13:32:30]MH_I2C_Read... [13:32:30]*** Stop cut motor [13:32:30]*** Cut end [13:32:30]Read from MH i2c: 01 07 00 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [13:32:30]process_action close_receipt done [13:32:30]requested_data is exist [13:32:30]produce_requested_data [13:32:30]requested_item fm.sn is exist - process it [13:32:30]wFMCommunicate request_size=4 [13:32:30]MH_SAM_APDU [13:32:30]CAPDU: 80 11 00 00 [13:32:30]Write to MH i2c: E2 08 00 C8 04 80 11 00 00 00 00 00 00 46 [13:32:30]Write i2c OK [13:32:30]MH_I2C_Read... [13:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:30]Read from MH i2c: E2 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 17 00 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 17 00 C8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 99 [13:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:32:30]wFMCommunicate OK [13:32:30]requested_item fd.num is exist - process it [13:32:30]SAM_PROTO_GetFieldsCounters [13:32:30]wFMCommunicate request_size=4 [13:32:30]MH_SAM_APDU [13:32:30]CAPDU: 80 13 00 00 [13:32:30]Write to MH i2c: E2 08 00 C9 04 80 13 00 00 00 00 00 00 49 [13:32:30]Write i2c OK [13:32:30]MH_I2C_Read... [13:32:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:31]Read from MH i2c: E2 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 62 00 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 62 00 C9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F4 DC 02 00 0E 04 04 00 89 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 52 [13:32:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F4 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:31]wFMCommunicate OK [13:32:31]SAM_PROTO_GetFieldsCounters done [13:32:31]requested_item shift.num is exist - process it [13:32:31]requested_item shift.opened is exist - process it [13:32:31]req_shift_opened [13:32:31]FM_GetShiftState [13:32:31]SAM_PROTO_GetShiftState [13:32:31]wFMCommunicate request_size=4 [13:32:31]MH_SAM_APDU [13:32:31]CAPDU: 80 13 01 00 [13:32:31]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [13:32:31]Write i2c OK [13:32:31]MH_I2C_Read... [13:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:31]Read from MH i2c: E2 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 0E 00 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 39 [13:32:31]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:32:31]wFMCommunicate OK [13:32:31]SAM_PROTO_GetShiftState done [13:32:31]FM_GetShiftState done [13:32:31]req_shift_opened done [13:32:31]requested_item shift.open_date is exist - process it [13:32:31]req_shift_open_date [13:32:31]req_shift_open_date done [13:32:31]produce_requested_data done [13:32:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187636,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:32:31]process_action_free close_receipt [13:32:31]json_value_free [13:32:31]json_value_free done [13:32:31]process_json_proto returns [13:32:31]Send response to host [13:32:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187636,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:32:31]free response buf [13:32:31]execute_script done [13:32:31]execute_script returns [13:32:31]free content buf [13:32:31]Sock 9.Close socket [13:32:31]Sock 9.Thread stoped [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:13]accept exits with 7 [13:37:13]New connection [13:37:13]New thread 3067624804 created [13:37:13]Thread 3067481444 joined [13:37:13]Waiting for new connection... [13:37:13] Sock 7.Parse request [13:37:13]Sock 7.Check first char [13:37:13]Sock 7.First char is OK [13:37:13]request: POST /json_proto HTTP/1.0 [13:37:13]Method: POST [13:37:13]URL: /json_proto [13:37:13]Method is POST - this is cgi request [13:37:13]url: /json_proto [13:37:13]query_string will be loaded in cgi processing [13:37:13]execute_cgi json_proto POST (null) [13:37:13]execute_cgi path=json_proto method=POST [13:37:13]POST find Content-Length [13:37:13]Host: 172.17.46.131:8080 [13:37:13]Content-Length: 678 [13:37:13]Content-Type: application/json [13:37:13] [13:37:13]POST finish read [13:37:13]Found Content-Length = 678 [13:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:13]execute_script... [13:37:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:13]POST & json_proto [13:37:13]process_json_proto [13:37:13]json parsed OK: [13:37:13]protocol is kg_v1.0 [13:37:13]action value=close_receipt [13:37:13]process_action close_receipt [13:37:13]cmd_close_receipt [13:37:13]MH_GetDate [13:37:13]Write to MH i2c: F0 00 00 CB 04 BE [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: F0 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: F0 09 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: F0 09 00 CB 04 00 89 81 B8 67 7E 41 4F 65 63 [13:37:13]GetLastDocTimeStamp 1740144747 [13:37:13]current date 1740145033 [13:37:13]FM_GetShiftState [13:37:13]SAM_PROTO_GetShiftState [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 13 01 00 [13:37:13]Write to MH i2c: E2 08 00 CC 04 80 13 01 00 00 00 00 00 4D [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 0E 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 0E 00 CC 04 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 3B [13:37:13]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:37:13]wFMCommunicate OK [13:37:13]SAM_PROTO_GetShiftState done [13:37:13]FM_GetShiftState done [13:37:13]opened in 1740098043 [13:37:13]opened+sec_in_day 1740184443 [13:37:13]quantity*price = 200013 [13:37:13]sum+1 = 200014 [13:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 131 21.02.2025 13:37 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187637 ФПД: 176068476565165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T133713&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187637&fm=176068476565165&tin=02508201610067®Number=0000000000091857&sum=200000 [13:37:14]StoreToDocumentArchive [13:37:14]shift 649 fd 187637 [13:37:14]save to /storage/0649/doc_00187637 [13:37:14]save last doc name /storage/0649/doc_00187637 to /storage/kkm_last_doc_name [13:37:14]save OK [13:37:14]Clear old archive folders... [13:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:37:14]tlvbuf is 00BBA7B0 [13:37:14]SAM_PROTO_ClearQueue [13:37:14]wFMCommunicate request_size=4 [13:37:14]MH_SAM_APDU [13:37:14]CAPDU: 80 09 00 00 [13:37:14]Write to MH i2c: E2 08 00 D9 04 80 09 00 00 00 00 00 00 4F [13:37:14]Write i2c OK [13:37:14]MH_I2C_Read... [13:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:14]Read from MH i2c: E2 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: E2 03 00 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [13:37:14]RAPDU: 90 00 [13:37:14]wFMCommunicate OK [13:37:14]SAM_PROTO_ClearQueue done [13:37:14]KKMCreateOFDPacket [13:37:14]OFDProtocolAddRootSTLVToBuf [13:37:14]FM_MakeSignedData [13:37:14]FM_MakeSignedData [13:37:14]SAM_PROTO_SignData [13:37:14]wFMCommunicate request_size=4 [13:37:14]MH_SAM_APDU [13:37:14]CAPDU: 80 0D 01 02 [13:37:14]Write to MH i2c: E2 08 00 DA 04 80 0D 01 02 00 00 00 00 57 [13:37:14]Write i2c OK [13:37:14]MH_I2C_Read... [13:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:14]Read from MH i2c: E2 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: E2 03 00 [13:37:14]MH_I2C_Read... [13:37:14]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [13:37:14]RAPDU: 90 00 [13:37:14]wFMCommunicate OK [13:37:14]wFMCommunicate request_size=255 [13:37:14]MH_SAM_APDU [13:37:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 89 81 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DC 02 00 35 04 06 00 A0 22 23 00 [13:37:14]Write to MH i2c: E2 02 01 DB 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 89 81 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DC 02 00 35 04 06 00 A0 22 23 00 00 00 60 [13:37:14]Write i2c OK [13:37:14]MH_I2C_Read... [13:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:15]Read from MH i2c: E2 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [13:37:15]RAPDU: 90 00 [13:37:15]wFMCommunicate OK [13:37:15]wFMCommunicate request_size=7 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 0D 02 02 02 76 AD [13:37:15]Write to MH i2c: E2 0A 00 DC 04 80 0D 02 02 02 00 76 AD 00 00 81 [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:15]Read from MH i2c: E2 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [13:37:15]RAPDU: 90 00 [13:37:15]wFMCommunicate OK [13:37:15]wFMCommunicate request_size=4 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 0D 03 02 [13:37:15]Write to MH i2c: E2 08 00 DD 04 80 0D 03 02 00 00 00 00 5C [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:15]Read from MH i2c: E2 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 0B 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 0B 00 DD 04 00 E7 EE EF C1 1D AB 53 40 90 00 3D [13:37:15]RAPDU: E7 EE EF C1 1D AB 53 40 90 00 [13:37:15]wFMCommunicate OK [13:37:15]SAM_PROTO_SignData done [13:37:15]FM_MakeSignedData done [13:37:15]CreateOFDProtocolMessage [13:37:15]wFMCommunicate request_size=4 [13:37:15]MH_SAM_APDU [13:37:15]CAPDU: 80 11 00 00 [13:37:15]Write to MH i2c: E2 08 00 DE 04 80 11 00 00 00 00 00 00 5C [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]OFD Sender: No OFD packet to send [13:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:15]Read from MH i2c: E2 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 17 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: E2 17 00 DE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [13:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:37:15]wFMCommunicate OK [13:37:15]CreateOFDProtocolMessage done [13:37:15]OFDSenderStorePacket 187637 [13:37:15]StoreOFDPacket docnum=187637 [13:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 25 33 04 01 AF 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 89 81 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DC 02 00 35 04 06 00 A0 22 23 00 76 AD E7 EE EF C1 1D AB 53 40 [13:37:15]CheckFolder [13:37:15]dirname=/storage/ofd_packets [13:37:15]CheckFolder done [13:37:15]ProducePacketName [13:37:15]name=ofd_packets/00187637 [13:37:15]NVStorageSaveData ofd_packets/00187637 [13:37:15]File name is /storage/ofd_packets/00187637 [13:37:15]Write 298 bytes [13:37:15]NVStorageSaveData done [13:37:15]OFDSenderStorePacket done [13:37:15]KKMCreateOFDPacket done [13:37:15]NVStorageSaveData kkm_last_timestamp [13:37:15]File name is /storage/kkm_last_timestamp [13:37:15]Write 4 bytes [13:37:15]NVStorageSaveData done [13:37:15]ExternCall_PrintAddStr [13:37:15]wPrintStart [13:37:15]Write to MH i2c: 01 00 00 DF 04 E3 [13:37:15]Write i2c OK [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: 01 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: 01 07 00 [13:37:15]MH_I2C_Read... [13:37:15]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 FF 0F F8 [13:37:15]RasterBufferAndPrint [13:37:15]line Счет N : (1)412797 [13:37:15]line ИНН: 02508201610067 [13:37:15]line Контрольно-Кассовый Чек [13:37:15]line ПРОДАЖА [13:37:15]line ТРК (МРК, ГНК) : 5 [13:37:15]line Товар: 2710194210 [13:37:15]line ДТ-К-5 [13:37:15]line 27.550 * 72.60 [13:37:15]line = 2000.13 [13:37:15]line НДС 12% НСП 1% [13:37:15]line > о реализуемом товаре [13:37:15]line ОКРУГЛЕНИЕ: -0.13 [13:37:15]line ИТОГО: 2000.00 [13:37:15]line Внесено: 2000.00 [13:37:15]line СДАЧА: 0.00 [13:37:15]line НСП 1% : 17.70 [13:37:15]line НДС 12% : 212.40 [13:37:15]line Наличными: 2000.00 [13:37:15]line Безнал.: 0.00 [13:37:15]line Место: АЗС № 92 "Партнер Нефть" [13:37:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:37:15]line СНО: Общий режим [13:37:15]line Чек 131 21.02.2025 13:37 [13:37:15]line Смена: 649 ФФД: 1.0 [13:37:15]line ЗНМ: 0300000118 [13:37:15]line РНМ: 0000000000091857 [13:37:15]line Версия ККМ: 001 [13:37:15]line ФМ: 0000000000871826 [13:37:15]line ФД: 187637 [13:37:15]line ФПД: 176068476565165 [13:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T133713&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187637&fm=176068476565165&tin=02508201610067®Number=0000000000091857&sum=200000 [13:37:15]OFD Sender: Processing packet 187637 [packets to send 49, broken 48] [13:37:15]ProducePacketName [13:37:15]name=ofd_packets/00187637 [13:37:15]OFD Sender: To server: pG, [13:37:15]CommunicateWithHost lk.salyk.kg:30040 [13:37:15]ConnectInit lk.salyk.kg [13:37:15]written 0, free lines is 4095 [13:37:15]Connected sock=10 [13:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 25 33 04 01 AF 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 89 81 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DC 02 00 35 04 06 00 A0 22 23 00 76 AD E7 EE EF C1 1D AB 53 40 [13:37:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 15 35 47 00 98 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F5 DC 02 00 F4 03 04 00 D7 27 B8 67 B6 04 01 00 00 0D 84 0E 20 BC 43 8A E0 [13:37:16]CommunicateWithHost err = 0 [13:37:16]CheckOFDResponse [13:37:16]1017 (14) - 77093643461234 [13:37:16]1041 (16) - 0000000000871826 [13:37:16]1040 (4) - 187637 [13:37:16]1012 (4) - 21.02.2025 07:14 [13:37:16]1206 (1) - 0 [13:37:16]OFD Sender: Remove packet 187637 [13:37:16]ProducePacketName [13:37:16]name=ofd_packets/00187637 [13:37:16]NVStorageDeleteData [13:37:16]Write to MH i2c: 01 00 00 0A 05 0F [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: 01 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: 01 07 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 FD 0C 1F [13:37:16]RasterBufferAndPrint [13:37:16]line [13:37:16]line [13:37:16]line [13:37:16]line [13:37:16]line [13:37:16]written 0, free lines is 3334 [13:37:16]MH_Cut [13:37:16]Write to MH i2c: D1 01 00 11 05 01 E8 [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: D1 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: D1 01 00 [13:37:16]MH_I2C_Read... [13:37:16]Read from MH i2c: D1 01 00 11 05 00 E7 [13:37:16]Write to MH i2c: 01 00 00 12 05 17 [13:37:16]Write i2c OK [13:37:16]MH_I2C_Read... [13:37:16]OFD Sender: No OFD packet to send [13:37:16]*** Cut start [13:37:16]*** Partial cut [13:37:16]*** CUTSNS_PIN = 1 [13:37:16]*** CUTSNS_PIN = 0 [13:37:17]*** Brake cut motor [13:37:17]Read from MH i2c: 01 [13:37:17]MH_I2C_Read... [13:37:17]*** Stop cut motor [13:37:17]*** Cut end [13:37:17]Read from MH i2c: 01 07 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [13:37:17]process_action close_receipt done [13:37:17]requested_data is exist [13:37:17]produce_requested_data [13:37:17]requested_item fm.sn is exist - process it [13:37:17]wFMCommunicate request_size=4 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 11 00 00 [13:37:17]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 17 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E5 [13:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:37:17]wFMCommunicate OK [13:37:17]requested_item fd.num is exist - process it [13:37:17]SAM_PROTO_GetFieldsCounters [13:37:17]wFMCommunicate request_size=4 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 13 00 00 [13:37:17]Write to MH i2c: E2 08 00 14 05 80 13 00 00 00 00 00 00 95 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 62 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 62 00 14 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F5 DC 02 00 0E 04 04 00 89 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 A2 [13:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F5 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:17]wFMCommunicate OK [13:37:17]SAM_PROTO_GetFieldsCounters done [13:37:17]requested_item shift.num is exist - process it [13:37:17]requested_item shift.opened is exist - process it [13:37:17]req_shift_opened [13:37:17]FM_GetShiftState [13:37:17]SAM_PROTO_GetShiftState [13:37:17]wFMCommunicate request_size=4 [13:37:17]MH_SAM_APDU [13:37:17]CAPDU: 80 13 01 00 [13:37:17]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [13:37:17]Write i2c OK [13:37:17]MH_I2C_Read... [13:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:17]Read from MH i2c: E2 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 0E 00 [13:37:17]MH_I2C_Read... [13:37:17]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 85 [13:37:17]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:37:17]wFMCommunicate OK [13:37:17]SAM_PROTO_GetShiftState done [13:37:17]FM_GetShiftState done [13:37:17]req_shift_opened done [13:37:17]requested_item shift.open_date is exist - process it [13:37:17]req_shift_open_date [13:37:17]req_shift_open_date done [13:37:17]produce_requested_data done [13:37:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187637,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:37:17]process_action_free close_receipt [13:37:17]json_value_free [13:37:17]json_value_free done [13:37:17]process_json_proto returns [13:37:17]Send response to host [13:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187637,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:37:17]free response buf [13:37:17]execute_script done [13:37:17]execute_script returns [13:37:17]free content buf [13:37:17]Sock 7.Close socket [13:37:17]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:26]accept exits with 9 [13:49:26]New connection [13:49:26]New thread 3067481444 created [13:49:26]Thread 3067624804 joined [13:49:26]Waiting for new connection... [13:49:26] Sock 9.Parse request [13:49:26]Sock 9.Check first char [13:49:26]Sock 9.First char is OK [13:49:26]request: POST /json_proto HTTP/1.0 [13:49:26]Method: POST [13:49:26]URL: /json_proto [13:49:26]Method is POST - this is cgi request [13:49:26]url: /json_proto [13:49:26]query_string will be loaded in cgi processing [13:49:26]execute_cgi json_proto POST (null) [13:49:26]execute_cgi path=json_proto method=POST [13:49:26]POST find Content-Length [13:49:26]Host: 172.17.46.131:8080 [13:49:26]Content-Length: 677 [13:49:26]Content-Type: application/json [13:49:26] [13:49:26]POST finish read [13:49:26]Found Content-Length = 677 [13:49:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:26]execute_script... [13:49:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:26]POST & json_proto [13:49:26]process_json_proto [13:49:26]json parsed OK: [13:49:26]protocol is kg_v1.0 [13:49:26]action value=close_receipt [13:49:26]process_action close_receipt [13:49:26]cmd_close_receipt [13:49:26]MH_GetDate [13:49:26]Write to MH i2c: F0 00 00 16 05 0A [13:49:26]Write i2c OK [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: F0 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: F0 09 00 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: F0 09 00 16 05 00 66 84 B8 67 7E 41 4F 65 8F [13:49:26]GetLastDocTimeStamp 1740145033 [13:49:26]current date 1740145766 [13:49:26]FM_GetShiftState [13:49:26]SAM_PROTO_GetShiftState [13:49:26]wFMCommunicate request_size=4 [13:49:26]MH_SAM_APDU [13:49:26]CAPDU: 80 13 01 00 [13:49:26]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [13:49:26]Write i2c OK [13:49:26]MH_I2C_Read... [13:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:26]Read from MH i2c: E2 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 0E 00 [13:49:26]MH_I2C_Read... [13:49:26]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 87 [13:49:26]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:49:26]wFMCommunicate OK [13:49:26]SAM_PROTO_GetShiftState done [13:49:26]FM_GetShiftState done [13:49:26]opened in 1740098043 [13:49:26]opened+sec_in_day 1740184443 [13:49:26]quantity*price = 50042 [13:49:26]sum+1 = 50043 [13:49:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 132 21.02.2025 13:49 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187638 ФПД: 111823482865598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T134926&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187638&fm=111823482865598&tin=02508201610067®Number=0000000000091857&sum=50000 [13:49:27]StoreToDocumentArchive [13:49:27]shift 649 fd 187638 [13:49:27]save to /storage/0649/doc_00187638 [13:49:27]save last doc name /storage/0649/doc_00187638 to /storage/kkm_last_doc_name [13:49:27]save OK [13:49:27]Clear old archive folders... [13:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:27]tlvbuf is 00BD1D90 [13:49:27]SAM_PROTO_ClearQueue [13:49:27]wFMCommunicate request_size=4 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 09 00 00 [13:49:27]Write to MH i2c: E2 08 00 24 05 80 09 00 00 00 00 00 00 9B [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [13:49:27]RAPDU: 90 00 [13:49:27]wFMCommunicate OK [13:49:27]SAM_PROTO_ClearQueue done [13:49:27]KKMCreateOFDPacket [13:49:27]OFDProtocolAddRootSTLVToBuf [13:49:27]FM_MakeSignedData [13:49:27]FM_MakeSignedData [13:49:27]SAM_PROTO_SignData [13:49:27]wFMCommunicate request_size=4 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 0D 01 02 [13:49:27]Write to MH i2c: E2 08 00 25 05 80 0D 01 02 00 00 00 00 A3 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [13:49:27]RAPDU: 90 00 [13:49:27]wFMCommunicate OK [13:49:27]wFMCommunicate request_size=255 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 66 84 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 DC 02 00 35 04 06 00 65 [13:49:27]Write to MH i2c: E2 02 01 26 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 66 84 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 DC 02 00 35 04 06 00 65 00 00 79 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [13:49:27]RAPDU: 90 00 [13:49:27]wFMCommunicate OK [13:49:27]wFMCommunicate request_size=10 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 0D 02 02 05 B3 EE F9 47 BE [13:49:27]Write to MH i2c: E2 0D 00 27 05 80 0D 02 02 05 00 B3 EE F9 47 BE 00 00 4F [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [13:49:27]RAPDU: 90 00 [13:49:27]wFMCommunicate OK [13:49:27]wFMCommunicate request_size=4 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 0D 03 02 [13:49:27]Write to MH i2c: E2 08 00 28 05 80 0D 03 02 00 00 00 00 A8 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 0B 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 0B 00 28 05 00 D5 24 05 4E 31 E2 D1 3B 90 00 14 [13:49:27]RAPDU: D5 24 05 4E 31 E2 D1 3B 90 00 [13:49:27]wFMCommunicate OK [13:49:27]SAM_PROTO_SignData done [13:49:27]FM_MakeSignedData done [13:49:27]CreateOFDProtocolMessage [13:49:27]wFMCommunicate request_size=4 [13:49:27]MH_SAM_APDU [13:49:27]CAPDU: 80 11 00 00 [13:49:27]Write to MH i2c: E2 08 00 29 05 80 11 00 00 00 00 00 00 A8 [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:27]Read from MH i2c: E2 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 17 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: E2 17 00 29 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FB [13:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:49:27]wFMCommunicate OK [13:49:27]CreateOFDProtocolMessage done [13:49:27]OFDSenderStorePacket 187638 [13:49:27]StoreOFDPacket docnum=187638 [13:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AA B5 07 01 0D BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 66 84 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 DC 02 00 35 04 06 00 65 B3 EE F9 47 BE D5 24 05 4E 31 E2 D1 3B [13:49:27]CheckFolder [13:49:27]dirname=/storage/ofd_packets [13:49:27]CheckFolder done [13:49:27]ProducePacketName [13:49:27]name=ofd_packets/00187638 [13:49:27]NVStorageSaveData ofd_packets/00187638 [13:49:27]File name is /storage/ofd_packets/00187638 [13:49:27]Write 301 bytes [13:49:27]NVStorageSaveData done [13:49:27]OFDSenderStorePacket done [13:49:27]KKMCreateOFDPacket done [13:49:27]NVStorageSaveData kkm_last_timestamp [13:49:27]File name is /storage/kkm_last_timestamp [13:49:27]Write 4 bytes [13:49:27]NVStorageSaveData done [13:49:27]ExternCall_PrintAddStr [13:49:27]wPrintStart [13:49:27]Write to MH i2c: 01 00 00 2A 05 2F [13:49:27]Write i2c OK [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 07 00 [13:49:27]MH_I2C_Read... [13:49:27]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [13:49:27]RasterBufferAndPrint [13:49:27]line Счет N : (1)412798 [13:49:27]line ИНН: 02508201610067 [13:49:27]line Контрольно-Кассовый Чек [13:49:27]line ПРОДАЖА [13:49:27]line ТРК (МРК, ГНК) : 33 [13:49:27]line Товар: 2710124500 [13:49:27]line Аи-95-К-5 [13:49:27]line 6.960 * 71.90 [13:49:27]line = 500.42 [13:49:27]line НДС 12% НСП 1% [13:49:27]line > о реализуемом товаре [13:49:27]line ОКРУГЛЕНИЕ: -0.42 [13:49:27]line ИТОГО: 500.00 [13:49:27]line Внесено: 500.00 [13:49:27]line СДАЧА: 0.00 [13:49:27]line НСП 1% : 4.43 [13:49:27]line НДС 12% : 53.14 [13:49:27]line Наличными: 500.00 [13:49:27]line Безнал.: 0.00 [13:49:27]line Место: АЗС № 92 "Партнер Нефть" [13:49:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:49:27]line СНО: Общий режим [13:49:27]line Чек 132 21.02.2025 13:49 [13:49:27]line Смена: 649 ФФД: 1.0 [13:49:27]line ЗНМ: 0300000118 [13:49:27]line РНМ: 0000000000091857 [13:49:27]line Версия ККМ: 001 [13:49:27]line ФМ: 0000000000871826 [13:49:27]line ФД: 187638 [13:49:27]line ФПД: 111823482865598 [13:49:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T134926&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187638&fm=111823482865598&tin=02508201610067®Number=0000000000091857&sum=50000 [13:49:28]written 0, free lines is 4095 [13:49:28]OFD Sender: Processing packet 187638 [packets to send 49, broken 48] [13:49:28]ProducePacketName [13:49:28]name=ofd_packets/00187638 [13:49:28]OFD Sender: To server: pG, [13:49:28]CommunicateWithHost lk.salyk.kg:30040 [13:49:28]ConnectInit lk.salyk.kg [13:49:28]Connected sock=7 [13: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 38 32 36 0F 01 00 00 AA B5 07 01 0D BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 66 84 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 DC 02 00 35 04 06 00 65 B3 EE F9 47 BE D5 24 05 4E 31 E2 D1 3B [13: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 38 32 36 4F 00 00 00 43 27 47 00 B0 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F6 DC 02 00 F4 03 04 00 B4 2A B8 67 B6 04 01 00 00 1F BE C2 9B AE 1C 52 73 [13:49:28]CommunicateWithHost err = 0 [13:49:28]CheckOFDResponse [13:49:28]1017 (14) - 77093643461234 [13:49:28]1041 (16) - 0000000000871826 [13:49:28]1040 (4) - 187638 [13:49:28]1012 (4) - 21.02.2025 07:26 [13:49:28]1206 (1) - 0 [13:49:28]OFD Sender: Remove packet 187638 [13:49:28]ProducePacketName [13:49:28]name=ofd_packets/00187638 [13:49:28]NVStorageDeleteData [13:49:28]Write to MH i2c: 01 00 00 55 05 5A [13:49:28]Write i2c OK [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: 01 [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: 01 07 00 [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 FF 0C 6C [13:49:28]RasterBufferAndPrint [13:49:28]line [13:49:28]line [13:49:28]line [13:49:28]line [13:49:28]line [13:49:28]written 0, free lines is 3333 [13:49:28]MH_Cut [13:49:28]Write to MH i2c: D1 01 00 5C 05 01 33 [13:49:28]Write i2c OK [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: D1 [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: D1 01 00 [13:49:28]MH_I2C_Read... [13:49:28]Read from MH i2c: D1 01 00 5C 05 00 32 [13:49:28]Write to MH i2c: 01 00 00 5D 05 62 [13:49:28]Write i2c OK [13:49:28]MH_I2C_Read... [13:49:29]OFD Sender: No OFD packet to send [13:49:29]*** Cut start [13:49:29]*** Partial cut [13:49:29]*** CUTSNS_PIN = 1 [13:49:29]*** CUTSNS_PIN = 0 [13:49:29]*** Brake cut motor [13:49:30]Read from MH i2c: 01 [13:49:30]MH_I2C_Read... [13:49:30]*** Stop cut motor [13:49:30]*** Cut end [13:49:30]Read from MH i2c: 01 07 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [13:49:30]process_action close_receipt done [13:49:30]requested_data is exist [13:49:30]produce_requested_data [13:49:30]requested_item fm.sn is exist - process it [13:49:30]wFMCommunicate request_size=4 [13:49:30]MH_SAM_APDU [13:49:30]CAPDU: 80 11 00 00 [13:49:30]Write to MH i2c: E2 08 00 5E 05 80 11 00 00 00 00 00 00 DD [13:49:30]Write i2c OK [13:49:30]MH_I2C_Read... [13:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:30]Read from MH i2c: E2 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 17 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 17 00 5E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 30 [13:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:49:30]wFMCommunicate OK [13:49:30]requested_item fd.num is exist - process it [13:49:30]SAM_PROTO_GetFieldsCounters [13:49:30]wFMCommunicate request_size=4 [13:49:30]MH_SAM_APDU [13:49:30]CAPDU: 80 13 00 00 [13:49:30]Write to MH i2c: E2 08 00 5F 05 80 13 00 00 00 00 00 00 E0 [13:49:30]Write i2c OK [13:49:30]MH_I2C_Read... [13:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:30]Read from MH i2c: E2 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 62 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 62 00 5F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F6 DC 02 00 0E 04 04 00 89 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 F1 [13: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F6 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:30]wFMCommunicate OK [13:49:30]SAM_PROTO_GetFieldsCounters done [13:49:30]requested_item shift.num is exist - process it [13:49:30]requested_item shift.opened is exist - process it [13:49:30]req_shift_opened [13:49:30]FM_GetShiftState [13:49:30]SAM_PROTO_GetShiftState [13:49:30]wFMCommunicate request_size=4 [13:49:30]MH_SAM_APDU [13:49:30]CAPDU: 80 13 01 00 [13:49:30]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [13:49:30]Write i2c OK [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 [13:49:30]MH_I2C_Read... [13:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:30]Read from MH i2c: E2 0E 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D0 [13:49:30]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:49:30]wFMCommunicate OK [13:49:30]SAM_PROTO_GetShiftState done [13:49:30]FM_GetShiftState done [13:49:30]req_shift_opened done [13:49:30]requested_item shift.open_date is exist - process it [13:49:30]req_shift_open_date [13:49:30]req_shift_open_date done [13:49:30]produce_requested_data done [13:49:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187638,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:49:30]process_action_free close_receipt [13:49:30]json_value_free [13:49:30]json_value_free done [13:49:30]process_json_proto returns [13:49:30]Send response to host [13:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187638,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:49:30]free response buf [13:49:30]execute_script done [13:49:30]execute_script returns [13:49:30]free content buf [13:49:30]Sock 9.Close socket [13:49:30]Sock 9.Thread stoped [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:54]accept exits with 10 [13:49:54]New connection [13:49:54]New thread 3067624804 created [13:49:54]Thread 3067481444 joined [13:49:54]Waiting for new connection... [13:49:54] Sock 10.Parse request [13:49:54]Sock 10.Check first char [13:49:54]Sock 10.First char is OK [13:49:54]request: POST /json_proto HTTP/1.0 [13:49:54]Method: POST [13:49:54]URL: /json_proto [13:49:54]Method is POST - this is cgi request [13:49:54]url: /json_proto [13:49:54]query_string will be loaded in cgi processing [13:49:54]execute_cgi json_proto POST (null) [13:49:54]execute_cgi path=json_proto method=POST [13:49:54]POST find Content-Length [13:49:54]Host: 172.17.46.131:8080 [13:49:54]Content-Length: 677 [13:49:54]Content-Type: application/json [13:49:54] [13:49:54]POST finish read [13:49:54]Found Content-Length = 677 [13:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 5.100, "sum" : 366.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 366.00, "total" : 366.00, "payments": [ { "type": 0, "sum" : 366.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:54]execute_script... [13:49: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)412799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 5.100, "sum" : 366.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 366.00, "total" : 366.00, "payments": [ { "type": 0, "sum" : 366.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:54]POST & json_proto [13:49:54]process_json_proto [13:49:54]json parsed OK: [13:49:54]protocol is kg_v1.0 [13:49:54]action value=close_receipt [13:49:54]process_action close_receipt [13:49:54]cmd_close_receipt [13:49:54]MH_GetDate [13:49:54]Write to MH i2c: F0 00 00 61 05 55 [13:49:54]Write i2c OK [13:49:54]MH_I2C_Read... [13:49:54]Read from MH i2c: F0 [13:49:54]MH_I2C_Read... [13:49:54]Read from MH i2c: F0 09 00 [13:49:54]MH_I2C_Read... [13:49:54]Read from MH i2c: F0 09 00 61 05 00 83 84 B8 67 7E 41 4F 65 F7 [13:49:54]GetLastDocTimeStamp 1740145766 [13:49:54]current date 1740145795 [13:49:54]FM_GetShiftState [13:49:54]SAM_PROTO_GetShiftState [13:49:54]wFMCommunicate request_size=4 [13:49:54]MH_SAM_APDU [13:49:54]CAPDU: 80 13 01 00 [13:49:54]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [13:49:54]Write i2c OK [13:49:54]MH_I2C_Read... [13:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:55]Read from MH i2c: E2 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 0E 00 [13:49:55]MH_I2C_Read... [13:49:55]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D2 [13:49:55]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:49:55]wFMCommunicate OK [13:49:55]SAM_PROTO_GetShiftState done [13:49:55]FM_GetShiftState done [13:49:55]opened in 1740098043 [13:49:55]opened+sec_in_day 1740184443 [13:49:55]quantity*price = 36669 [13:49:55]sum+1 = 36670 [13:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 366.00 Внесено: 366.00 СДАЧА: 0.00 НСП 1% : 3.24 НДС 12% : 38.94 Наличными: 366.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 133 21.02.2025 13:49 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187639 ФПД: 78805149789783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T134955&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187639&fm=78805149789783&tin=02508201610067®Number=0000000000091857&sum=36600 [13:49:56]StoreToDocumentArchive [13:49:56]shift 649 fd 187639 [13:49:56]save to /storage/0649/doc_00187639 [13:49:56]save last doc name /storage/0649/doc_00187639 to /storage/kkm_last_doc_name [13:49:56]save OK [13:49:56]Clear old archive folders... [13:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:56]tlvbuf is 00BB5300 [13:49:56]SAM_PROTO_ClearQueue [13:49:56]wFMCommunicate request_size=4 [13:49:56]MH_SAM_APDU [13:49:56]CAPDU: 80 09 00 00 [13:49:56]Write to MH i2c: E2 08 00 6F 05 80 09 00 00 00 00 00 00 E6 [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:56]Read from MH i2c: E2 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 03 00 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [13:49:56]RAPDU: 90 00 [13:49:56]wFMCommunicate OK [13:49:56]SAM_PROTO_ClearQueue done [13:49:56]KKMCreateOFDPacket [13:49:56]OFDProtocolAddRootSTLVToBuf [13:49:56]FM_MakeSignedData [13:49:56]FM_MakeSignedData [13:49:56]SAM_PROTO_SignData [13:49:56]wFMCommunicate request_size=4 [13:49:56]MH_SAM_APDU [13:49:56]CAPDU: 80 0D 01 02 [13:49:56]Write to MH i2c: E2 08 00 70 05 80 0D 01 02 00 00 00 00 EE [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:56]Read from MH i2c: E2 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 03 00 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [13:49:56]RAPDU: 90 00 [13:49:56]wFMCommunicate OK [13:49:56]wFMCommunicate request_size=255 [13:49:56]MH_SAM_APDU [13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3D 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0F 00 00 00 00 07 04 06 00 F8 8E 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 83 84 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 DC 02 00 35 04 06 00 47 [13:49:56]Write to MH i2c: E2 02 01 71 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3D 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0F 00 00 00 00 07 04 06 00 F8 8E 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 83 84 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 DC 02 00 35 04 06 00 47 00 00 E6 [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:56]Read from MH i2c: E2 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 03 00 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [13:49:56]RAPDU: 90 00 [13:49:56]wFMCommunicate OK [13:49:56]wFMCommunicate request_size=10 [13:49:56]MH_SAM_APDU [13:49:56]CAPDU: 80 0D 02 02 05 AC 40 F5 AE 57 [13:49:56]Write to MH i2c: E2 0D 00 72 05 80 0D 02 02 05 00 AC 40 F5 AE 57 00 00 E1 [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:56]Read from MH i2c: E2 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 03 00 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [13:49:56]RAPDU: 90 00 [13:49:56]wFMCommunicate OK [13:49:56]wFMCommunicate request_size=4 [13:49:56]MH_SAM_APDU [13:49:56]CAPDU: 80 0D 03 02 [13:49:56]Write to MH i2c: E2 08 00 73 05 80 0D 03 02 00 00 00 00 F3 [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:56]Read from MH i2c: E2 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 0B 00 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 0B 00 73 05 00 63 CB 00 1F 7F EA 13 1D 90 00 DA [13:49:56]RAPDU: 63 CB 00 1F 7F EA 13 1D 90 00 [13:49:56]wFMCommunicate OK [13:49:56]SAM_PROTO_SignData done [13:49:56]FM_MakeSignedData done [13:49:56]CreateOFDProtocolMessage [13:49:56]wFMCommunicate request_size=4 [13:49:56]MH_SAM_APDU [13:49:56]CAPDU: 80 11 00 00 [13:49:56]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:56]Read from MH i2c: E2 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 17 00 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: E2 17 00 74 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 46 [13:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:49:56]wFMCommunicate OK [13:49:56]CreateOFDProtocolMessage done [13:49:56]OFDSenderStorePacket 187639 [13:49:56]StoreOFDPacket docnum=187639 [13:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CD 6C 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3D 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0F 00 00 00 00 07 04 06 00 F8 8E 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 83 84 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 DC 02 00 35 04 06 00 47 AC 40 F5 AE 57 63 CB 00 1F 7F EA 13 1D [13:49:56]CheckFolder [13:49:56]dirname=/storage/ofd_packets [13:49:56]CheckFolder done [13:49:56]ProducePacketName [13:49:56]name=ofd_packets/00187639 [13:49:56]NVStorageSaveData ofd_packets/00187639 [13:49:56]File name is /storage/ofd_packets/00187639 [13:49:56]Write 301 bytes [13:49:56]NVStorageSaveData done [13:49:56]OFDSenderStorePacket done [13:49:56]KKMCreateOFDPacket done [13:49:56]NVStorageSaveData kkm_last_timestamp [13:49:56]File name is /storage/kkm_last_timestamp [13:49:56]Write 4 bytes [13:49:56]NVStorageSaveData done [13:49:56]ExternCall_PrintAddStr [13:49:56]wPrintStart [13:49:56]Write to MH i2c: 01 00 00 75 05 7A [13:49:56]Write i2c OK [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: 01 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: 01 07 00 [13:49:56]MH_I2C_Read... [13:49:56]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [13:49:56]RasterBufferAndPrint [13:49:56]line Счет N : (1)412799 [13:49:56]line ИНН: 02508201610067 [13:49:56]line Контрольно-Кассовый Чек [13:49:56]line ПРОДАЖА [13:49:56]line ТРК (МРК, ГНК) : 13 [13:49:56]line Товар: 2710124500 [13:49:56]line Аи-95-К-5 [13:49:56]line 5.100 * 71.90 [13:49:56]line = 366.69 [13:49:56]line НДС 12% НСП 1% [13:49:56]line > о реализуемом товаре [13:49:56]line ОКРУГЛЕНИЕ: -0.69 [13:49:56]line ИТОГО: 366.00 [13:49:56]line Внесено: 366.00 [13:49:56]line СДАЧА: 0.00 [13:49:56]line НСП 1% : 3.24 [13:49:56]line НДС 12% : 38.94 [13:49:56]line Наличными: 366.00 [13:49:56]line Безнал.: 0.00 [13:49:56]line Место: АЗС № 92 "Партнер Нефть" [13:49:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:49:56]line СНО: Общий режим [13:49:56]line Чек 133 21.02.2025 13:49 [13:49:56]line Смена: 649 ФФД: 1.0 [13:49:56]line ЗНМ: 0300000118 [13:49:56]line РНМ: 0000000000091857 [13:49:56]line Версия ККМ: 001 [13:49:56]line ФМ: 0000000000871826 [13:49:56]line ФД: 187639 [13:49:56]line ФПД: 78805149789783 [13:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T134955&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187639&fm=78805149789783&tin=02508201610067®Number=0000000000091857&sum=36600 [13:49:57]written 0, free lines is 4095 [13:49:57]OFD Sender: Processing packet 187639 [packets to send 49, broken 48] [13:49:57]ProducePacketName [13:49:57]name=ofd_packets/00187639 [13:49:57]OFD Sender: To server: pG, [13:49:57]CommunicateWithHost lk.salyk.kg:30040 [13:49:57]ConnectInit lk.salyk.kg [13:49:57]Connected sock=9 [13: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 38 32 36 0F 01 00 00 CD 6C 07 01 FC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 EC 13 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3D 8F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0F 00 00 00 00 07 04 06 00 F8 8E 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 83 84 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 DC 02 00 35 04 06 00 47 AC 40 F5 AE 57 63 CB 00 1F 7F EA 13 1D [13: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 38 32 36 4F 00 00 00 D5 D8 47 00 36 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F7 DC 02 00 F4 03 04 00 D1 2A B8 67 B6 04 01 00 00 61 E9 DD 4C CC EC 8C BE [13:49:57]CommunicateWithHost err = 0 [13:49:57]CheckOFDResponse [13:49:57]1017 (14) - 77093643461234 [13:49:57]1041 (16) - 0000000000871826 [13:49:57]1040 (4) - 187639 [13:49:57]1012 (4) - 21.02.2025 07:27 [13:49:57]1206 (1) - 0 [13:49:57]OFD Sender: Remove packet 187639 [13:49:57]ProducePacketName [13:49:57]name=ofd_packets/00187639 [13:49:57]NVStorageDeleteData [13:49:57]Write to MH i2c: 01 00 00 A0 05 A5 [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: 01 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: 01 07 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 0E 0D C7 [13:49:57]RasterBufferAndPrint [13:49:57]line [13:49:57]line [13:49:57]line [13:49:57]line [13:49:57]line [13:49:57]written 0, free lines is 3348 [13:49:57]MH_Cut [13:49:57]Write to MH i2c: D1 01 00 A7 05 01 7E [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: D1 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: D1 01 00 [13:49:57]MH_I2C_Read... [13:49:57]Read from MH i2c: D1 01 00 A7 05 00 7D [13:49:57]Write to MH i2c: 01 00 00 A8 05 AD [13:49:57]Write i2c OK [13:49:57]MH_I2C_Read... [13:49:57]OFD Sender: No OFD packet to send [13:49:58]*** Cut start [13:49:58]*** Partial cut [13:49:58]*** CUTSNS_PIN = 1 [13:49:58]*** CUTSNS_PIN = 0 [13:49:58]*** Brake cut motor [13:49:58]Read from MH i2c: 01 [13:49:58]MH_I2C_Read... [13:49:58]*** Stop cut motor [13:49:58]*** Cut end [13:49:58]Read from MH i2c: 01 07 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [13:49:58]process_action close_receipt done [13:49:58]requested_data is exist [13:49:58]produce_requested_data [13:49:58]requested_item fm.sn is exist - process it [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 11 00 00 [13:49:58]Write to MH i2c: E2 08 00 A9 05 80 11 00 00 00 00 00 00 28 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:58]Read from MH i2c: E2 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 17 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: E2 17 00 A9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7B [13:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:49:58]wFMCommunicate OK [13:49:58]requested_item fd.num is exist - process it [13:49:58]SAM_PROTO_GetFieldsCounters [13:49:58]wFMCommunicate request_size=4 [13:49:58]MH_SAM_APDU [13:49:58]CAPDU: 80 13 00 00 [13:49:58]Write to MH i2c: E2 08 00 AA 05 80 13 00 00 00 00 00 00 2B [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 62 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 62 00 AA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F7 DC 02 00 0E 04 04 00 89 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 40 [13: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F7 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:59]wFMCommunicate OK [13:49:59]SAM_PROTO_GetFieldsCounters done [13:49:59]requested_item shift.num is exist - process it [13:49:59]requested_item shift.opened is exist - process it [13:49:59]req_shift_opened [13:49:59]FM_GetShiftState [13:49:59]SAM_PROTO_GetShiftState [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 13 01 00 [13:49:59]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0E 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0E 00 AB 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1B [13:49:59]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:49:59]wFMCommunicate OK [13:49:59]SAM_PROTO_GetShiftState done [13:49:59]FM_GetShiftState done [13:49:59]req_shift_opened done [13:49:59]requested_item shift.open_date is exist - process it [13:49:59]req_shift_open_date [13:49:59]req_shift_open_date done [13:49:59]produce_requested_data done [13:49:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187639,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:49:59]process_action_free close_receipt [13:49:59]json_value_free [13:49:59]json_value_free done [13:49:59]process_json_proto returns [13:49:59]Send response to host [13:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187639,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:49:59]free response buf [13:49:59]execute_script done [13:49:59]execute_script returns [13:49:59]free content buf [13:49:59]Sock 10.Close socket [13:49:59]Sock 10.Thread stoped [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:50]accept exits with 7 [13:52:50]New connection [13:52:50]New thread 3067481444 created [13:52:50]Thread 3067624804 joined [13:52:50]Waiting for new connection... [13:52:50] Sock 7.Parse request [13:52:50]Sock 7.Check first char [13:52:50]Sock 7.First char is OK [13:52:50]request: POST /json_proto HTTP/1.0 [13:52:50]Method: POST [13:52:50]URL: /json_proto [13:52:50]Method is POST - this is cgi request [13:52:50]url: /json_proto [13:52:50]query_string will be loaded in cgi processing [13:52:50]execute_cgi json_proto POST (null) [13:52:50]execute_cgi path=json_proto method=POST [13:52:50]POST find Content-Length [13:52:50]Host: 172.17.46.131:8080 [13:52:50]Content-Length: 678 [13:52:50]Content-Type: application/json [13:52:50] [13:52:50]POST finish read [13:52:50]Found Content-Length = 678 [13:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:50]execute_script... [13:52: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)412800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:50]POST & json_proto [13:52:50]process_json_proto [13:52:50]json parsed OK: [13:52:50]protocol is kg_v1.0 [13:52:50]action value=close_receipt [13:52:50]process_action close_receipt [13:52:50]cmd_close_receipt [13:52:50]MH_GetDate [13:52:50]Write to MH i2c: F0 00 00 AC 05 A0 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: F0 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: F0 09 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: F0 09 00 AC 05 00 32 85 B8 67 7E 41 4F 65 F2 [13:52:50]GetLastDocTimeStamp 1740145795 [13:52:50]current date 1740145970 [13:52:50]FM_GetShiftState [13:52:50]SAM_PROTO_GetShiftState [13:52:50]wFMCommunicate request_size=4 [13:52:50]MH_SAM_APDU [13:52:50]CAPDU: 80 13 01 00 [13:52:50]Write to MH i2c: E2 08 00 AD 05 80 13 01 00 00 00 00 00 2F [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:50]Read from MH i2c: E2 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 0E 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: E2 0E 00 AD 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1D [13:52:50]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:52:50]wFMCommunicate OK [13:52:50]SAM_PROTO_GetShiftState done [13:52:50]FM_GetShiftState done [13:52:50]opened in 1740098043 [13:52:50]opened+sec_in_day 1740184443 [13:52:50]quantity*price = 100042 [13:52:50]sum+1 = 100044 [13:52:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 134 21.02.2025 13:52 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187640 ФПД: 126095847057290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T135250&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187640&fm=126095847057290&tin=02508201610067®Number=0000000000091857&sum=100000 [13:52:51]StoreToDocumentArchive [13:52:51]shift 649 fd 187640 [13:52:51]save to /storage/0649/doc_00187640 [13:52:51]save last doc name /storage/0649/doc_00187640 to /storage/kkm_last_doc_name [13:52:51]save OK [13:52:51]Clear old archive folders... [13:52:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:52:51]tlvbuf is 00BB6490 [13:52:51]SAM_PROTO_ClearQueue [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 09 00 00 [13:52:51]Write to MH i2c: E2 08 00 BA 05 80 09 00 00 00 00 00 00 31 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]SAM_PROTO_ClearQueue done [13:52:51]KKMCreateOFDPacket [13:52:51]OFDProtocolAddRootSTLVToBuf [13:52:51]FM_MakeSignedData [13:52:51]FM_MakeSignedData [13:52:51]SAM_PROTO_SignData [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 01 02 [13:52:51]Write to MH i2c: E2 08 00 BB 05 80 0D 01 02 00 00 00 00 39 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]wFMCommunicate request_size=255 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 32 85 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DC 02 00 35 04 06 00 72 AE FA 2B [13:52:51]Write to MH i2c: E2 02 01 BC 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 32 85 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DC 02 00 35 04 06 00 72 AE FA 2B 00 00 DF [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]wFMCommunicate request_size=7 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 02 02 02 E7 8A [13:52:51]Write to MH i2c: E2 0A 00 BD 05 80 0D 02 02 02 00 E7 8A 00 00 B1 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [13:52:51]RAPDU: 90 00 [13:52:51]wFMCommunicate OK [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 0D 03 02 [13:52:51]Write to MH i2c: E2 08 00 BE 05 80 0D 03 02 00 00 00 00 3E [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 0B 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 0B 00 BE 05 00 0D 42 21 3E CF A1 1C A6 90 00 1F [13:52:51]RAPDU: 0D 42 21 3E CF A1 1C A6 90 00 [13:52:51]wFMCommunicate OK [13:52:51]SAM_PROTO_SignData done [13:52:51]FM_MakeSignedData done [13:52:51]CreateOFDProtocolMessage [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 11 00 00 [13:52:51]Write to MH i2c: E2 08 00 BF 05 80 11 00 00 00 00 00 00 3E [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 17 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 17 00 BF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 91 [13:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:52:51]wFMCommunicate OK [13:52:51]CreateOFDProtocolMessage done [13:52:51]OFDSenderStorePacket 187640 [13:52:51]StoreOFDPacket docnum=187640 [13:52:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AB 41 04 01 B8 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 32 85 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DC 02 00 35 04 06 00 72 AE FA 2B E7 8A 0D 42 21 3E CF A1 1C A6 [13:52:51]CheckFolder [13:52:51]dirname=/storage/ofd_packets [13:52:51]CheckFolder done [13:52:51]ProducePacketName [13:52:51]name=ofd_packets/00187640 [13:52:51]NVStorageSaveData ofd_packets/00187640 [13:52:51]File name is /storage/ofd_packets/00187640 [13:52:51]Write 298 bytes [13:52:51]NVStorageSaveData done [13:52:51]OFDSenderStorePacket done [13:52:51]KKMCreateOFDPacket done [13:52:51]NVStorageSaveData kkm_last_timestamp [13:52:51]File name is /storage/kkm_last_timestamp [13:52:51]Write 4 bytes [13:52:51]NVStorageSaveData done [13:52:51]ExternCall_PrintAddStr [13:52:51]wPrintStart [13:52:51]Write to MH i2c: 01 00 00 C0 05 C5 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 FF 0F DA [13:52:51]RasterBufferAndPrint [13:52:51]line Счет N : (1)412800 [13:52:51]line ИНН: 02508201610067 [13:52:51]line Контрольно-Кассовый Чек [13:52:51]line ПРОДАЖА [13:52:51]line ТРК (МРК, ГНК) : 5 [13:52:51]line Товар: 2710194210 [13:52:51]line ДТ-К-5 [13:52:51]line 13.780 * 72.60 [13:52:51]line = 1000.43 [13:52:51]line НДС 12% НСП 1% [13:52:51]line > о реализуемом товаре [13:52:51]line ОКРУГЛЕНИЕ: -0.43 [13:52:51]line ИТОГО: 1000.00 [13:52:51]line Внесено: 1000.00 [13:52:51]line СДАЧА: 0.00 [13:52:51]line НСП 1% : 8.85 [13:52:51]line НДС 12% : 106.24 [13:52:51]line Наличными: 1000.00 [13:52:51]line Безнал.: 0.00 [13:52:51]line Место: АЗС № 92 "Партнер Нефть" [13:52:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:52:51]line СНО: Общий режим [13:52:51]line Чек 134 21.02.2025 13:52 [13:52:51]line Смена: 649 ФФД: 1.0 [13:52:51]line ЗНМ: 0300000118 [13:52:51]line РНМ: 0000000000091857 [13:52:51]line Версия ККМ: 001 [13:52:51]line ФМ: 0000000000871826 [13:52:51]line ФД: 187640 [13:52:51]line ФПД: 126095847057290 [13:52:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T135250&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187640&fm=126095847057290&tin=02508201610067®Number=0000000000091857&sum=100000 [13:52:52]OFD Sender: Processing packet 187640 [packets to send 49, broken 48] [13:52:52]ProducePacketName [13:52:52]name=ofd_packets/00187640 [13:52:52]OFD Sender: To server: pG, [13:52:52]CommunicateWithHost lk.salyk.kg:30040 [13:52:52]ConnectInit lk.salyk.kg [13:52:52]written 0, free lines is 4095 [13:52:52]Connected sock=10 [13:52:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AB 41 04 01 B8 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 32 85 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DC 02 00 35 04 06 00 72 AE FA 2B E7 8A 0D 42 21 3E CF A1 1C A6 [13:52:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2C 60 47 00 30 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 38 32 36 10 04 04 00 F8 DC 02 00 F4 03 04 00 80 2B B8 67 B6 04 01 00 00 F0 9D 82 89 50 6D 20 B9 [13:52:52]CommunicateWithHost err = 0 [13:52:52]CheckOFDResponse [13:52:52]1017 (14) - 77093643461234 [13:52:52]1041 (16) - 0000000000871826 [13:52:52]1040 (4) - 187640 [13:52:52]1012 (4) - 21.02.2025 07:30 [13:52:52]1206 (1) - 0 [13:52:52]OFD Sender: Remove packet 187640 [13:52:52]ProducePacketName [13:52:52]name=ofd_packets/00187640 [13:52:52]NVStorageDeleteData [13:52:52]Write to MH i2c: 01 00 00 EB 05 F0 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 07 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 F3 0C F6 [13:52:52]RasterBufferAndPrint [13:52:52]line [13:52:52]line [13:52:52]line [13:52:52]line [13:52:52]line [13:52:52]written 0, free lines is 3321 [13:52:52]MH_Cut [13:52:52]Write to MH i2c: D1 01 00 F2 05 01 C9 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: D1 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: D1 01 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: D1 01 00 F2 05 00 C8 [13:52:52]Write to MH i2c: 01 00 00 F3 05 F8 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:53]OFD Sender: No OFD packet to send [13:52:53]*** Cut start [13:52:53]*** Partial cut [13:52:53]*** CUTSNS_PIN = 1 [13:52:53]*** CUTSNS_PIN = 0 [13:52:53]*** Brake cut motor [13:52:53]Read from MH i2c: 01 [13:52:53]MH_I2C_Read... [13:52:53]*** Stop cut motor [13:52:53]*** Cut end [13:52:53]Read from MH i2c: 01 07 00 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [13:52:53]process_action close_receipt done [13:52:53]requested_data is exist [13:52:53]produce_requested_data [13:52:53]requested_item fm.sn is exist - process it [13:52:53]wFMCommunicate request_size=4 [13:52:53]MH_SAM_APDU [13:52:53]CAPDU: 80 11 00 00 [13:52:53]Write to MH i2c: E2 08 00 F4 05 80 11 00 00 00 00 00 00 73 [13:52:53]Write i2c OK [13:52:53]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 17 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 17 00 F4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C6 [13:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:52:54]wFMCommunicate OK [13:52:54]requested_item fd.num is exist - process it [13:52:54]SAM_PROTO_GetFieldsCounters [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 13 00 00 [13:52:54]Write to MH i2c: E2 08 00 F5 05 80 13 00 00 00 00 00 00 76 [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 62 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 62 00 F5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F8 DC 02 00 0E 04 04 00 89 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 8F [13:52:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F8 DC 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:54]wFMCommunicate OK [13:52:54]SAM_PROTO_GetFieldsCounters done [13:52:54]requested_item shift.num is exist - process it [13:52:54]requested_item shift.opened is exist - process it [13:52:54]req_shift_opened [13:52:54]FM_GetShiftState [13:52:54]SAM_PROTO_GetShiftState [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 13 01 00 [13:52:54]Write to MH i2c: E2 08 00 F6 05 80 13 01 00 00 00 00 00 78 [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 0E 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 0E 00 F6 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 66 [13:52:54]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [13:52:54]wFMCommunicate OK [13:52:54]SAM_PROTO_GetShiftState done [13:52:54]FM_GetShiftState done [13:52:54]req_shift_opened done [13:52:54]requested_item shift.open_date is exist - process it [13:52:54]req_shift_open_date [13:52:54]req_shift_open_date done [13:52:54]produce_requested_data done [13:52:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187640,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [13:52:54]process_action_free close_receipt [13:52:54]json_value_free [13:52:54]json_value_free done [13:52:54]process_json_proto returns [13:52:54]Send response to host [13:52:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187640,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [13:52:54]free response buf [13:52:54]execute_script done [13:52:54]execute_script returns [13:52:54]free content buf [13:52:54]Sock 7.Close socket [13:52:54]Sock 7.Thread stoped [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:15]accept exits with 9 [14:06:15]New connection [14:06:15]New thread 3067624804 created [14:06:15]Thread 3067481444 joined [14:06:15]Waiting for new connection... [14:06:15] Sock 9.Parse request [14:06:15]Sock 9.Check first char [14:06:15]Sock 9.First char is OK [14:06:15]request: POST /json_proto HTTP/1.0 [14:06:15]Method: POST [14:06:15]URL: /json_proto [14:06:15]Method is POST - this is cgi request [14:06:15]url: /json_proto [14:06:15]query_string will be loaded in cgi processing [14:06:15]execute_cgi json_proto POST (null) [14:06:15]execute_cgi path=json_proto method=POST [14:06:15]POST find Content-Length [14:06:15]Host: 172.17.46.131:8080 [14:06:15]Content-Length: 803 [14:06:15]Content-Type: application/json [14:06:15] [14:06:15]POST finish read [14:06:15]Found Content-Length = 803 [14:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:15]execute_script... [14:06: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)412801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:15]POST & json_proto [14:06:15]process_json_proto [14:06:15]json parsed OK: [14:06:15]protocol is kg_v1.0 [14:06:15]action value=close_receipt [14:06:15]process_action close_receipt [14:06:15]cmd_close_receipt [14:06:15]MH_GetDate [14:06:15]Write to MH i2c: F0 00 00 F7 05 EB [14:06:15]Write i2c OK [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: F0 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: F0 09 00 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: F0 09 00 F7 05 00 57 88 B8 67 7E 41 4F 65 65 [14:06:15]GetLastDocTimeStamp 1740145970 [14:06:15]current date 1740146775 [14:06:15]FM_GetShiftState [14:06:15]SAM_PROTO_GetShiftState [14:06:15]wFMCommunicate request_size=4 [14:06:15]MH_SAM_APDU [14:06:15]CAPDU: 80 13 01 00 [14:06:15]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [14:06:15]Write i2c OK [14:06:15]MH_I2C_Read... [14:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:15]Read from MH i2c: E2 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: E2 0E 00 [14:06:15]MH_I2C_Read... [14:06:15]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 68 [14:06:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:06:15]wFMCommunicate OK [14:06:15]SAM_PROTO_GetShiftState done [14:06:15]FM_GetShiftState done [14:06:15]opened in 1740098043 [14:06:15]opened+sec_in_day 1740184443 [14:06:15]quantity*price = 200025 [14:06:15]sum+1 = 200027 [14:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.26 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.26 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 135 21.02.2025 14:06 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187641 ФПД: 42865990168704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T140615&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187641&fm=42865990168704&tin=02508201610067®Number=0000000000091857&sum=200026 [14:06:16]StoreToDocumentArchive [14:06:16]shift 649 fd 187641 [14:06:16]save to /storage/0649/doc_00187641 [14:06:16]save last doc name /storage/0649/doc_00187641 to /storage/kkm_last_doc_name [14:06:16]save OK [14:06:16]Clear old archive folders... [14:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:16]tlvbuf is 00BD3DE0 [14:06:16]SAM_PROTO_ClearQueue [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 09 00 00 [14:06:16]Write to MH i2c: E2 08 00 05 06 80 09 00 00 00 00 00 00 7D [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [14:06:16]RAPDU: 90 00 [14:06:16]wFMCommunicate OK [14:06:16]SAM_PROTO_ClearQueue done [14:06:16]KKMCreateOFDPacket [14:06:16]OFDProtocolAddRootSTLVToBuf [14:06:16]FM_MakeSignedData [14:06:16]FM_MakeSignedData [14:06:16]SAM_PROTO_SignData [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 0D 01 02 [14:06:16]Write to MH i2c: E2 08 00 06 06 80 0D 01 02 00 00 00 00 85 [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [14:06:16]RAPDU: 90 00 [14:06:16]wFMCommunicate OK [14:06:16]wFMCommunicate request_size=255 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 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 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 57 88 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 DC 02 00 35 04 06 00 26 [14:06:16]Write to MH i2c: E2 02 01 07 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 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 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 57 88 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 DC 02 00 35 04 06 00 26 00 00 69 [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [14:06:16]RAPDU: 90 00 [14:06:16]wFMCommunicate OK [14:06:16]wFMCommunicate request_size=10 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 0D 02 02 05 FC 84 1D F0 80 [14:06:16]Write to MH i2c: E2 0D 00 08 06 80 0D 02 02 05 00 FC 84 1D F0 80 00 00 9F [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [14:06:16]RAPDU: 90 00 [14:06:16]wFMCommunicate OK [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 0D 03 02 [14:06:16]Write to MH i2c: E2 08 00 09 06 80 0D 03 02 00 00 00 00 8A [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 0B 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 0B 00 09 06 00 A3 5C E5 37 55 BB 3D 0D 90 00 00 [14:06:16]RAPDU: A3 5C E5 37 55 BB 3D 0D 90 00 [14:06:16]wFMCommunicate OK [14:06:16]SAM_PROTO_SignData done [14:06:16]FM_MakeSignedData done [14:06:16]CreateOFDProtocolMessage [14:06:16]wFMCommunicate request_size=4 [14:06:16]MH_SAM_APDU [14:06:16]CAPDU: 80 11 00 00 [14:06:16]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:16]Read from MH i2c: E2 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 17 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [14:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:06:16]wFMCommunicate OK [14:06:16]CreateOFDProtocolMessage done [14:06:16]OFDSenderStorePacket 187641 [14:06:16]StoreOFDPacket docnum=187641 [14:06:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DE CD 07 01 CF 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 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 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 57 88 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 DC 02 00 35 04 06 00 26 FC 84 1D F0 80 A3 5C E5 37 55 BB 3D 0D [14:06:16]CheckFolder [14:06:16]dirname=/storage/ofd_packets [14:06:16]CheckFolder done [14:06:16]ProducePacketName [14:06:16]name=ofd_packets/00187641 [14:06:16]NVStorageSaveData ofd_packets/00187641 [14:06:16]File name is /storage/ofd_packets/00187641 [14:06:16]Write 301 bytes [14:06:16]NVStorageSaveData done [14:06:16]OFDSenderStorePacket done [14:06:16]KKMCreateOFDPacket done [14:06:16]NVStorageSaveData kkm_last_timestamp [14:06:16]File name is /storage/kkm_last_timestamp [14:06:16]Write 4 bytes [14:06:16]NVStorageSaveData done [14:06:16]ExternCall_PrintAddStr [14:06:16]wPrintStart [14:06:16]Write to MH i2c: 01 00 00 0B 06 11 [14:06:16]Write i2c OK [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: 01 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: 01 07 00 [14:06:16]MH_I2C_Read... [14:06:16]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 FF 0F 26 [14:06:16]RasterBufferAndPrint [14:06:16]line Счет N : (1)412801 [14:06:16]line ИНН: 02508201610067 [14:06:16]line Контрольно-Кассовый Чек [14:06:16]line ПРОДАЖА [14:06:16]line ТРК (МРК, ГНК) : 23 [14:06:16]line Товар: 2710124500 [14:06:16]line Аи-95-К-5 [14:06:16]line 27.820 * 71.90 [14:06:16]line = 2000.26 [14:06:16]line НДС 12% НСП 1% [14:06:16]line > о реализуемом товаре [14:06:16]line ИТОГО: 2000.26 [14:06:16]line НСП 1% : 17.70 [14:06:16]line НДС 12% : 212.42 [14:06:16]line Наличными: 0.00 [14:06:16]line Безнал.: 2000.26 [14:06:16]line Место: АЗС № 92 "Партнер Нефть" [14:06:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:06:16]line СНО: Общий режим [14:06:16]line Чек 135 21.02.2025 14:06 [14:06:16]line Смена: 649 ФФД: 1.0 [14:06:16]line ЗНМ: 0300000118 [14:06:16]line РНМ: 0000000000091857 [14:06:16]line Версия ККМ: 001 [14:06:16]line Платежная система: O! деньги [14:06:16]line ФМ: 0000000000871826 [14:06:16]line ФД: 187641 [14:06:16]line ФПД: 42865990168704 [14:06:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T140615&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187641&fm=42865990168704&tin=02508201610067®Number=0000000000091857&sum=200026 [14:06:16]written 0, free lines is 4095 [14:06:16]OFD Sender: Processing packet 187641 [packets to send 49, broken 48] [14:06:16]ProducePacketName [14:06:16]name=ofd_packets/00187641 [14:06:16]OFD Sender: To server: pG, [14:06:16]CommunicateWithHost lk.salyk.kg:30040 [14:06:16]ConnectInit lk.salyk.kg [14:06:17]Connected sock=10 [14:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DE CD 07 01 CF 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5A 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 5A 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 57 88 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F9 DC 02 00 35 04 06 00 26 FC 84 1D F0 80 A3 5C E5 37 55 BB 3D 0D [14:06:17]Write to MH i2c: 01 00 00 35 06 3B [14:06:17]Write i2c OK [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: 01 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: 01 07 00 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 0B 0D 5A [14:06:17]RasterBufferAndPrint [14:06:17]line [14:06:17]line [14:06:17]line [14:06:17]line [14:06:17]line [14:06:17]written 0, free lines is 3345 [14:06:17]MH_Cut [14:06:17]Write to MH i2c: D1 01 00 3C 06 01 14 [14:06:17]Write i2c OK [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: D1 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: D1 01 00 [14:06:17]MH_I2C_Read... [14:06:17]Read from MH i2c: D1 01 00 3C 06 00 13 [14:06:17]Write to MH i2c: 01 00 00 3D 06 43 [14:06:17]Write i2c OK [14:06:17]MH_I2C_Read... [14:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 16 59 47 00 DC 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 38 32 36 10 04 04 00 F9 DC 02 00 F4 03 04 00 A5 2E B8 67 B6 04 01 00 00 63 04 CF 4A E7 ED 12 13 [14:06:17]CommunicateWithHost err = 0 [14:06:17]CheckOFDResponse [14:06:17]1017 (14) - 77093643461234 [14:06:17]1041 (16) - 0000000000871826 [14:06:17]1040 (4) - 187641 [14:06:17]1012 (4) - 21.02.2025 07:43 [14:06:17]1206 (1) - 0 [14:06:17]OFD Sender: Remove packet 187641 [14:06:17]ProducePacketName [14:06:17]name=ofd_packets/00187641 [14:06:17]NVStorageDeleteData [14:06:17]OFD Sender: No OFD packet to send [14:06:18]*** Cut start [14:06:18]*** Partial cut [14:06:18]*** CUTSNS_PIN = 1 [14:06:18]*** CUTSNS_PIN = 0 [14:06:18]*** Brake cut motor [14:06:18]Read from MH i2c: 01 [14:06:18]MH_I2C_Read... [14:06:18]*** Stop cut motor [14:06:18]*** Cut end [14:06:18]Read from MH i2c: 01 07 00 [14:06:18]MH_I2C_Read... [14:06:18]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 FF 0F 58 [14:06:18]process_action close_receipt done [14:06:18]requested_data is exist [14:06:18]produce_requested_data [14:06:18]requested_item fm.sn is exist - process it [14:06:18]wFMCommunicate request_size=4 [14:06:18]MH_SAM_APDU [14:06:18]CAPDU: 80 11 00 00 [14:06:18]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [14:06:18]Write i2c OK [14:06:18]MH_I2C_Read... [14:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:18]Read from MH i2c: E2 [14:06:18]MH_I2C_Read... [14:06:18]Read from MH i2c: E2 17 00 [14:06:18]MH_I2C_Read... [14:06:18]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [14:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:06:18]wFMCommunicate OK [14:06:18]requested_item fd.num is exist - process it [14:06:18]SAM_PROTO_GetFieldsCounters [14:06:18]wFMCommunicate request_size=4 [14:06:18]MH_SAM_APDU [14:06:18]CAPDU: 80 13 00 00 [14:06:18]Write to MH i2c: E2 08 00 3F 06 80 13 00 00 00 00 00 00 C1 [14:06:18]Write i2c OK [14:06:18]MH_I2C_Read... [14:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:18]Read from MH i2c: E2 [14:06:18]MH_I2C_Read... [14:06:18]Read from MH i2c: E2 62 00 [14:06:18]MH_I2C_Read... [14:06:18]Read from MH i2c: E2 62 00 3F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F9 DC 02 00 0E 04 04 00 89 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 DE [14:06:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 F9 DC 02 00 0E 04 04 00 89 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 [14:06:18]wFMCommunicate OK [14:06:18]SAM_PROTO_GetFieldsCounters done [14:06:18]requested_item shift.num is exist - process it [14:06:18]requested_item shift.opened is exist - process it [14:06:18]req_shift_opened [14:06:18]FM_GetShiftState [14:06:18]SAM_PROTO_GetShiftState [14:06:18]wFMCommunicate request_size=4 [14:06:18]MH_SAM_APDU [14:06:18]CAPDU: 80 13 01 00 [14:06:18]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [14:06:18]Write i2c OK [14:06:18]MH_I2C_Read... [14:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:19]Read from MH i2c: E2 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 0E 00 [14:06:19]MH_I2C_Read... [14:06:19]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B1 [14:06:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:06:19]wFMCommunicate OK [14:06:19]SAM_PROTO_GetShiftState done [14:06:19]FM_GetShiftState done [14:06:19]req_shift_opened done [14:06:19]requested_item shift.open_date is exist - process it [14:06:19]req_shift_open_date [14:06:19]req_shift_open_date done [14:06:19]produce_requested_data done [14:06:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187641,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:06:19]process_action_free close_receipt [14:06:19]json_value_free [14:06:19]json_value_free done [14:06:19]process_json_proto returns [14:06:19]Send response to host [14:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187641,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:06:19]free response buf [14:06:19]execute_script done [14:06:19]execute_script returns [14:06:19]free content buf [14:06:19]Sock 9.Close socket [14:06:19]Sock 9.Thread stoped [14:06:21]accept exits with 7 [14:06:21]New connection [14:06:21]New thread 3067481444 created [14:06:21]Thread 3067624804 joined [14:06:21]Waiting for new connection... [14:06:21] Sock 7.Parse request [14:06:21]Sock 7.Check first char [14:06:21]Sock 7.First char is OK [14:06:21]request: POST /json_proto HTTP/1.0 [14:06:21]Method: POST [14:06:21]URL: /json_proto [14:06:21]Method is POST - this is cgi request [14:06:21]url: /json_proto [14:06:21]query_string will be loaded in cgi processing [14:06:21]execute_cgi json_proto POST (null) [14:06:21]execute_cgi path=json_proto method=POST [14:06:21]POST find Content-Length [14:06:21]Host: 172.17.46.131:8080 [14:06:21]Content-Length: 677 [14:06:21]Content-Type: application/json [14:06:21] [14:06:21]POST finish read [14:06:21]Found Content-Length = 677 [14:06:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.010, "sum" : 450.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:21]execute_script... [14:06: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)412802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.010, "sum" : 450.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:21]POST & json_proto [14:06:21]process_json_proto [14:06:21]json parsed OK: [14:06:21]protocol is kg_v1.0 [14:06:21]action value=close_receipt [14:06:21]process_action close_receipt [14:06:21]cmd_close_receipt [14:06:21]MH_GetDate [14:06:21]Write to MH i2c: F0 00 00 41 06 36 [14:06:21]Write i2c OK [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: F0 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: F0 09 00 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: F0 09 00 41 06 00 5D 88 B8 67 7E 41 4F 65 B6 [14:06:21]GetLastDocTimeStamp 1740146775 [14:06:21]current date 1740146781 [14:06:21]FM_GetShiftState [14:06:21]SAM_PROTO_GetShiftState [14:06:21]wFMCommunicate request_size=4 [14:06:21]MH_SAM_APDU [14:06:21]CAPDU: 80 13 01 00 [14:06:21]Write to MH i2c: E2 08 00 42 06 80 13 01 00 00 00 00 00 C5 [14:06:21]Write i2c OK [14:06:21]MH_I2C_Read... [14:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:21]Read from MH i2c: E2 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 0E 00 [14:06:21]MH_I2C_Read... [14:06:21]Read from MH i2c: E2 0E 00 42 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B3 [14:06:21]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:06:21]wFMCommunicate OK [14:06:21]SAM_PROTO_GetShiftState done [14:06:21]FM_GetShiftState done [14:06:21]opened in 1740098043 [14:06:21]opened+sec_in_day 1740184443 [14:06:21]quantity*price = 45004 [14:06:21]sum+1 = 45005 [14:06:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 136 21.02.2025 14:06 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187642 ФПД: 2369861010893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T140621&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187642&fm=2369861010893&tin=02508201610067®Number=0000000000091857&sum=45000 [14:06:22]StoreToDocumentArchive [14:06:22]shift 649 fd 187642 [14:06:22]save to /storage/0649/doc_00187642 [14:06:22]save last doc name /storage/0649/doc_00187642 to /storage/kkm_last_doc_name [14:06:22]save OK [14:06:22]Clear old archive folders... [14:06:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:22]tlvbuf is 00B9C090 [14:06:22]SAM_PROTO_ClearQueue [14:06:22]wFMCommunicate request_size=4 [14:06:22]MH_SAM_APDU [14:06:22]CAPDU: 80 09 00 00 [14:06:22]Write to MH i2c: E2 08 00 4F 06 80 09 00 00 00 00 00 00 C7 [14:06:22]Write i2c OK [14:06:22]MH_I2C_Read... [14:06:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:22]Read from MH i2c: E2 [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: E2 03 00 [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [14:06:22]RAPDU: 90 00 [14:06:22]wFMCommunicate OK [14:06:22]SAM_PROTO_ClearQueue done [14:06:22]KKMCreateOFDPacket [14:06:22]OFDProtocolAddRootSTLVToBuf [14:06:22]FM_MakeSignedData [14:06:22]FM_MakeSignedData [14:06:22]SAM_PROTO_SignData [14:06:22]wFMCommunicate request_size=4 [14:06:22]MH_SAM_APDU [14:06:22]CAPDU: 80 0D 01 02 [14:06:22]Write to MH i2c: E2 08 00 50 06 80 0D 01 02 00 00 00 00 CF [14:06:22]Write i2c OK [14:06:22]MH_I2C_Read... [14:06:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:22]Read from MH i2c: E2 [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: E2 03 00 [14:06:22]MH_I2C_Read... [14:06:22]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [14:06:22]RAPDU: 90 00 [14:06:22]wFMCommunicate OK [14:06:22]wFMCommunicate request_size=255 [14:06:22]MH_SAM_APDU [14:06:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 5D 88 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA DC 02 00 35 04 06 00 02 [14:06:22]Write to MH i2c: E2 02 01 51 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 5D 88 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA DC 02 00 35 04 06 00 02 00 00 2B [14:06:22]Write i2c OK [14:06:22]MH_I2C_Read... [14:06:22]OFD Sender: No OFD packet to send [14:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:23]Read from MH i2c: E2 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 03 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [14:06:23]RAPDU: 90 00 [14:06:23]wFMCommunicate OK [14:06:23]wFMCommunicate request_size=10 [14:06:23]MH_SAM_APDU [14:06:23]CAPDU: 80 0D 02 02 05 27 C6 B9 45 CD [14:06:23]Write to MH i2c: E2 0D 00 52 06 80 0D 02 02 05 00 27 C6 B9 45 CD 00 00 94 [14:06:23]Write i2c OK [14:06:23]MH_I2C_Read... [14:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:23]Read from MH i2c: E2 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 03 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 03 00 52 06 00 90 00 CC [14:06:23]RAPDU: 90 00 [14:06:23]wFMCommunicate OK [14:06:23]wFMCommunicate request_size=4 [14:06:23]MH_SAM_APDU [14:06:23]CAPDU: 80 0D 03 02 [14:06:23]Write to MH i2c: E2 08 00 53 06 80 0D 03 02 00 00 00 00 D4 [14:06:23]Write i2c OK [14:06:23]MH_I2C_Read... [14:06:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:23]Read from MH i2c: E2 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 0B 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 0B 00 53 06 00 25 D7 B0 60 E7 38 F4 E1 90 00 D5 [14:06:23]RAPDU: 25 D7 B0 60 E7 38 F4 E1 90 00 [14:06:23]wFMCommunicate OK [14:06:23]SAM_PROTO_SignData done [14:06:23]FM_MakeSignedData done [14:06:23]CreateOFDProtocolMessage [14:06:23]wFMCommunicate request_size=4 [14:06:23]MH_SAM_APDU [14:06:23]CAPDU: 80 11 00 00 [14:06:23]Write to MH i2c: E2 08 00 54 06 80 11 00 00 00 00 00 00 D4 [14:06:23]Write i2c OK [14:06:23]MH_I2C_Read... [14:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:23]Read from MH i2c: E2 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 17 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: E2 17 00 54 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [14:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:06:23]wFMCommunicate OK [14:06:23]CreateOFDProtocolMessage done [14:06:23]OFDSenderStorePacket 187642 [14:06:23]StoreOFDPacket docnum=187642 [14:06:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0A 2F 07 01 16 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 5D 88 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA DC 02 00 35 04 06 00 02 27 C6 B9 45 CD 25 D7 B0 60 E7 38 F4 E1 [14:06:23]CheckFolder [14:06:23]dirname=/storage/ofd_packets [14:06:23]CheckFolder done [14:06:23]ProducePacketName [14:06:23]name=ofd_packets/00187642 [14:06:23]NVStorageSaveData ofd_packets/00187642 [14:06:23]File name is /storage/ofd_packets/00187642 [14:06:23]Write 301 bytes [14:06:23]NVStorageSaveData done [14:06:23]OFDSenderStorePacket done [14:06:23]KKMCreateOFDPacket done [14:06:23]NVStorageSaveData kkm_last_timestamp [14:06:23]File name is /storage/kkm_last_timestamp [14:06:23]Write 4 bytes [14:06:23]NVStorageSaveData done [14:06:23]ExternCall_PrintAddStr [14:06:23]wPrintStart [14:06:23]Write to MH i2c: 01 00 00 55 06 5B [14:06:23]Write i2c OK [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 07 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 07 00 55 06 00 00 00 00 00 FF 0F 70 [14:06:23]RasterBufferAndPrint [14:06:23]line Счет N : (1)412802 [14:06:23]line ИНН: 02508201610067 [14:06:23]line Контрольно-Кассовый Чек [14:06:23]line ПРОДАЖА [14:06:23]line ТРК (МРК, ГНК) : 32 [14:06:23]line Товар: 2710124130 [14:06:23]line Аи-92-К-2 [14:06:23]line 7.010 * 64.20 [14:06:23]line = 450.04 [14:06:23]line НДС 12% НСП 1% [14:06:23]line > о реализуемом товаре [14:06:23]line ОКРУГЛЕНИЕ: -0.04 [14:06:23]line ИТОГО: 450.00 [14:06:23]line Внесено: 450.00 [14:06:23]line СДАЧА: 0.00 [14:06:23]line НСП 1% : 3.98 [14:06:23]line НДС 12% : 47.79 [14:06:23]line Наличными: 450.00 [14:06:23]line Безнал.: 0.00 [14:06:23]line Место: АЗС № 92 "Партнер Нефть" [14:06:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:06:23]line СНО: Общий режим [14:06:23]line Чек 136 21.02.2025 14:06 [14:06:23]line Смена: 649 ФФД: 1.0 [14:06:23]line ЗНМ: 0300000118 [14:06:23]line РНМ: 0000000000091857 [14:06:23]line Версия ККМ: 001 [14:06:23]line ФМ: 0000000000871826 [14:06:23]line ФД: 187642 [14:06:23]line ФПД: 2369861010893 [14:06:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T140621&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187642&fm=2369861010893&tin=02508201610067®Number=0000000000091857&sum=45000 [14:06:23]OFD Sender: Processing packet 187642 [packets to send 49, broken 48] [14:06:23]ProducePacketName [14:06:23]name=ofd_packets/00187642 [14:06:23]OFD Sender: To server: pG, [14:06:23]CommunicateWithHost lk.salyk.kg:30040 [14:06:23]ConnectInit lk.salyk.kg [14:06:23]written 0, free lines is 4095 [14:06:23]Connected sock=10 [14:06:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0A 2F 07 01 16 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 5D 88 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA DC 02 00 35 04 06 00 02 27 C6 B9 45 CD 25 D7 B0 60 E7 38 F4 E1 [14:06:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 35 C7 47 00 0C E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FA DC 02 00 F4 03 04 00 AB 2E B8 67 B6 04 01 00 00 02 F3 0F F3 76 66 56 A5 [14:06:23]CommunicateWithHost err = 0 [14:06:23]CheckOFDResponse [14:06:23]1017 (14) - 77093643461234 [14:06:23]1041 (16) - 0000000000871826 [14:06:23]1040 (4) - 187642 [14:06:23]1012 (4) - 21.02.2025 07:43 [14:06:23]1206 (1) - 0 [14:06:23]OFD Sender: Remove packet 187642 [14:06:23]ProducePacketName [14:06:23]name=ofd_packets/00187642 [14:06:23]NVStorageDeleteData [14:06:23]Write to MH i2c: 01 00 00 80 06 86 [14:06:23]Write i2c OK [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 07 00 [14:06:23]MH_I2C_Read... [14:06:23]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 F7 0C 90 [14:06:23]RasterBufferAndPrint [14:06:23]line [14:06:23]line [14:06:23]line [14:06:23]line [14:06:23]line [14:06:23]written 0, free lines is 3328 [14:06:24]MH_Cut [14:06:24]Write to MH i2c: D1 01 00 87 06 01 5F [14:06:24]Write i2c OK [14:06:24]MH_I2C_Read... [14:06:24]Read from MH i2c: D1 [14:06:24]MH_I2C_Read... [14:06:24]Read from MH i2c: D1 01 00 [14:06:24]MH_I2C_Read... [14:06:24]Read from MH i2c: D1 01 00 87 06 00 5E [14:06:24]Write to MH i2c: 01 00 00 88 06 8E [14:06:24]Write i2c OK [14:06:24]MH_I2C_Read... [14:06:24]OFD Sender: No OFD packet to send [14:06:24]*** Cut start [14:06:24]*** Partial cut [14:06:24]*** CUTSNS_PIN = 1 [14:06:24]*** CUTSNS_PIN = 0 [14:06:25]*** Brake cut motor [14:06:25]Read from MH i2c: 01 [14:06:25]MH_I2C_Read... [14:06:25]*** Stop cut motor [14:06:25]*** Cut end [14:06:25]Read from MH i2c: 01 07 00 [14:06:25]MH_I2C_Read... [14:06:25]Read from MH i2c: 01 07 00 88 06 00 00 00 00 00 FF 0F A3 [14:06:25]process_action close_receipt done [14:06:25]requested_data is exist [14:06:25]produce_requested_data [14:06:25]requested_item fm.sn is exist - process it [14:06:25]wFMCommunicate request_size=4 [14:06:25]MH_SAM_APDU [14:06:25]CAPDU: 80 11 00 00 [14:06:25]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [14:06:25]Write i2c OK [14:06:25]MH_I2C_Read... [14:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:25]Read from MH i2c: E2 [14:06:25]MH_I2C_Read... [14:06:25]Read from MH i2c: E2 17 00 [14:06:25]MH_I2C_Read... [14:06:25]Read from MH i2c: E2 17 00 89 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [14:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:06:25]wFMCommunicate OK [14:06:25]requested_item fd.num is exist - process it [14:06:25]SAM_PROTO_GetFieldsCounters [14:06:25]wFMCommunicate request_size=4 [14:06:25]MH_SAM_APDU [14:06:25]CAPDU: 80 13 00 00 [14:06:25]Write to MH i2c: E2 08 00 8A 06 80 13 00 00 00 00 00 00 0C [14:06:25]Write i2c OK [14:06:25]MH_I2C_Read... [14:06:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:25]Read from MH i2c: E2 [14:06:25]MH_I2C_Read... [14:06:25]Read from MH i2c: E2 62 00 [14:06:25]MH_I2C_Read... [14:06:25]Read from MH i2c: E2 62 00 8A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FA DC 02 00 0E 04 04 00 89 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 2D [14:06:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FA DC 02 00 0E 04 04 00 89 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 [14:06:25]wFMCommunicate OK [14:06:25]SAM_PROTO_GetFieldsCounters done [14:06:25]requested_item shift.num is exist - process it [14:06:25]requested_item shift.opened is exist - process it [14:06:25]req_shift_opened [14:06:25]FM_GetShiftState [14:06:25]SAM_PROTO_GetShiftState [14:06:25]wFMCommunicate request_size=4 [14:06:25]MH_SAM_APDU [14:06:25]CAPDU: 80 13 01 00 [14:06:25]Write to MH i2c: E2 08 00 8B 06 80 13 01 00 00 00 00 00 0E [14:06:25]Write i2c OK [14:06:25]MH_I2C_Read... [14:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:25]Read from MH i2c: E2 [14:06:25]MH_I2C_Read... [14:06:25]Read from MH i2c: E2 0E 00 [14:06:25]MH_I2C_Read... [14:06:25]Read from MH i2c: E2 0E 00 8B 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FC [14:06:25]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:06:25]wFMCommunicate OK [14:06:25]SAM_PROTO_GetShiftState done [14:06:25]FM_GetShiftState done [14:06:25]req_shift_opened done [14:06:25]requested_item shift.open_date is exist - process it [14:06:25]req_shift_open_date [14:06:25]req_shift_open_date done [14:06:25]produce_requested_data done [14:06:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187642,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:06:25]process_action_free close_receipt [14:06:25]json_value_free [14:06:25]json_value_free done [14:06:25]process_json_proto returns [14:06:25]Send response to host [14:06:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187642,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:06:25]free response buf [14:06:25]execute_script done [14:06:25]execute_script returns [14:06:25]free content buf [14:06:25]Sock 7.Close socket [14:06:25]Sock 7.Thread stoped [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:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:57]accept exits with 9 [14:11:57]New connection [14:11:57]New thread 3067624804 created [14:11:57]Thread 3067481444 joined [14:11:57]Waiting for new connection... [14:11:57] Sock 9.Parse request [14:11:57]Sock 9.Check first char [14:11:57]Sock 9.First char is OK [14:11:57]request: POST /json_proto HTTP/1.0 [14:11:57]Method: POST [14:11:57]URL: /json_proto [14:11:57]Method is POST - this is cgi request [14:11:57]url: /json_proto [14:11:57]query_string will be loaded in cgi processing [14:11:57]execute_cgi json_proto POST (null) [14:11:57]execute_cgi path=json_proto method=POST [14:11:57]POST find Content-Length [14:11:57]Host: 172.17.46.131:8080 [14:11:57]Content-Length: 750 [14:11:57]Content-Type: application/json [14:11:57] [14:11:57]POST finish read [14:11:57]Found Content-Length = 750 [14:11:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.680, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:57]execute_script... [14:11: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)412803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.680, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:57]POST & json_proto [14:11:57]process_json_proto [14:11:57]json parsed OK: [14:11:57]protocol is kg_v1.0 [14:11:57]action value=close_receipt [14:11:57]process_action close_receipt [14:11:57]cmd_close_receipt [14:11:57]MH_GetDate [14:11:57]Write to MH i2c: F0 00 00 8C 06 81 [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: F0 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: F0 09 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: F0 09 00 8C 06 00 AE 89 B8 67 7E 41 4F 65 53 [14:11:57]GetLastDocTimeStamp 1740146781 [14:11:57]current date 1740147118 [14:11:57]FM_GetShiftState [14:11:57]SAM_PROTO_GetShiftState [14:11:57]wFMCommunicate request_size=4 [14:11:57]MH_SAM_APDU [14:11:57]CAPDU: 80 13 01 00 [14:11:57]Write to MH i2c: E2 08 00 8D 06 80 13 01 00 00 00 00 00 10 [14:11:57]Write i2c OK [14:11:57]MH_I2C_Read... [14:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:57]Read from MH i2c: E2 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: E2 0E 00 [14:11:57]MH_I2C_Read... [14:11:57]Read from MH i2c: E2 0E 00 8D 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FE [14:11:57]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:11:57]wFMCommunicate OK [14:11:57]SAM_PROTO_GetShiftState done [14:11:57]FM_GetShiftState done [14:11:57]opened in 1740098043 [14:11:57]opened+sec_in_day 1740184443 [14:11:57]quantity*price = 0 [14:11:57]sum+1 = 1 [14:11:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 137 21.02.2025 14:11 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106530 ФМ: 0000000000871826 ФД: 187643 ФПД: 49654667352600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T141158&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187643&fm=49654667352600&tin=02508201610067®Number=0000000000091857&sum=0 [14:11:58]StoreToDocumentArchive [14:11:58]shift 649 fd 187643 [14:11:58]save to /storage/0649/doc_00187643 [14:11:58]save last doc name /storage/0649/doc_00187643 to /storage/kkm_last_doc_name [14:11:58]save OK [14:11:58]Clear old archive folders... [14:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:11:59]tlvbuf is 00BF68A0 [14:11:59]SAM_PROTO_ClearQueue [14:11:59]wFMCommunicate request_size=4 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 09 00 00 [14:11:59]Write to MH i2c: E2 08 00 9A 06 80 09 00 00 00 00 00 00 12 [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 03 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [14:11:59]RAPDU: 90 00 [14:11:59]wFMCommunicate OK [14:11:59]SAM_PROTO_ClearQueue done [14:11:59]KKMCreateOFDPacket [14:11:59]OFDProtocolAddRootSTLVToBuf [14:11:59]FM_MakeSignedData [14:11:59]FM_MakeSignedData [14:11:59]SAM_PROTO_SignData [14:11:59]wFMCommunicate request_size=4 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 0D 01 02 [14:11:59]Write to MH i2c: E2 08 00 9B 06 80 0D 01 02 00 00 00 00 1A [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 03 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [14:11:59]RAPDU: 90 00 [14:11:59]wFMCommunicate OK [14:11:59]wFMCommunicate request_size=255 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 50 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 89 00 00 00 F4 03 04 00 AE 89 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DC 02 00 35 04 06 00 2D 29 20 CF [14:11:59]Write to MH i2c: E2 02 01 9C 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 50 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 89 00 00 00 F4 03 04 00 AE 89 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DC 02 00 35 04 06 00 2D 29 20 CF 00 00 1C [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 03 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [14:11:59]RAPDU: 90 00 [14:11:59]wFMCommunicate OK [14:11:59]wFMCommunicate request_size=7 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 0D 02 02 02 1A 18 [14:11:59]Write to MH i2c: E2 0A 00 9D 06 80 0D 02 02 02 00 1A 18 00 00 53 [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 03 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 03 00 9D 06 00 90 00 17 [14:11:59]RAPDU: 90 00 [14:11:59]wFMCommunicate OK [14:11:59]wFMCommunicate request_size=4 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 0D 03 02 [14:11:59]Write to MH i2c: E2 08 00 9E 06 80 0D 03 02 00 00 00 00 1F [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 0B 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 0B 00 9E 06 00 78 FD 5C E5 E2 B4 B2 3A 90 00 58 [14:11:59]RAPDU: 78 FD 5C E5 E2 B4 B2 3A 90 00 [14:11:59]wFMCommunicate OK [14:11:59]SAM_PROTO_SignData done [14:11:59]FM_MakeSignedData done [14:11:59]CreateOFDProtocolMessage [14:11:59]wFMCommunicate request_size=4 [14:11:59]MH_SAM_APDU [14:11:59]CAPDU: 80 11 00 00 [14:11:59]Write to MH i2c: E2 08 00 9F 06 80 11 00 00 00 00 00 00 1F [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:59]Read from MH i2c: E2 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 17 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: E2 17 00 9F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [14:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:11:59]wFMCommunicate OK [14:11:59]CreateOFDProtocolMessage done [14:11:59]OFDSenderStorePacket 187643 [14:11:59]StoreOFDPacket docnum=187643 [14:11:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 19 14 04 01 93 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 50 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 89 00 00 00 F4 03 04 00 AE 89 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DC 02 00 35 04 06 00 2D 29 20 CF 1A 18 78 FD 5C E5 E2 B4 B2 3A [14:11:59]CheckFolder [14:11:59]dirname=/storage/ofd_packets [14:11:59]CheckFolder done [14:11:59]ProducePacketName [14:11:59]name=ofd_packets/00187643 [14:11:59]NVStorageSaveData ofd_packets/00187643 [14:11:59]File name is /storage/ofd_packets/00187643 [14:11:59]Write 298 bytes [14:11:59]NVStorageSaveData done [14:11:59]OFDSenderStorePacket done [14:11:59]KKMCreateOFDPacket done [14:11:59]NVStorageSaveData kkm_last_timestamp [14:11:59]File name is /storage/kkm_last_timestamp [14:11:59]Write 4 bytes [14:11:59]NVStorageSaveData done [14:11:59]ExternCall_PrintAddStr [14:11:59]wPrintStart [14:11:59]Write to MH i2c: 01 00 00 A0 06 A6 [14:11:59]Write i2c OK [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: 01 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: 01 07 00 [14:11:59]MH_I2C_Read... [14:11:59]Read from MH i2c: 01 07 00 A0 06 00 00 00 00 00 FF 0F BB [14:11:59]RasterBufferAndPrint [14:11:59]line Счет N : (1)412803 [14:11:59]line ИНН: 02508201610067 [14:11:59]line Контрольно-Кассовый Чек [14:11:59]line ПРОДАЖА [14:11:59]line ТРК (МРК, ГНК) : 5 [14:11:59]line Товар: 2710194210 [14:11:59]line ДТ-К-5 [14:11:59]line 20.680 * 0.00 [14:11:59]line = 0.00 [14:11:59]line НДС 12% НСП 1% [14:11:59]line > о реализуемом товаре [14:11:59]line ИТОГО: 0.00 [14:11:59]line НСП 1% : 0.00 [14:11:59]line НДС 12% : 0.00 [14:11:59]line Наличными: 0.00 [14:11:59]line Безнал.: 0.00 [14:11:59]line Место: АЗС № 92 "Партнер Нефть" [14:11:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:11:59]line СНО: Общий режим [14:11:59]line Чек 137 21.02.2025 14:11 [14:11:59]line Смена: 649 ФФД: 1.0 [14:11:59]line ЗНМ: 0300000118 [14:11:59]line РНМ: 0000000000091857 [14:11:59]line Версия ККМ: 001 [14:11:59]line Талоны: ТК ГПНА Online [14:11:59]line 30106530 [14:11:59]line ФМ: 0000000000871826 [14:11:59]line ФД: 187643 [14:11:59]line ФПД: 49654667352600 [14:11:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T141158&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187643&fm=49654667352600&tin=02508201610067®Number=0000000000091857&sum=0 [14:11:59]OFD Sender: Processing packet 187643 [packets to send 49, broken 48] [14:11:59]ProducePacketName [14:11:59]name=ofd_packets/00187643 [14:11:59]OFD Sender: To server: pG, [14:11:59]CommunicateWithHost lk.salyk.kg:30040 [14:11:59]ConnectInit lk.salyk.kg [14:11:59]written 0, free lines is 4095 [14:12:00]Connected sock=10 [14:12:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 19 14 04 01 93 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 50 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 89 00 00 00 F4 03 04 00 AE 89 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DC 02 00 35 04 06 00 2D 29 20 CF 1A 18 78 FD 5C E5 E2 B4 B2 3A [14:12:00]Write to MH i2c: 01 00 00 CA 06 D0 [14:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A6 0E 47 00 E2 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FB DC 02 00 F4 03 04 00 FB 2F B8 67 B6 04 01 00 00 CC D0 63 05 24 DB CA 30 [14:12:00]CommunicateWithHost err = 0 [14:12:00]CheckOFDResponse [14:12:00]1017 (14) - 77093643461234 [14:12:00]1041 (16) - 0000000000871826 [14:12:00]1040 (4) - 187643 [14:12:00]1012 (4) - 21.02.2025 07:49 [14:12:00]1206 (1) - 0 [14:12:00]OFD Sender: Remove packet 187643 [14:12:00]ProducePacketName [14:12:00]name=ofd_packets/00187643 [14:12:00]NVStorageDeleteData [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: 01 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: 01 07 00 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 08 0D EC [14:12:00]RasterBufferAndPrint [14:12:00]line [14:12:00]line [14:12:00]line [14:12:00]line [14:12:00]line [14:12:00]written 0, free lines is 3351 [14:12:00]MH_Cut [14:12:00]Write to MH i2c: D1 01 00 D1 06 01 A9 [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: D1 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: D1 01 00 [14:12:00]MH_I2C_Read... [14:12:00]Read from MH i2c: D1 01 00 D1 06 00 A8 [14:12:00]Write to MH i2c: 01 00 00 D2 06 D8 [14:12:00]Write i2c OK [14:12:00]MH_I2C_Read... [14:12:00]OFD Sender: No OFD packet to send [14:12:00]*** Cut start [14:12:00]*** Partial cut [14:12:00]*** CUTSNS_PIN = 1 [14:12:01]*** CUTSNS_PIN = 0 [14:12:01]*** Brake cut motor [14:12:01]Read from MH i2c: 01 [14:12:01]MH_I2C_Read... [14:12:01]*** Stop cut motor [14:12:01]*** Cut end [14:12:01]Read from MH i2c: 01 07 00 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [14:12:01]process_action close_receipt done [14:12:01]requested_data is exist [14:12:01]produce_requested_data [14:12:01]requested_item fm.sn is exist - process it [14:12:01]wFMCommunicate request_size=4 [14:12:01]MH_SAM_APDU [14:12:01]CAPDU: 80 11 00 00 [14:12:01]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [14:12:01]Write i2c OK [14:12:01]MH_I2C_Read... [14:12:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:01]Read from MH i2c: E2 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: E2 17 00 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A6 [14:12:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:12:01]wFMCommunicate OK [14:12:01]requested_item fd.num is exist - process it [14:12:01]SAM_PROTO_GetFieldsCounters [14:12:01]wFMCommunicate request_size=4 [14:12:01]MH_SAM_APDU [14:12:01]CAPDU: 80 13 00 00 [14:12:01]Write to MH i2c: E2 08 00 D4 06 80 13 00 00 00 00 00 00 56 [14:12:01]Write i2c OK [14:12:01]MH_I2C_Read... [14:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:01]Read from MH i2c: E2 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: E2 62 00 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: E2 62 00 D4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FB DC 02 00 0E 04 04 00 89 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 7B [14:12:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FB DC 02 00 0E 04 04 00 89 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 [14:12:01]wFMCommunicate OK [14:12:01]SAM_PROTO_GetFieldsCounters done [14:12:01]requested_item shift.num is exist - process it [14:12:01]requested_item shift.opened is exist - process it [14:12:01]req_shift_opened [14:12:01]FM_GetShiftState [14:12:01]SAM_PROTO_GetShiftState [14:12:01]wFMCommunicate request_size=4 [14:12:01]MH_SAM_APDU [14:12:01]CAPDU: 80 13 01 00 [14:12:01]Write to MH i2c: E2 08 00 D5 06 80 13 01 00 00 00 00 00 58 [14:12:01]Write i2c OK [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: E2 [14:12:01]MH_I2C_Read... [14:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:01]Read from MH i2c: E2 0E 00 [14:12:01]MH_I2C_Read... [14:12:01]Read from MH i2c: E2 0E 00 D5 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 46 [14:12:01]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:12:01]wFMCommunicate OK [14:12:01]SAM_PROTO_GetShiftState done [14:12:01]FM_GetShiftState done [14:12:01]req_shift_opened done [14:12:01]requested_item shift.open_date is exist - process it [14:12:01]req_shift_open_date [14:12:01]req_shift_open_date done [14:12:01]produce_requested_data done [14:12:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187643,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:12:01]process_action_free close_receipt [14:12:01]json_value_free [14:12:01]json_value_free done [14:12:01]process_json_proto returns [14:12:01]Send response to host [14:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187643,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:12:01]free response buf [14:12:01]execute_script done [14:12:01]execute_script returns [14:12:01]free content buf [14:12:01]Sock 9.Close socket [14:12:01]Sock 9.Thread stoped [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:23]accept exits with 7 [14:13:23]New connection [14:13:23]New thread 3067481444 created [14:13:23]Thread 3067624804 joined [14:13:23]Waiting for new connection... [14:13:23] Sock 7.Parse request [14:13:23]Sock 7.Check first char [14:13:23]Sock 7.First char is OK [14:13:23]request: POST /json_proto HTTP/1.0 [14:13:23]Method: POST [14:13:23]URL: /json_proto [14:13:23]Method is POST - this is cgi request [14:13:23]url: /json_proto [14:13:23]query_string will be loaded in cgi processing [14:13:23]execute_cgi json_proto POST (null) [14:13:23]execute_cgi path=json_proto method=POST [14:13:23]POST find Content-Length [14:13:23]Host: 172.17.46.131:8080 [14:13:23]Content-Length: 800 [14:13:23]Content-Type: application/json [14:13:23] [14:13:23]POST finish read [14:13:23]Found Content-Length = 800 [14:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.010, "sum" : 450.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:23]execute_script... [14:13:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.010, "sum" : 450.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:23]POST & json_proto [14:13:23]process_json_proto [14:13:23]json parsed OK: [14:13:23]protocol is kg_v1.0 [14:13:23]action value=close_receipt [14:13:23]process_action close_receipt [14:13:23]cmd_close_receipt [14:13:23]MH_GetDate [14:13:23]Write to MH i2c: F0 00 00 D6 06 CB [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 09 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: F0 09 00 D6 06 00 04 8A B8 67 7E 41 4F 65 F4 [14:13:23]GetLastDocTimeStamp 1740147118 [14:13:23]current date 1740147204 [14:13:23]FM_GetShiftState [14:13:23]SAM_PROTO_GetShiftState [14:13:23]wFMCommunicate request_size=4 [14:13:23]MH_SAM_APDU [14:13:23]CAPDU: 80 13 01 00 [14:13:23]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:23]Read from MH i2c: E2 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: E2 0E 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 48 [14:13:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:13:23]wFMCommunicate OK [14:13:23]SAM_PROTO_GetShiftState done [14:13:23]FM_GetShiftState done [14:13:23]opened in 1740098043 [14:13:23]opened+sec_in_day 1740184443 [14:13:23]quantity*price = 45004 [14:13:23]sum+1 = 45005 [14:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.04 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 0.00 Безнал.: 450.04 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 138 21.02.2025 14:13 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187644 ФПД: 1697685897293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T141324&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187644&fm=1697685897293&tin=02508201610067®Number=0000000000091857&sum=45004 [14:13:25]StoreToDocumentArchive [14:13:25]shift 649 fd 187644 [14:13:25]save to /storage/0649/doc_00187644 [14:13:25]save last doc name /storage/0649/doc_00187644 to /storage/kkm_last_doc_name [14:13:25]save OK [14:13:25]Clear old archive folders... [14:13:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:25]tlvbuf is 00BF50E0 [14:13:25]SAM_PROTO_ClearQueue [14:13:25]wFMCommunicate request_size=4 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 09 00 00 [14:13:25]Write to MH i2c: E2 08 00 E4 06 80 09 00 00 00 00 00 00 5C [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [14:13:25]RAPDU: 90 00 [14:13:25]wFMCommunicate OK [14:13:25]SAM_PROTO_ClearQueue done [14:13:25]KKMCreateOFDPacket [14:13:25]OFDProtocolAddRootSTLVToBuf [14:13:25]FM_MakeSignedData [14:13:25]FM_MakeSignedData [14:13:25]SAM_PROTO_SignData [14:13:25]wFMCommunicate request_size=4 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 0D 01 02 [14:13:25]Write to MH i2c: E2 08 00 E5 06 80 0D 01 02 00 00 00 00 64 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [14:13:25]RAPDU: 90 00 [14:13:25]wFMCommunicate OK [14:13:25]wFMCommunicate request_size=255 [14:13:25]MH_SAM_APDU [14:13: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 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 04 8A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DC 02 00 35 04 06 00 01 [14:13:25]Write to MH i2c: E2 02 01 E6 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 04 8A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DC 02 00 35 04 06 00 01 00 00 74 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [14:13:25]RAPDU: 90 00 [14:13:25]wFMCommunicate OK [14:13:25]wFMCommunicate request_size=10 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 0D 02 02 05 8B 45 F7 00 4D [14:13:25]Write to MH i2c: E2 0D 00 E7 06 80 0D 02 02 05 00 8B 45 F7 00 4D 00 00 85 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [14:13:25]RAPDU: 90 00 [14:13:25]wFMCommunicate OK [14:13:25]wFMCommunicate request_size=4 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 0D 03 02 [14:13:25]Write to MH i2c: E2 08 00 E8 06 80 0D 03 02 00 00 00 00 69 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 0B 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 0B 00 E8 06 00 DF EC DF 1A 7F EF 7F A9 90 00 C4 [14:13:25]RAPDU: DF EC DF 1A 7F EF 7F A9 90 00 [14:13:25]wFMCommunicate OK [14:13:25]SAM_PROTO_SignData done [14:13:25]FM_MakeSignedData done [14:13:25]CreateOFDProtocolMessage [14:13:25]wFMCommunicate request_size=4 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 11 00 00 [14:13:25]Write to MH i2c: E2 08 00 E9 06 80 11 00 00 00 00 00 00 69 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 17 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 17 00 E9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BC [14:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:13:25]wFMCommunicate OK [14:13:25]CreateOFDProtocolMessage done [14:13:25]OFDSenderStorePacket 187644 [14:13:25]StoreOFDPacket docnum=187644 [14:13:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B2 23 07 01 CB 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 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 04 8A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DC 02 00 35 04 06 00 01 8B 45 F7 00 4D DF EC DF 1A 7F EF 7F A9 [14:13:25]CheckFolder [14:13:25]dirname=/storage/ofd_packets [14:13:25]CheckFolder done [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00187644 [14:13:25]NVStorageSaveData ofd_packets/00187644 [14:13:25]File name is /storage/ofd_packets/00187644 [14:13:25]Write 301 bytes [14:13:25]NVStorageSaveData done [14:13:25]OFDSenderStorePacket done [14:13:25]KKMCreateOFDPacket done [14:13:25]NVStorageSaveData kkm_last_timestamp [14:13:25]File name is /storage/kkm_last_timestamp [14:13:25]Write 4 bytes [14:13:25]NVStorageSaveData done [14:13:25]ExternCall_PrintAddStr [14:13:25]wPrintStart [14:13:25]Write to MH i2c: 01 00 00 EA 06 F0 [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: 01 07 00 EA 06 00 00 00 00 00 FF 0F 05 [14:13:25]RasterBufferAndPrint [14:13:25]line Счет N : (1)412804 [14:13:25]line ИНН: 02508201610067 [14:13:25]line Контрольно-Кассовый Чек [14:13:25]line ПРОДАЖА [14:13:25]line ТРК (МРК, ГНК) : 22 [14:13:25]line Товар: 2710124130 [14:13:25]line Аи-92-К-2 [14:13:25]line 7.010 * 64.20 [14:13:25]line = 450.04 [14:13:25]line НДС 12% НСП 1% [14:13:25]line > о реализуемом товаре [14:13:25]line ИТОГО: 450.04 [14:13:25]line НСП 1% : 3.98 [14:13:25]line НДС 12% : 47.79 [14:13:25]line Наличными: 0.00 [14:13:25]line Безнал.: 450.04 [14:13:25]line Место: АЗС № 92 "Партнер Нефть" [14:13:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:13:25]line СНО: Общий режим [14:13:25]line Чек 138 21.02.2025 14:13 [14:13:25]line Смена: 649 ФФД: 1.0 [14:13:25]line ЗНМ: 0300000118 [14:13:25]line РНМ: 0000000000091857 [14:13:25]line Версия ККМ: 001 [14:13:25]line Платежная система: O! деньги [14:13:25]line ФМ: 0000000000871826 [14:13:25]line ФД: 187644 [14:13:25]line ФПД: 1697685897293 [14:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T141324&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187644&fm=1697685897293&tin=02508201610067®Number=0000000000091857&sum=45004 [14:13:25]OFD Sender: Processing packet 187644 [packets to send 49, broken 48] [14:13:25]ProducePacketName [14:13:25]name=ofd_packets/00187644 [14:13:25]OFD Sender: To server: pG, [14:13:25]CommunicateWithHost lk.salyk.kg:30040 [14:13:25]ConnectInit lk.salyk.kg [14:13:25]written 0, free lines is 4095 [14:13:26]Connected sock=9 [14:13:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B2 23 07 01 CB 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 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CC AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 04 8A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DC 02 00 35 04 06 00 01 8B 45 F7 00 4D DF EC DF 1A 7F EF 7F A9 [14:13:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 31 A0 47 00 A6 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FC DC 02 00 F4 03 04 00 52 30 B8 67 B6 04 01 00 00 D6 B2 A3 C7 0F CD 28 E4 [14:13:26]CommunicateWithHost err = 0 [14:13:26]CheckOFDResponse [14:13:26]1017 (14) - 77093643461234 [14:13:26]1041 (16) - 0000000000871826 [14:13:26]1040 (4) - 187644 [14:13:26]1012 (4) - 21.02.2025 07:50 [14:13:26]1206 (1) - 0 [14:13:26]OFD Sender: Remove packet 187644 [14:13:26]ProducePacketName [14:13:26]name=ofd_packets/00187644 [14:13:26]NVStorageDeleteData [14:13:26]Write to MH i2c: 01 00 00 14 07 1B [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: 01 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: 01 07 00 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 22 0D 51 [14:13:26]RasterBufferAndPrint [14:13:26]line [14:13:26]line [14:13:26]line [14:13:26]line [14:13:26]line [14:13:26]written 0, free lines is 3368 [14:13:26]MH_Cut [14:13:26]Write to MH i2c: D1 01 00 1B 07 01 F4 [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: D1 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: D1 01 00 [14:13:26]MH_I2C_Read... [14:13:26]Read from MH i2c: D1 01 00 1B 07 00 F3 [14:13:26]Write to MH i2c: 01 00 00 1C 07 23 [14:13:26]Write i2c OK [14:13:26]MH_I2C_Read... [14:13:26]OFD Sender: No OFD packet to send [14:13:27]*** Cut start [14:13:27]*** Partial cut [14:13:27]*** CUTSNS_PIN = 1 [14:13:27]*** CUTSNS_PIN = 0 [14:13:27]*** Brake cut motor [14:13:27]Read from MH i2c: 01 [14:13:27]MH_I2C_Read... [14:13:27]*** Stop cut motor [14:13:27]*** Cut end [14:13:27]Read from MH i2c: 01 07 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: 01 07 00 1C 07 00 00 00 00 00 FF 0F 38 [14:13:27]process_action close_receipt done [14:13:27]requested_data is exist [14:13:27]produce_requested_data [14:13:27]requested_item fm.sn is exist - process it [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 11 00 00 [14:13:27]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 17 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 17 00 1D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [14:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:13:27]wFMCommunicate OK [14:13:27]requested_item fd.num is exist - process it [14:13:27]SAM_PROTO_GetFieldsCounters [14:13:27]wFMCommunicate request_size=4 [14:13:27]MH_SAM_APDU [14:13:27]CAPDU: 80 13 00 00 [14:13:27]Write to MH i2c: E2 08 00 1E 07 80 13 00 00 00 00 00 00 A1 [14:13:27]Write i2c OK [14:13:27]MH_I2C_Read... [14:13:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:27]Read from MH i2c: E2 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 62 00 [14:13:27]MH_I2C_Read... [14:13:27]Read from MH i2c: E2 62 00 1E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FC DC 02 00 0E 04 04 00 89 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 CA [14:13:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FC DC 02 00 0E 04 04 00 89 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 [14:13:28]wFMCommunicate OK [14:13:28]SAM_PROTO_GetFieldsCounters done [14:13:28]requested_item shift.num is exist - process it [14:13:28]requested_item shift.opened is exist - process it [14:13:28]req_shift_opened [14:13:28]FM_GetShiftState [14:13:28]SAM_PROTO_GetShiftState [14:13:28]wFMCommunicate request_size=4 [14:13:28]MH_SAM_APDU [14:13:28]CAPDU: 80 13 01 00 [14:13:28]Write to MH i2c: E2 08 00 1F 07 80 13 01 00 00 00 00 00 A3 [14:13:28]Write i2c OK [14:13:28]MH_I2C_Read... [14:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:28]Read from MH i2c: E2 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: E2 0E 00 [14:13:28]MH_I2C_Read... [14:13:28]Read from MH i2c: E2 0E 00 1F 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 91 [14:13:28]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:13:28]wFMCommunicate OK [14:13:28]SAM_PROTO_GetShiftState done [14:13:28]FM_GetShiftState done [14:13:28]req_shift_opened done [14:13:28]requested_item shift.open_date is exist - process it [14:13:28]req_shift_open_date [14:13:28]req_shift_open_date done [14:13:28]produce_requested_data done [14:13:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187644,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:13:28]process_action_free close_receipt [14:13:28]json_value_free [14:13:28]json_value_free done [14:13:28]process_json_proto returns [14:13:28]Send response to host [14:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187644,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:13:28]free response buf [14:13:28]execute_script done [14:13:28]execute_script returns [14:13:28]free content buf [14:13:28]Sock 7.Close socket [14:13:28]Sock 7.Thread stoped [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:28]recv_with_timeout no data received [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:38]recv_with_timeout no data received [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:48]recv_with_timeout no data received [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:15:58]recv_with_timeout no data received [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:08]recv_with_timeout no data received [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:34]recv_with_timeout no data received [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:45]recv_with_timeout no data received [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:11]recv_with_timeout no data received [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:25]recv_with_timeout no data received [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:36]recv_with_timeout no data received [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:46]recv_with_timeout no data received [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:17:57]accept exits with 10 [14:17:57]New connection [14:17:57]New thread 3067624804 created [14:17:57]Thread 3067481444 joined [14:17:57]Waiting for new connection... [14:17:57] Sock 10.Parse request [14:17:57]Sock 10.Check first char [14:17:57]Sock 10.First char is OK [14:17:57]request: POST /json_proto HTTP/1.0 [14:17:57]Method: POST [14:17:57]URL: /json_proto [14:17:57]Method is POST - this is cgi request [14:17:57]url: /json_proto [14:17:57]query_string will be loaded in cgi processing [14:17:57]execute_cgi json_proto POST (null) [14:17:57]execute_cgi path=json_proto method=POST [14:17:57]POST find Content-Length [14:17:57]Host: 172.17.46.131:8080 [14:17:57]Content-Length: 796 [14:17:57]Content-Type: application/json [14:17:57] [14:17:57]POST finish read [14:17:57]Found Content-Length = 796 [14:17:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 7.580, "sum" : 550.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 550.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:57]execute_script... [14:17: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)412805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 7.580, "sum" : 550.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 550.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:57]POST & json_proto [14:17:57]process_json_proto [14:17:57]json parsed OK: [14:17:57]protocol is kg_v1.0 [14:17:57]action value=close_receipt [14:17:57]process_action close_receipt [14:17:57]cmd_close_receipt [14:17:57]MH_GetDate [14:17:57]Write to MH i2c: F0 00 00 20 07 16 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: F0 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: F0 09 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: F0 09 00 20 07 00 15 8B B8 67 7E 41 4F 65 51 [14:17:57]GetLastDocTimeStamp 1740147204 [14:17:57]current date 1740147477 [14:17:57]FM_GetShiftState [14:17:57]SAM_PROTO_GetShiftState [14:17:57]wFMCommunicate request_size=4 [14:17:57]MH_SAM_APDU [14:17:57]CAPDU: 80 13 01 00 [14:17:57]Write to MH i2c: E2 08 00 21 07 80 13 01 00 00 00 00 00 A5 [14:17:57]Write i2c OK [14:17:57]MH_I2C_Read... [14:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:57]Read from MH i2c: E2 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 0E 00 [14:17:57]MH_I2C_Read... [14:17:57]Read from MH i2c: E2 0E 00 21 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 93 [14:17:57]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:17:57]wFMCommunicate OK [14:17:57]SAM_PROTO_GetShiftState done [14:17:57]FM_GetShiftState done [14:17:57]opened in 1740098043 [14:17:57]opened+sec_in_day 1740184443 [14:17:57]quantity*price = 55030 [14:17:57]sum+1 = 55032 [14:17:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.31 НСП 1% : 4.87 НДС 12% : 58.44 Наличными: 0.00 Безнал.: 550.31 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 139 21.02.2025 14:17 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187645 ФПД: 219094183934218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T141757&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187645&fm=219094183934218&tin=02508201610067®Number=0000000000091857&sum=55031 [14:17:58]StoreToDocumentArchive [14:17:58]shift 649 fd 187645 [14:17:58]save to /storage/0649/doc_00187645 [14:17:58]save last doc name /storage/0649/doc_00187645 to /storage/kkm_last_doc_name [14:17:58]save OK [14:17:58]Clear old archive folders... [14:17:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:17:58]tlvbuf is 00BBDDE0 [14:17:58]SAM_PROTO_ClearQueue [14:17:58]wFMCommunicate request_size=4 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 09 00 00 [14:17:58]Write to MH i2c: E2 08 00 2E 07 80 09 00 00 00 00 00 00 A7 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [14:17:58]RAPDU: 90 00 [14:17:58]wFMCommunicate OK [14:17:58]SAM_PROTO_ClearQueue done [14:17:58]KKMCreateOFDPacket [14:17:58]OFDProtocolAddRootSTLVToBuf [14:17:58]FM_MakeSignedData [14:17:58]FM_MakeSignedData [14:17:58]SAM_PROTO_SignData [14:17:58]wFMCommunicate request_size=4 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 0D 01 02 [14:17:58]Write to MH i2c: E2 08 00 2F 07 80 0D 01 02 00 00 00 00 AF [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [14:17:58]RAPDU: 90 00 [14:17:58]wFMCommunicate OK [14:17:58]wFMCommunicate request_size=255 [14:17:58]MH_SAM_APDU [14:17: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 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 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 D4 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 15 8B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DC 02 00 35 04 06 00 C7 43 D7 01 [14:17:58]Write to MH i2c: E2 02 01 30 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 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 D4 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 15 8B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DC 02 00 35 04 06 00 C7 43 D7 01 00 00 0D [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [14:17:58]RAPDU: 90 00 [14:17:58]wFMCommunicate OK [14:17:58]wFMCommunicate request_size=7 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 0D 02 02 02 79 0A [14:17:58]Write to MH i2c: E2 0A 00 31 07 80 0D 02 02 02 00 79 0A 00 00 39 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [14:17:58]RAPDU: 90 00 [14:17:58]wFMCommunicate OK [14:17:58]wFMCommunicate request_size=4 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 0D 03 02 [14:17:58]Write to MH i2c: E2 08 00 32 07 80 0D 03 02 00 00 00 00 B4 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:58]Read from MH i2c: E2 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 0B 00 [14:17:58]MH_I2C_Read... [14:17:58]Read from MH i2c: E2 0B 00 32 07 00 B7 24 A5 56 A0 D2 97 F4 90 00 88 [14:17:58]RAPDU: B7 24 A5 56 A0 D2 97 F4 90 00 [14:17:58]wFMCommunicate OK [14:17:58]SAM_PROTO_SignData done [14:17:58]FM_MakeSignedData done [14:17:58]CreateOFDProtocolMessage [14:17:58]wFMCommunicate request_size=4 [14:17:58]MH_SAM_APDU [14:17:58]CAPDU: 80 11 00 00 [14:17:58]Write to MH i2c: E2 08 00 33 07 80 11 00 00 00 00 00 00 B4 [14:17:58]Write i2c OK [14:17:58]MH_I2C_Read... [14:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 17 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 17 00 33 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 07 [14:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:17:59]wFMCommunicate OK [14:17:59]CreateOFDProtocolMessage done [14:17:59]OFDSenderStorePacket 187645 [14:17:59]StoreOFDPacket docnum=187645 [14:17:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 32 E2 04 01 61 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 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 D4 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 15 8B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DC 02 00 35 04 06 00 C7 43 D7 01 79 0A B7 24 A5 56 A0 D2 97 F4 [14:17:59]CheckFolder [14:17:59]dirname=/storage/ofd_packets [14:17:59]CheckFolder done [14:17:59]ProducePacketName [14:17:59]name=ofd_packets/00187645 [14:17:59]NVStorageSaveData ofd_packets/00187645 [14:17:59]File name is /storage/ofd_packets/00187645 [14:17:59]Write 298 bytes [14:17:59]NVStorageSaveData done [14:17:59]OFDSenderStorePacket done [14:17:59]KKMCreateOFDPacket done [14:17:59]NVStorageSaveData kkm_last_timestamp [14:17:59]File name is /storage/kkm_last_timestamp [14:17:59]Write 4 bytes [14:17:59]NVStorageSaveData done [14:17:59]ExternCall_PrintAddStr [14:17:59]wPrintStart [14:17:59]Write to MH i2c: 01 00 00 34 07 3B [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 07 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 07 00 34 07 00 00 00 00 00 FF 0F 50 [14:17:59]RasterBufferAndPrint [14:17:59]line Счет N : (1)412805 [14:17:59]line ИНН: 02508201610067 [14:17:59]line Контрольно-Кассовый Чек [14:17:59]line ПРОДАЖА [14:17:59]line ТРК (МРК, ГНК) : 5 [14:17:59]line Товар: 2710194210 [14:17:59]line ДТ-К-5 [14:17:59]line 7.580 * 72.60 [14:17:59]line = 550.31 [14:17:59]line НДС 12% НСП 1% [14:17:59]line > о реализуемом товаре [14:17:59]line ИТОГО: 550.31 [14:17:59]line НСП 1% : 4.87 [14:17:59]line НДС 12% : 58.44 [14:17:59]line Наличными: 0.00 [14:17:59]line Безнал.: 550.31 [14:17:59]line Место: АЗС № 92 "Партнер Нефть" [14:17:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:17:59]line СНО: Общий режим [14:17:59]line Чек 139 21.02.2025 14:17 [14:17:59]line Смена: 649 ФФД: 1.0 [14:17:59]line ЗНМ: 0300000118 [14:17:59]line РНМ: 0000000000091857 [14:17:59]line Версия ККМ: 001 [14:17:59]line Платежная система: O! деньги [14:17:59]line ФМ: 0000000000871826 [14:17:59]line ФД: 187645 [14:17:59]line ФПД: 219094183934218 [14:17:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T141757&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187645&fm=219094183934218&tin=02508201610067®Number=0000000000091857&sum=55031 [14:17:59]OFD Sender: Processing packet 187645 [packets to send 49, broken 48] [14:17:59]ProducePacketName [14:17:59]name=ofd_packets/00187645 [14:17:59]OFD Sender: To server: pG, [14:17:59]CommunicateWithHost lk.salyk.kg:30040 [14:17:59]ConnectInit lk.salyk.kg [14:17:59]written 0, free lines is 4095 [14:17:59]Connected sock=11 [14:17:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 32 E2 04 01 61 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 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 D4 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 D6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 15 8B B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DC 02 00 35 04 06 00 C7 43 D7 01 79 0A B7 24 A5 56 A0 D2 97 F4 [14:17:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0C 20 47 00 2A 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DC 02 00 F4 03 04 00 63 31 B8 67 B6 04 01 00 00 56 4D 8A 96 35 50 10 3B [14:17:59]CommunicateWithHost err = 0 [14:17:59]CheckOFDResponse [14:17:59]1017 (14) - 77093643461234 [14:17:59]1041 (16) - 0000000000871826 [14:17:59]1040 (4) - 187645 [14:17:59]1012 (4) - 21.02.2025 07:55 [14:17:59]1206 (1) - 0 [14:17:59]OFD Sender: Remove packet 187645 [14:17:59]ProducePacketName [14:17:59]name=ofd_packets/00187645 [14:17:59]NVStorageDeleteData [14:17:59]Write to MH i2c: 01 00 00 5E 07 65 [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 07 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 0A 0D 83 [14:17:59]RasterBufferAndPrint [14:17:59]line [14:17:59]line [14:17:59]line [14:17:59]line [14:17:59]line [14:17:59]written 0, free lines is 3344 [14:17:59]MH_Cut [14:17:59]Write to MH i2c: D1 01 00 65 07 01 3E [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: D1 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: D1 01 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: D1 01 00 65 07 00 3D [14:17:59]Write to MH i2c: 01 00 00 66 07 6D [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:18:00]OFD Sender: No OFD packet to send [14:18:00]*** Cut start [14:18:00]*** Partial cut [14:18:00]*** CUTSNS_PIN = 1 [14:18:00]*** CUTSNS_PIN = 0 [14:18:00]*** Brake cut motor [14:18:01]Read from MH i2c: 01 [14:18:01]MH_I2C_Read... [14:18:01]*** Stop cut motor [14:18:01]*** Cut end [14:18:01]Read from MH i2c: 01 07 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [14:18:01]process_action close_receipt done [14:18:01]requested_data is exist [14:18:01]produce_requested_data [14:18:01]requested_item fm.sn is exist - process it [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 11 00 00 [14:18:01]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 17 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 17 00 67 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [14:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:18:01]wFMCommunicate OK [14:18:01]requested_item fd.num is exist - process it [14:18:01]SAM_PROTO_GetFieldsCounters [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 13 00 00 [14:18:01]Write to MH i2c: E2 08 00 68 07 80 13 00 00 00 00 00 00 EB [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 62 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 62 00 68 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FD DC 02 00 0E 04 04 00 89 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 18 [14:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FD DC 02 00 0E 04 04 00 89 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 [14:18:01]wFMCommunicate OK [14:18:01]SAM_PROTO_GetFieldsCounters done [14:18:01]requested_item shift.num is exist - process it [14:18:01]requested_item shift.opened is exist - process it [14:18:01]req_shift_opened [14:18:01]FM_GetShiftState [14:18:01]SAM_PROTO_GetShiftState [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 13 01 00 [14:18:01]Write to MH i2c: E2 08 00 69 07 80 13 01 00 00 00 00 00 ED [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 0E 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 0E 00 69 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 DB [14:18:01]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:18:01]wFMCommunicate OK [14:18:01]SAM_PROTO_GetShiftState done [14:18:01]FM_GetShiftState done [14:18:01]req_shift_opened done [14:18:01]requested_item shift.open_date is exist - process it [14:18:01]req_shift_open_date [14:18:01]req_shift_open_date done [14:18:01]produce_requested_data done [14:18:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187645,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:18:01]process_action_free close_receipt [14:18:01]json_value_free [14:18:01]json_value_free done [14:18:01]process_json_proto returns [14:18:01]Send response to host [14:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187645,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:18:01]free response buf [14:18:01]execute_script done [14:18:01]execute_script returns [14:18:01]free content buf [14:18:01]Sock 10.Close socket [14:18:01]Sock 10.Thread stoped [14:18:03]recv_with_timeout no data received [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:13]recv_with_timeout no data received [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:24]recv_with_timeout no data received [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:34]recv_with_timeout no data received [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:44]recv_with_timeout no data received [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:18:55]recv_with_timeout no data received [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:05]recv_with_timeout no data received [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:15]recv_with_timeout no data received [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:30]recv_with_timeout no data received [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:40]recv_with_timeout no data received [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:51]recv_with_timeout no data received [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:01]recv_with_timeout no data received [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:11]recv_with_timeout no data received [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:24]recv_with_timeout no data received [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:34]recv_with_timeout no data received [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]recv_with_timeout no data received [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]recv_with_timeout no data received [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]recv_with_timeout no data received [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]recv_with_timeout no data received [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:25]recv_with_timeout no data received [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:35]recv_with_timeout no data received [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:45]recv_with_timeout no data received [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:22:56]recv_with_timeout no data received [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:23:56]recv_with_timeout no data received [14:24:00]OFD Sender: No OFD packet to send [14:24:01]accept exits with 9 [14:24:01]New connection [14:24:01]New thread 3067481444 created [14:24:01]Thread 3067624804 joined [14:24:01]Waiting for new connection... [14:24:01] Sock 9.Parse request [14:24:01]Sock 9.Check first char [14:24:01]Sock 9.First char is OK [14:24:01]request: POST /json_proto HTTP/1.0 [14:24:01]Method: POST [14:24:01]URL: /json_proto [14:24:01]Method is POST - this is cgi request [14:24:01]url: /json_proto [14:24:01]query_string will be loaded in cgi processing [14:24:01]execute_cgi json_proto POST (null) [14:24:01]execute_cgi path=json_proto method=POST [14:24:01]POST find Content-Length [14:24:01]Host: 172.17.46.131:8080 [14:24:01]Content-Length: 751 [14:24:01]Content-Type: application/json [14:24:01] [14:24:01]POST finish read [14:24:01]Found Content-Length = 751 [14:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074878", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:01]execute_script... [14:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074878", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:01]POST & json_proto [14:24:01]process_json_proto [14:24:01]json parsed OK: [14:24:01]protocol is kg_v1.0 [14:24:01]action value=close_receipt [14:24:01]process_action close_receipt [14:24:01]cmd_close_receipt [14:24:01]MH_GetDate [14:24:01]Write to MH i2c: F0 00 00 6A 07 60 [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: F0 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: F0 09 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: F0 09 00 6A 07 00 82 8C B8 67 7E 41 4F 65 09 [14:24:01]GetLastDocTimeStamp 1740147477 [14:24:01]current date 1740147842 [14:24:01]FM_GetShiftState [14:24:01]SAM_PROTO_GetShiftState [14:24:01]wFMCommunicate request_size=4 [14:24:01]MH_SAM_APDU [14:24:01]CAPDU: 80 13 01 00 [14:24:01]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:01]Read from MH i2c: E2 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 0E 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 DD [14:24:01]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:24:01]wFMCommunicate OK [14:24:01]SAM_PROTO_GetShiftState done [14:24:01]FM_GetShiftState done [14:24:01]opened in 1740098043 [14:24:01]opened+sec_in_day 1740184443 [14:24:01]quantity*price = 0 [14:24:01]sum+1 = 1 [14:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 140 21.02.2025 14:24 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30074878 ФМ: 0000000000871826 ФД: 187646 ФПД: 275154852757385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T142402&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187646&fm=275154852757385&tin=02508201610067®Number=0000000000091857&sum=0 [14:24:02]StoreToDocumentArchive [14:24:02]shift 649 fd 187646 [14:24:02]save to /storage/0649/doc_00187646 [14:24:02]save last doc name /storage/0649/doc_00187646 to /storage/kkm_last_doc_name [14:24:02]save OK [14:24:02]Clear old archive folders... [14:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:24:02]tlvbuf is 00BDEED0 [14:24:02]SAM_PROTO_ClearQueue [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 09 00 00 [14:24:02]Write to MH i2c: E2 08 00 78 07 80 09 00 00 00 00 00 00 F1 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]SAM_PROTO_ClearQueue done [14:24:02]KKMCreateOFDPacket [14:24:02]OFDProtocolAddRootSTLVToBuf [14:24:02]FM_MakeSignedData [14:24:02]FM_MakeSignedData [14:24:02]SAM_PROTO_SignData [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 0D 01 02 [14:24:02]Write to MH i2c: E2 08 00 79 07 80 0D 01 02 00 00 00 00 F9 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=255 [14:24:02]MH_SAM_APDU [14:24: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 32 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 8C 00 00 00 F4 03 04 00 82 8C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DC 02 00 35 04 06 00 FA 40 7B 41 [14:24:02]Write to MH i2c: E2 02 01 7A 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 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 8C 00 00 00 F4 03 04 00 82 8C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DC 02 00 35 04 06 00 FA 40 7B 41 00 00 13 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [14:24:03]RAPDU: 90 00 [14:24:03]wFMCommunicate OK [14:24:03]wFMCommunicate request_size=7 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 0D 02 02 02 BF 89 [14:24:03]Write to MH i2c: E2 0A 00 7B 07 80 0D 02 02 02 00 BF 89 00 00 48 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [14:24:03]RAPDU: 90 00 [14:24:03]wFMCommunicate OK [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 0D 03 02 [14:24:03]Write to MH i2c: E2 08 00 7C 07 80 0D 03 02 00 00 00 00 FE [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 0B 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 0B 00 7C 07 00 B2 58 F2 0A 94 14 C2 FA 90 00 69 [14:24:03]RAPDU: B2 58 F2 0A 94 14 C2 FA 90 00 [14:24:03]wFMCommunicate OK [14:24:03]SAM_PROTO_SignData done [14:24:03]FM_MakeSignedData done [14:24:03]CreateOFDProtocolMessage [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 11 00 00 [14:24:03]Write to MH i2c: E2 08 00 7D 07 80 11 00 00 00 00 00 00 FE [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 17 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 17 00 7D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [14:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:24:03]wFMCommunicate OK [14:24:03]CreateOFDProtocolMessage done [14:24:03]OFDSenderStorePacket 187646 [14:24:03]StoreOFDPacket docnum=187646 [14:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EA EB 04 01 92 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 8C 00 00 00 F4 03 04 00 82 8C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DC 02 00 35 04 06 00 FA 40 7B 41 BF 89 B2 58 F2 0A 94 14 C2 FA [14:24:03]CheckFolder [14:24:03]dirname=/storage/ofd_packets [14:24:03]CheckFolder done [14:24:03]ProducePacketName [14:24:03]name=ofd_packets/00187646 [14:24:03]NVStorageSaveData ofd_packets/00187646 [14:24:03]File name is /storage/ofd_packets/00187646 [14:24:03]Write 298 bytes [14:24:03]NVStorageSaveData done [14:24:03]OFDSenderStorePacket done [14:24:03]KKMCreateOFDPacket done [14:24:03]NVStorageSaveData kkm_last_timestamp [14:24:03]File name is /storage/kkm_last_timestamp [14:24:03]Write 4 bytes [14:24:03]NVStorageSaveData done [14:24:03]ExternCall_PrintAddStr [14:24:03]wPrintStart [14:24:03]Write to MH i2c: 01 00 00 7E 07 85 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 7E 07 00 00 00 00 00 FF 0F 9A [14:24:03]RasterBufferAndPrint [14:24:03]line Счет N : (1)412806 [14:24:03]line ИНН: 02508201610067 [14:24:03]line Контрольно-Кассовый Чек [14:24:03]line ПРОДАЖА [14:24:03]line ТРК (МРК, ГНК) : 11 [14:24:03]line Товар: 2710194210 [14:24:03]line ДТ-К-2 [14:24:03]line 30.000 * 0.00 [14:24:03]line = 0.00 [14:24:03]line НДС 12% НСП 1% [14:24:03]line > о реализуемом товаре [14:24:03]line ИТОГО: 0.00 [14:24:03]line НСП 1% : 0.00 [14:24:03]line НДС 12% : 0.00 [14:24:03]line Наличными: 0.00 [14:24:03]line Безнал.: 0.00 [14:24:03]line Место: АЗС № 92 "Партнер Нефть" [14:24:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:24:03]line СНО: Общий режим [14:24:03]line Чек 140 21.02.2025 14:24 [14:24:03]line Смена: 649 ФФД: 1.0 [14:24:03]line ЗНМ: 0300000118 [14:24:03]line РНМ: 0000000000091857 [14:24:03]line Версия ККМ: 001 [14:24:03]line Талоны: ТК ГПНА Online [14:24:03]line 30074878 [14:24:03]line ФМ: 0000000000871826 [14:24:03]line ФД: 187646 [14:24:03]line ФПД: 275154852757385 [14:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T142402&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187646&fm=275154852757385&tin=02508201610067®Number=0000000000091857&sum=0 [14:24:03]OFD Sender: Processing packet 187646 [packets to send 49, broken 48] [14:24:03]ProducePacketName [14:24:03]name=ofd_packets/00187646 [14:24:03]OFD Sender: To server: pG, [14:24:03]CommunicateWithHost lk.salyk.kg:30040 [14:24:03]ConnectInit lk.salyk.kg [14:24:03]written 0, free lines is 4095 [14:24:03]Connected sock=11 [14:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EA EB 04 01 92 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 8C 00 00 00 F4 03 04 00 82 8C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DC 02 00 35 04 06 00 FA 40 7B 41 BF 89 B2 58 F2 0A 94 14 C2 FA [14:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D AE 47 00 E2 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DC 02 00 F4 03 04 00 CF 32 B8 67 B6 04 01 00 00 8C DF 2E 65 0B 66 C0 70 [14:24:04]CommunicateWithHost err = 0 [14:24:04]CheckOFDResponse [14:24:04]1017 (14) - 77093643461234 [14:24:04]1041 (16) - 0000000000871826 [14:24:04]1040 (4) - 187646 [14:24:04]1012 (4) - 21.02.2025 08:01 [14:24:04]1206 (1) - 0 [14:24:04]OFD Sender: Remove packet 187646 [14:24:04]ProducePacketName [14:24:04]name=ofd_packets/00187646 [14:24:04]NVStorageDeleteData [14:24:04]Write to MH i2c: 01 00 00 A8 07 AF [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: 01 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: 01 07 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: 01 07 00 A8 07 00 00 00 00 00 0C 0D CF [14:24:04]RasterBufferAndPrint [14:24:04]line [14:24:04]line [14:24:04]line [14:24:04]line [14:24:04]line [14:24:04]written 0, free lines is 3349 [14:24:04]MH_Cut [14:24:04]Write to MH i2c: D1 01 00 AF 07 01 88 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: D1 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: D1 01 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: D1 01 00 AF 07 00 87 [14:24:04]Write to MH i2c: 01 00 00 B0 07 B7 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]OFD Sender: No OFD packet to send [14:24:04]*** Cut start [14:24:04]*** Partial cut [14:24:04]*** CUTSNS_PIN = 1 [14:24:04]*** CUTSNS_PIN = 0 [14:24:05]*** Brake cut motor [14:24:05]Read from MH i2c: 01 [14:24:05]MH_I2C_Read... [14:24:05]*** Stop cut motor [14:24:05]*** Cut end [14:24:05]Read from MH i2c: 01 07 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [14:24:05]process_action close_receipt done [14:24:05]requested_data is exist [14:24:05]produce_requested_data [14:24:05]requested_item fm.sn is exist - process it [14:24:05]wFMCommunicate request_size=4 [14:24:05]MH_SAM_APDU [14:24:05]CAPDU: 80 11 00 00 [14:24:05]Write to MH i2c: E2 08 00 B1 07 80 11 00 00 00 00 00 00 32 [14:24:05]Write i2c OK [14:24:05]MH_I2C_Read... [14:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:05]Read from MH i2c: E2 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 17 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 17 00 B1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [14:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:24:05]wFMCommunicate OK [14:24:05]requested_item fd.num is exist - process it [14:24:05]SAM_PROTO_GetFieldsCounters [14:24:05]wFMCommunicate request_size=4 [14:24:05]MH_SAM_APDU [14:24:05]CAPDU: 80 13 00 00 [14:24:05]Write to MH i2c: E2 08 00 B2 07 80 13 00 00 00 00 00 00 35 [14:24:05]Write i2c OK [14:24:05]MH_I2C_Read... [14:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:05]Read from MH i2c: E2 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 62 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 62 00 B2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FE DC 02 00 0E 04 04 00 89 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 66 [14:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FE DC 02 00 0E 04 04 00 89 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 [14:24:05]wFMCommunicate OK [14:24:05]SAM_PROTO_GetFieldsCounters done [14:24:05]requested_item shift.num is exist - process it [14:24:05]requested_item shift.opened is exist - process it [14:24:05]req_shift_opened [14:24:05]FM_GetShiftState [14:24:05]SAM_PROTO_GetShiftState [14:24:05]wFMCommunicate request_size=4 [14:24:05]MH_SAM_APDU [14:24:05]CAPDU: 80 13 01 00 [14:24:05]Write to MH i2c: E2 08 00 B3 07 80 13 01 00 00 00 00 00 37 [14:24:05]Write i2c OK [14:24:05]MH_I2C_Read... [14:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:05]Read from MH i2c: E2 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 0E 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 0E 00 B3 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 25 [14:24:05]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:24:05]wFMCommunicate OK [14:24:05]SAM_PROTO_GetShiftState done [14:24:05]FM_GetShiftState done [14:24:05]req_shift_opened done [14:24:05]requested_item shift.open_date is exist - process it [14:24:05]req_shift_open_date [14:24:05]req_shift_open_date done [14:24:05]produce_requested_data done [14:24:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187646,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:24:05]process_action_free close_receipt [14:24:05]json_value_free [14:24:05]json_value_free done [14:24:05]process_json_proto returns [14:24:05]Send response to host [14:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187646,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:24:05]free response buf [14:24:05]execute_script done [14:24:05]execute_script returns [14:24:05]free content buf [14:24:05]Sock 9.Close socket [14:24:05]Sock 9.Thread stoped [14:24:06]recv_with_timeout no data received [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:42]accept exits with 10 [14:25:42]New connection [14:25:42]New thread 3067624804 created [14:25:42]Thread 3067481444 joined [14:25:42]Waiting for new connection... [14:25:42] Sock 10.Parse request [14:25:42]Sock 10.Check first char [14:25:42]Sock 10.First char is OK [14:25:42]request: POST /json_proto HTTP/1.0 [14:25:42]Method: POST [14:25:42]URL: /json_proto [14:25:42]Method is POST - this is cgi request [14:25:42]url: /json_proto [14:25:42]query_string will be loaded in cgi processing [14:25:42]execute_cgi json_proto POST (null) [14:25:42]execute_cgi path=json_proto method=POST [14:25:42]POST find Content-Length [14:25:42]Host: 172.17.46.131:8080 [14:25:42]Content-Length: 678 [14:25:42]Content-Type: application/json [14:25:42] [14:25:42]POST finish read [14:25:42]Found Content-Length = 678 [14:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 23.420, "sum" : 1700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:42]execute_script... [14: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)412807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 23.420, "sum" : 1700.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:42]POST & json_proto [14:25:42]process_json_proto [14:25:42]json parsed OK: [14:25:42]protocol is kg_v1.0 [14:25:42]action value=close_receipt [14:25:42]process_action close_receipt [14:25:42]cmd_close_receipt [14:25:42]MH_GetDate [14:25:42]Write to MH i2c: F0 00 00 B4 07 AA [14:25:42]Write i2c OK [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: F0 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: F0 09 00 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: F0 09 00 B4 07 00 E6 8C B8 67 7E 41 4F 65 B7 [14:25:42]GetLastDocTimeStamp 1740147842 [14:25:42]current date 1740147942 [14:25:42]FM_GetShiftState [14:25:42]SAM_PROTO_GetShiftState [14:25:42]wFMCommunicate request_size=4 [14:25:42]MH_SAM_APDU [14:25:42]CAPDU: 80 13 01 00 [14:25:42]Write to MH i2c: E2 08 00 B5 07 80 13 01 00 00 00 00 00 39 [14:25:42]Write i2c OK [14:25:42]MH_I2C_Read... [14:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:42]Read from MH i2c: E2 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: E2 0E 00 [14:25:42]MH_I2C_Read... [14:25:42]Read from MH i2c: E2 0E 00 B5 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 27 [14:25:42]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:25:42]wFMCommunicate OK [14:25:42]SAM_PROTO_GetShiftState done [14:25:42]FM_GetShiftState done [14:25:42]opened in 1740098043 [14:25:42]opened+sec_in_day 1740184443 [14:25:42]quantity*price = 170029 [14:25:42]sum+1 = 170030 [14:25:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.56 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 141 21.02.2025 14:25 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187647 ФПД: 259479628035557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T142542&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187647&fm=259479628035557&tin=02508201610067®Number=0000000000091857&sum=170000 [14:25:43]StoreToDocumentArchive [14:25:43]shift 649 fd 187647 [14:25:43]save to /storage/0649/doc_00187647 [14:25:43]save last doc name /storage/0649/doc_00187647 to /storage/kkm_last_doc_name [14:25:43]save OK [14:25:43]Clear old archive folders... [14:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:25:43]tlvbuf is 00C0F3E0 [14:25:43]SAM_PROTO_ClearQueue [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 09 00 00 [14:25:43]Write to MH i2c: E2 08 00 C2 07 80 09 00 00 00 00 00 00 3B [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]SAM_PROTO_ClearQueue done [14:25:43]KKMCreateOFDPacket [14:25:43]OFDProtocolAddRootSTLVToBuf [14:25:43]FM_MakeSignedData [14:25:43]FM_MakeSignedData [14:25:43]SAM_PROTO_SignData [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 0D 01 02 [14:25:43]Write to MH i2c: E2 08 00 C3 07 80 0D 01 02 00 00 00 00 43 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]wFMCommunicate request_size=255 [14:25:43]MH_SAM_APDU [14:25: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 7C 5B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 2D 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 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 E6 8C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DC 02 00 35 04 06 00 EB FE CF 0E [14:25:43]Write to MH i2c: E2 02 01 C4 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 5B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 2D 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 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 E6 8C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DC 02 00 35 04 06 00 EB FE CF 0E 00 00 0F [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]wFMCommunicate request_size=7 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 0D 02 02 02 35 E5 [14:25:43]Write to MH i2c: E2 0A 00 C5 07 80 0D 02 02 02 00 35 E5 00 00 64 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 0D 03 02 [14:25:43]Write to MH i2c: E2 08 00 C6 07 80 0D 03 02 00 00 00 00 48 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 0B 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 0B 00 C6 07 00 8D EE 22 52 2C B4 2A FA 90 00 3C [14:25:43]RAPDU: 8D EE 22 52 2C B4 2A FA 90 00 [14:25:43]wFMCommunicate OK [14:25:43]SAM_PROTO_SignData done [14:25:43]FM_MakeSignedData done [14:25:43]CreateOFDProtocolMessage [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 11 00 00 [14:25:43]Write to MH i2c: E2 08 00 C7 07 80 11 00 00 00 00 00 00 48 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 17 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 17 00 C7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [14:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:25:43]wFMCommunicate OK [14:25:43]CreateOFDProtocolMessage done [14:25:43]OFDSenderStorePacket 187647 [14:25:43]StoreOFDPacket docnum=187647 [14:25:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9E 7D 04 01 CE 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 5B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 2D 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 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 E6 8C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DC 02 00 35 04 06 00 EB FE CF 0E 35 E5 8D EE 22 52 2C B4 2A FA [14:25:43]CheckFolder [14:25:43]dirname=/storage/ofd_packets [14:25:43]CheckFolder done [14:25:43]ProducePacketName [14:25:43]name=ofd_packets/00187647 [14:25:43]NVStorageSaveData ofd_packets/00187647 [14:25:43]File name is /storage/ofd_packets/00187647 [14:25:43]Write 298 bytes [14:25:43]NVStorageSaveData done [14:25:43]OFDSenderStorePacket done [14:25:43]KKMCreateOFDPacket done [14:25:43]NVStorageSaveData kkm_last_timestamp [14:25:43]File name is /storage/kkm_last_timestamp [14:25:43]Write 4 bytes [14:25:43]NVStorageSaveData done [14:25:43]ExternCall_PrintAddStr [14:25:43]wPrintStart [14:25:43]Write to MH i2c: 01 00 00 C8 07 CF [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: 01 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: 01 07 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: 01 07 00 C8 07 00 00 00 00 00 FF 0F E4 [14:25:43]RasterBufferAndPrint [14:25:43]line Счет N : (1)412807 [14:25:43]line ИНН: 02508201610067 [14:25:43]line Контрольно-Кассовый Чек [14:25:43]line ПРОДАЖА [14:25:43]line ТРК (МРК, ГНК) : 5 [14:25:43]line Товар: 2710194210 [14:25:43]line ДТ-К-5 [14:25:43]line 23.420 * 72.60 [14:25:43]line = 1700.29 [14:25:43]line НДС 12% НСП 1% [14:25:43]line > о реализуемом товаре [14:25:43]line ОКРУГЛЕНИЕ: -0.29 [14:25:43]line ИТОГО: 1700.00 [14:25:43]line Внесено: 1700.00 [14:25:43]line СДАЧА: 0.00 [14:25:43]line НСП 1% : 15.05 [14:25:43]line НДС 12% : 180.56 [14:25:43]line Наличными: 1700.00 [14:25:43]line Безнал.: 0.00 [14:25:43]line Место: АЗС № 92 "Партнер Нефть" [14:25:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:25:43]line СНО: Общий режим [14:25:43]line Чек 141 21.02.2025 14:25 [14:25:43]line Смена: 649 ФФД: 1.0 [14:25:43]line ЗНМ: 0300000118 [14:25:43]line РНМ: 0000000000091857 [14:25:43]line Версия ККМ: 001 [14:25:43]line ФМ: 0000000000871826 [14:25:43]line ФД: 187647 [14:25:43]line ФПД: 259479628035557 [14:25:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T142542&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187647&fm=259479628035557&tin=02508201610067®Number=0000000000091857&sum=170000 [14:25:44]OFD Sender: Processing packet 187647 [packets to send 49, broken 48] [14:25:44]ProducePacketName [14:25:44]name=ofd_packets/00187647 [14:25:44]OFD Sender: To server: pG, [14:25:44]CommunicateWithHost lk.salyk.kg:30040 [14:25:44]ConnectInit lk.salyk.kg [14:25:44]written 0, free lines is 4095 [14:25:44]Connected sock=9 [14: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 38 32 36 0C 01 00 00 9E 7D 04 01 CE 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 5B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 2D 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 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 E6 8C B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DC 02 00 35 04 06 00 EB FE CF 0E 35 E5 8D EE 22 52 2C B4 2A FA [14: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 38 32 36 4F 00 00 00 BB B6 47 00 FF A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FF DC 02 00 F4 03 04 00 34 33 B8 67 B6 04 01 00 00 0F 06 89 48 B4 C8 12 9C [14:25:44]CommunicateWithHost err = 0 [14:25:44]CheckOFDResponse [14:25:44]1017 (14) - 77093643461234 [14:25:44]1041 (16) - 0000000000871826 [14:25:44]1040 (4) - 187647 [14:25:44]1012 (4) - 21.02.2025 08:03 [14:25:44]1206 (1) - 0 [14:25:44]OFD Sender: Remove packet 187647 [14:25:44]ProducePacketName [14:25:44]name=ofd_packets/00187647 [14:25:44]NVStorageDeleteData [14:25:44]Write to MH i2c: 01 00 00 F3 07 FA [14:25:44]Write i2c OK [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: 01 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: 01 07 00 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 F9 0C 06 [14:25:44]RasterBufferAndPrint [14:25:44]line [14:25:44]line [14:25:44]line [14:25:44]line [14:25:44]line [14:25:44]written 0, free lines is 3327 [14:25:44]MH_Cut [14:25:44]Write to MH i2c: D1 01 00 FA 07 01 D3 [14:25:44]Write i2c OK [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: D1 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: D1 01 00 [14:25:44]MH_I2C_Read... [14:25:44]Read from MH i2c: D1 01 00 FA 07 00 D2 [14:25:44]Write to MH i2c: 01 00 00 FB 07 02 [14:25:44]Write i2c OK [14:25:44]MH_I2C_Read... [14:25:45]OFD Sender: No OFD packet to send [14:25:45]*** Cut start [14:25:45]*** Partial cut [14:25:45]*** CUTSNS_PIN = 1 [14:25:45]*** CUTSNS_PIN = 0 [14:25:45]*** Brake cut motor [14:25:46]Read from MH i2c: 01 [14:25:46]MH_I2C_Read... [14:25:46]*** Stop cut motor [14:25:46]*** Cut end [14:25:46]Read from MH i2c: 01 07 00 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [14:25:46]process_action close_receipt done [14:25:46]requested_data is exist [14:25:46]produce_requested_data [14:25:46]requested_item fm.sn is exist - process it [14:25:46]wFMCommunicate request_size=4 [14:25:46]MH_SAM_APDU [14:25:46]CAPDU: 80 11 00 00 [14:25:46]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [14:25:46]Write i2c OK [14:25:46]MH_I2C_Read... [14:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:46]Read from MH i2c: E2 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 17 00 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 17 00 FC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [14:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:25:46]wFMCommunicate OK [14:25:46]requested_item fd.num is exist - process it [14:25:46]SAM_PROTO_GetFieldsCounters [14:25:46]wFMCommunicate request_size=4 [14:25:46]MH_SAM_APDU [14:25:46]CAPDU: 80 13 00 00 [14:25:46]Write to MH i2c: E2 08 00 FD 07 80 13 00 00 00 00 00 00 80 [14:25:46]Write i2c OK [14:25:46]MH_I2C_Read... [14:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:46]Read from MH i2c: E2 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 62 00 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 62 00 FD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FF DC 02 00 0E 04 04 00 89 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 B5 [14: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 FF DC 02 00 0E 04 04 00 89 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 [14:25:46]wFMCommunicate OK [14:25:46]SAM_PROTO_GetFieldsCounters done [14:25:46]requested_item shift.num is exist - process it [14:25:46]requested_item shift.opened is exist - process it [14:25:46]req_shift_opened [14:25:46]FM_GetShiftState [14:25:46]SAM_PROTO_GetShiftState [14:25:46]wFMCommunicate request_size=4 [14:25:46]MH_SAM_APDU [14:25:46]CAPDU: 80 13 01 00 [14:25:46]Write to MH i2c: E2 08 00 FE 07 80 13 01 00 00 00 00 00 82 [14:25:46]Write i2c OK [14:25:46]MH_I2C_Read... [14:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:46]Read from MH i2c: E2 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 0E 00 [14:25:46]MH_I2C_Read... [14:25:46]Read from MH i2c: E2 0E 00 FE 07 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 70 [14:25:46]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:25:46]wFMCommunicate OK [14:25:46]SAM_PROTO_GetShiftState done [14:25:46]FM_GetShiftState done [14:25:46]req_shift_opened done [14:25:46]requested_item shift.open_date is exist - process it [14:25:46]req_shift_open_date [14:25:46]req_shift_open_date done [14:25:46]produce_requested_data done [14:25:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187647,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:25:46]process_action_free close_receipt [14:25:46]json_value_free [14:25:46]json_value_free done [14:25:46]process_json_proto returns [14:25:46]Send response to host [14:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187647,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:25:46]free response buf [14:25:46]execute_script done [14:25:46]execute_script returns [14:25:46]free content buf [14:25:46]Sock 10.Close socket [14:25:46]Sock 10.Thread stoped [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:12]accept exits with 7 [14:26:12]New connection [14:26:12]New thread 3067481444 created [14:26:12]Thread 3067624804 joined [14:26:12]Waiting for new connection... [14:26:12] Sock 7.Parse request [14:26:12]Sock 7.Check first char [14:26:12]Sock 7.First char is OK [14:26:12]request: POST /json_proto HTTP/1.0 [14:26:12]Method: POST [14:26:12]URL: /json_proto [14:26:12]Method is POST - this is cgi request [14:26:12]url: /json_proto [14:26:12]query_string will be loaded in cgi processing [14:26:12]execute_cgi json_proto POST (null) [14:26:12]execute_cgi path=json_proto method=POST [14:26:12]POST find Content-Length [14:26:12]Host: 172.17.46.131:8080 [14:26:12]Content-Length: 754 [14:26:12]Content-Type: application/json [14:26:12] [14:26:12]POST finish read [14:26:12]Found Content-Length = 754 [14:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074878", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:12]execute_script... [14:26: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)412808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074878", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:12]POST & json_proto [14:26:12]process_json_proto [14:26:12]json parsed OK: [14:26:12]protocol is kg_v1.0 [14:26:12]action value=close_receipt [14:26:12]process_action close_receipt [14:26:12]cmd_close_receipt [14:26:12]MH_GetDate [14:26:12]Write to MH i2c: F0 00 00 FF 07 F5 [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: F0 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: F0 09 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: F0 09 00 FF 07 00 05 8D B8 67 7E 41 4F 65 22 [14:26:12]GetLastDocTimeStamp 1740147942 [14:26:12]current date 1740147973 [14:26:12]FM_GetShiftState [14:26:12]SAM_PROTO_GetShiftState [14:26:12]wFMCommunicate request_size=4 [14:26:12]MH_SAM_APDU [14:26:12]CAPDU: 80 13 01 00 [14:26:12]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [14:26:12]Write i2c OK [14:26:12]MH_I2C_Read... [14:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:12]Read from MH i2c: E2 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 0E 00 [14:26:12]MH_I2C_Read... [14:26:12]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 73 [14:26:12]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:26:12]wFMCommunicate OK [14:26:12]SAM_PROTO_GetShiftState done [14:26:12]FM_GetShiftState done [14:26:12]opened in 1740098043 [14:26:12]opened+sec_in_day 1740184443 [14:26:12]quantity*price = 0 [14:26:12]sum+1 = 1 [14:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 142 21.02.2025 14:26 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30074878 ФМ: 0000000000871826 ФД: 187648 ФПД: 119267724445817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T142613&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187648&fm=119267724445817&tin=02508201610067®Number=0000000000091857&sum=0 [14:26:14]StoreToDocumentArchive [14:26:14]shift 649 fd 187648 [14:26:14]save to /storage/0649/doc_00187648 [14:26:14]save last doc name /storage/0649/doc_00187648 to /storage/kkm_last_doc_name [14:26:14]save OK [14:26:14]Clear old archive folders... [14:26:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:14]tlvbuf is 00C03C40 [14:26:14]SAM_PROTO_ClearQueue [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 09 00 00 [14:26:14]Write to MH i2c: E2 08 00 0D 08 80 09 00 00 00 00 00 00 87 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]SAM_PROTO_ClearQueue done [14:26:14]KKMCreateOFDPacket [14:26:14]OFDProtocolAddRootSTLVToBuf [14:26:14]FM_MakeSignedData [14:26:14]FM_MakeSignedData [14:26:14]SAM_PROTO_SignData [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 01 02 [14:26:14]Write to MH i2c: E2 08 00 0E 08 80 0D 01 02 00 00 00 00 8F [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]wFMCommunicate request_size=255 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 05 8D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DD 02 00 35 04 06 00 6C [14:26:14]Write to MH i2c: E2 02 01 0F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 05 8D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DD 02 00 35 04 06 00 6C 00 00 1E [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]wFMCommunicate request_size=10 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 02 02 05 79 2E 59 48 79 [14:26:14]Write to MH i2c: E2 0D 00 10 08 80 0D 02 02 05 00 79 2E 59 48 79 00 00 5D [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 03 02 [14:26:14]Write to MH i2c: E2 08 00 11 08 80 0D 03 02 00 00 00 00 94 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 0B 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 0B 00 11 08 00 E2 86 B2 C0 F6 09 FC C8 90 00 32 [14:26:14]RAPDU: E2 86 B2 C0 F6 09 FC C8 90 00 [14:26:14]wFMCommunicate OK [14:26:14]SAM_PROTO_SignData done [14:26:14]FM_MakeSignedData done [14:26:14]CreateOFDProtocolMessage [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 11 00 00 [14:26:14]Write to MH i2c: E2 08 00 12 08 80 11 00 00 00 00 00 00 94 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 17 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 17 00 12 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [14:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:26:14]wFMCommunicate OK [14:26:14]CreateOFDProtocolMessage done [14:26:14]OFDSenderStorePacket 187648 [14:26:14]StoreOFDPacket docnum=187648 [14:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 33 AB 07 01 5E CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 05 8D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DD 02 00 35 04 06 00 6C 79 2E 59 48 79 E2 86 B2 C0 F6 09 FC C8 [14:26:14]CheckFolder [14:26:14]dirname=/storage/ofd_packets [14:26:14]CheckFolder done [14:26:14]ProducePacketName [14:26:14]name=ofd_packets/00187648 [14:26:14]NVStorageSaveData ofd_packets/00187648 [14:26:14]File name is /storage/ofd_packets/00187648 [14:26:14]Write 301 bytes [14:26:14]NVStorageSaveData done [14:26:14]OFDSenderStorePacket done [14:26:14]KKMCreateOFDPacket done [14:26:14]NVStorageSaveData kkm_last_timestamp [14:26:14]File name is /storage/kkm_last_timestamp [14:26:14]Write 4 bytes [14:26:14]NVStorageSaveData done [14:26:14]ExternCall_PrintAddStr [14:26:14]wPrintStart [14:26:14]Write to MH i2c: 01 00 00 13 08 1B [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: 01 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: 01 07 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: 01 07 00 13 08 00 00 00 00 00 FF 0F 30 [14:26:14]RasterBufferAndPrint [14:26:14]line Счет N : (1)412808 [14:26:14]line ИНН: 02508201610067 [14:26:14]line Контрольно-Кассовый Чек [14:26:14]line ПРОДАЖА [14:26:14]line ТРК (МРК, ГНК) : 12 [14:26:14]line Товар: 2710124130 [14:26:14]line Аи-92-К-2 [14:26:14]line 20.000 * 0.00 [14:26:14]line = 0.00 [14:26:14]line НДС 12% НСП 1% [14:26:14]line > о реализуемом товаре [14:26:14]line ИТОГО: 0.00 [14:26:14]line НСП 1% : 0.00 [14:26:14]line НДС 12% : 0.00 [14:26:14]line Наличными: 0.00 [14:26:14]line Безнал.: 0.00 [14:26:14]line Место: АЗС № 92 "Партнер Нефть" [14:26:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:26:14]line СНО: Общий режим [14:26:14]line Чек 142 21.02.2025 14:26 [14:26:14]line Смена: 649 ФФД: 1.0 [14:26:14]line ЗНМ: 0300000118 [14:26:14]line РНМ: 0000000000091857 [14:26:14]line Версия ККМ: 001 [14:26:14]line Талоны: ТК ГПНА Online [14:26:14]line 30074878 [14:26:14]line ФМ: 0000000000871826 [14:26:14]line ФД: 187648 [14:26:14]line ФПД: 119267724445817 [14:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T142613&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187648&fm=119267724445817&tin=02508201610067®Number=0000000000091857&sum=0 [14:26:14]written 0, free lines is 4095 [14:26:14]OFD Sender: Processing packet 187648 [packets to send 49, broken 48] [14:26:14]ProducePacketName [14:26:14]name=ofd_packets/00187648 [14:26:14]OFD Sender: To server: pG, [14:26:14]CommunicateWithHost lk.salyk.kg:30040 [14:26:14]ConnectInit lk.salyk.kg [14:26:14]Connected sock=10 [14:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 33 AB 07 01 5E CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 05 8D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DD 02 00 35 04 06 00 6C 79 2E 59 48 79 E2 86 B2 C0 F6 09 FC C8 [14:26:15]Write to MH i2c: 01 00 00 3D 08 45 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 3D 08 00 00 00 00 00 02 0D 5B [14:26:15]RasterBufferAndPrint [14:26:15]line [14:26:15]line [14:26:15]line [14:26:15]line [14:26:15]line [14:26:15]written 0, free lines is 3336 [14:26:15]MH_Cut [14:26:15]Write to MH i2c: D1 01 00 44 08 01 1E [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: D1 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: D1 01 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: D1 01 00 44 08 00 1D [14:26:15]Write to MH i2c: 01 00 00 45 08 4D [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 40 50 47 00 70 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 00 DD 02 00 F4 03 04 00 52 33 B8 67 B6 04 01 00 00 57 E7 98 05 99 A5 A1 24 [14:26:15]CommunicateWithHost err = 0 [14:26:15]CheckOFDResponse [14:26:15]1017 (14) - 77093643461234 [14:26:15]1041 (16) - 0000000000871826 [14:26:15]1040 (4) - 187648 [14:26:15]1012 (4) - 21.02.2025 08:03 [14:26:15]1206 (1) - 0 [14:26:15]OFD Sender: Remove packet 187648 [14:26:15]ProducePacketName [14:26:15]name=ofd_packets/00187648 [14:26:15]NVStorageDeleteData [14:26:15]OFD Sender: No OFD packet to send [14:26:15]*** Cut start [14:26:15]*** Partial cut [14:26:15]*** CUTSNS_PIN = 1 [14:26:15]*** CUTSNS_PIN = 0 [14:26:16]*** Brake cut motor [14:26:16]Read from MH i2c: 01 [14:26:16]MH_I2C_Read... [14:26:16]*** Stop cut motor [14:26:16]*** Cut end [14:26:16]Read from MH i2c: 01 07 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 45 08 00 00 00 00 00 FF 0F 62 [14:26:16]process_action close_receipt done [14:26:16]requested_data is exist [14:26:16]produce_requested_data [14:26:16]requested_item fm.sn is exist - process it [14:26:16]wFMCommunicate request_size=4 [14:26:16]MH_SAM_APDU [14:26:16]CAPDU: 80 11 00 00 [14:26:16]Write to MH i2c: E2 08 00 46 08 80 11 00 00 00 00 00 00 C8 [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:16]Read from MH i2c: E2 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 17 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 17 00 46 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1B [14:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:26:16]wFMCommunicate OK [14:26:16]requested_item fd.num is exist - process it [14:26:16]SAM_PROTO_GetFieldsCounters [14:26:16]wFMCommunicate request_size=4 [14:26:16]MH_SAM_APDU [14:26:16]CAPDU: 80 13 00 00 [14:26:16]Write to MH i2c: E2 08 00 47 08 80 13 00 00 00 00 00 00 CB [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:16]Read from MH i2c: E2 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 62 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 62 00 47 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 00 DD 02 00 0E 04 04 00 89 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 05 [14:26:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 00 DD 02 00 0E 04 04 00 89 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 [14:26:16]wFMCommunicate OK [14:26:16]SAM_PROTO_GetFieldsCounters done [14:26:16]requested_item shift.num is exist - process it [14:26:16]requested_item shift.opened is exist - process it [14:26:16]req_shift_opened [14:26:16]FM_GetShiftState [14:26:16]SAM_PROTO_GetShiftState [14:26:16]wFMCommunicate request_size=4 [14:26:16]MH_SAM_APDU [14:26:16]CAPDU: 80 13 01 00 [14:26:16]Write to MH i2c: E2 08 00 48 08 80 13 01 00 00 00 00 00 CD [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:16]Read from MH i2c: E2 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 0E 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: E2 0E 00 48 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 BB [14:26:16]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:26:16]wFMCommunicate OK [14:26:16]SAM_PROTO_GetShiftState done [14:26:16]FM_GetShiftState done [14:26:16]req_shift_opened done [14:26:16]requested_item shift.open_date is exist - process it [14:26:16]req_shift_open_date [14:26:16]req_shift_open_date done [14:26:16]produce_requested_data done [14:26:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187648,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:26:16]process_action_free close_receipt [14:26:16]json_value_free [14:26:16]json_value_free done [14:26:16]process_json_proto returns [14:26:16]Send response to host [14:26:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187648,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:26:16]free response buf [14:26:16]execute_script done [14:26:16]execute_script returns [14:26:16]free content buf [14:26:16]Sock 7.Close socket [14:26:16]Sock 7.Thread stoped [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:41]accept exits with 9 [14:26:41]New connection [14:26:41]New thread 3067624804 created [14:26:41]Thread 3067481444 joined [14:26:41]Waiting for new connection... [14:26:41] Sock 9.Parse request [14:26:41]Sock 9.Check first char [14:26:41]Sock 9.First char is OK [14:26:41]request: POST /json_proto HTTP/1.0 [14:26:41]Method: POST [14:26:41]URL: /json_proto [14:26:41]Method is POST - this is cgi request [14:26:41]url: /json_proto [14:26:41]query_string will be loaded in cgi processing [14:26:41]execute_cgi json_proto POST (null) [14:26:41]execute_cgi path=json_proto method=POST [14:26:41]POST find Content-Length [14:26:41]Host: 172.17.46.131:8080 [14:26:41]Content-Length: 678 [14:26:41]Content-Type: application/json [14:26:41] [14:26:41]POST finish read [14:26:41]Found Content-Length = 678 [14:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:41]execute_script... [14:26: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)412809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:41]POST & json_proto [14:26:41]process_json_proto [14:26:41]json parsed OK: [14:26:41]protocol is kg_v1.0 [14:26:41]action value=close_receipt [14:26:41]process_action close_receipt [14:26:41]cmd_close_receipt [14:26:41]MH_GetDate [14:26:41]Write to MH i2c: F0 00 00 49 08 40 [14:26:41]Write i2c OK [14:26:41]MH_I2C_Read... [14:26:41]Read from MH i2c: F0 [14:26:41]MH_I2C_Read... [14:26:41]Read from MH i2c: F0 09 00 [14:26:41]MH_I2C_Read... [14:26:41]Read from MH i2c: F0 09 00 49 08 00 22 8D B8 67 7E 41 4F 65 8A [14:26:41]GetLastDocTimeStamp 1740147973 [14:26:41]current date 1740148002 [14:26:41]FM_GetShiftState [14:26:41]SAM_PROTO_GetShiftState [14:26:41]wFMCommunicate request_size=4 [14:26:41]MH_SAM_APDU [14:26:41]CAPDU: 80 13 01 00 [14:26:41]Write to MH i2c: E2 08 00 4A 08 80 13 01 00 00 00 00 00 CF [14:26:41]Write i2c OK [14:26:41]MH_I2C_Read... [14:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:41]Read from MH i2c: E2 [14:26:41]MH_I2C_Read... [14:26:41]Read from MH i2c: E2 0E 00 [14:26:41]MH_I2C_Read... [14:26:41]Read from MH i2c: E2 0E 00 4A 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 BD [14:26:41]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:26:41]wFMCommunicate OK [14:26:41]SAM_PROTO_GetShiftState done [14:26:41]FM_GetShiftState done [14:26:41]opened in 1740098043 [14:26:41]opened+sec_in_day 1740184443 [14:26:41]quantity*price = 100042 [14:26:41]sum+1 = 100044 [14:26:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 143 21.02.2025 14:26 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187649 ФПД: 162064413658059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T142642&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187649&fm=162064413658059&tin=02508201610067®Number=0000000000091857&sum=100000 [14:26:42]StoreToDocumentArchive [14:26:42]shift 649 fd 187649 [14:26:42]save to /storage/0649/doc_00187649 [14:26:42]save last doc name /storage/0649/doc_00187649 to /storage/kkm_last_doc_name [14:26:42]save OK [14:26:42]Clear old archive folders... [14:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:26:42]tlvbuf is 00BD2F20 [14:26:42]SAM_PROTO_ClearQueue [14:26:42]wFMCommunicate request_size=4 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 09 00 00 [14:26:42]Write to MH i2c: E2 08 00 57 08 80 09 00 00 00 00 00 00 D1 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 03 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 03 00 57 08 00 90 00 D3 [14:26:42]RAPDU: 90 00 [14:26:42]wFMCommunicate OK [14:26:42]SAM_PROTO_ClearQueue done [14:26:42]KKMCreateOFDPacket [14:26:42]OFDProtocolAddRootSTLVToBuf [14:26:42]FM_MakeSignedData [14:26:42]FM_MakeSignedData [14:26:42]SAM_PROTO_SignData [14:26:42]wFMCommunicate request_size=4 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 0D 01 02 [14:26:42]Write to MH i2c: E2 08 00 58 08 80 0D 01 02 00 00 00 00 D9 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 03 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [14:26:42]RAPDU: 90 00 [14:26:42]wFMCommunicate OK [14:26:42]wFMCommunicate request_size=255 [14:26:42]MH_SAM_APDU [14:26: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 22 8D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DD 02 00 35 04 06 00 93 65 8F CE [14:26:42]Write to MH i2c: E2 02 01 59 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 22 8D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DD 02 00 35 04 06 00 93 65 8F CE 00 00 9A [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [14:26:43]RAPDU: 90 00 [14:26:43]wFMCommunicate OK [14:26:43]wFMCommunicate request_size=7 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 0D 02 02 02 8B CB [14:26:43]Write to MH i2c: E2 0A 00 5A 08 80 0D 02 02 02 00 8B CB 00 00 36 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [14:26:43]RAPDU: 90 00 [14:26:43]wFMCommunicate OK [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 0D 03 02 [14:26:43]Write to MH i2c: E2 08 00 5B 08 80 0D 03 02 00 00 00 00 DE [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0B 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0B 00 5B 08 00 B2 20 E0 5D 65 09 43 59 90 00 F8 [14:26:43]RAPDU: B2 20 E0 5D 65 09 43 59 90 00 [14:26:43]wFMCommunicate OK [14:26:43]SAM_PROTO_SignData done [14:26:43]FM_MakeSignedData done [14:26:43]CreateOFDProtocolMessage [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 11 00 00 [14:26:43]Write to MH i2c: E2 08 00 5C 08 80 11 00 00 00 00 00 00 DE [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 17 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 17 00 5C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 31 [14:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:26:43]wFMCommunicate OK [14:26:43]CreateOFDProtocolMessage done [14:26:43]OFDSenderStorePacket 187649 [14:26:43]StoreOFDPacket docnum=187649 [14:26:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 4C 33 04 01 AE D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 22 8D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DD 02 00 35 04 06 00 93 65 8F CE 8B CB B2 20 E0 5D 65 09 43 59 [14:26:43]CheckFolder [14:26:43]dirname=/storage/ofd_packets [14:26:43]CheckFolder done [14:26:43]ProducePacketName [14:26:43]name=ofd_packets/00187649 [14:26:43]NVStorageSaveData ofd_packets/00187649 [14:26:43]File name is /storage/ofd_packets/00187649 [14:26:43]Write 298 bytes [14:26:43]NVStorageSaveData done [14:26:43]OFDSenderStorePacket done [14:26:43]KKMCreateOFDPacket done [14:26:43]NVStorageSaveData kkm_last_timestamp [14:26:43]File name is /storage/kkm_last_timestamp [14:26:43]Write 4 bytes [14:26:43]NVStorageSaveData done [14:26:43]ExternCall_PrintAddStr [14:26:43]wPrintStart [14:26:43]Write to MH i2c: 01 00 00 5D 08 65 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: 01 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: 01 07 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: 01 07 00 5D 08 00 00 00 00 00 FF 0F 7A [14:26:43]RasterBufferAndPrint [14:26:43]line Счет N : (1)412809 [14:26:43]line ИНН: 02508201610067 [14:26:43]line Контрольно-Кассовый Чек [14:26:43]line ПРОДАЖА [14:26:43]line ТРК (МРК, ГНК) : 6 [14:26:43]line Товар: 2710194210 [14:26:43]line ДТ-К-5 [14:26:43]line 13.780 * 72.60 [14:26:43]line = 1000.43 [14:26:43]line НДС 12% НСП 1% [14:26:43]line > о реализуемом товаре [14:26:43]line ОКРУГЛЕНИЕ: -0.43 [14:26:43]line ИТОГО: 1000.00 [14:26:43]line Внесено: 1000.00 [14:26:43]line СДАЧА: 0.00 [14:26:43]line НСП 1% : 8.85 [14:26:43]line НДС 12% : 106.24 [14:26:43]line Наличными: 1000.00 [14:26:43]line Безнал.: 0.00 [14:26:43]line Место: АЗС № 92 "Партнер Нефть" [14:26:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:26:43]line СНО: Общий режим [14:26:43]line Чек 143 21.02.2025 14:26 [14:26:43]line Смена: 649 ФФД: 1.0 [14:26:43]line ЗНМ: 0300000118 [14:26:43]line РНМ: 0000000000091857 [14:26:43]line Версия ККМ: 001 [14:26:43]line ФМ: 0000000000871826 [14:26:43]line ФД: 187649 [14:26:43]line ФПД: 162064413658059 [14:26:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T142642&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187649&fm=162064413658059&tin=02508201610067®Number=0000000000091857&sum=100000 [14:26:43]OFD Sender: Processing packet 187649 [packets to send 49, broken 48] [14:26:43]ProducePacketName [14:26:43]name=ofd_packets/00187649 [14:26:43]OFD Sender: To server: pG, [14:26:43]CommunicateWithHost lk.salyk.kg:30040 [14:26:43]ConnectInit lk.salyk.kg [14:26:43]written 0, free lines is 4095 [14:26:43]Connected sock=10 [14:26:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 4C 33 04 01 AE D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 22 8D B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 01 DD 02 00 35 04 06 00 93 65 8F CE 8B CB B2 20 E0 5D 65 09 43 59 [14:26:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D2 F4 47 00 6D 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 38 32 36 10 04 04 00 01 DD 02 00 F4 03 04 00 6F 33 B8 67 B6 04 01 00 00 94 50 5F D7 5F 19 BE 59 [14:26:44]CommunicateWithHost err = 0 [14:26:44]CheckOFDResponse [14:26:44]1017 (14) - 77093643461234 [14:26:44]1041 (16) - 0000000000871826 [14:26:44]1040 (4) - 187649 [14:26:44]1012 (4) - 21.02.2025 08:03 [14:26:44]1206 (1) - 0 [14:26:44]OFD Sender: Remove packet 187649 [14:26:44]ProducePacketName [14:26:44]name=ofd_packets/00187649 [14:26:44]NVStorageDeleteData [14:26:44]Write to MH i2c: 01 00 00 88 08 90 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: 01 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: 01 07 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: 01 07 00 88 08 00 00 00 00 00 F7 0C 9A [14:26:44]RasterBufferAndPrint [14:26:44]line [14:26:44]line [14:26:44]line [14:26:44]line [14:26:44]line [14:26:44]written 0, free lines is 3325 [14:26:44]MH_Cut [14:26:44]Write to MH i2c: D1 01 00 8F 08 01 69 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: D1 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: D1 01 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: D1 01 00 8F 08 00 68 [14:26:44]Write to MH i2c: 01 00 00 90 08 98 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]OFD Sender: No OFD packet to send [14:26:44]*** Cut start [14:26:44]*** Partial cut [14:26:44]*** CUTSNS_PIN = 1 [14:26:44]*** CUTSNS_PIN = 0 [14:26:45]*** Brake cut motor [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]*** Stop cut motor [14:26:45]*** Cut end [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 90 08 00 00 00 00 00 FF 0F AD [14:26:45]process_action close_receipt done [14:26:45]requested_data is exist [14:26:45]produce_requested_data [14:26:45]requested_item fm.sn is exist - process it [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 91 08 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 91 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [14:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:26:45]wFMCommunicate OK [14:26:45]requested_item fd.num is exist - process it [14:26:45]SAM_PROTO_GetFieldsCounters [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 13 00 00 [14:26:45]Write to MH i2c: E2 08 00 92 08 80 13 00 00 00 00 00 00 16 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 62 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 62 00 92 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 01 DD 02 00 0E 04 04 00 89 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 54 [14:26:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 01 DD 02 00 0E 04 04 00 89 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 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_GetFieldsCounters done [14:26:45]requested_item shift.num is exist - process it [14:26:45]requested_item shift.opened is exist - process it [14:26:45]req_shift_opened [14:26:45]FM_GetShiftState [14:26:45]SAM_PROTO_GetShiftState [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 13 01 00 [14:26:45]Write to MH i2c: E2 08 00 93 08 80 13 01 00 00 00 00 00 18 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0E 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0E 00 93 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 06 [14:26:45]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_GetShiftState done [14:26:45]FM_GetShiftState done [14:26:45]req_shift_opened done [14:26:45]requested_item shift.open_date is exist - process it [14:26:45]req_shift_open_date [14:26:45]req_shift_open_date done [14:26:45]produce_requested_data done [14:26:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187649,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:26:45]process_action_free close_receipt [14:26:45]json_value_free [14:26:45]json_value_free done [14:26:45]process_json_proto returns [14:26:45]Send response to host [14:26:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187649,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:26:45]free response buf [14:26:45]execute_script done [14:26:45]execute_script returns [14:26:45]free content buf [14:26:45]Sock 9.Close socket [14:26:45]Sock 9.Thread stoped [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:32]accept exits with 7 [14:30:32]New connection [14:30:32]New thread 3067481444 created [14:30:32]Thread 3067624804 joined [14:30:32]Waiting for new connection... [14:30:32] Sock 7.Parse request [14:30:32]Sock 7.Check first char [14:30:32]Sock 7.First char is OK [14:30:32]request: POST /json_proto HTTP/1.0 [14:30:32]Method: POST [14:30:32]URL: /json_proto [14:30:32]Method is POST - this is cgi request [14:30:32]url: /json_proto [14:30:32]query_string will be loaded in cgi processing [14:30:32]execute_cgi json_proto POST (null) [14:30:32]execute_cgi path=json_proto method=POST [14:30:32]POST find Content-Length [14:30:32]Host: 172.17.46.131:8080 [14:30:32]Content-Length: 754 [14:30:32]Content-Type: application/json [14:30:32] [14:30:32]POST finish read [14:30:32]Found Content-Length = 754 [14:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30153110", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:32]execute_script... [14:30: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)412810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30153110", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:32]POST & json_proto [14:30:32]process_json_proto [14:30:32]json parsed OK: [14:30:32]protocol is kg_v1.0 [14:30:32]action value=close_receipt [14:30:32]process_action close_receipt [14:30:32]cmd_close_receipt [14:30:32]MH_GetDate [14:30:32]Write to MH i2c: F0 00 00 94 08 8B [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: F0 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: F0 09 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: F0 09 00 94 08 00 08 8E B8 67 7E 41 4F 65 BC [14:30:32]GetLastDocTimeStamp 1740148002 [14:30:32]current date 1740148232 [14:30:32]FM_GetShiftState [14:30:32]SAM_PROTO_GetShiftState [14:30:32]wFMCommunicate request_size=4 [14:30:32]MH_SAM_APDU [14:30:32]CAPDU: 80 13 01 00 [14:30:32]Write to MH i2c: E2 08 00 95 08 80 13 01 00 00 00 00 00 1A [14:30:32]Write i2c OK [14:30:32]MH_I2C_Read... [14:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:32]Read from MH i2c: E2 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 0E 00 [14:30:32]MH_I2C_Read... [14:30:32]Read from MH i2c: E2 0E 00 95 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 08 [14:30:32]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:30:32]wFMCommunicate OK [14:30:32]SAM_PROTO_GetShiftState done [14:30:32]FM_GetShiftState done [14:30:32]opened in 1740098043 [14:30:32]opened+sec_in_day 1740184443 [14:30:32]quantity*price = 0 [14:30:32]sum+1 = 1 [14:30:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 144 21.02.2025 14:30 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30153110 ФМ: 0000000000871826 ФД: 187650 ФПД: 133808356103112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T143032&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187650&fm=133808356103112&tin=02508201610067®Number=0000000000091857&sum=0 [14:30:33]StoreToDocumentArchive [14:30:33]shift 649 fd 187650 [14:30:33]save to /storage/0649/doc_00187650 [14:30:33]save last doc name /storage/0649/doc_00187650 to /storage/kkm_last_doc_name [14:30:33]save OK [14:30:33]Clear old archive folders... [14:30:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:33]tlvbuf is 00BC7930 [14:30:33]SAM_PROTO_ClearQueue [14:30:33]wFMCommunicate request_size=4 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 09 00 00 [14:30:33]Write to MH i2c: E2 08 00 A2 08 80 09 00 00 00 00 00 00 1C [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [14:30:33]RAPDU: 90 00 [14:30:33]wFMCommunicate OK [14:30:33]SAM_PROTO_ClearQueue done [14:30:33]KKMCreateOFDPacket [14:30:33]OFDProtocolAddRootSTLVToBuf [14:30:33]FM_MakeSignedData [14:30:33]FM_MakeSignedData [14:30:33]SAM_PROTO_SignData [14:30:33]wFMCommunicate request_size=4 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 0D 01 02 [14:30:33]Write to MH i2c: E2 08 00 A3 08 80 0D 01 02 00 00 00 00 24 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [14:30:33]RAPDU: 90 00 [14:30:33]wFMCommunicate OK [14:30:33]wFMCommunicate request_size=255 [14:30:33]MH_SAM_APDU [14:30: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 90 00 00 00 F4 03 04 00 08 8E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DD 02 00 35 04 06 00 79 [14:30:33]Write to MH i2c: E2 02 01 A4 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 08 8E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DD 02 00 35 04 06 00 79 00 00 3D [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:33]Read from MH i2c: E2 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 [14:30:33]MH_I2C_Read... [14:30:33]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [14:30:33]RAPDU: 90 00 [14:30:33]wFMCommunicate OK [14:30:33]wFMCommunicate request_size=10 [14:30:33]MH_SAM_APDU [14:30:33]CAPDU: 80 0D 02 02 05 B2 AF 88 93 C8 [14:30:33]Write to MH i2c: E2 0D 00 A5 08 80 0D 02 02 05 00 B2 AF 88 93 C8 00 00 75 [14:30:33]Write i2c OK [14:30:33]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [14:30:34]RAPDU: 90 00 [14:30:34]wFMCommunicate OK [14:30:34]wFMCommunicate request_size=4 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 0D 03 02 [14:30:34]Write to MH i2c: E2 08 00 A6 08 80 0D 03 02 00 00 00 00 29 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 0B 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 0B 00 A6 08 00 CE E8 21 CF 02 F8 0C 92 90 00 68 [14:30:34]RAPDU: CE E8 21 CF 02 F8 0C 92 90 00 [14:30:34]wFMCommunicate OK [14:30:34]SAM_PROTO_SignData done [14:30:34]FM_MakeSignedData done [14:30:34]CreateOFDProtocolMessage [14:30:34]wFMCommunicate request_size=4 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 11 00 00 [14:30:34]Write to MH i2c: E2 08 00 A7 08 80 11 00 00 00 00 00 00 29 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 17 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 17 00 A7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [14:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:30:34]wFMCommunicate OK [14:30:34]CreateOFDProtocolMessage done [14:30:34]OFDSenderStorePacket 187650 [14:30:34]StoreOFDPacket docnum=187650 [14:30:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 1F 07 01 FE F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 90 00 00 00 F4 03 04 00 08 8E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DD 02 00 35 04 06 00 79 B2 AF 88 93 C8 CE E8 21 CF 02 F8 0C 92 [14:30:34]CheckFolder [14:30:34]dirname=/storage/ofd_packets [14:30:34]CheckFolder done [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00187650 [14:30:34]NVStorageSaveData ofd_packets/00187650 [14:30:34]File name is /storage/ofd_packets/00187650 [14:30:34]Write 301 bytes [14:30:34]NVStorageSaveData done [14:30:34]OFDSenderStorePacket done [14:30:34]KKMCreateOFDPacket done [14:30:34]NVStorageSaveData kkm_last_timestamp [14:30:34]File name is /storage/kkm_last_timestamp [14:30:34]Write 4 bytes [14:30:34]NVStorageSaveData done [14:30:34]ExternCall_PrintAddStr [14:30:34]wPrintStart [14:30:34]Write to MH i2c: 01 00 00 A8 08 B0 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 07 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 07 00 A8 08 00 00 00 00 00 FF 0F C5 [14:30:34]RasterBufferAndPrint [14:30:34]line Счет N : (1)412810 [14:30:34]line ИНН: 02508201610067 [14:30:34]line Контрольно-Кассовый Чек [14:30:34]line ПРОДАЖА [14:30:34]line ТРК (МРК, ГНК) : 33 [14:30:34]line Товар: 2710124500 [14:30:34]line Аи-95-К-5 [14:30:34]line 40.000 * 0.00 [14:30:34]line = 0.00 [14:30:34]line НДС 12% НСП 1% [14:30:34]line > о реализуемом товаре [14:30:34]line ИТОГО: 0.00 [14:30:34]line НСП 1% : 0.00 [14:30:34]line НДС 12% : 0.00 [14:30:34]line Наличными: 0.00 [14:30:34]line Безнал.: 0.00 [14:30:34]line Место: АЗС № 92 "Партнер Нефть" [14:30:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:30:34]line СНО: Общий режим [14:30:34]line Чек 144 21.02.2025 14:30 [14:30:34]line Смена: 649 ФФД: 1.0 [14:30:34]line ЗНМ: 0300000118 [14:30:34]line РНМ: 0000000000091857 [14:30:34]line Версия ККМ: 001 [14:30:34]line Талоны: ТК ГПНА Online [14:30:34]line 30153110 [14:30:34]line ФМ: 0000000000871826 [14:30:34]line ФД: 187650 [14:30:34]line ФПД: 133808356103112 [14:30:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T143032&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187650&fm=133808356103112&tin=02508201610067®Number=0000000000091857&sum=0 [14:30:34]written 0, free lines is 4095 [14:30:34]OFD Sender: Processing packet 187650 [packets to send 49, broken 48] [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00187650 [14:30:34]OFD Sender: To server: pG, [14:30:34]CommunicateWithHost lk.salyk.kg:30040 [14:30:34]ConnectInit lk.salyk.kg [14:30:34]Connected sock=10 [14:30:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 1F 07 01 FE F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 90 00 00 00 F4 03 04 00 08 8E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DD 02 00 35 04 06 00 79 B2 AF 88 93 C8 CE E8 21 CF 02 F8 0C 92 [14:30:34]Write to MH i2c: 01 00 00 D2 08 DA [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 07 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: 01 07 00 D2 08 00 00 00 00 00 03 0D F1 [14:30:34]RasterBufferAndPrint [14:30:34]line [14:30:34]line [14:30:34]line [14:30:34]line [14:30:34]line [14:30:34]written 0, free lines is 3337 [14:30:34]MH_Cut [14:30:34]Write to MH i2c: D1 01 00 D9 08 01 B3 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: D1 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: D1 01 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: D1 01 00 D9 08 00 B2 [14:30:34]Write to MH i2c: 01 00 00 DA 08 E2 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4E 43 47 00 D5 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 02 DD 02 00 F4 03 04 00 56 34 B8 67 B6 04 01 00 00 1C 11 84 D7 69 87 1C 02 [14:30:34]CommunicateWithHost err = 0 [14:30:34]CheckOFDResponse [14:30:34]1017 (14) - 77093643461234 [14:30:34]1041 (16) - 0000000000871826 [14:30:34]1040 (4) - 187650 [14:30:34]1012 (4) - 21.02.2025 08:07 [14:30:34]1206 (1) - 0 [14:30:34]OFD Sender: Remove packet 187650 [14:30:34]ProducePacketName [14:30:34]name=ofd_packets/00187650 [14:30:34]NVStorageDeleteData [14:30:35]OFD Sender: No OFD packet to send [14:30:35]*** Cut start [14:30:35]*** Partial cut [14:30:35]*** CUTSNS_PIN = 1 [14:30:35]*** CUTSNS_PIN = 0 [14:30:35]*** Brake cut motor [14:30:35]Read from MH i2c: 01 [14:30:35]MH_I2C_Read... [14:30:35]*** Stop cut motor [14:30:35]*** Cut end [14:30:35]Read from MH i2c: 01 07 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: 01 07 00 DA 08 00 00 00 00 00 FF 0F F7 [14:30:35]process_action close_receipt done [14:30:35]requested_data is exist [14:30:35]produce_requested_data [14:30:35]requested_item fm.sn is exist - process it [14:30:35]wFMCommunicate request_size=4 [14:30:35]MH_SAM_APDU [14:30:35]CAPDU: 80 11 00 00 [14:30:35]Write to MH i2c: E2 08 00 DB 08 80 11 00 00 00 00 00 00 5D [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 17 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 17 00 DB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B0 [14:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:30:36]wFMCommunicate OK [14:30:36]requested_item fd.num is exist - process it [14:30:36]SAM_PROTO_GetFieldsCounters [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 13 00 00 [14:30:36]Write to MH i2c: E2 08 00 DC 08 80 13 00 00 00 00 00 00 60 [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 62 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 62 00 DC 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 02 DD 02 00 0E 04 04 00 89 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 A2 [14:30:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 02 DD 02 00 0E 04 04 00 89 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 [14:30:36]wFMCommunicate OK [14:30:36]SAM_PROTO_GetFieldsCounters done [14:30:36]requested_item shift.num is exist - process it [14:30:36]requested_item shift.opened is exist - process it [14:30:36]req_shift_opened [14:30:36]FM_GetShiftState [14:30:36]SAM_PROTO_GetShiftState [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 13 01 00 [14:30:36]Write to MH i2c: E2 08 00 DD 08 80 13 01 00 00 00 00 00 62 [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 0E 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 0E 00 DD 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 50 [14:30:36]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:30:36]wFMCommunicate OK [14:30:36]SAM_PROTO_GetShiftState done [14:30:36]FM_GetShiftState done [14:30:36]req_shift_opened done [14:30:36]requested_item shift.open_date is exist - process it [14:30:36]req_shift_open_date [14:30:36]req_shift_open_date done [14:30:36]produce_requested_data done [14:30:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187650,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:30:36]process_action_free close_receipt [14:30:36]json_value_free [14:30:36]json_value_free done [14:30:36]process_json_proto returns [14:30:36]Send response to host [14:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187650,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:30:36]free response buf [14:30:36]execute_script done [14:30:36]execute_script returns [14:30:36]free content buf [14:30:36]Sock 7.Close socket [14:30:36]Sock 7.Thread stoped [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:19]accept exits with 9 [14:35:19]New connection [14:35:19]New thread 3067624804 created [14:35:19]Thread 3067481444 joined [14:35:19]Waiting for new connection... [14:35:19] Sock 9.Parse request [14:35:19]Sock 9.Check first char [14:35:19]Sock 9.First char is OK [14:35:19]request: POST /json_proto HTTP/1.0 [14:35:19]Method: POST [14:35:19]URL: /json_proto [14:35:19]Method is POST - this is cgi request [14:35:19]url: /json_proto [14:35:19]query_string will be loaded in cgi processing [14:35:19]execute_cgi json_proto POST (null) [14:35:19]execute_cgi path=json_proto method=POST [14:35:19]POST find Content-Length [14:35:19]Host: 172.17.46.131:8080 [14:35:19]Content-Length: 677 [14:35:19]Content-Type: application/json [14:35:19] [14:35:19]POST finish read [14:35:19]Found Content-Length = 677 [14:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:19]execute_script... [14:35: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)412811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:19]POST & json_proto [14:35:19]process_json_proto [14:35:19]json parsed OK: [14:35:19]protocol is kg_v1.0 [14:35:19]action value=close_receipt [14:35:19]process_action close_receipt [14:35:19]cmd_close_receipt [14:35:19]MH_GetDate [14:35:19]Write to MH i2c: F0 00 00 DE 08 D5 [14:35:19]Write i2c OK [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: F0 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: F0 09 00 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: F0 09 00 DE 08 00 27 8F B8 67 7E 41 4F 65 26 [14:35:19]GetLastDocTimeStamp 1740148232 [14:35:19]current date 1740148519 [14:35:19]FM_GetShiftState [14:35:19]SAM_PROTO_GetShiftState [14:35:19]wFMCommunicate request_size=4 [14:35:19]MH_SAM_APDU [14:35:19]CAPDU: 80 13 01 00 [14:35:19]Write to MH i2c: E2 08 00 DF 08 80 13 01 00 00 00 00 00 64 [14:35:19]Write i2c OK [14:35:19]MH_I2C_Read... [14:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:19]Read from MH i2c: E2 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 0E 00 [14:35:19]MH_I2C_Read... [14:35:19]Read from MH i2c: E2 0E 00 DF 08 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 52 [14:35:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:35:19]wFMCommunicate OK [14:35:19]SAM_PROTO_GetShiftState done [14:35:19]FM_GetShiftState done [14:35:19]opened in 1740098043 [14:35:19]opened+sec_in_day 1740184443 [14:35:19]quantity*price = 50011 [14:35:19]sum+1 = 50013 [14:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 145 21.02.2025 14:35 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187651 ФПД: 177486775129317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T143520&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187651&fm=177486775129317&tin=02508201610067®Number=0000000000091857&sum=50000 [14:35:20]StoreToDocumentArchive [14:35:20]shift 649 fd 187651 [14:35:20]save to /storage/0649/doc_00187651 [14:35:20]save last doc name /storage/0649/doc_00187651 to /storage/kkm_last_doc_name [14:35:20]save OK [14:35:20]Clear old archive folders... [14:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:20]tlvbuf is 00C02310 [14:35:20]SAM_PROTO_ClearQueue [14:35:20]wFMCommunicate request_size=4 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 09 00 00 [14:35:20]Write to MH i2c: E2 08 00 EC 08 80 09 00 00 00 00 00 00 66 [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]SAM_PROTO_ClearQueue done [14:35:20]KKMCreateOFDPacket [14:35:20]OFDProtocolAddRootSTLVToBuf [14:35:20]FM_MakeSignedData [14:35:20]FM_MakeSignedData [14:35:20]SAM_PROTO_SignData [14:35:20]wFMCommunicate request_size=4 [14:35:20]MH_SAM_APDU [14:35:20]CAPDU: 80 0D 01 02 [14:35:20]Write to MH i2c: E2 08 00 ED 08 80 0D 01 02 00 00 00 00 6E [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:20]Read from MH i2c: E2 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 [14:35:20]MH_I2C_Read... [14:35:20]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [14:35:20]RAPDU: 90 00 [14:35:20]wFMCommunicate OK [14:35:20]wFMCommunicate request_size=255 [14:35:20]MH_SAM_APDU [14:35: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 28 8F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DD 02 00 35 04 06 00 A1 [14:35:20]Write to MH i2c: E2 02 01 EE 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 28 8F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DD 02 00 35 04 06 00 A1 00 00 7C [14:35:20]Write i2c OK [14:35:20]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [14:35:21]RAPDU: 90 00 [14:35:21]wFMCommunicate OK [14:35:21]wFMCommunicate request_size=10 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 0D 02 02 05 6C 5C 2F 14 E5 [14:35:21]Write to MH i2c: E2 0D 00 EF 08 80 0D 02 02 05 00 6C 5C 2F 14 E5 00 00 6B [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [14:35:21]RAPDU: 90 00 [14:35:21]wFMCommunicate OK [14:35:21]wFMCommunicate request_size=4 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 0D 03 02 [14:35:21]Write to MH i2c: E2 08 00 F0 08 80 0D 03 02 00 00 00 00 73 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 0B 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 0B 00 F0 08 00 13 D9 2F 3C B5 17 8A A5 90 00 C6 [14:35:21]RAPDU: 13 D9 2F 3C B5 17 8A A5 90 00 [14:35:21]wFMCommunicate OK [14:35:21]SAM_PROTO_SignData done [14:35:21]FM_MakeSignedData done [14:35:21]CreateOFDProtocolMessage [14:35:21]wFMCommunicate request_size=4 [14:35:21]MH_SAM_APDU [14:35:21]CAPDU: 80 11 00 00 [14:35:21]Write to MH i2c: E2 08 00 F1 08 80 11 00 00 00 00 00 00 73 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:21]Read from MH i2c: E2 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 17 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: E2 17 00 F1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C6 [14:35:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:35:21]wFMCommunicate OK [14:35:21]CreateOFDProtocolMessage done [14:35:21]OFDSenderStorePacket 187651 [14:35:21]StoreOFDPacket docnum=187651 [14:35:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C 76 07 01 22 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 28 8F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DD 02 00 35 04 06 00 A1 6C 5C 2F 14 E5 13 D9 2F 3C B5 17 8A A5 [14:35:21]CheckFolder [14:35:21]dirname=/storage/ofd_packets [14:35:21]CheckFolder done [14:35:21]ProducePacketName [14:35:21]name=ofd_packets/00187651 [14:35:21]NVStorageSaveData ofd_packets/00187651 [14:35:21]File name is /storage/ofd_packets/00187651 [14:35:21]Write 301 bytes [14:35:21]NVStorageSaveData done [14:35:21]OFDSenderStorePacket done [14:35:21]KKMCreateOFDPacket done [14:35:21]NVStorageSaveData kkm_last_timestamp [14:35:21]File name is /storage/kkm_last_timestamp [14:35:21]Write 4 bytes [14:35:21]NVStorageSaveData done [14:35:21]ExternCall_PrintAddStr [14:35:21]wPrintStart [14:35:21]Write to MH i2c: 01 00 00 F2 08 FA [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 07 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 07 00 F2 08 00 00 00 00 00 FF 0F 0F [14:35:21]RasterBufferAndPrint [14:35:21]line Счет N : (1)412811 [14:35:21]line ИНН: 02508201610067 [14:35:21]line Контрольно-Кассовый Чек [14:35:21]line ПРОДАЖА [14:35:21]line ТРК (МРК, ГНК) : 42 [14:35:21]line Товар: 2710124130 [14:35:21]line Аи-92-К-2 [14:35:21]line 7.790 * 64.20 [14:35:21]line = 500.12 [14:35:21]line НДС 12% НСП 1% [14:35:21]line > о реализуемом товаре [14:35:21]line ОКРУГЛЕНИЕ: -0.12 [14:35:21]line ИТОГО: 500.00 [14:35:21]line Внесено: 500.00 [14:35:21]line СДАЧА: 0.00 [14:35:21]line НСП 1% : 4.43 [14:35:21]line НДС 12% : 53.11 [14:35:21]line Наличными: 500.00 [14:35:21]line Безнал.: 0.00 [14:35:21]line Место: АЗС № 92 "Партнер Нефть" [14:35:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:35:21]line СНО: Общий режим [14:35:21]line Чек 145 21.02.2025 14:35 [14:35:21]line Смена: 649 ФФД: 1.0 [14:35:21]line ЗНМ: 0300000118 [14:35:21]line РНМ: 0000000000091857 [14:35:21]line Версия ККМ: 001 [14:35:21]line ФМ: 0000000000871826 [14:35:21]line ФД: 187651 [14:35:21]line ФПД: 177486775129317 [14:35:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T143520&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187651&fm=177486775129317&tin=02508201610067®Number=0000000000091857&sum=50000 [14:35:21]written 0, free lines is 4095 [14:35:21]OFD Sender: Processing packet 187651 [packets to send 49, broken 48] [14:35:21]ProducePacketName [14:35:21]name=ofd_packets/00187651 [14:35:21]OFD Sender: To server: pG, [14:35:21]CommunicateWithHost lk.salyk.kg:30040 [14:35:21]ConnectInit lk.salyk.kg [14:35:21]Write to MH i2c: 01 00 00 1D 09 26 [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 07 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 E7 0C 20 [14:35:21]RasterBufferAndPrint [14:35:21]line [14:35:21]line [14:35:21]line [14:35:21]line [14:35:21]line [14:35:21]written 0, free lines is 3310 [14:35:21]MH_Cut [14:35:21]Write to MH i2c: D1 01 00 24 09 01 FF [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: D1 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: D1 01 00 [14:35:21]MH_I2C_Read... [14:35:21]Read from MH i2c: D1 01 00 24 09 00 FE [14:35:21]Write to MH i2c: 01 00 00 25 09 2E [14:35:21]Write i2c OK [14:35:21]MH_I2C_Read... [14:35:21]Connected sock=10 [14:35:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C 76 07 01 22 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 28 8F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 03 DD 02 00 35 04 06 00 A1 6C 5C 2F 14 E5 13 D9 2F 3C B5 17 8A A5 [14:35:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 66 45 47 00 A9 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 38 32 36 10 04 04 00 03 DD 02 00 F4 03 04 00 75 35 B8 67 B6 04 01 00 00 A3 D8 A2 01 C2 CA 80 76 [14:35:22]CommunicateWithHost err = 0 [14:35:22]CheckOFDResponse [14:35:22]1017 (14) - 77093643461234 [14:35:22]1041 (16) - 0000000000871826 [14:35:22]1040 (4) - 187651 [14:35:22]1012 (4) - 21.02.2025 08:12 [14:35:22]1206 (1) - 0 [14:35:22]OFD Sender: Remove packet 187651 [14:35:22]ProducePacketName [14:35:22]name=ofd_packets/00187651 [14:35:22]NVStorageDeleteData [14:35:22]*** Cut start [14:35:22]*** Partial cut [14:35:22]*** CUTSNS_PIN = 1 [14:35:22]OFD Sender: No OFD packet to send [14:35:22]*** CUTSNS_PIN = 0 [14:35:23]*** Brake cut motor [14:35:23]Read from MH i2c: 01 [14:35:23]MH_I2C_Read... [14:35:23]*** Stop cut motor [14:35:23]*** Cut end [14:35:23]Read from MH i2c: 01 07 00 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: 01 07 00 25 09 00 00 00 00 00 FF 0F 43 [14:35:23]process_action close_receipt done [14:35:23]requested_data is exist [14:35:23]produce_requested_data [14:35:23]requested_item fm.sn is exist - process it [14:35:23]wFMCommunicate request_size=4 [14:35:23]MH_SAM_APDU [14:35:23]CAPDU: 80 11 00 00 [14:35:23]Write to MH i2c: E2 08 00 26 09 80 11 00 00 00 00 00 00 A9 [14:35:23]Write i2c OK [14:35:23]MH_I2C_Read... [14:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:23]Read from MH i2c: E2 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 17 00 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 17 00 26 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FC [14:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:35:23]wFMCommunicate OK [14:35:23]requested_item fd.num is exist - process it [14:35:23]SAM_PROTO_GetFieldsCounters [14:35:23]wFMCommunicate request_size=4 [14:35:23]MH_SAM_APDU [14:35:23]CAPDU: 80 13 00 00 [14:35:23]Write to MH i2c: E2 08 00 27 09 80 13 00 00 00 00 00 00 AC [14:35:23]Write i2c OK [14:35:23]MH_I2C_Read... [14:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:23]Read from MH i2c: E2 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 62 00 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 62 00 27 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 03 DD 02 00 0E 04 04 00 89 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 F2 [14:35:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 03 DD 02 00 0E 04 04 00 89 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 [14:35:23]wFMCommunicate OK [14:35:23]SAM_PROTO_GetFieldsCounters done [14:35:23]requested_item shift.num is exist - process it [14:35:23]requested_item shift.opened is exist - process it [14:35:23]req_shift_opened [14:35:23]FM_GetShiftState [14:35:23]SAM_PROTO_GetShiftState [14:35:23]wFMCommunicate request_size=4 [14:35:23]MH_SAM_APDU [14:35:23]CAPDU: 80 13 01 00 [14:35:23]Write to MH i2c: E2 08 00 28 09 80 13 01 00 00 00 00 00 AE [14:35:23]Write i2c OK [14:35:23]MH_I2C_Read... [14:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:23]Read from MH i2c: E2 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 0E 00 [14:35:23]MH_I2C_Read... [14:35:23]Read from MH i2c: E2 0E 00 28 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 9C [14:35:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:35:23]wFMCommunicate OK [14:35:23]SAM_PROTO_GetShiftState done [14:35:23]FM_GetShiftState done [14:35:23]req_shift_opened done [14:35:23]requested_item shift.open_date is exist - process it [14:35:23]req_shift_open_date [14:35:23]req_shift_open_date done [14:35:23]produce_requested_data done [14:35:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187651,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:35:23]process_action_free close_receipt [14:35:23]json_value_free [14:35:23]json_value_free done [14:35:23]process_json_proto returns [14:35:23]Send response to host [14:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187651,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:35:23]free response buf [14:35:23]execute_script done [14:35:23]execute_script returns [14:35:23]free content buf [14:35:23]Sock 9.Close socket [14:35:23]Sock 9.Thread stoped [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:51]accept exits with 7 [14:36:51]New connection [14:36:51]New thread 3067481444 created [14:36:51]Thread 3067624804 joined [14:36:51]Waiting for new connection... [14:36:51] Sock 7.Parse request [14:36:51]Sock 7.Check first char [14:36:51]Sock 7.First char is OK [14:36:51]request: POST /json_proto HTTP/1.0 [14:36:51]Method: POST [14:36:51]URL: /json_proto [14:36:51]Method is POST - this is cgi request [14:36:51]url: /json_proto [14:36:51]query_string will be loaded in cgi processing [14:36:51]execute_cgi json_proto POST (null) [14:36:51]execute_cgi path=json_proto method=POST [14:36:51]POST find Content-Length [14:36:51]Host: 172.17.46.131:8080 [14:36:51]Content-Length: 673 [14:36:51]Content-Type: application/json [14:36:51] [14:36:51]POST finish read [14:36:51]Found Content-Length = 673 [14:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:51]execute_script... [14:36:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:51]POST & json_proto [14:36:51]process_json_proto [14:36:51]json parsed OK: [14:36:51]protocol is kg_v1.0 [14:36:51]action value=close_receipt [14:36:51]process_action close_receipt [14:36:51]cmd_close_receipt [14:36:51]MH_GetDate [14:36:51]Write to MH i2c: F0 00 00 29 09 21 [14:36:51]Write i2c OK [14:36:51]MH_I2C_Read... [14:36:51]Read from MH i2c: F0 [14:36:51]MH_I2C_Read... [14:36:51]Read from MH i2c: F0 09 00 [14:36:51]MH_I2C_Read... [14:36:51]Read from MH i2c: F0 09 00 29 09 00 83 8F B8 67 7E 41 4F 65 CE [14:36:51]GetLastDocTimeStamp 1740148520 [14:36:51]current date 1740148611 [14:36:51]FM_GetShiftState [14:36:51]SAM_PROTO_GetShiftState [14:36:51]wFMCommunicate request_size=4 [14:36:51]MH_SAM_APDU [14:36:51]CAPDU: 80 13 01 00 [14:36:51]Write to MH i2c: E2 08 00 2A 09 80 13 01 00 00 00 00 00 B0 [14:36:51]Write i2c OK [14:36:51]MH_I2C_Read... [14:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:51]Read from MH i2c: E2 [14:36:51]MH_I2C_Read... [14:36:51]Read from MH i2c: E2 0E 00 [14:36:51]MH_I2C_Read... [14:36:51]Read from MH i2c: E2 0E 00 2A 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 9E [14:36:51]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:36:51]wFMCommunicate OK [14:36:51]SAM_PROTO_GetShiftState done [14:36:51]FM_GetShiftState done [14:36:51]opened in 1740098043 [14:36:51]opened+sec_in_day 1740184443 [14:36:51]quantity*price = 50021 [14:36:51]sum+1 = 50022 [14:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 146 21.02.2025 14:36 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187652 ФПД: 195315298267982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T143651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187652&fm=195315298267982&tin=02508201610067®Number=0000000000091857&sum=50000 [14:36:52]StoreToDocumentArchive [14:36:52]shift 649 fd 187652 [14:36:52]save to /storage/0649/doc_00187652 [14:36:52]save last doc name /storage/0649/doc_00187652 to /storage/kkm_last_doc_name [14:36:52]save OK [14:36:52]Clear old archive folders... [14:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:52]tlvbuf is 00B9BF40 [14:36:52]SAM_PROTO_ClearQueue [14:36:52]wFMCommunicate request_size=4 [14:36:52]MH_SAM_APDU [14:36:52]CAPDU: 80 09 00 00 [14:36:52]Write to MH i2c: E2 08 00 37 09 80 09 00 00 00 00 00 00 B2 [14:36:52]Write i2c OK [14:36:52]MH_I2C_Read... [14:36:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:52]Read from MH i2c: E2 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 03 00 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 03 00 37 09 00 90 00 B4 [14:36:52]RAPDU: 90 00 [14:36:52]wFMCommunicate OK [14:36:52]SAM_PROTO_ClearQueue done [14:36:52]KKMCreateOFDPacket [14:36:52]OFDProtocolAddRootSTLVToBuf [14:36:52]FM_MakeSignedData [14:36:52]FM_MakeSignedData [14:36:52]SAM_PROTO_SignData [14:36:52]wFMCommunicate request_size=4 [14:36:52]MH_SAM_APDU [14:36:52]CAPDU: 80 0D 01 02 [14:36:52]Write to MH i2c: E2 08 00 38 09 80 0D 01 02 00 00 00 00 BA [14:36:52]Write i2c OK [14:36:52]MH_I2C_Read... [14:36:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:52]Read from MH i2c: E2 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 03 00 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 03 00 38 09 00 90 00 B5 [14:36:52]RAPDU: 90 00 [14:36:52]wFMCommunicate OK [14:36:52]wFMCommunicate request_size=255 [14:36:52]MH_SAM_APDU [14:36:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 83 8F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DD 02 00 35 04 06 00 B1 A3 62 F8 [14:36:52]Write to MH i2c: E2 02 01 39 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 83 8F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DD 02 00 35 04 06 00 B1 A3 62 F8 00 00 55 [14:36:52]Write i2c OK [14:36:52]MH_I2C_Read... [14:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:52]Read from MH i2c: E2 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 03 00 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 03 00 39 09 00 90 00 B6 [14:36:52]RAPDU: 90 00 [14:36:52]wFMCommunicate OK [14:36:52]wFMCommunicate request_size=7 [14:36:52]MH_SAM_APDU [14:36:52]CAPDU: 80 0D 02 02 02 F3 4E [14:36:52]Write to MH i2c: E2 0A 00 3A 09 80 0D 02 02 02 00 F3 4E 00 00 02 [14:36:52]Write i2c OK [14:36:52]MH_I2C_Read... [14:36:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:52]Read from MH i2c: E2 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 03 00 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [14:36:52]RAPDU: 90 00 [14:36:52]wFMCommunicate OK [14:36:52]wFMCommunicate request_size=4 [14:36:52]MH_SAM_APDU [14:36:52]CAPDU: 80 0D 03 02 [14:36:52]Write to MH i2c: E2 08 00 3B 09 80 0D 03 02 00 00 00 00 BF [14:36:52]Write i2c OK [14:36:52]MH_I2C_Read... [14:36:52]OFD Sender: No OFD packet to send [14:36:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:52]Read from MH i2c: E2 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 0B 00 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 0B 00 3B 09 00 B6 B2 F9 0E B2 3A B8 27 90 00 FA [14:36:52]RAPDU: B6 B2 F9 0E B2 3A B8 27 90 00 [14:36:52]wFMCommunicate OK [14:36:52]SAM_PROTO_SignData done [14:36:52]FM_MakeSignedData done [14:36:52]CreateOFDProtocolMessage [14:36:52]wFMCommunicate request_size=4 [14:36:52]MH_SAM_APDU [14:36:52]CAPDU: 80 11 00 00 [14:36:52]Write to MH i2c: E2 08 00 3C 09 80 11 00 00 00 00 00 00 BF [14:36:52]Write i2c OK [14:36:52]MH_I2C_Read... [14:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:52]Read from MH i2c: E2 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 17 00 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: E2 17 00 3C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 12 [14:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:36:52]wFMCommunicate OK [14:36:52]CreateOFDProtocolMessage done [14:36:52]OFDSenderStorePacket 187652 [14:36:52]StoreOFDPacket docnum=187652 [14:36:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A1 3A 04 01 C8 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 83 8F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DD 02 00 35 04 06 00 B1 A3 62 F8 F3 4E B6 B2 F9 0E B2 3A B8 27 [14:36:52]CheckFolder [14:36:52]dirname=/storage/ofd_packets [14:36:52]CheckFolder done [14:36:52]ProducePacketName [14:36:52]name=ofd_packets/00187652 [14:36:52]NVStorageSaveData ofd_packets/00187652 [14:36:52]File name is /storage/ofd_packets/00187652 [14:36:52]Write 298 bytes [14:36:52]NVStorageSaveData done [14:36:52]OFDSenderStorePacket done [14:36:52]KKMCreateOFDPacket done [14:36:52]NVStorageSaveData kkm_last_timestamp [14:36:52]File name is /storage/kkm_last_timestamp [14:36:52]Write 4 bytes [14:36:52]NVStorageSaveData done [14:36:52]ExternCall_PrintAddStr [14:36:52]wPrintStart [14:36:52]Write to MH i2c: 01 00 00 3D 09 46 [14:36:52]Write i2c OK [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: 01 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: 01 07 00 [14:36:52]MH_I2C_Read... [14:36:52]Read from MH i2c: 01 07 00 3D 09 00 00 00 00 00 FF 0F 5B [14:36:52]RasterBufferAndPrint [14:36:52]line Счет N : (1)412812 [14:36:52]line ИНН: 02508201610067 [14:36:52]line Контрольно-Кассовый Чек [14:36:52]line ПРОДАЖА [14:36:52]line ТРК (МРК, ГНК) : 6 [14:36:52]line Товар: 2710194210 [14:36:52]line ДТ-К-5 [14:36:52]line 6.890 * 72.60 [14:36:52]line = 500.21 [14:36:52]line НДС 12% НСП 1% [14:36:52]line > о реализуемом товаре [14:36:52]line ОКРУГЛЕНИЕ: -0.21 [14:36:52]line ИТОГО: 500.00 [14:36:52]line Внесено: 500.00 [14:36:52]line СДАЧА: 0.00 [14:36:52]line НСП 1% : 4.43 [14:36:52]line НДС 12% : 53.12 [14:36:52]line Наличными: 500.00 [14:36:52]line Безнал.: 0.00 [14:36:52]line Место: АЗС № 92 "Партнер Нефть" [14:36:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:36:52]line СНО: Общий режим [14:36:52]line Чек 146 21.02.2025 14:36 [14:36:52]line Смена: 649 ФФД: 1.0 [14:36:52]line ЗНМ: 0300000118 [14:36:52]line РНМ: 0000000000091857 [14:36:52]line Версия ККМ: 001 [14:36:52]line ФМ: 0000000000871826 [14:36:52]line ФД: 187652 [14:36:52]line ФПД: 195315298267982 [14:36:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T143651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187652&fm=195315298267982&tin=02508201610067®Number=0000000000091857&sum=50000 [14:36:53]written 0, free lines is 4095 [14:36:53]OFD Sender: Processing packet 187652 [packets to send 49, broken 48] [14:36:53]ProducePacketName [14:36:53]name=ofd_packets/00187652 [14:36:53]OFD Sender: To server: pG, [14:36:53]CommunicateWithHost lk.salyk.kg:30040 [14:36:53]ConnectInit lk.salyk.kg [14:36:53]Connected sock=10 [14:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A1 3A 04 01 C8 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 83 8F B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DD 02 00 35 04 06 00 B1 A3 62 F8 F3 4E B6 B2 F9 0E B2 3A B8 27 [14:36:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7A 65 47 00 A4 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 04 DD 02 00 F4 03 04 00 D1 35 B8 67 B6 04 01 00 00 F9 09 FA EA A2 9C 23 55 [14:36:53]CommunicateWithHost err = 0 [14:36:53]CheckOFDResponse [14:36:53]1017 (14) - 77093643461234 [14:36:53]1041 (16) - 0000000000871826 [14:36:53]1040 (4) - 187652 [14:36:53]1012 (4) - 21.02.2025 08:14 [14:36:53]1206 (1) - 0 [14:36:53]OFD Sender: Remove packet 187652 [14:36:53]ProducePacketName [14:36:53]name=ofd_packets/00187652 [14:36:53]NVStorageDeleteData [14:36:53]Write to MH i2c: 01 00 00 68 09 71 [14:36:53]Write i2c OK [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: 01 [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: 01 07 00 [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: 01 07 00 68 09 00 00 00 00 00 FC 0C 80 [14:36:53]RasterBufferAndPrint [14:36:53]line [14:36:53]line [14:36:53]line [14:36:53]line [14:36:53]line [14:36:53]written 0, free lines is 3330 [14:36:53]MH_Cut [14:36:53]Write to MH i2c: D1 01 00 6F 09 01 4A [14:36:53]Write i2c OK [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: D1 [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: D1 01 00 [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: D1 01 00 6F 09 00 49 [14:36:53]Write to MH i2c: 01 00 00 70 09 79 [14:36:53]Write i2c OK [14:36:53]MH_I2C_Read... [14:36:54]OFD Sender: No OFD packet to send [14:36:54]*** Cut start [14:36:54]*** Partial cut [14:36:54]*** CUTSNS_PIN = 1 [14:36:54]*** CUTSNS_PIN = 0 [14:36:54]*** Brake cut motor [14:36:55]Read from MH i2c: 01 [14:36:55]MH_I2C_Read... [14:36:55]*** Stop cut motor [14:36:55]*** Cut end [14:36:55]Read from MH i2c: 01 07 00 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: 01 07 00 70 09 00 00 00 00 00 FF 0F 8E [14:36:55]process_action close_receipt done [14:36:55]requested_data is exist [14:36:55]produce_requested_data [14:36:55]requested_item fm.sn is exist - process it [14:36:55]wFMCommunicate request_size=4 [14:36:55]MH_SAM_APDU [14:36:55]CAPDU: 80 11 00 00 [14:36:55]Write to MH i2c: E2 08 00 71 09 80 11 00 00 00 00 00 00 F4 [14:36:55]Write i2c OK [14:36:55]MH_I2C_Read... [14:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:55]Read from MH i2c: E2 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: E2 17 00 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: E2 17 00 71 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 47 [14:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:36:55]wFMCommunicate OK [14:36:55]requested_item fd.num is exist - process it [14:36:55]SAM_PROTO_GetFieldsCounters [14:36:55]wFMCommunicate request_size=4 [14:36:55]MH_SAM_APDU [14:36:55]CAPDU: 80 13 00 00 [14:36:55]Write to MH i2c: E2 08 00 72 09 80 13 00 00 00 00 00 00 F7 [14:36:55]Write i2c OK [14:36:55]MH_I2C_Read... [14:36:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:55]Read from MH i2c: E2 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: E2 62 00 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: E2 62 00 72 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 04 DD 02 00 0E 04 04 00 89 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 41 [14:36:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 04 DD 02 00 0E 04 04 00 89 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 [14:36:55]wFMCommunicate OK [14:36:55]SAM_PROTO_GetFieldsCounters done [14:36:55]requested_item shift.num is exist - process it [14:36:55]requested_item shift.opened is exist - process it [14:36:55]req_shift_opened [14:36:55]FM_GetShiftState [14:36:55]SAM_PROTO_GetShiftState [14:36:55]wFMCommunicate request_size=4 [14:36:55]MH_SAM_APDU [14:36:55]CAPDU: 80 13 01 00 [14:36:55]Write to MH i2c: E2 08 00 73 09 80 13 01 00 00 00 00 00 F9 [14:36:55]Write i2c OK [14:36:55]MH_I2C_Read... [14:36:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:55]Read from MH i2c: E2 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: E2 0E 00 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: E2 0E 00 73 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E7 [14:36:55]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:36:55]wFMCommunicate OK [14:36:55]SAM_PROTO_GetShiftState done [14:36:55]FM_GetShiftState done [14:36:55]req_shift_opened done [14:36:55]requested_item shift.open_date is exist - process it [14:36:55]req_shift_open_date [14:36:55]req_shift_open_date done [14:36:55]produce_requested_data done [14:36:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187652,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:36:55]process_action_free close_receipt [14:36:55]json_value_free [14:36:55]json_value_free done [14:36:55]process_json_proto returns [14:36:55]Send response to host [14:36:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187652,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:36:55]free response buf [14:36:55]execute_script done [14:36:55]execute_script returns [14:36:55]free content buf [14:36:55]Sock 7.Close socket [14:36:55]Sock 7.Thread stoped [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:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:06]accept exits with 9 [14:41:06]New connection [14:41:06]New thread 3067624804 created [14:41:06]Thread 3067481444 joined [14:41:06]Waiting for new connection... [14:41:06] Sock 9.Parse request [14:41:06]Sock 9.Check first char [14:41:06]Sock 9.First char is OK [14:41:06]request: POST /json_proto HTTP/1.0 [14:41:06]Method: POST [14:41:06]URL: /json_proto [14:41:06]Method is POST - this is cgi request [14:41:06]url: /json_proto [14:41:06]query_string will be loaded in cgi processing [14:41:06]execute_cgi json_proto POST (null) [14:41:06]execute_cgi path=json_proto method=POST [14:41:06]POST find Content-Length [14:41:06]Host: 172.17.46.131:8080 [14:41:06]Content-Length: 677 [14:41:06]Content-Type: application/json [14:41:06] [14:41:06]POST finish read [14:41:06]Found Content-Length = 677 [14:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:06]execute_script... [14:41: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)412813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:06]POST & json_proto [14:41:06]process_json_proto [14:41:06]json parsed OK: [14:41:06]protocol is kg_v1.0 [14:41:06]action value=close_receipt [14:41:06]process_action close_receipt [14:41:06]cmd_close_receipt [14:41:06]MH_GetDate [14:41:06]Write to MH i2c: F0 00 00 74 09 6C [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: F0 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: F0 09 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: F0 09 00 74 09 00 82 90 B8 67 7E 41 4F 65 19 [14:41:06]GetLastDocTimeStamp 1740148611 [14:41:06]current date 1740148866 [14:41:06]FM_GetShiftState [14:41:06]SAM_PROTO_GetShiftState [14:41:06]wFMCommunicate request_size=4 [14:41:06]MH_SAM_APDU [14:41:06]CAPDU: 80 13 01 00 [14:41:06]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:06]Read from MH i2c: E2 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0E 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E9 [14:41:06]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:41:06]wFMCommunicate OK [14:41:06]SAM_PROTO_GetShiftState done [14:41:06]FM_GetShiftState done [14:41:06]opened in 1740098043 [14:41:06]opened+sec_in_day 1740184443 [14:41:06]quantity*price = 30045 [14:41:06]sum+1 = 30047 [14:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 147 21.02.2025 14:41 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187653 ФПД: 48829530904449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144106&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187653&fm=48829530904449&tin=02508201610067®Number=0000000000091857&sum=30000 [14:41:07]StoreToDocumentArchive [14:41:07]shift 649 fd 187653 [14:41:07]save to /storage/0649/doc_00187653 [14:41:07]save last doc name /storage/0649/doc_00187653 to /storage/kkm_last_doc_name [14:41:07]save OK [14:41:07]Clear old archive folders... [14:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:07]tlvbuf is 00BD3680 [14:41:07]SAM_PROTO_ClearQueue [14:41:07]wFMCommunicate request_size=4 [14:41:07]MH_SAM_APDU [14:41:07]CAPDU: 80 09 00 00 [14:41:07]Write to MH i2c: E2 08 00 82 09 80 09 00 00 00 00 00 00 FD [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 03 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 03 00 82 09 00 90 00 FF [14:41:07]RAPDU: 90 00 [14:41:07]wFMCommunicate OK [14:41:07]SAM_PROTO_ClearQueue done [14:41:07]KKMCreateOFDPacket [14:41:07]OFDProtocolAddRootSTLVToBuf [14:41:07]FM_MakeSignedData [14:41:07]FM_MakeSignedData [14:41:07]SAM_PROTO_SignData [14:41:07]wFMCommunicate request_size=4 [14:41:07]MH_SAM_APDU [14:41:07]CAPDU: 80 0D 01 02 [14:41:07]Write to MH i2c: E2 08 00 83 09 80 0D 01 02 00 00 00 00 05 [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 03 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 03 00 83 09 00 90 00 00 [14:41:07]RAPDU: 90 00 [14:41:07]wFMCommunicate OK [14:41:07]wFMCommunicate request_size=255 [14:41:07]MH_SAM_APDU [14:41:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 82 90 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DD 02 00 35 04 06 00 2C [14:41:07]Write to MH i2c: E2 02 01 84 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 82 90 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DD 02 00 35 04 06 00 2C 00 00 A2 [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 03 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [14:41:07]RAPDU: 90 00 [14:41:07]wFMCommunicate OK [14:41:07]wFMCommunicate request_size=10 [14:41:07]MH_SAM_APDU [14:41:07]CAPDU: 80 0D 02 02 05 69 02 D8 17 81 [14:41:07]Write to MH i2c: E2 0D 00 85 09 80 0D 02 02 05 00 69 02 D8 17 81 00 00 ED [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 03 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [14:41:07]RAPDU: 90 00 [14:41:07]wFMCommunicate OK [14:41:07]wFMCommunicate request_size=4 [14:41:07]MH_SAM_APDU [14:41:07]CAPDU: 80 0D 03 02 [14:41:07]Write to MH i2c: E2 08 00 86 09 80 0D 03 02 00 00 00 00 0A [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 0B 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 0B 00 86 09 00 9C 9B 6D 1A D3 69 15 7A 90 00 94 [14:41:07]RAPDU: 9C 9B 6D 1A D3 69 15 7A 90 00 [14:41:07]wFMCommunicate OK [14:41:07]SAM_PROTO_SignData done [14:41:07]FM_MakeSignedData done [14:41:07]CreateOFDProtocolMessage [14:41:07]wFMCommunicate request_size=4 [14:41:07]MH_SAM_APDU [14:41:07]CAPDU: 80 11 00 00 [14:41:07]Write to MH i2c: E2 08 00 87 09 80 11 00 00 00 00 00 00 0A [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 17 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 17 00 87 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5D [14:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:41:07]wFMCommunicate OK [14:41:07]CreateOFDProtocolMessage done [14:41:07]OFDSenderStorePacket 187653 [14:41:07]StoreOFDPacket docnum=187653 [14:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B6 30 07 01 32 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 82 90 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DD 02 00 35 04 06 00 2C 69 02 D8 17 81 9C 9B 6D 1A D3 69 15 7A [14:41:07]CheckFolder [14:41:07]dirname=/storage/ofd_packets [14:41:07]CheckFolder done [14:41:07]ProducePacketName [14:41:07]name=ofd_packets/00187653 [14:41:07]NVStorageSaveData ofd_packets/00187653 [14:41:07]File name is /storage/ofd_packets/00187653 [14:41:07]Write 301 bytes [14:41:07]NVStorageSaveData done [14:41:07]OFDSenderStorePacket done [14:41:07]KKMCreateOFDPacket done [14:41:07]NVStorageSaveData kkm_last_timestamp [14:41:07]File name is /storage/kkm_last_timestamp [14:41:07]Write 4 bytes [14:41:07]NVStorageSaveData done [14:41:07]ExternCall_PrintAddStr [14:41:07]wPrintStart [14:41:07]Write to MH i2c: 01 00 00 88 09 91 [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 07 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 07 00 88 09 00 00 00 00 00 FF 0F A6 [14:41:07]RasterBufferAndPrint [14:41:07]line Счет N : (1)412813 [14:41:07]line ИНН: 02508201610067 [14:41:07]line Контрольно-Кассовый Чек [14:41:07]line ПРОДАЖА [14:41:07]line ТРК (МРК, ГНК) : 32 [14:41:07]line Товар: 2710124130 [14:41:07]line Аи-92-К-2 [14:41:07]line 4.680 * 64.20 [14:41:07]line = 300.46 [14:41:07]line НДС 12% НСП 1% [14:41:07]line > о реализуемом товаре [14:41:07]line ОКРУГЛЕНИЕ: -0.46 [14:41:07]line ИТОГО: 300.00 [14:41:07]line Внесено: 300.00 [14:41:07]line СДАЧА: 0.00 [14:41:07]line НСП 1% : 2.66 [14:41:07]line НДС 12% : 31.91 [14:41:07]line Наличными: 300.00 [14:41:07]line Безнал.: 0.00 [14:41:07]line Место: АЗС № 92 "Партнер Нефть" [14:41:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:41:07]line СНО: Общий режим [14:41:07]line Чек 147 21.02.2025 14:41 [14:41:07]line Смена: 649 ФФД: 1.0 [14:41:07]line ЗНМ: 0300000118 [14:41:07]line РНМ: 0000000000091857 [14:41:07]line Версия ККМ: 001 [14:41:07]line ФМ: 0000000000871826 [14:41:07]line ФД: 187653 [14:41:07]line ФПД: 48829530904449 [14:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144106&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187653&fm=48829530904449&tin=02508201610067®Number=0000000000091857&sum=30000 [14:41:08]written 0, free lines is 4095 [14:41:08]OFD Sender: Processing packet 187653 [packets to send 49, broken 48] [14:41:08]ProducePacketName [14:41:08]name=ofd_packets/00187653 [14:41:08]OFD Sender: To server: pG, [14:41:08]CommunicateWithHost lk.salyk.kg:30040 [14:41:08]ConnectInit lk.salyk.kg [14:41:08]Connected sock=10 [14:41:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B6 30 07 01 32 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 82 90 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 05 DD 02 00 35 04 06 00 2C 69 02 D8 17 81 9C 9B 6D 1A D3 69 15 7A [14:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9F DA 47 00 7F 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 38 32 36 10 04 04 00 05 DD 02 00 F4 03 04 00 D0 36 B8 67 B6 04 01 00 00 3C 74 53 E2 3A 13 A7 91 [14:41:08]CommunicateWithHost err = 0 [14:41:08]CheckOFDResponse [14:41:08]1017 (14) - 77093643461234 [14:41:08]1041 (16) - 0000000000871826 [14:41:08]1040 (4) - 187653 [14:41:08]1012 (4) - 21.02.2025 08:18 [14:41:08]1206 (1) - 0 [14:41:08]OFD Sender: Remove packet 187653 [14:41:08]ProducePacketName [14:41:08]name=ofd_packets/00187653 [14:41:08]NVStorageDeleteData [14:41:08]Write to MH i2c: 01 00 00 B3 09 BC [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: 01 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: 01 07 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: 01 07 00 B3 09 00 00 00 00 00 F8 0C C7 [14:41:08]RasterBufferAndPrint [14:41:08]line [14:41:08]line [14:41:08]line [14:41:08]line [14:41:08]line [14:41:08]written 0, free lines is 3327 [14:41:08]MH_Cut [14:41:08]Write to MH i2c: D1 01 00 BA 09 01 95 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: D1 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: D1 01 00 [14:41:08]MH_I2C_Read... [14:41:08]Read from MH i2c: D1 01 00 BA 09 00 94 [14:41:08]Write to MH i2c: 01 00 00 BB 09 C4 [14:41:08]Write i2c OK [14:41:08]MH_I2C_Read... [14:41:09]OFD Sender: No OFD packet to send [14:41:09]*** Cut start [14:41:09]*** Partial cut [14:41:09]*** CUTSNS_PIN = 1 [14:41:09]*** CUTSNS_PIN = 0 [14:41:09]*** Brake cut motor [14:41:10]Read from MH i2c: 01 [14:41:10]MH_I2C_Read... [14:41:10]*** Stop cut motor [14:41:10]*** Cut end [14:41:10]Read from MH i2c: 01 07 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 07 00 BB 09 00 00 00 00 00 FF 0F D9 [14:41:10]process_action close_receipt done [14:41:10]requested_data is exist [14:41:10]produce_requested_data [14:41:10]requested_item fm.sn is exist - process it [14:41:10]wFMCommunicate request_size=4 [14:41:10]MH_SAM_APDU [14:41:10]CAPDU: 80 11 00 00 [14:41:10]Write to MH i2c: E2 08 00 BC 09 80 11 00 00 00 00 00 00 3F [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:10]Read from MH i2c: E2 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 17 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 17 00 BC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [14:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:41:10]wFMCommunicate OK [14:41:10]requested_item fd.num is exist - process it [14:41:10]SAM_PROTO_GetFieldsCounters [14:41:10]wFMCommunicate request_size=4 [14:41:10]MH_SAM_APDU [14:41:10]CAPDU: 80 13 00 00 [14:41:10]Write to MH i2c: E2 08 00 BD 09 80 13 00 00 00 00 00 00 42 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:10]Read from MH i2c: E2 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 62 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 62 00 BD 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 05 DD 02 00 0E 04 04 00 89 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 90 [14:41:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 05 DD 02 00 0E 04 04 00 89 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 [14:41:10]wFMCommunicate OK [14:41:10]SAM_PROTO_GetFieldsCounters done [14:41:10]requested_item shift.num is exist - process it [14:41:10]requested_item shift.opened is exist - process it [14:41:10]req_shift_opened [14:41:10]FM_GetShiftState [14:41:10]SAM_PROTO_GetShiftState [14:41:10]wFMCommunicate request_size=4 [14:41:10]MH_SAM_APDU [14:41:10]CAPDU: 80 13 01 00 [14:41:10]Write to MH i2c: E2 08 00 BE 09 80 13 01 00 00 00 00 00 44 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:10]Read from MH i2c: E2 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 0E 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: E2 0E 00 BE 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 32 [14:41:10]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:41:10]wFMCommunicate OK [14:41:10]SAM_PROTO_GetShiftState done [14:41:10]FM_GetShiftState done [14:41:10]req_shift_opened done [14:41:10]requested_item shift.open_date is exist - process it [14:41:10]req_shift_open_date [14:41:10]req_shift_open_date done [14:41:10]produce_requested_data done [14:41:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187653,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:41:10]process_action_free close_receipt [14:41:10]json_value_free [14:41:10]json_value_free done [14:41:10]process_json_proto returns [14:41:10]Send response to host [14:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187653,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:41:10]free response buf [14:41:10]execute_script done [14:41:10]execute_script returns [14:41:10]free content buf [14:41:10]Sock 9.Close socket [14:41:10]Sock 9.Thread stoped [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:15]accept exits with 7 [14:42:15]New connection [14:42:15]New thread 3067481444 created [14:42:15]Thread 3067624804 joined [14:42:15]Waiting for new connection... [14:42:15] Sock 7.Parse request [14:42:15]Sock 7.Check first char [14:42:15]Sock 7.First char is OK [14:42:15]request: POST /json_proto HTTP/1.0 [14:42:15]Method: POST [14:42:15]URL: /json_proto [14:42:15]Method is POST - this is cgi request [14:42:15]url: /json_proto [14:42:15]query_string will be loaded in cgi processing [14:42:15]execute_cgi json_proto POST (null) [14:42:15]execute_cgi path=json_proto method=POST [14:42:15]POST find Content-Length [14:42:15]Host: 172.17.46.131:8080 [14:42:15]Content-Length: 678 [14:42:15]Content-Type: application/json [14:42:15] [14:42:15]POST finish read [14:42:15]Found Content-Length = 678 [14:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:15]execute_script... [14:42: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)412814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:15]POST & json_proto [14:42:15]process_json_proto [14:42:15]json parsed OK: [14:42:15]protocol is kg_v1.0 [14:42:15]action value=close_receipt [14:42:15]process_action close_receipt [14:42:15]cmd_close_receipt [14:42:15]MH_GetDate [14:42:15]Write to MH i2c: F0 00 00 BF 09 B7 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: F0 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: F0 09 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: F0 09 00 BF 09 00 C8 90 B8 67 7E 41 4F 65 AA [14:42:15]GetLastDocTimeStamp 1740148866 [14:42:15]current date 1740148936 [14:42:15]FM_GetShiftState [14:42:15]SAM_PROTO_GetShiftState [14:42:15]wFMCommunicate request_size=4 [14:42:15]MH_SAM_APDU [14:42:15]CAPDU: 80 13 01 00 [14:42:15]Write to MH i2c: E2 08 00 C0 09 80 13 01 00 00 00 00 00 46 [14:42:15]Write i2c OK [14:42:15]MH_I2C_Read... [14:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:15]Read from MH i2c: E2 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0E 00 [14:42:15]MH_I2C_Read... [14:42:15]Read from MH i2c: E2 0E 00 C0 09 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 34 [14:42:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:42:15]wFMCommunicate OK [14:42:15]SAM_PROTO_GetShiftState done [14:42:15]FM_GetShiftState done [14:42:15]opened in 1740098043 [14:42:15]opened+sec_in_day 1740184443 [14:42:15]quantity*price = 100042 [14:42:15]sum+1 = 100044 [14:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 148 21.02.2025 14:42 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187654 ФПД: 140727390565428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144216&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187654&fm=140727390565428&tin=02508201610067®Number=0000000000091857&sum=100000 [14:42:16]StoreToDocumentArchive [14:42:16]shift 649 fd 187654 [14:42:16]save to /storage/0649/doc_00187654 [14:42:16]save last doc name /storage/0649/doc_00187654 to /storage/kkm_last_doc_name [14:42:16]save OK [14:42:16]Clear old archive folders... [14:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:42:16]tlvbuf is 00C07B20 [14:42:16]SAM_PROTO_ClearQueue [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 09 00 00 [14:42:16]Write to MH i2c: E2 08 00 CD 09 80 09 00 00 00 00 00 00 48 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]SAM_PROTO_ClearQueue done [14:42:16]KKMCreateOFDPacket [14:42:16]OFDProtocolAddRootSTLVToBuf [14:42:16]FM_MakeSignedData [14:42:16]FM_MakeSignedData [14:42:16]SAM_PROTO_SignData [14:42:16]wFMCommunicate request_size=4 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 0D 01 02 [14:42:16]Write to MH i2c: E2 08 00 CE 09 80 0D 01 02 00 00 00 00 50 [14:42:16]Write i2c OK [14:42:16]MH_I2C_Read... [14:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:16]Read from MH i2c: E2 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 [14:42:16]MH_I2C_Read... [14:42:16]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [14:42:16]RAPDU: 90 00 [14:42:16]wFMCommunicate OK [14:42:16]wFMCommunicate request_size=255 [14:42:16]MH_SAM_APDU [14:42:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C8 90 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DD 02 00 35 04 06 00 7F FD A6 1F [14:42:16]Write to MH i2c: E2 02 01 CF 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C8 90 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DD 02 00 35 04 06 00 7F FD A6 1F 00 00 B0 [14:42:16]Write i2c OK [14:42:16]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 CF 09 00 90 00 4C [14:42:17]RAPDU: 90 00 [14:42:17]wFMCommunicate OK [14:42:17]wFMCommunicate request_size=7 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 0D 02 02 02 F4 34 [14:42:17]Write to MH i2c: E2 0A 00 D0 09 80 0D 02 02 02 00 F4 34 00 00 7F [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 D0 09 00 90 00 4D [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 D1 09 80 0D 03 02 00 00 00 00 55 [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:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0B 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 0B 00 D1 09 00 FF EE AC 31 2B 3E 81 30 90 00 3A [14:42:17]RAPDU: FF EE AC 31 2B 3E 81 30 90 00 [14:42:17]wFMCommunicate OK [14:42:17]SAM_PROTO_SignData done [14:42:17]FM_MakeSignedData done [14:42:17]CreateOFDProtocolMessage [14:42:17]wFMCommunicate request_size=4 [14:42:17]MH_SAM_APDU [14:42:17]CAPDU: 80 11 00 00 [14:42:17]Write to MH i2c: E2 08 00 D2 09 80 11 00 00 00 00 00 00 55 [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:17]Read from MH i2c: E2 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 17 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: E2 17 00 D2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A8 [14:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:42:17]wFMCommunicate OK [14:42:17]CreateOFDProtocolMessage done [14:42:17]OFDSenderStorePacket 187654 [14:42:17]StoreOFDPacket docnum=187654 [14:42:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0F 43 04 01 77 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C8 90 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DD 02 00 35 04 06 00 7F FD A6 1F F4 34 FF EE AC 31 2B 3E 81 30 [14:42:17]CheckFolder [14:42:17]dirname=/storage/ofd_packets [14:42:17]CheckFolder done [14:42:17]ProducePacketName [14:42:17]name=ofd_packets/00187654 [14:42:17]NVStorageSaveData ofd_packets/00187654 [14:42:17]File name is /storage/ofd_packets/00187654 [14:42:17]Write 298 bytes [14:42:17]NVStorageSaveData done [14:42:17]OFDSenderStorePacket done [14:42:17]KKMCreateOFDPacket done [14:42:17]NVStorageSaveData kkm_last_timestamp [14:42:17]File name is /storage/kkm_last_timestamp [14:42:17]Write 4 bytes [14:42:17]NVStorageSaveData done [14:42:17]ExternCall_PrintAddStr [14:42:17]wPrintStart [14:42:17]Write to MH i2c: 01 00 00 D3 09 DC [14:42:17]Write i2c OK [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 [14:42:17]MH_I2C_Read... [14:42:17]Read from MH i2c: 01 07 00 D3 09 00 00 00 00 00 FF 0F F1 [14:42:17]RasterBufferAndPrint [14:42:17]line Счет N : (1)412814 [14:42:17]line ИНН: 02508201610067 [14:42:17]line Контрольно-Кассовый Чек [14:42:17]line ПРОДАЖА [14:42:17]line ТРК (МРК, ГНК) : 5 [14:42:17]line Товар: 2710194210 [14:42:17]line ДТ-К-5 [14:42:17]line 13.780 * 72.60 [14:42:17]line = 1000.43 [14:42:17]line НДС 12% НСП 1% [14:42:17]line > о реализуемом товаре [14:42:17]line ОКРУГЛЕНИЕ: -0.43 [14:42:17]line ИТОГО: 1000.00 [14:42:17]line Внесено: 1000.00 [14:42:17]line СДАЧА: 0.00 [14:42:17]line НСП 1% : 8.85 [14:42:17]line НДС 12% : 106.24 [14:42:17]line Наличными: 1000.00 [14:42:17]line Безнал.: 0.00 [14:42:17]line Место: АЗС № 92 "Партнер Нефть" [14:42:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:42:17]line СНО: Общий режим [14:42:17]line Чек 148 21.02.2025 14:42 [14:42:17]line Смена: 649 ФФД: 1.0 [14:42:17]line ЗНМ: 0300000118 [14:42:17]line РНМ: 0000000000091857 [14:42:17]line Версия ККМ: 001 [14:42:17]line ФМ: 0000000000871826 [14:42:17]line ФД: 187654 [14:42:17]line ФПД: 140727390565428 [14:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144216&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187654&fm=140727390565428&tin=02508201610067®Number=0000000000091857&sum=100000 [14:42:17]OFD Sender: Processing packet 187654 [packets to send 49, broken 48] [14:42:17]ProducePacketName [14:42:17]name=ofd_packets/00187654 [14:42:17]OFD Sender: To server: pG, [14:42:17]CommunicateWithHost lk.salyk.kg:30040 [14:42:17]ConnectInit lk.salyk.kg [14:42:17]written 0, free lines is 4095 [14:42:17]Connected sock=10 [14:42:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0F 43 04 01 77 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 C8 90 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DD 02 00 35 04 06 00 7F FD A6 1F F4 34 FF EE AC 31 2B 3E 81 30 [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 38 32 36 4F 00 00 00 0E 5A 47 00 87 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DD 02 00 F4 03 04 00 15 37 B8 67 B6 04 01 00 00 8B B8 72 C5 5C 79 D0 64 [14:42:18]CommunicateWithHost err = 0 [14:42:18]CheckOFDResponse [14:42:18]1017 (14) - 77093643461234 [14:42:18]1041 (16) - 0000000000871826 [14:42:18]1040 (4) - 187654 [14:42:18]1012 (4) - 21.02.2025 08:19 [14:42:18]1206 (1) - 0 [14:42:18]OFD Sender: Remove packet 187654 [14:42:18]ProducePacketName [14:42:18]name=ofd_packets/00187654 [14:42:18]NVStorageDeleteData [14:42:18]Write to MH i2c: 01 00 00 FE 09 07 [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 FE 09 00 00 00 00 00 FF 0C 19 [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 3333 [14:42:18]MH_Cut [14:42:18]Write to MH i2c: D1 01 00 05 0A 01 E1 [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 05 0A 00 E0 [14:42:18]Write to MH i2c: 01 00 00 06 0A 10 [14:42:18]Write i2c OK [14:42:18]MH_I2C_Read... [14:42:18]OFD Sender: No OFD packet to send [14:42:18]*** Cut start [14:42:18]*** Partial cut [14:42:18]*** CUTSNS_PIN = 1 [14:42:18]*** 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 06 0A 00 00 00 00 00 FF 0F 25 [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 07 0A 80 11 00 00 00 00 00 00 8B [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 17 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 17 00 07 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DE [14:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:42:19]wFMCommunicate OK [14:42:19]requested_item fd.num is exist - process it [14:42:19]SAM_PROTO_GetFieldsCounters [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 13 00 00 [14:42:19]Write to MH i2c: E2 08 00 08 0A 80 13 00 00 00 00 00 00 8E [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 62 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 62 00 08 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 06 DD 02 00 0E 04 04 00 89 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 E0 [14:42:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 06 DD 02 00 0E 04 04 00 89 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 [14:42:19]wFMCommunicate OK [14:42:19]SAM_PROTO_GetFieldsCounters done [14:42:19]requested_item shift.num is exist - process it [14:42:19]requested_item shift.opened is exist - process it [14:42:19]req_shift_opened [14:42:19]FM_GetShiftState [14:42:19]SAM_PROTO_GetShiftState [14:42:19]wFMCommunicate request_size=4 [14:42:19]MH_SAM_APDU [14:42:19]CAPDU: 80 13 01 00 [14:42:19]Write to MH i2c: E2 08 00 09 0A 80 13 01 00 00 00 00 00 90 [14:42:19]Write i2c OK [14:42:19]MH_I2C_Read... [14:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:19]Read from MH i2c: E2 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0E 00 [14:42:19]MH_I2C_Read... [14:42:19]Read from MH i2c: E2 0E 00 09 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7E [14:42:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:42:19]wFMCommunicate OK [14:42:19]SAM_PROTO_GetShiftState done [14:42:19]FM_GetShiftState done [14:42:19]req_shift_opened done [14:42:19]requested_item shift.open_date is exist - process it [14:42:19]req_shift_open_date [14:42:19]req_shift_open_date done [14:42:19]produce_requested_data done [14:42:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187654,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:42:19]process_action_free close_receipt [14:42:19]json_value_free [14:42:19]json_value_free done [14:42:19]process_json_proto returns [14:42:19]Send response to host [14:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187654,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:42:19]free response buf [14:42:19]execute_script done [14:42:19]execute_script returns [14:42:19]free content buf [14:42:19]Sock 7.Close socket [14:42:19]Sock 7.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:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:43]accept exits with 9 [14:43:43]New connection [14:43:43]New thread 3067624804 created [14:43:43]Thread 3067481444 joined [14:43:43]Waiting for new connection... [14:43:43] Sock 9.Parse request [14:43:43]Sock 9.Check first char [14:43:43]Sock 9.First char is OK [14:43:43]request: POST /json_proto HTTP/1.0 [14:43:43]Method: POST [14:43:43]URL: /json_proto [14:43:43]Method is POST - this is cgi request [14:43:43]url: /json_proto [14:43:43]query_string will be loaded in cgi processing [14:43:43]execute_cgi json_proto POST (null) [14:43:43]execute_cgi path=json_proto method=POST [14:43:43]POST find Content-Length [14:43:43]Host: 172.17.46.131:8080 [14:43:43]Content-Length: 801 [14:43:43]Content-Type: application/json [14:43:43] [14:43:43]POST finish read [14:43:43]Found Content-Length = 801 [14:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:43]execute_script... [14:43: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)412815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:43]POST & json_proto [14:43:43]process_json_proto [14:43:43]json parsed OK: [14:43:43]protocol is kg_v1.0 [14:43:43]action value=close_receipt [14:43:43]process_action close_receipt [14:43:43]cmd_close_receipt [14:43:43]MH_GetDate [14:43:43]Write to MH i2c: F0 00 00 0A 0A 03 [14:43:43]Write i2c OK [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: F0 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: F0 09 00 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: F0 09 00 0A 0A 00 20 91 B8 67 7E 41 4F 65 4F [14:43:43]GetLastDocTimeStamp 1740148936 [14:43:43]current date 1740149024 [14:43:43]FM_GetShiftState [14:43:43]SAM_PROTO_GetShiftState [14:43:43]wFMCommunicate request_size=4 [14:43:43]MH_SAM_APDU [14:43:43]CAPDU: 80 13 01 00 [14:43:43]Write to MH i2c: E2 08 00 0B 0A 80 13 01 00 00 00 00 00 92 [14:43:43]Write i2c OK [14:43:43]MH_I2C_Read... [14:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:43]Read from MH i2c: E2 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 0E 00 [14:43:43]MH_I2C_Read... [14:43:43]Read from MH i2c: E2 0E 00 0B 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 80 [14:43:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:43:43]wFMCommunicate OK [14:43:43]SAM_PROTO_GetShiftState done [14:43:43]FM_GetShiftState done [14:43:43]opened in 1740098043 [14:43:43]opened+sec_in_day 1740184443 [14:43:43]quantity*price = 70042 [14:43:43]sum+1 = 70043 [14:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.42 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 149 21.02.2025 14:43 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187655 ФПД: 175337369295781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144344&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187655&fm=175337369295781&tin=02508201610067®Number=0000000000091857&sum=70042 [14:43:44]StoreToDocumentArchive [14:43:44]shift 649 fd 187655 [14:43:44]save to /storage/0649/doc_00187655 [14:43:44]save last doc name /storage/0649/doc_00187655 to /storage/kkm_last_doc_name [14:43:44]save OK [14:43:44]Clear old archive folders... [14:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:45]tlvbuf is 00BD36A0 [14:43:45]SAM_PROTO_ClearQueue [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 09 00 00 [14:43:45]Write to MH i2c: E2 08 00 18 0A 80 09 00 00 00 00 00 00 94 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 18 0A 00 90 00 96 [14:43:45]RAPDU: 90 00 [14:43:45]wFMCommunicate OK [14:43:45]SAM_PROTO_ClearQueue done [14:43:45]KKMCreateOFDPacket [14:43:45]OFDProtocolAddRootSTLVToBuf [14:43:45]FM_MakeSignedData [14:43:45]FM_MakeSignedData [14:43:45]SAM_PROTO_SignData [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 0D 01 02 [14:43:45]Write to MH i2c: E2 08 00 19 0A 80 0D 01 02 00 00 00 00 9C [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 19 0A 00 90 00 97 [14:43:45]RAPDU: 90 00 [14:43:45]wFMCommunicate OK [14:43:45]wFMCommunicate request_size=255 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 20 91 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DD 02 00 35 04 06 00 9F [14:43:45]Write to MH i2c: E2 02 01 1A 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 20 91 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DD 02 00 35 04 06 00 9F 00 00 AF [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [14:43:45]RAPDU: 90 00 [14:43:45]wFMCommunicate OK [14:43:45]wFMCommunicate request_size=10 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 0D 02 02 05 77 E9 9C DB A5 [14:43:45]Write to MH i2c: E2 0D 00 1B 0A 80 0D 02 02 05 00 77 E9 9C DB A5 00 00 25 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [14:43:45]RAPDU: 90 00 [14:43:45]wFMCommunicate OK [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 0D 03 02 [14:43:45]Write to MH i2c: E2 08 00 1C 0A 80 0D 03 02 00 00 00 00 A1 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 0B 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 0B 00 1C 0A 00 F1 2B 15 A6 22 24 94 EC 90 00 3F [14:43:45]RAPDU: F1 2B 15 A6 22 24 94 EC 90 00 [14:43:45]wFMCommunicate OK [14:43:45]SAM_PROTO_SignData done [14:43:45]FM_MakeSignedData done [14:43:45]CreateOFDProtocolMessage [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 11 00 00 [14:43:45]Write to MH i2c: E2 08 00 1D 0A 80 11 00 00 00 00 00 00 A1 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 17 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 17 00 1D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F4 [14:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:43:45]wFMCommunicate OK [14:43:45]CreateOFDProtocolMessage done [14:43:45]OFDSenderStorePacket 187655 [14:43:45]StoreOFDPacket docnum=187655 [14:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D6 D8 07 01 73 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 20 91 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DD 02 00 35 04 06 00 9F 77 E9 9C DB A5 F1 2B 15 A6 22 24 94 EC [14:43:45]CheckFolder [14:43:45]dirname=/storage/ofd_packets [14:43:45]CheckFolder done [14:43:45]ProducePacketName [14:43:45]name=ofd_packets/00187655 [14:43:45]NVStorageSaveData ofd_packets/00187655 [14:43:45]File name is /storage/ofd_packets/00187655 [14:43:45]Write 301 bytes [14:43:45]NVStorageSaveData done [14:43:45]OFDSenderStorePacket done [14:43:45]KKMCreateOFDPacket done [14:43:45]NVStorageSaveData kkm_last_timestamp [14:43:45]File name is /storage/kkm_last_timestamp [14:43:45]Write 4 bytes [14:43:45]NVStorageSaveData done [14:43:45]ExternCall_PrintAddStr [14:43:45]wPrintStart [14:43:45]Write to MH i2c: 01 00 00 1E 0A 28 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: 01 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: 01 07 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: 01 07 00 1E 0A 00 00 00 00 00 FF 0F 3D [14:43:45]RasterBufferAndPrint [14:43:45]line Счет N : (1)412815 [14:43:45]line ИНН: 02508201610067 [14:43:45]line Контрольно-Кассовый Чек [14:43:45]line ПРОДАЖА [14:43:45]line ТРК (МРК, ГНК) : 22 [14:43:45]line Товар: 2710124130 [14:43:45]line Аи-92-К-2 [14:43:45]line 10.910 * 64.20 [14:43:45]line = 700.42 [14:43:45]line НДС 12% НСП 1% [14:43:45]line > о реализуемом товаре [14:43:45]line ИТОГО: 700.42 [14:43:45]line НСП 1% : 6.20 [14:43:45]line НДС 12% : 74.38 [14:43:45]line Наличными: 0.00 [14:43:45]line Безнал.: 700.42 [14:43:45]line Место: АЗС № 92 "Партнер Нефть" [14:43:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:43:45]line СНО: Общий режим [14:43:45]line Чек 149 21.02.2025 14:43 [14:43:45]line Смена: 649 ФФД: 1.0 [14:43:45]line ЗНМ: 0300000118 [14:43:45]line РНМ: 0000000000091857 [14:43:45]line Версия ККМ: 001 [14:43:45]line Платежная система: O! деньги [14:43:45]line ФМ: 0000000000871826 [14:43:45]line ФД: 187655 [14:43:45]line ФПД: 175337369295781 [14:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144344&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187655&fm=175337369295781&tin=02508201610067®Number=0000000000091857&sum=70042 [14:43:45]written 0, free lines is 4095 [14:43:45]OFD Sender: Processing packet 187655 [packets to send 49, broken 48] [14:43:45]ProducePacketName [14:43:45]name=ofd_packets/00187655 [14:43:45]OFD Sender: To server: pG, [14:43:45]CommunicateWithHost lk.salyk.kg:30040 [14:43:45]ConnectInit lk.salyk.kg [14:43:45]Connected sock=11 [14:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D6 D8 07 01 73 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 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 20 91 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DD 02 00 35 04 06 00 9F 77 E9 9C DB A5 F1 2B 15 A6 22 24 94 EC [14:43:45]Write to MH i2c: 01 00 00 48 0A 52 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: 01 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: 01 07 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: 01 07 00 48 0A 00 00 00 00 00 05 0D 6B [14:43:45]RasterBufferAndPrint [14:43:45]line [14:43:45]line [14:43:45]line [14:43:45]line [14:43:45]line [14:43:45]written 0, free lines is 3340 [14:43:46]MH_Cut [14:43:46]Write to MH i2c: D1 01 00 4F 0A 01 2B [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: D1 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: D1 01 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: D1 01 00 4F 0A 00 2A [14:43:46]Write to MH i2c: 01 00 00 50 0A 5A [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 63 0B 47 00 69 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 DD 02 00 F4 03 04 00 6D 37 B8 67 B6 04 01 00 00 3D E8 B0 3F C4 6C E7 4F [14:43:46]CommunicateWithHost err = 0 [14:43:46]CheckOFDResponse [14:43:46]1017 (14) - 77093643461234 [14:43:46]1041 (16) - 0000000000871826 [14:43:46]1040 (4) - 187655 [14:43:46]1012 (4) - 21.02.2025 08:21 [14:43:46]1206 (1) - 0 [14:43:46]OFD Sender: Remove packet 187655 [14:43:46]ProducePacketName [14:43:46]name=ofd_packets/00187655 [14:43:46]NVStorageDeleteData [14:43:46]OFD Sender: No OFD packet to send [14:43:46]*** Cut start [14:43:46]*** Partial cut [14:43:46]*** CUTSNS_PIN = 1 [14:43:46]*** CUTSNS_PIN = 0 [14:43:47]*** Brake cut motor [14:43:47]Read from MH i2c: 01 [14:43:47]MH_I2C_Read... [14:43:47]*** Stop cut motor [14:43:47]*** Cut end [14:43:47]Read from MH i2c: 01 07 00 [14:43:47]MH_I2C_Read... [14:43:47]Read from MH i2c: 01 07 00 50 0A 00 00 00 00 00 FF 0F 6F [14:43:47]process_action close_receipt done [14:43:47]requested_data is exist [14:43:47]produce_requested_data [14:43:47]requested_item fm.sn is exist - process it [14:43:47]wFMCommunicate request_size=4 [14:43:47]MH_SAM_APDU [14:43:47]CAPDU: 80 11 00 00 [14:43:47]Write to MH i2c: E2 08 00 51 0A 80 11 00 00 00 00 00 00 D5 [14:43:47]Write i2c OK [14:43:47]MH_I2C_Read... [14:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:47]Read from MH i2c: E2 [14:43:47]MH_I2C_Read... [14:43:47]Read from MH i2c: E2 17 00 [14:43:47]MH_I2C_Read... [14:43:47]Read from MH i2c: E2 17 00 51 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 28 [14:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:43:47]wFMCommunicate OK [14:43:47]requested_item fd.num is exist - process it [14:43:47]SAM_PROTO_GetFieldsCounters [14:43:47]wFMCommunicate request_size=4 [14:43:47]MH_SAM_APDU [14:43:47]CAPDU: 80 13 00 00 [14:43:47]Write to MH i2c: E2 08 00 52 0A 80 13 00 00 00 00 00 00 D8 [14:43:47]Write i2c OK [14:43:47]MH_I2C_Read... [14:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:47]Read from MH i2c: E2 [14:43:47]MH_I2C_Read... [14:43:47]Read from MH i2c: E2 62 00 [14:43:47]MH_I2C_Read... [14:43:47]Read from MH i2c: E2 62 00 52 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 07 DD 02 00 0E 04 04 00 89 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 2E [14:43:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 07 DD 02 00 0E 04 04 00 89 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 [14:43:47]wFMCommunicate OK [14:43:47]SAM_PROTO_GetFieldsCounters done [14:43:47]requested_item shift.num is exist - process it [14:43:47]requested_item shift.opened is exist - process it [14:43:47]req_shift_opened [14:43:47]FM_GetShiftState [14:43:47]SAM_PROTO_GetShiftState [14:43:47]wFMCommunicate request_size=4 [14:43:47]MH_SAM_APDU [14:43:47]CAPDU: 80 13 01 00 [14:43:47]Write to MH i2c: E2 08 00 53 0A 80 13 01 00 00 00 00 00 DA [14:43:47]Write i2c OK [14:43:47]MH_I2C_Read... [14:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:47]Read from MH i2c: E2 [14:43:47]MH_I2C_Read... [14:43:47]Read from MH i2c: E2 0E 00 [14:43:47]MH_I2C_Read... [14:43:47]Read from MH i2c: E2 0E 00 53 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C8 [14:43:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:43:47]wFMCommunicate OK [14:43:47]SAM_PROTO_GetShiftState done [14:43:47]FM_GetShiftState done [14:43:47]req_shift_opened done [14:43:47]requested_item shift.open_date is exist - process it [14:43:47]req_shift_open_date [14:43:47]req_shift_open_date done [14:43:47]produce_requested_data done [14:43:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187655,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:43:47]process_action_free close_receipt [14:43:47]json_value_free [14:43:47]json_value_free done [14:43:47]process_json_proto returns [14:43:47]Send response to host [14:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187655,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:43:47]free response buf [14:43:47]execute_script done [14:43:47]execute_script returns [14:43:47]free content buf [14:43:47]Sock 9.Close socket [14:43:47]Sock 9.Thread stoped [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:03]accept exits with 7 [14:44:03]New connection [14:44:03]New thread 3067481444 created [14:44:03]Thread 3067624804 joined [14:44:03]Waiting for new connection... [14:44:03] Sock 7.Parse request [14:44:03]Sock 7.Check first char [14:44:03]Sock 7.First char is OK [14:44:03]request: POST /json_proto HTTP/1.0 [14:44:03]Method: POST [14:44:03]URL: /json_proto [14:44:03]Method is POST - this is cgi request [14:44:03]url: /json_proto [14:44:03]query_string will be loaded in cgi processing [14:44:03]execute_cgi json_proto POST (null) [14:44:03]execute_cgi path=json_proto method=POST [14:44:03]POST find Content-Length [14:44:03]Host: 172.17.46.131:8080 [14:44:03]Content-Length: 678 [14:44:03]Content-Type: application/json [14:44:03] [14:44:03]POST finish read [14:44:03]Found Content-Length = 678 [14:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:03]execute_script... [14:44: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)412816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:03]POST & json_proto [14:44:03]process_json_proto [14:44:03]json parsed OK: [14:44:03]protocol is kg_v1.0 [14:44:03]action value=close_receipt [14:44:03]process_action close_receipt [14:44:03]cmd_close_receipt [14:44:03]MH_GetDate [14:44:03]Write to MH i2c: F0 00 00 54 0A 4D [14:44:03]Write i2c OK [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: F0 [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: F0 09 00 [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: F0 09 00 54 0A 00 33 91 B8 67 7E 41 4F 65 AC [14:44:03]GetLastDocTimeStamp 1740149024 [14:44:03]current date 1740149043 [14:44:03]FM_GetShiftState [14:44:03]SAM_PROTO_GetShiftState [14:44:03]wFMCommunicate request_size=4 [14:44:03]MH_SAM_APDU [14:44:03]CAPDU: 80 13 01 00 [14:44:03]Write to MH i2c: E2 08 00 55 0A 80 13 01 00 00 00 00 00 DC [14:44:03]Write i2c OK [14:44:03]MH_I2C_Read... [14:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:03]Read from MH i2c: E2 [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: E2 0E 00 [14:44:03]MH_I2C_Read... [14:44:03]Read from MH i2c: E2 0E 00 55 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 CA [14:44:03]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:44:03]wFMCommunicate OK [14:44:03]SAM_PROTO_GetShiftState done [14:44:03]FM_GetShiftState done [14:44:03]opened in 1740098043 [14:44:03]opened+sec_in_day 1740184443 [14:44:03]quantity*price = 100042 [14:44:03]sum+1 = 100044 [14:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 150 21.02.2025 14:44 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187656 ФПД: 214822980221654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144403&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187656&fm=214822980221654&tin=02508201610067®Number=0000000000091857&sum=100000 [14:44:04]StoreToDocumentArchive [14:44:04]shift 649 fd 187656 [14:44:04]save to /storage/0649/doc_00187656 [14:44:04]save last doc name /storage/0649/doc_00187656 to /storage/kkm_last_doc_name [14:44:04]save OK [14:44:04]Clear old archive folders... [14:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:44:04]tlvbuf is 00BD8690 [14:44:04]SAM_PROTO_ClearQueue [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 09 00 00 [14:44:04]Write to MH i2c: E2 08 00 62 0A 80 09 00 00 00 00 00 00 DE [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 62 0A 00 90 00 E0 [14:44:04]RAPDU: 90 00 [14:44:04]wFMCommunicate OK [14:44:04]SAM_PROTO_ClearQueue done [14:44:04]KKMCreateOFDPacket [14:44:04]OFDProtocolAddRootSTLVToBuf [14:44:04]FM_MakeSignedData [14:44:04]FM_MakeSignedData [14:44:04]SAM_PROTO_SignData [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 0D 01 02 [14:44:04]Write to MH i2c: E2 08 00 63 0A 80 0D 01 02 00 00 00 00 E6 [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 63 0A 00 90 00 E1 [14:44:04]RAPDU: 90 00 [14:44:04]wFMCommunicate OK [14:44:04]wFMCommunicate request_size=255 [14:44:04]MH_SAM_APDU [14:44: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 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 33 91 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DD 02 00 35 04 06 00 C3 61 5F 6C [14:44:04]Write to MH i2c: E2 02 01 64 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 33 91 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DD 02 00 35 04 06 00 C3 61 5F 6C 00 00 64 [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [14:44:04]RAPDU: 90 00 [14:44:04]wFMCommunicate OK [14:44:04]wFMCommunicate request_size=7 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 0D 02 02 02 FA D6 [14:44:04]Write to MH i2c: E2 0A 00 65 0A 80 0D 02 02 02 00 FA D6 00 00 BD [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [14:44:04]RAPDU: 90 00 [14:44:04]wFMCommunicate OK [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 0D 03 02 [14:44:04]Write to MH i2c: E2 08 00 66 0A 80 0D 03 02 00 00 00 00 EB [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 0B 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 0B 00 66 0A 00 D0 6E 73 26 1B EF A2 EB 90 00 5A [14:44:04]RAPDU: D0 6E 73 26 1B EF A2 EB 90 00 [14:44:04]wFMCommunicate OK [14:44:04]SAM_PROTO_SignData done [14:44:04]FM_MakeSignedData done [14:44:04]CreateOFDProtocolMessage [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 11 00 00 [14:44:04]Write to MH i2c: E2 08 00 67 0A 80 11 00 00 00 00 00 00 EB [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:05]Read from MH i2c: E2 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 17 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: E2 17 00 67 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [14:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:44:05]wFMCommunicate OK [14:44:05]CreateOFDProtocolMessage done [14:44:05]OFDSenderStorePacket 187656 [14:44:05]StoreOFDPacket docnum=187656 [14:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 27 02 04 01 A8 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 33 91 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DD 02 00 35 04 06 00 C3 61 5F 6C FA D6 D0 6E 73 26 1B EF A2 EB [14:44:05]CheckFolder [14:44:05]dirname=/storage/ofd_packets [14:44:05]CheckFolder done [14:44:05]ProducePacketName [14:44:05]name=ofd_packets/00187656 [14:44:05]NVStorageSaveData ofd_packets/00187656 [14:44:05]File name is /storage/ofd_packets/00187656 [14:44:05]Write 298 bytes [14:44:05]NVStorageSaveData done [14:44:05]OFDSenderStorePacket done [14:44:05]KKMCreateOFDPacket done [14:44:05]NVStorageSaveData kkm_last_timestamp [14:44:05]File name is /storage/kkm_last_timestamp [14:44:05]Write 4 bytes [14:44:05]NVStorageSaveData done [14:44:05]ExternCall_PrintAddStr [14:44:05]wPrintStart [14:44:05]Write to MH i2c: 01 00 00 68 0A 72 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 07 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 FF 0F 87 [14:44:05]RasterBufferAndPrint [14:44:05]line Счет N : (1)412816 [14:44:05]line ИНН: 02508201610067 [14:44:05]line Контрольно-Кассовый Чек [14:44:05]line ПРОДАЖА [14:44:05]line ТРК (МРК, ГНК) : 6 [14:44:05]line Товар: 2710194210 [14:44:05]line ДТ-К-5 [14:44:05]line 13.780 * 72.60 [14:44:05]line = 1000.43 [14:44:05]line НДС 12% НСП 1% [14:44:05]line > о реализуемом товаре [14:44:05]line ОКРУГЛЕНИЕ: -0.43 [14:44:05]line ИТОГО: 1000.00 [14:44:05]line Внесено: 1000.00 [14:44:05]line СДАЧА: 0.00 [14:44:05]line НСП 1% : 8.85 [14:44:05]line НДС 12% : 106.24 [14:44:05]line Наличными: 1000.00 [14:44:05]line Безнал.: 0.00 [14:44:05]line Место: АЗС № 92 "Партнер Нефть" [14:44:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:44:05]line СНО: Общий режим [14:44:05]line Чек 150 21.02.2025 14:44 [14:44:05]line Смена: 649 ФФД: 1.0 [14:44:05]line ЗНМ: 0300000118 [14:44:05]line РНМ: 0000000000091857 [14:44:05]line Версия ККМ: 001 [14:44:05]line ФМ: 0000000000871826 [14:44:05]line ФД: 187656 [14:44:05]line ФПД: 214822980221654 [14:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144403&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187656&fm=214822980221654&tin=02508201610067®Number=0000000000091857&sum=100000 [14:44:05]OFD Sender: Processing packet 187656 [packets to send 49, broken 48] [14:44:05]ProducePacketName [14:44:05]name=ofd_packets/00187656 [14:44:05]OFD Sender: To server: pG, [14:44:05]CommunicateWithHost lk.salyk.kg:30040 [14:44:05]ConnectInit lk.salyk.kg [14:44:05]written 0, free lines is 4095 [14:44:05]Connected sock=10 [14:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 27 02 04 01 A8 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 33 91 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 DD 02 00 35 04 06 00 C3 61 5F 6C FA D6 D0 6E 73 26 1B EF A2 EB [14:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 63 07 47 00 17 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 38 32 36 10 04 04 00 08 DD 02 00 F4 03 04 00 81 37 B8 67 B6 04 01 00 00 16 1B 8D 40 F4 F4 2C 79 [14:44:05]CommunicateWithHost err = 0 [14:44:05]CheckOFDResponse [14:44:05]1017 (14) - 77093643461234 [14:44:05]1041 (16) - 0000000000871826 [14:44:05]1040 (4) - 187656 [14:44:05]1012 (4) - 21.02.2025 08:21 [14:44:05]1206 (1) - 0 [14:44:05]OFD Sender: Remove packet 187656 [14:44:05]ProducePacketName [14:44:05]name=ofd_packets/00187656 [14:44:05]NVStorageDeleteData [14:44:05]Write to MH i2c: 01 00 00 93 0A 9D [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 07 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 07 00 93 0A 00 00 00 00 00 05 0D B6 [14:44:05]RasterBufferAndPrint [14:44:05]line [14:44:05]line [14:44:05]line [14:44:05]line [14:44:05]line [14:44:05]written 0, free lines is 3339 [14:44:05]MH_Cut [14:44:05]Write to MH i2c: D1 01 00 9A 0A 01 76 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: D1 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: D1 01 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: D1 01 00 9A 0A 00 75 [14:44:05]Write to MH i2c: 01 00 00 9B 0A A5 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:06]OFD Sender: No OFD packet to send [14:44:06]*** Cut start [14:44:06]*** Partial cut [14:44:06]*** CUTSNS_PIN = 1 [14:44:06]*** CUTSNS_PIN = 0 [14:44:06]*** Brake cut motor [14:44:07]Read from MH i2c: 01 [14:44:07]MH_I2C_Read... [14:44:07]*** Stop cut motor [14:44:07]*** Cut end [14:44:07]Read from MH i2c: 01 07 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: 01 07 00 9B 0A 00 00 00 00 00 FF 0F BA [14:44:07]process_action close_receipt done [14:44:07]requested_data is exist [14:44:07]produce_requested_data [14:44:07]requested_item fm.sn is exist - process it [14:44:07]wFMCommunicate request_size=4 [14:44:07]MH_SAM_APDU [14:44:07]CAPDU: 80 11 00 00 [14:44:07]Write to MH i2c: E2 08 00 9C 0A 80 11 00 00 00 00 00 00 20 [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:07]Read from MH i2c: E2 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 17 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 17 00 9C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 73 [14:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:44:07]wFMCommunicate OK [14:44:07]requested_item fd.num is exist - process it [14:44:07]SAM_PROTO_GetFieldsCounters [14:44:07]wFMCommunicate request_size=4 [14:44:07]MH_SAM_APDU [14:44:07]CAPDU: 80 13 00 00 [14:44:07]Write to MH i2c: E2 08 00 9D 0A 80 13 00 00 00 00 00 00 23 [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:07]Read from MH i2c: E2 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 62 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 62 00 9D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 08 DD 02 00 0E 04 04 00 89 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 7D [14:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 08 DD 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:07]wFMCommunicate OK [14:44:07]SAM_PROTO_GetFieldsCounters done [14:44:07]requested_item shift.num is exist - process it [14:44:07]requested_item shift.opened is exist - process it [14:44:07]req_shift_opened [14:44:07]FM_GetShiftState [14:44:07]SAM_PROTO_GetShiftState [14:44:07]wFMCommunicate request_size=4 [14:44:07]MH_SAM_APDU [14:44:07]CAPDU: 80 13 01 00 [14:44:07]Write to MH i2c: E2 08 00 9E 0A 80 13 01 00 00 00 00 00 25 [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:07]Read from MH i2c: E2 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 0E 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 0E 00 9E 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 13 [14:44:07]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:44:07]wFMCommunicate OK [14:44:07]SAM_PROTO_GetShiftState done [14:44:07]FM_GetShiftState done [14:44:07]req_shift_opened done [14:44:07]requested_item shift.open_date is exist - process it [14:44:07]req_shift_open_date [14:44:07]req_shift_open_date done [14:44:07]produce_requested_data done [14:44:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187656,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:44:07]process_action_free close_receipt [14:44:07]json_value_free [14:44:07]json_value_free done [14:44:07]process_json_proto returns [14:44:07]Send response to host [14:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187656,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:44:07]free response buf [14:44:07]execute_script done [14:44:07]execute_script returns [14:44:07]free content buf [14:44:07]Sock 7.Close socket [14:44:07]Sock 7.Thread stoped [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:48]accept exits with 9 [14:47:48]New connection [14:47:48]New thread 3067624804 created [14:47:48]Thread 3067481444 joined [14:47:48]Waiting for new connection... [14:47:48] Sock 9.Parse request [14:47:48]Sock 9.Check first char [14:47:48]Sock 9.First char is OK [14:47:48]request: POST /json_proto HTTP/1.0 [14:47:48]Method: POST [14:47:48]URL: /json_proto [14:47:48]Method is POST - this is cgi request [14:47:48]url: /json_proto [14:47:48]query_string will be loaded in cgi processing [14:47:48]execute_cgi json_proto POST (null) [14:47:48]execute_cgi path=json_proto method=POST [14:47:48]POST find Content-Length [14:47:48]Host: 172.17.46.131:8080 [14:47:48]Content-Length: 677 [14:47:48]Content-Type: application/json [14:47:48] [14:47:48]POST finish read [14:47:48]Found Content-Length = 677 [14:47:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:48]execute_script... [14:47: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)412817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:48]POST & json_proto [14:47:48]process_json_proto [14:47:48]json parsed OK: [14:47:48]protocol is kg_v1.0 [14:47:48]action value=close_receipt [14:47:48]process_action close_receipt [14:47:48]cmd_close_receipt [14:47:48]MH_GetDate [14:47:48]Write to MH i2c: F0 00 00 9F 0A 98 [14:47:48]Write i2c OK [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: F0 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: F0 09 00 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: F0 09 00 9F 0A 00 15 92 B8 67 7E 41 4F 65 DA [14:47:48]GetLastDocTimeStamp 1740149043 [14:47:48]current date 1740149269 [14:47:48]FM_GetShiftState [14:47:48]SAM_PROTO_GetShiftState [14:47:48]wFMCommunicate request_size=4 [14:47:48]MH_SAM_APDU [14:47:48]CAPDU: 80 13 01 00 [14:47:48]Write to MH i2c: E2 08 00 A0 0A 80 13 01 00 00 00 00 00 27 [14:47:48]Write i2c OK [14:47:48]MH_I2C_Read... [14:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:48]Read from MH i2c: E2 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: E2 0E 00 [14:47:48]MH_I2C_Read... [14:47:48]Read from MH i2c: E2 0E 00 A0 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 15 [14:47:48]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:47:48]wFMCommunicate OK [14:47:48]SAM_PROTO_GetShiftState done [14:47:48]FM_GetShiftState done [14:47:48]opened in 1740098043 [14:47:48]opened+sec_in_day 1740184443 [14:47:48]quantity*price = 50011 [14:47:48]sum+1 = 50013 [14:47:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 151 21.02.2025 14:47 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187657 ФПД: 85311434202743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144749&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187657&fm=85311434202743&tin=02508201610067®Number=0000000000091857&sum=50000 [14:47:49]StoreToDocumentArchive [14:47:49]shift 649 fd 187657 [14:47:49]save to /storage/0649/doc_00187657 [14:47:49]save last doc name /storage/0649/doc_00187657 to /storage/kkm_last_doc_name [14:47:49]save OK [14:47:49]Clear old archive folders... [14:47:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:49]tlvbuf is 00BC73B0 [14:47:49]SAM_PROTO_ClearQueue [14:47:49]wFMCommunicate request_size=4 [14:47:49]MH_SAM_APDU [14:47:49]CAPDU: 80 09 00 00 [14:47:49]Write to MH i2c: E2 08 00 AD 0A 80 09 00 00 00 00 00 00 29 [14:47:49]Write i2c OK [14:47:49]MH_I2C_Read... [14:47:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:49]Read from MH i2c: E2 [14:47:49]MH_I2C_Read... [14:47:49]Read from MH i2c: E2 03 00 [14:47:49]MH_I2C_Read... [14:47:49]Read from MH i2c: E2 03 00 AD 0A 00 90 00 2B [14:47:49]RAPDU: 90 00 [14:47:49]wFMCommunicate OK [14:47:49]SAM_PROTO_ClearQueue done [14:47:49]KKMCreateOFDPacket [14:47:49]OFDProtocolAddRootSTLVToBuf [14:47:49]FM_MakeSignedData [14:47:49]FM_MakeSignedData [14:47:49]SAM_PROTO_SignData [14:47:49]wFMCommunicate request_size=4 [14:47:49]MH_SAM_APDU [14:47:49]CAPDU: 80 0D 01 02 [14:47:49]Write to MH i2c: E2 08 00 AE 0A 80 0D 01 02 00 00 00 00 31 [14:47:49]Write i2c OK [14:47:49]MH_I2C_Read... [14:47:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:49]Read from MH i2c: E2 [14:47:49]MH_I2C_Read... [14:47:49]Read from MH i2c: E2 03 00 [14:47:49]MH_I2C_Read... [14:47:49]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [14:47:49]RAPDU: 90 00 [14:47:49]wFMCommunicate OK [14:47:49]wFMCommunicate request_size=255 [14:47:49]MH_SAM_APDU [14:47:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 15 92 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DD 02 00 35 04 06 00 4D [14:47:49]Write to MH i2c: E2 02 01 AF 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 15 92 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DD 02 00 35 04 06 00 4D 00 00 E7 [14:47:49]Write i2c OK [14:47:49]MH_I2C_Read... [14:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:50]Read from MH i2c: E2 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 03 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [14:47:50]RAPDU: 90 00 [14:47:50]wFMCommunicate OK [14:47:50]wFMCommunicate request_size=10 [14:47:50]MH_SAM_APDU [14:47:50]CAPDU: 80 0D 02 02 05 97 1D BB 1E 77 [14:47:50]Write to MH i2c: E2 0D 00 B0 0A 80 0D 02 02 05 00 97 1D BB 1E 77 00 00 42 [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:50]Read from MH i2c: E2 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 03 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [14:47:50]RAPDU: 90 00 [14:47:50]wFMCommunicate OK [14:47:50]wFMCommunicate request_size=4 [14:47:50]MH_SAM_APDU [14:47:50]CAPDU: 80 0D 03 02 [14:47:50]Write to MH i2c: E2 08 00 B1 0A 80 0D 03 02 00 00 00 00 36 [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:50]Read from MH i2c: E2 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 0B 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 0B 00 B1 0A 00 CA 86 0D 2E D2 52 FB EA 90 00 CB [14:47:50]RAPDU: CA 86 0D 2E D2 52 FB EA 90 00 [14:47:50]wFMCommunicate OK [14:47:50]SAM_PROTO_SignData done [14:47:50]FM_MakeSignedData done [14:47:50]CreateOFDProtocolMessage [14:47:50]wFMCommunicate request_size=4 [14:47:50]MH_SAM_APDU [14:47:50]CAPDU: 80 11 00 00 [14:47:50]Write to MH i2c: E2 08 00 B2 0A 80 11 00 00 00 00 00 00 36 [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:50]Read from MH i2c: E2 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 17 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: E2 17 00 B2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 89 [14:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:47:50]wFMCommunicate OK [14:47:50]CreateOFDProtocolMessage done [14:47:50]OFDSenderStorePacket 187657 [14:47:50]StoreOFDPacket docnum=187657 [14:47:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 70 DE 07 01 4B 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 15 92 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DD 02 00 35 04 06 00 4D 97 1D BB 1E 77 CA 86 0D 2E D2 52 FB EA [14:47:50]CheckFolder [14:47:50]dirname=/storage/ofd_packets [14:47:50]CheckFolder done [14:47:50]ProducePacketName [14:47:50]name=ofd_packets/00187657 [14:47:50]NVStorageSaveData ofd_packets/00187657 [14:47:50]File name is /storage/ofd_packets/00187657 [14:47:50]Write 301 bytes [14:47:50]NVStorageSaveData done [14:47:50]OFDSenderStorePacket done [14:47:50]KKMCreateOFDPacket done [14:47:50]NVStorageSaveData kkm_last_timestamp [14:47:50]File name is /storage/kkm_last_timestamp [14:47:50]Write 4 bytes [14:47:50]NVStorageSaveData done [14:47:50]ExternCall_PrintAddStr [14:47:50]wPrintStart [14:47:50]Write to MH i2c: 01 00 00 B3 0A BD [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: 01 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: 01 07 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: 01 07 00 B3 0A 00 00 00 00 00 FF 0F D2 [14:47:50]RasterBufferAndPrint [14:47:50]line Счет N : (1)412817 [14:47:50]line ИНН: 02508201610067 [14:47:50]line Контрольно-Кассовый Чек [14:47:50]line ПРОДАЖА [14:47:50]line ТРК (МРК, ГНК) : 22 [14:47:50]line Товар: 2710124130 [14:47:50]line Аи-92-К-2 [14:47:50]line 7.790 * 64.20 [14:47:50]line = 500.12 [14:47:50]line НДС 12% НСП 1% [14:47:50]line > о реализуемом товаре [14:47:50]line ОКРУГЛЕНИЕ: -0.12 [14:47:50]line ИТОГО: 500.00 [14:47:50]line Внесено: 500.00 [14:47:50]line СДАЧА: 0.00 [14:47:50]line НСП 1% : 4.43 [14:47:50]line НДС 12% : 53.11 [14:47:50]line Наличными: 500.00 [14:47:50]line Безнал.: 0.00 [14:47:50]line Место: АЗС № 92 "Партнер Нефть" [14:47:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:47:50]line СНО: Общий режим [14:47:50]line Чек 151 21.02.2025 14:47 [14:47:50]line Смена: 649 ФФД: 1.0 [14:47:50]line ЗНМ: 0300000118 [14:47:50]line РНМ: 0000000000091857 [14:47:50]line Версия ККМ: 001 [14:47:50]line ФМ: 0000000000871826 [14:47:50]line ФД: 187657 [14:47:50]line ФПД: 85311434202743 [14:47:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T144749&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187657&fm=85311434202743&tin=02508201610067®Number=0000000000091857&sum=50000 [14:47:50]written 0, free lines is 4095 [14:47:50]OFD Sender: Processing packet 187657 [packets to send 49, broken 48] [14:47:50]ProducePacketName [14:47:50]name=ofd_packets/00187657 [14:47:50]OFD Sender: To server: pG, [14:47:50]CommunicateWithHost lk.salyk.kg:30040 [14:47:50]ConnectInit lk.salyk.kg [14:47:50]Connected sock=10 [14:47:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 70 DE 07 01 4B 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 15 92 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DD 02 00 35 04 06 00 4D 97 1D BB 1E 77 CA 86 0D 2E D2 52 FB EA [14:47:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0A E0 47 00 94 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 DD 02 00 F4 03 04 00 62 38 B8 67 B6 04 01 00 00 7D 92 47 72 6F 38 98 3A [14:47:50]CommunicateWithHost err = 0 [14:47:50]CheckOFDResponse [14:47:50]1017 (14) - 77093643461234 [14:47:50]1041 (16) - 0000000000871826 [14:47:50]1040 (4) - 187657 [14:47:50]1012 (4) - 21.02.2025 08:25 [14:47:50]1206 (1) - 0 [14:47:50]OFD Sender: Remove packet 187657 [14:47:50]ProducePacketName [14:47:50]name=ofd_packets/00187657 [14:47:50]NVStorageDeleteData [14:47:50]Write to MH i2c: 01 00 00 DE 0A E8 [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: 01 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: 01 07 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: 01 07 00 DE 0A 00 00 00 00 00 05 0D 01 [14:47:50]RasterBufferAndPrint [14:47:50]line [14:47:50]line [14:47:50]line [14:47:50]line [14:47:50]line [14:47:50]written 0, free lines is 3339 [14:47:50]MH_Cut [14:47:50]Write to MH i2c: D1 01 00 E5 0A 01 C1 [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: D1 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: D1 01 00 [14:47:50]MH_I2C_Read... [14:47:50]Read from MH i2c: D1 01 00 E5 0A 00 C0 [14:47:50]Write to MH i2c: 01 00 00 E6 0A F0 [14:47:50]Write i2c OK [14:47:50]MH_I2C_Read... [14:47:51]OFD Sender: No OFD packet to send [14:47:51]*** Cut start [14:47:51]*** Partial cut [14:47:51]*** CUTSNS_PIN = 1 [14:47:51]*** CUTSNS_PIN = 0 [14:47:51]*** Brake cut motor [14:47:52]Read from MH i2c: 01 [14:47:52]MH_I2C_Read... [14:47:52]*** Stop cut motor [14:47:52]*** Cut end [14:47:52]Read from MH i2c: 01 07 00 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 FF 0F 05 [14:47:52]process_action close_receipt done [14:47:52]requested_data is exist [14:47:52]produce_requested_data [14:47:52]requested_item fm.sn is exist - process it [14:47:52]wFMCommunicate request_size=4 [14:47:52]MH_SAM_APDU [14:47:52]CAPDU: 80 11 00 00 [14:47:52]Write to MH i2c: E2 08 00 E7 0A 80 11 00 00 00 00 00 00 6B [14:47:52]Write i2c OK [14:47:52]MH_I2C_Read... [14:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:52]Read from MH i2c: E2 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: E2 17 00 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: E2 17 00 E7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BE [14:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:47:52]wFMCommunicate OK [14:47:52]requested_item fd.num is exist - process it [14:47:52]SAM_PROTO_GetFieldsCounters [14:47:52]wFMCommunicate request_size=4 [14:47:52]MH_SAM_APDU [14:47:52]CAPDU: 80 13 00 00 [14:47:52]Write to MH i2c: E2 08 00 E8 0A 80 13 00 00 00 00 00 00 6E [14:47:52]Write i2c OK [14:47:52]MH_I2C_Read... [14:47:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:52]Read from MH i2c: E2 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: E2 62 00 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: E2 62 00 E8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 09 DD 02 00 0E 04 04 00 89 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 CC [14:47:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 09 DD 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:52]wFMCommunicate OK [14:47:52]SAM_PROTO_GetFieldsCounters done [14:47:52]requested_item shift.num is exist - process it [14:47:52]requested_item shift.opened is exist - process it [14:47:52]req_shift_opened [14:47:52]FM_GetShiftState [14:47:52]SAM_PROTO_GetShiftState [14:47:52]wFMCommunicate request_size=4 [14:47:52]MH_SAM_APDU [14:47:52]CAPDU: 80 13 01 00 [14:47:52]Write to MH i2c: E2 08 00 E9 0A 80 13 01 00 00 00 00 00 70 [14:47:52]Write i2c OK [14:47:52]MH_I2C_Read... [14:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:52]Read from MH i2c: E2 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: E2 0E 00 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: E2 0E 00 E9 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 5E [14:47:52]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:47:52]wFMCommunicate OK [14:47:52]SAM_PROTO_GetShiftState done [14:47:52]FM_GetShiftState done [14:47:52]req_shift_opened done [14:47:52]requested_item shift.open_date is exist - process it [14:47:52]req_shift_open_date [14:47:52]req_shift_open_date done [14:47:52]produce_requested_data done [14:47:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187657,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:47:52]process_action_free close_receipt [14:47:52]json_value_free [14:47:52]json_value_free done [14:47:52]process_json_proto returns [14:47:52]Send response to host [14:47:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187657,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:47:52]free response buf [14:47:52]execute_script done [14:47:52]execute_script returns [14:47:52]free content buf [14:47:52]Sock 9.Close socket [14:47:52]Sock 9.Thread stoped [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [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:58]accept exits with 7 [14:52:58]New connection [14:52:58]New thread 3067481444 created [14:52:58]Thread 3067624804 joined [14:52:58]Waiting for new connection... [14:52:58] Sock 7.Parse request [14:52:58]Sock 7.Check first char [14:52:58]Sock 7.First char is OK [14:52:58]request: POST /json_proto HTTP/1.0 [14:52:58]Method: POST [14:52:58]URL: /json_proto [14:52:58]Method is POST - this is cgi request [14:52:58]url: /json_proto [14:52:58]query_string will be loaded in cgi processing [14:52:58]execute_cgi json_proto POST (null) [14:52:58]execute_cgi path=json_proto method=POST [14:52:58]POST find Content-Length [14:52:58]Host: 172.17.46.131:8080 [14:52:58]Content-Length: 682 [14:52:58]Content-Type: application/json [14:52:58] [14:52:58]POST finish read [14:52:58]Found Content-Length = 682 [14:52:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:58]execute_script... [14:52: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)412818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:58]POST & json_proto [14:52:58]process_json_proto [14:52:58]json parsed OK: [14:52:58]protocol is kg_v1.0 [14:52:58]action value=close_receipt [14:52:58]process_action close_receipt [14:52:58]cmd_close_receipt [14:52:58]MH_GetDate [14:52:58]Write to MH i2c: F0 00 00 EA 0A E3 [14:52:58]Write i2c OK [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: F0 [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: F0 09 00 [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: F0 09 00 EA 0A 00 4B 93 B8 67 7E 41 4F 65 5C [14:52:58]GetLastDocTimeStamp 1740149269 [14:52:58]current date 1740149579 [14:52:58]FM_GetShiftState [14:52:58]SAM_PROTO_GetShiftState [14:52:58]wFMCommunicate request_size=4 [14:52:58]MH_SAM_APDU [14:52:58]CAPDU: 80 13 01 00 [14:52:58]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [14:52:58]Write i2c OK [14:52:58]MH_I2C_Read... [14:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:58]Read from MH i2c: E2 [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: E2 0E 00 [14:52:58]MH_I2C_Read... [14:52:58]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 60 [14:52:58]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:52:58]wFMCommunicate OK [14:52:58]SAM_PROTO_GetShiftState done [14:52:58]FM_GetShiftState done [14:52:58]opened in 1740098043 [14:52:58]opened+sec_in_day 1740184443 [14:52:58]quantity*price = 100012 [14:52:58]sum+1 = 100014 [14:52:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 152 21.02.2025 14:52 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187658 ФПД: 263866654303529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T145259&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187658&fm=263866654303529&tin=02508201610067®Number=0000000000091857&sum=100000 [14:52:59]StoreToDocumentArchive [14:52:59]shift 649 fd 187658 [14:52:59]save to /storage/0649/doc_00187658 [14:52:59]save last doc name /storage/0649/doc_00187658 to /storage/kkm_last_doc_name [14:52:59]save OK [14:52:59]Clear old archive folders... [14:52:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:59]tlvbuf is 00C0D350 [14:52:59]SAM_PROTO_ClearQueue [14:52:59]wFMCommunicate request_size=4 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 09 00 00 [14:52:59]Write to MH i2c: E2 08 00 F8 0A 80 09 00 00 00 00 00 00 74 [14:52:59]Write i2c OK [14:52:59]MH_I2C_Read... [14:52:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:59]Read from MH i2c: E2 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 [14:52:59]MH_I2C_Read... [14:52:59]Read from MH i2c: E2 03 00 F8 0A 00 90 00 76 [14:52:59]RAPDU: 90 00 [14:52:59]wFMCommunicate OK [14:52:59]SAM_PROTO_ClearQueue done [14:52:59]KKMCreateOFDPacket [14:52:59]OFDProtocolAddRootSTLVToBuf [14:52:59]FM_MakeSignedData [14:52:59]FM_MakeSignedData [14:52:59]SAM_PROTO_SignData [14:52:59]wFMCommunicate request_size=4 [14:52:59]MH_SAM_APDU [14:52:59]CAPDU: 80 0D 01 02 [14:52:59]Write to MH i2c: E2 08 00 F9 0A 80 0D 01 02 00 00 00 00 7C [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 F9 0A 00 90 00 77 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]wFMCommunicate request_size=255 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 4B 93 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DD 02 00 35 04 06 00 EF [14:53:00]Write to MH i2c: E2 02 01 FA 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 4B 93 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DD 02 00 35 04 06 00 EF 00 00 E5 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]wFMCommunicate request_size=10 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 02 02 05 FC 3E 32 A5 29 [14:53:00]Write to MH i2c: E2 0D 00 FB 0A 80 0D 02 02 05 00 FC 3E 32 A5 29 00 00 C3 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [14:53:00]RAPDU: 90 00 [14:53:00]wFMCommunicate OK [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 0D 03 02 [14:53:00]Write to MH i2c: E2 08 00 FC 0A 80 0D 03 02 00 00 00 00 81 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 0B 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 0B 00 FC 0A 00 0B 91 3F EA 4C 3F 54 11 90 00 37 [14:53:00]RAPDU: 0B 91 3F EA 4C 3F 54 11 90 00 [14:53:00]wFMCommunicate OK [14:53:00]SAM_PROTO_SignData done [14:53:00]FM_MakeSignedData done [14:53:00]CreateOFDProtocolMessage [14:53:00]wFMCommunicate request_size=4 [14:53:00]MH_SAM_APDU [14:53:00]CAPDU: 80 11 00 00 [14:53:00]Write to MH i2c: E2 08 00 FD 0A 80 11 00 00 00 00 00 00 81 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:00]Read from MH i2c: E2 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 17 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: E2 17 00 FD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [14:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:53:00]wFMCommunicate OK [14:53:00]CreateOFDProtocolMessage done [14:53:00]OFDSenderStorePacket 187658 [14:53:00]StoreOFDPacket docnum=187658 [14:53:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 61 95 07 01 CF 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 4B 93 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DD 02 00 35 04 06 00 EF FC 3E 32 A5 29 0B 91 3F EA 4C 3F 54 11 [14:53:00]CheckFolder [14:53:00]dirname=/storage/ofd_packets [14:53:00]CheckFolder done [14:53:00]ProducePacketName [14:53:00]name=ofd_packets/00187658 [14:53:00]NVStorageSaveData ofd_packets/00187658 [14:53:00]File name is /storage/ofd_packets/00187658 [14:53:00]Write 301 bytes [14:53:00]NVStorageSaveData done [14:53:00]OFDSenderStorePacket done [14:53:00]KKMCreateOFDPacket done [14:53:00]NVStorageSaveData kkm_last_timestamp [14:53:00]File name is /storage/kkm_last_timestamp [14:53:00]Write 4 bytes [14:53:00]NVStorageSaveData done [14:53:00]ExternCall_PrintAddStr [14:53:00]wPrintStart [14:53:00]Write to MH i2c: 01 00 00 FE 0A 08 [14:53:00]Write i2c OK [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: 01 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: 01 07 00 [14:53:00]MH_I2C_Read... [14:53:00]Read from MH i2c: 01 07 00 FE 0A 00 00 00 00 00 FF 0F 1D [14:53:00]RasterBufferAndPrint [14:53:00]line Счет N : (1)412818 [14:53:00]line ИНН: 02508201610067 [14:53:00]line Контрольно-Кассовый Чек [14:53:00]line ПРОДАЖА [14:53:00]line ТРК (МРК, ГНК) : 33 [14:53:00]line Товар: 2710124500 [14:53:00]line Аи-95-К-5 [14:53:00]line 13.910 * 71.90 [14:53:00]line = 1000.13 [14:53:00]line НДС 12% НСП 1% [14:53:00]line > о реализуемом товаре [14:53:00]line ОКРУГЛЕНИЕ: -0.13 [14:53:00]line ИТОГО: 1000.00 [14:53:00]line Внесено: 1000.00 [14:53:00]line СДАЧА: 0.00 [14:53:00]line НСП 1% : 8.85 [14:53:00]line НДС 12% : 106.21 [14:53:00]line Наличными: 1000.00 [14:53:00]line Безнал.: 0.00 [14:53:00]line Место: АЗС № 92 "Партнер Нефть" [14:53:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:53:00]line СНО: Общий режим [14:53:00]line Чек 152 21.02.2025 14:52 [14:53:00]line Смена: 649 ФФД: 1.0 [14:53:00]line ЗНМ: 0300000118 [14:53:00]line РНМ: 0000000000091857 [14:53:00]line Версия ККМ: 001 [14:53:00]line ФМ: 0000000000871826 [14:53:00]line ФД: 187658 [14:53:00]line ФПД: 263866654303529 [14:53:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T145259&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187658&fm=263866654303529&tin=02508201610067®Number=0000000000091857&sum=100000 [14:53:00]OFD Sender: Processing packet 187658 [packets to send 49, broken 48] [14:53:00]ProducePacketName [14:53:00]name=ofd_packets/00187658 [14:53:00]OFD Sender: To server: pG, [14:53:00]CommunicateWithHost lk.salyk.kg:30040 [14:53:00]ConnectInit lk.salyk.kg [14:53:00]written 0, free lines is 4095 [14:53:00]Connected sock=10 [14:53:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 61 95 07 01 CF 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 4B 93 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DD 02 00 35 04 06 00 EF FC 3E 32 A5 29 0B 91 3F EA 4C 3F 54 11 [14:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 67 81 47 00 50 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A DD 02 00 F4 03 04 00 99 39 B8 67 B6 04 01 00 00 A8 A8 2C 56 DE F9 CF CA [14:53:01]CommunicateWithHost err = 0 [14:53:01]CheckOFDResponse [14:53:01]1017 (14) - 77093643461234 [14:53:01]1041 (16) - 0000000000871826 [14:53:01]1040 (4) - 187658 [14:53:01]1012 (4) - 21.02.2025 08:30 [14:53:01]1206 (1) - 0 [14:53:01]OFD Sender: Remove packet 187658 [14:53:01]ProducePacketName [14:53:01]name=ofd_packets/00187658 [14:53:01]NVStorageDeleteData [14:53:01]Write to MH i2c: 01 00 00 29 0B 34 [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 29 0B 00 00 00 00 00 FF 0C 46 [14:53:01]RasterBufferAndPrint [14:53:01]line [14:53:01]line [14:53:01]line [14:53:01]line [14:53:01]line [14:53:01]written 0, free lines is 3333 [14:53:01]MH_Cut [14:53:01]Write to MH i2c: D1 01 00 30 0B 01 0D [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: D1 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: D1 01 00 [14:53:01]MH_I2C_Read... [14:53:01]Read from MH i2c: D1 01 00 30 0B 00 0C [14:53:01]Write to MH i2c: 01 00 00 31 0B 3C [14:53:01]Write i2c OK [14:53:01]MH_I2C_Read... [14:53:01]OFD Sender: No OFD packet to send [14:53:01]*** Cut start [14:53:01]*** Partial cut [14:53:01]*** CUTSNS_PIN = 1 [14:53:02]*** CUTSNS_PIN = 0 [14:53:02]*** Brake cut motor [14:53:02]Read from MH i2c: 01 [14:53:02]MH_I2C_Read... [14:53:02]*** Stop cut motor [14:53:02]*** Cut end [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 31 0B 00 00 00 00 00 FF 0F 51 [14:53:02]process_action close_receipt done [14:53:02]requested_data is exist [14:53:02]produce_requested_data [14:53:02]requested_item fm.sn is exist - process it [14:53:02]wFMCommunicate request_size=4 [14:53:02]MH_SAM_APDU [14:53:02]CAPDU: 80 11 00 00 [14:53:02]Write to MH i2c: E2 08 00 32 0B 80 11 00 00 00 00 00 00 B7 [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:02]Read from MH i2c: E2 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 17 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 17 00 32 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0A [14:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:53:02]wFMCommunicate OK [14:53:02]requested_item fd.num is exist - process it [14:53:02]SAM_PROTO_GetFieldsCounters [14:53:02]wFMCommunicate request_size=4 [14:53:02]MH_SAM_APDU [14:53:02]CAPDU: 80 13 00 00 [14:53:02]Write to MH i2c: E2 08 00 33 0B 80 13 00 00 00 00 00 00 BA [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:02]Read from MH i2c: E2 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 62 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 62 00 33 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0A DD 02 00 0E 04 04 00 89 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 1C [14:53:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0A DD 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:02]wFMCommunicate OK [14:53:02]SAM_PROTO_GetFieldsCounters done [14:53:02]requested_item shift.num is exist - process it [14:53:02]requested_item shift.opened is exist - process it [14:53:02]req_shift_opened [14:53:02]FM_GetShiftState [14:53:02]SAM_PROTO_GetShiftState [14:53:02]wFMCommunicate request_size=4 [14:53:02]MH_SAM_APDU [14:53:02]CAPDU: 80 13 01 00 [14:53:02]Write to MH i2c: E2 08 00 34 0B 80 13 01 00 00 00 00 00 BC [14:53:02]Write i2c OK [14:53:02]MH_I2C_Read... [14:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:02]Read from MH i2c: E2 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 0E 00 [14:53:02]MH_I2C_Read... [14:53:02]Read from MH i2c: E2 0E 00 34 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 AA [14:53:02]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:53:02]wFMCommunicate OK [14:53:02]SAM_PROTO_GetShiftState done [14:53:02]FM_GetShiftState done [14:53:02]req_shift_opened done [14:53:02]requested_item shift.open_date is exist - process it [14:53:02]req_shift_open_date [14:53:02]req_shift_open_date done [14:53:02]produce_requested_data done [14:53:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187658,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:53:02]process_action_free close_receipt [14:53:02]json_value_free [14:53:02]json_value_free done [14:53:02]process_json_proto returns [14:53:02]Send response to host [14:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187658,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:53:02]free response buf [14:53:02]execute_script done [14:53:02]execute_script returns [14:53:02]free content buf [14:53:02]Sock 7.Close socket [14:53:02]Sock 7.Thread stoped [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]accept exits with 9 [14:55:11]New connection [14:55:11]New thread 3067624804 created [14:55:11]Thread 3067481444 joined [14:55:11]Waiting for new connection... [14:55:11] Sock 9.Parse request [14:55:11]Sock 9.Check first char [14:55:11]Sock 9.First char is OK [14:55:11]request: POST /json_proto HTTP/1.0 [14:55:11]Method: POST [14:55:11]URL: /json_proto [14:55:11]Method is POST - this is cgi request [14:55:11]url: /json_proto [14:55:11]query_string will be loaded in cgi processing [14:55:11]execute_cgi json_proto POST (null) [14:55:11]execute_cgi path=json_proto method=POST [14:55:11]POST find Content-Length [14:55:11]Host: 172.17.46.131:8080 [14:55:11]Content-Length: 678 [14:55:11]Content-Type: application/json [14:55:11] [14:55:11]POST finish read [14:55:11]Found Content-Length = 678 [14:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:55:11]execute_script... [14:55: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)412819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:55:11]POST & json_proto [14:55:11]process_json_proto [14:55:11]json parsed OK: [14:55:11]protocol is kg_v1.0 [14:55:11]action value=close_receipt [14:55:11]process_action close_receipt [14:55:11]cmd_close_receipt [14:55:11]MH_GetDate [14:55:11]Write to MH i2c: F0 00 00 35 0B 2F [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: F0 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: F0 09 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: F0 09 00 35 0B 00 D0 93 B8 67 7E 41 4F 65 2D [14:55:11]GetLastDocTimeStamp 1740149579 [14:55:11]current date 1740149712 [14:55:11]FM_GetShiftState [14:55:11]SAM_PROTO_GetShiftState [14:55:11]wFMCommunicate request_size=4 [14:55:11]MH_SAM_APDU [14:55:11]CAPDU: 80 13 01 00 [14:55:11]Write to MH i2c: E2 08 00 36 0B 80 13 01 00 00 00 00 00 BE [14:55:11]Write i2c OK [14:55:11]MH_I2C_Read... [14:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:11]Read from MH i2c: E2 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 0E 00 [14:55:11]MH_I2C_Read... [14:55:11]Read from MH i2c: E2 0E 00 36 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 AC [14:55:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:55:11]wFMCommunicate OK [14:55:11]SAM_PROTO_GetShiftState done [14:55:11]FM_GetShiftState done [14:55:11]opened in 1740098043 [14:55:11]opened+sec_in_day 1740184443 [14:55:11]quantity*price = 70042 [14:55:11]sum+1 = 70043 [14:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 153 21.02.2025 14:55 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187659 ФПД: 217319340998257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T145512&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187659&fm=217319340998257&tin=02508201610067®Number=0000000000091857&sum=70000 [14:55:12]StoreToDocumentArchive [14:55:12]shift 649 fd 187659 [14:55:12]save to /storage/0649/doc_00187659 [14:55:12]save last doc name /storage/0649/doc_00187659 to /storage/kkm_last_doc_name [14:55:12]save OK [14:55:12]Clear old archive folders... [14:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:12]tlvbuf is B6FFCA70 [14:55:12]SAM_PROTO_ClearQueue [14:55:12]wFMCommunicate request_size=4 [14:55:12]MH_SAM_APDU [14:55:12]CAPDU: 80 09 00 00 [14:55:12]Write to MH i2c: E2 08 00 43 0B 80 09 00 00 00 00 00 00 C0 [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:12]Read from MH i2c: E2 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 03 00 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [14:55:12]RAPDU: 90 00 [14:55:12]wFMCommunicate OK [14:55:12]SAM_PROTO_ClearQueue done [14:55:12]KKMCreateOFDPacket [14:55:12]OFDProtocolAddRootSTLVToBuf [14:55:12]FM_MakeSignedData [14:55:12]FM_MakeSignedData [14:55:12]SAM_PROTO_SignData [14:55:12]wFMCommunicate request_size=4 [14:55:12]MH_SAM_APDU [14:55:12]CAPDU: 80 0D 01 02 [14:55:12]Write to MH i2c: E2 08 00 44 0B 80 0D 01 02 00 00 00 00 C8 [14:55:12]Write i2c OK [14:55:12]MH_I2C_Read... [14:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:12]Read from MH i2c: E2 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 03 00 [14:55:12]MH_I2C_Read... [14:55:12]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [14:55:12]RAPDU: 90 00 [14:55:12]wFMCommunicate OK [14:55:12]wFMCommunicate request_size=255 [14:55:12]MH_SAM_APDU [14:55:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D0 93 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DD 02 00 35 04 06 00 C5 [14:55:12]Write to MH i2c: E2 02 01 45 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D0 93 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DD 02 00 35 04 06 00 C5 00 00 67 [14:55:12]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [14:55:13]RAPDU: 90 00 [14:55:13]wFMCommunicate OK [14:55:13]wFMCommunicate request_size=10 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 0D 02 02 05 A6 9A 1F 7E 71 [14:55:13]Write to MH i2c: E2 0D 00 46 0B 80 0D 02 02 05 00 A6 9A 1F 7E 71 00 00 23 [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [14:55:13]RAPDU: 90 00 [14:55:13]wFMCommunicate OK [14:55:13]wFMCommunicate request_size=4 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 0D 03 02 [14:55:13]Write to MH i2c: E2 08 00 47 0B 80 0D 03 02 00 00 00 00 CD [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 0B 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 0B 00 47 0B 00 EE 2C D2 F5 1B 84 07 D1 90 00 26 [14:55:13]RAPDU: EE 2C D2 F5 1B 84 07 D1 90 00 [14:55:13]wFMCommunicate OK [14:55:13]SAM_PROTO_SignData done [14:55:13]FM_MakeSignedData done [14:55:13]CreateOFDProtocolMessage [14:55:13]wFMCommunicate request_size=4 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 11 00 00 [14:55:13]Write to MH i2c: E2 08 00 48 0B 80 11 00 00 00 00 00 00 CD [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:13]Read from MH i2c: E2 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 17 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: E2 17 00 48 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 20 [14:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:55:13]wFMCommunicate OK [14:55:13]CreateOFDProtocolMessage done [14:55:13]OFDSenderStorePacket 187659 [14:55:13]StoreOFDPacket docnum=187659 [14:55:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 48 C4 07 01 7B BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D0 93 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DD 02 00 35 04 06 00 C5 A6 9A 1F 7E 71 EE 2C D2 F5 1B 84 07 D1 [14:55:13]CheckFolder [14:55:13]dirname=/storage/ofd_packets [14:55:13]CheckFolder done [14:55:13]ProducePacketName [14:55:13]name=ofd_packets/00187659 [14:55:13]NVStorageSaveData ofd_packets/00187659 [14:55:13]File name is /storage/ofd_packets/00187659 [14:55:13]Write 301 bytes [14:55:13]NVStorageSaveData done [14:55:13]OFDSenderStorePacket done [14:55:13]KKMCreateOFDPacket done [14:55:13]NVStorageSaveData kkm_last_timestamp [14:55:13]File name is /storage/kkm_last_timestamp [14:55:13]Write 4 bytes [14:55:13]NVStorageSaveData done [14:55:13]ExternCall_PrintAddStr [14:55:13]wPrintStart [14:55:13]Write to MH i2c: 01 00 00 49 0B 54 [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: 01 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: 01 07 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 FF 0F 69 [14:55:13]RasterBufferAndPrint [14:55:13]line Счет N : (1)412819 [14:55:13]line ИНН: 02508201610067 [14:55:13]line Контрольно-Кассовый Чек [14:55:13]line ПРОДАЖА [14:55:13]line ТРК (МРК, ГНК) : 22 [14:55:13]line Товар: 2710124130 [14:55:13]line Аи-92-К-2 [14:55:13]line 10.910 * 64.20 [14:55:13]line = 700.42 [14:55:13]line НДС 12% НСП 1% [14:55:13]line > о реализуемом товаре [14:55:13]line ОКРУГЛЕНИЕ: -0.42 [14:55:13]line ИТОГО: 700.00 [14:55:13]line Внесено: 700.00 [14:55:13]line СДАЧА: 0.00 [14:55:13]line НСП 1% : 6.20 [14:55:13]line НДС 12% : 74.38 [14:55:13]line Наличными: 700.00 [14:55:13]line Безнал.: 0.00 [14:55:13]line Место: АЗС № 92 "Партнер Нефть" [14:55:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:55:13]line СНО: Общий режим [14:55:13]line Чек 153 21.02.2025 14:55 [14:55:13]line Смена: 649 ФФД: 1.0 [14:55:13]line ЗНМ: 0300000118 [14:55:13]line РНМ: 0000000000091857 [14:55:13]line Версия ККМ: 001 [14:55:13]line ФМ: 0000000000871826 [14:55:13]line ФД: 187659 [14:55:13]line ФПД: 217319340998257 [14:55:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T145512&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187659&fm=217319340998257&tin=02508201610067®Number=0000000000091857&sum=70000 [14:55:13]written 0, free lines is 4095 [14:55:13]OFD Sender: Processing packet 187659 [packets to send 49, broken 48] [14:55:13]ProducePacketName [14:55:13]name=ofd_packets/00187659 [14:55:13]OFD Sender: To server: pG, [14:55:13]CommunicateWithHost lk.salyk.kg:30040 [14:55:13]ConnectInit lk.salyk.kg [14:55:13]Connected sock=10 [14:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 48 C4 07 01 7B BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 D0 93 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DD 02 00 35 04 06 00 C5 A6 9A 1F 7E 71 EE 2C D2 F5 1B 84 07 D1 [14:55:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8F 39 47 00 84 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B DD 02 00 F4 03 04 00 1D 3A B8 67 B6 04 01 00 00 4B 0F BF BD 8E 6E F4 24 [14:55:14]CommunicateWithHost err = 0 [14:55:14]CheckOFDResponse [14:55:14]1017 (14) - 77093643461234 [14:55:14]1041 (16) - 0000000000871826 [14:55:14]1040 (4) - 187659 [14:55:14]1012 (4) - 21.02.2025 08:32 [14:55:14]1206 (1) - 0 [14:55:14]OFD Sender: Remove packet 187659 [14:55:14]ProducePacketName [14:55:14]name=ofd_packets/00187659 [14:55:14]NVStorageDeleteData [14:55:14]Write to MH i2c: 01 00 00 74 0B 7F [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 07 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: 01 07 00 74 0B 00 00 00 00 00 F3 0C 85 [14:55:14]RasterBufferAndPrint [14:55:14]line [14:55:14]line [14:55:14]line [14:55:14]line [14:55:14]line [14:55:14]written 0, free lines is 3321 [14:55:14]MH_Cut [14:55:14]Write to MH i2c: D1 01 00 7B 0B 01 58 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: D1 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: D1 01 00 [14:55:14]MH_I2C_Read... [14:55:14]Read from MH i2c: D1 01 00 7B 0B 00 57 [14:55:14]Write to MH i2c: 01 00 00 7C 0B 87 [14:55:14]Write i2c OK [14:55:14]MH_I2C_Read... [14:55:14]OFD Sender: No OFD packet to send [14:55:14]*** Cut start [14:55:14]*** Partial cut [14:55:14]*** CUTSNS_PIN = 1 [14:55:14]*** CUTSNS_PIN = 0 [14:55:15]*** Brake cut motor [14:55:15]Read from MH i2c: 01 [14:55:15]MH_I2C_Read... [14:55:15]*** Stop cut motor [14:55:15]*** Cut end [14:55:15]Read from MH i2c: 01 07 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: 01 07 00 7C 0B 00 00 00 00 00 FF 0F 9C [14:55:15]process_action close_receipt done [14:55:15]requested_data is exist [14:55:15]produce_requested_data [14:55:15]requested_item fm.sn is exist - process it [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 11 00 00 [14:55:15]Write to MH i2c: E2 08 00 7D 0B 80 11 00 00 00 00 00 00 02 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:15]Read from MH i2c: E2 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 17 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 17 00 7D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [14:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:55:15]wFMCommunicate OK [14:55:15]requested_item fd.num is exist - process it [14:55:15]SAM_PROTO_GetFieldsCounters [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 13 00 00 [14:55:15]Write to MH i2c: E2 08 00 7E 0B 80 13 00 00 00 00 00 00 05 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:15]Read from MH i2c: E2 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 62 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 62 00 7E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0B DD 02 00 0E 04 04 00 89 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 6B [14:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0B DD 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:15]wFMCommunicate OK [14:55:15]SAM_PROTO_GetFieldsCounters done [14:55:15]requested_item shift.num is exist - process it [14:55:15]requested_item shift.opened is exist - process it [14:55:15]req_shift_opened [14:55:15]FM_GetShiftState [14:55:15]SAM_PROTO_GetShiftState [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 13 01 00 [14:55:15]Write to MH i2c: E2 08 00 7F 0B 80 13 01 00 00 00 00 00 07 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:15]Read from MH i2c: E2 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 0E 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 0E 00 7F 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 F5 [14:55:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [14:55:15]wFMCommunicate OK [14:55:15]SAM_PROTO_GetShiftState done [14:55:15]FM_GetShiftState done [14:55:15]req_shift_opened done [14:55:15]requested_item shift.open_date is exist - process it [14:55:15]req_shift_open_date [14:55:15]req_shift_open_date done [14:55:15]produce_requested_data done [14:55:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187659,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [14:55:15]process_action_free close_receipt [14:55:15]json_value_free [14:55:15]json_value_free done [14:55:15]process_json_proto returns [14:55:15]Send response to host [14:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187659,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [14:55:15]free response buf [14:55:15]execute_script done [14:55:15]execute_script returns [14:55:15]free content buf [14:55:15]Sock 9.Close socket [14:55:15]Sock 9.Thread stoped [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:08]accept exits with 7 [15:03:08]New connection [15:03:08]New thread 3067481444 created [15:03:08]Thread 3067624804 joined [15:03:08]Waiting for new connection... [15:03:08] Sock 7.Parse request [15:03:08]Sock 7.Check first char [15:03:08]Sock 7.First char is OK [15:03:08]request: POST /json_proto HTTP/1.0 [15:03:08]Method: POST [15:03:08]URL: /json_proto [15:03:08]Method is POST - this is cgi request [15:03:08]url: /json_proto [15:03:08]query_string will be loaded in cgi processing [15:03:08]execute_cgi json_proto POST (null) [15:03:08]execute_cgi path=json_proto method=POST [15:03:08]POST find Content-Length [15:03:08]Host: 172.17.46.131:8080 [15:03:08]Content-Length: 677 [15:03:08]Content-Type: application/json [15:03:08] [15:03:08]POST finish read [15:03:08]Found Content-Length = 677 [15:03:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:08]execute_script... [15:03:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:08]POST & json_proto [15:03:08]process_json_proto [15:03:08]json parsed OK: [15:03:08]protocol is kg_v1.0 [15:03:08]action value=close_receipt [15:03:08]process_action close_receipt [15:03:08]cmd_close_receipt [15:03:08]MH_GetDate [15:03:08]Write to MH i2c: F0 00 00 80 0B 7A [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: F0 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: F0 09 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: F0 09 00 80 0B 00 AC 95 B8 67 7E 41 4F 65 56 [15:03:08]GetLastDocTimeStamp 1740149712 [15:03:08]current date 1740150188 [15:03:08]FM_GetShiftState [15:03:08]SAM_PROTO_GetShiftState [15:03:08]wFMCommunicate request_size=4 [15:03:08]MH_SAM_APDU [15:03:08]CAPDU: 80 13 01 00 [15:03:08]Write to MH i2c: E2 08 00 81 0B 80 13 01 00 00 00 00 00 09 [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:08]Read from MH i2c: E2 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 0E 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 0E 00 81 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 F7 [15:03:08]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:03:08]wFMCommunicate OK [15:03:08]SAM_PROTO_GetShiftState done [15:03:08]FM_GetShiftState done [15:03:08]opened in 1740098043 [15:03:08]opened+sec_in_day 1740184443 [15:03:08]quantity*price = 50011 [15:03:08]sum+1 = 50013 [15:03:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 154 21.02.2025 15:03 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187660 ФПД: 115018278636439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150309&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187660&fm=115018278636439&tin=02508201610067®Number=0000000000091857&sum=50000 [15:03:09]StoreToDocumentArchive [15:03:09]shift 649 fd 187660 [15:03:09]save to /storage/0649/doc_00187660 [15:03:09]save last doc name /storage/0649/doc_00187660 to /storage/kkm_last_doc_name [15:03:09]save OK [15:03:09]Clear old archive folders... [15:03:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:09]tlvbuf is B6FFC230 [15:03:09]SAM_PROTO_ClearQueue [15:03:09]wFMCommunicate request_size=4 [15:03:09]MH_SAM_APDU [15:03:09]CAPDU: 80 09 00 00 [15:03:09]Write to MH i2c: E2 08 00 8E 0B 80 09 00 00 00 00 00 00 0B [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:09]Read from MH i2c: E2 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 03 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [15:03:09]RAPDU: 90 00 [15:03:09]wFMCommunicate OK [15:03:09]SAM_PROTO_ClearQueue done [15:03:09]KKMCreateOFDPacket [15:03:09]OFDProtocolAddRootSTLVToBuf [15:03:09]FM_MakeSignedData [15:03:09]FM_MakeSignedData [15:03:09]SAM_PROTO_SignData [15:03:09]wFMCommunicate request_size=4 [15:03:09]MH_SAM_APDU [15:03:09]CAPDU: 80 0D 01 02 [15:03:09]Write to MH i2c: E2 08 00 8F 0B 80 0D 01 02 00 00 00 00 13 [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:09]Read from MH i2c: E2 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 03 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [15:03:09]RAPDU: 90 00 [15:03:09]wFMCommunicate OK [15:03:09]wFMCommunicate request_size=255 [15:03:09]MH_SAM_APDU [15:03:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AD 95 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DD 02 00 35 04 06 00 68 [15:03:09]Write to MH i2c: E2 02 01 90 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AD 95 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DD 02 00 35 04 06 00 68 00 00 85 [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:09]Read from MH i2c: E2 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 03 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [15:03:09]RAPDU: 90 00 [15:03:09]wFMCommunicate OK [15:03:09]wFMCommunicate request_size=10 [15:03:09]MH_SAM_APDU [15:03:09]CAPDU: 80 0D 02 02 05 9B C7 A4 0B 97 [15:03:09]Write to MH i2c: E2 0D 00 91 0B 80 0D 02 02 05 00 9B C7 A4 0B 97 00 00 C8 [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:09]Read from MH i2c: E2 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 03 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [15:03:09]RAPDU: 90 00 [15:03:09]wFMCommunicate OK [15:03:09]wFMCommunicate request_size=4 [15:03:09]MH_SAM_APDU [15:03:09]CAPDU: 80 0D 03 02 [15:03:09]Write to MH i2c: E2 08 00 92 0B 80 0D 03 02 00 00 00 00 18 [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:09]Read from MH i2c: E2 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 0B 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: E2 0B 00 92 0B 00 D4 AB 50 D7 13 60 42 4B 90 00 BF [15:03:09]RAPDU: D4 AB 50 D7 13 60 42 4B 90 00 [15:03:09]wFMCommunicate OK [15:03:09]SAM_PROTO_SignData done [15:03:09]FM_MakeSignedData done [15:03:09]CreateOFDProtocolMessage [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 93 0B 80 11 00 00 00 00 00 00 18 [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 17 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 17 00 93 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [15:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:03:10]wFMCommunicate OK [15:03:10]CreateOFDProtocolMessage done [15:03:10]OFDSenderStorePacket 187660 [15:03:10]StoreOFDPacket docnum=187660 [15:03:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 E5 07 01 59 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AD 95 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DD 02 00 35 04 06 00 68 9B C7 A4 0B 97 D4 AB 50 D7 13 60 42 4B [15:03:10]CheckFolder [15:03:10]dirname=/storage/ofd_packets [15:03:10]CheckFolder done [15:03:10]ProducePacketName [15:03:10]name=ofd_packets/00187660 [15:03:10]NVStorageSaveData ofd_packets/00187660 [15:03:10]File name is /storage/ofd_packets/00187660 [15:03:10]Write 301 bytes [15:03:10]NVStorageSaveData done [15:03:10]OFDSenderStorePacket done [15:03:10]KKMCreateOFDPacket done [15:03:10]NVStorageSaveData kkm_last_timestamp [15:03:10]File name is /storage/kkm_last_timestamp [15:03:10]Write 4 bytes [15:03:10]NVStorageSaveData done [15:03:10]ExternCall_PrintAddStr [15:03:10]wPrintStart [15:03:10]Write to MH i2c: 01 00 00 94 0B 9F [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 07 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 07 00 94 0B 00 00 00 00 00 FF 0F B4 [15:03:10]RasterBufferAndPrint [15:03:10]line Счет N : (1)412820 [15:03:10]line ИНН: 02508201610067 [15:03:10]line Контрольно-Кассовый Чек [15:03:10]line ПРОДАЖА [15:03:10]line ТРК (МРК, ГНК) : 32 [15:03:10]line Товар: 2710124130 [15:03:10]line Аи-92-К-2 [15:03:10]line 7.790 * 64.20 [15:03:10]line = 500.12 [15:03:10]line НДС 12% НСП 1% [15:03:10]line > о реализуемом товаре [15:03:10]line ОКРУГЛЕНИЕ: -0.12 [15:03:10]line ИТОГО: 500.00 [15:03:10]line Внесено: 500.00 [15:03:10]line СДАЧА: 0.00 [15:03:10]line НСП 1% : 4.43 [15:03:10]line НДС 12% : 53.11 [15:03:10]line Наличными: 500.00 [15:03:10]line Безнал.: 0.00 [15:03:10]line Место: АЗС № 92 "Партнер Нефть" [15:03:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:03:10]line СНО: Общий режим [15:03:10]line Чек 154 21.02.2025 15:03 [15:03:10]line Смена: 649 ФФД: 1.0 [15:03:10]line ЗНМ: 0300000118 [15:03:10]line РНМ: 0000000000091857 [15:03:10]line Версия ККМ: 001 [15:03:10]line ФМ: 0000000000871826 [15:03:10]line ФД: 187660 [15:03:10]line ФПД: 115018278636439 [15:03:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150309&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187660&fm=115018278636439&tin=02508201610067®Number=0000000000091857&sum=50000 [15:03:10]OFD Sender: Processing packet 187660 [packets to send 49, broken 48] [15:03:10]ProducePacketName [15:03:10]name=ofd_packets/00187660 [15:03:10]OFD Sender: To server: pG, [15:03:10]CommunicateWithHost lk.salyk.kg:30040 [15:03:10]ConnectInit lk.salyk.kg [15:03:10]written 0, free lines is 4095 [15:03:10]Connected sock=10 [15:03:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 E5 07 01 59 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 AD 95 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DD 02 00 35 04 06 00 68 9B C7 A4 0B 97 D4 AB 50 D7 13 60 42 4B [15:03:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B1 57 47 00 CB 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DD 02 00 F4 03 04 00 FA 3B B8 67 B6 04 01 00 00 C8 D9 FC C4 CE DD 0D 3C [15:03:10]CommunicateWithHost err = 0 [15:03:10]CheckOFDResponse [15:03:10]1017 (14) - 77093643461234 [15:03:10]1041 (16) - 0000000000871826 [15:03:10]1040 (4) - 187660 [15:03:10]1012 (4) - 21.02.2025 08:40 [15:03:10]1206 (1) - 0 [15:03:10]OFD Sender: Remove packet 187660 [15:03:10]ProducePacketName [15:03:10]name=ofd_packets/00187660 [15:03:10]NVStorageDeleteData [15:03:10]Write to MH i2c: 01 00 00 BF 0B CA [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 07 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 07 00 BF 0B 00 00 00 00 00 F5 0C D2 [15:03:10]RasterBufferAndPrint [15:03:10]line [15:03:10]line [15:03:10]line [15:03:10]line [15:03:10]line [15:03:10]written 0, free lines is 3323 [15:03:10]MH_Cut [15:03:10]Write to MH i2c: D1 01 00 C6 0B 01 A3 [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: D1 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: D1 01 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: D1 01 00 C6 0B 00 A2 [15:03:10]Write to MH i2c: 01 00 00 C7 0B D2 [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:11]OFD Sender: No OFD packet to send [15:03:11]*** Cut start [15:03:11]*** Partial cut [15:03:11]*** CUTSNS_PIN = 1 [15:03:11]*** CUTSNS_PIN = 0 [15:03:11]*** Brake cut motor [15:03:12]Read from MH i2c: 01 [15:03:12]MH_I2C_Read... [15:03:12]*** Stop cut motor [15:03:12]*** Cut end [15:03:12]Read from MH i2c: 01 07 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: 01 07 00 C7 0B 00 00 00 00 00 FF 0F E7 [15:03:12]process_action close_receipt done [15:03:12]requested_data is exist [15:03:12]produce_requested_data [15:03:12]requested_item fm.sn is exist - process it [15:03:12]wFMCommunicate request_size=4 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 11 00 00 [15:03:12]Write to MH i2c: E2 08 00 C8 0B 80 11 00 00 00 00 00 00 4D [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 17 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 17 00 C8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [15:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:03:12]wFMCommunicate OK [15:03:12]requested_item fd.num is exist - process it [15:03:12]SAM_PROTO_GetFieldsCounters [15:03:12]wFMCommunicate request_size=4 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 13 00 00 [15:03:12]Write to MH i2c: E2 08 00 C9 0B 80 13 00 00 00 00 00 00 50 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 62 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 62 00 C9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0C DD 02 00 0E 04 04 00 89 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 BA [15:03:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0C DD 02 00 0E 04 04 00 89 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 [15:03:12]wFMCommunicate OK [15:03:12]SAM_PROTO_GetFieldsCounters done [15:03:12]requested_item shift.num is exist - process it [15:03:12]requested_item shift.opened is exist - process it [15:03:12]req_shift_opened [15:03:12]FM_GetShiftState [15:03:12]SAM_PROTO_GetShiftState [15:03:12]wFMCommunicate request_size=4 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 13 01 00 [15:03:12]Write to MH i2c: E2 08 00 CA 0B 80 13 01 00 00 00 00 00 52 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 0E 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 0E 00 CA 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 40 [15:03:12]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:03:12]wFMCommunicate OK [15:03:12]SAM_PROTO_GetShiftState done [15:03:12]FM_GetShiftState done [15:03:12]req_shift_opened done [15:03:12]requested_item shift.open_date is exist - process it [15:03:12]req_shift_open_date [15:03:12]req_shift_open_date done [15:03:12]produce_requested_data done [15:03:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187660,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:03:12]process_action_free close_receipt [15:03:12]json_value_free [15:03:12]json_value_free done [15:03:12]process_json_proto returns [15:03:12]Send response to host [15:03:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187660,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:03:12]free response buf [15:03:12]execute_script done [15:03:12]execute_script returns [15:03:12]free content buf [15:03:12]Sock 7.Close socket [15:03:12]Sock 7.Thread stoped [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:04]accept exits with 9 [15:05:04]New connection [15:05:04]New thread 3067624804 created [15:05:04]Thread 3067481444 joined [15:05:04]Waiting for new connection... [15:05:04] Sock 9.Parse request [15:05:04]Sock 9.Check first char [15:05:04]Sock 9.First char is OK [15:05:04]request: POST /json_proto HTTP/1.0 [15:05:04]Method: POST [15:05:04]URL: /json_proto [15:05:04]Method is POST - this is cgi request [15:05:04]url: /json_proto [15:05:04]query_string will be loaded in cgi processing [15:05:04]execute_cgi json_proto POST (null) [15:05:04]execute_cgi path=json_proto method=POST [15:05:04]POST find Content-Length [15:05:04]Host: 172.17.46.131:8080 [15:05:04]Content-Length: 673 [15:05:04]Content-Type: application/json [15:05:04] [15:05:04]POST finish read [15:05:04]Found Content-Length = 673 [15:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:04]execute_script... [15:05: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)412821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:04]POST & json_proto [15:05:04]process_json_proto [15:05:04]json parsed OK: [15:05:04]protocol is kg_v1.0 [15:05:04]action value=close_receipt [15:05:04]process_action close_receipt [15:05:04]cmd_close_receipt [15:05:04]MH_GetDate [15:05:04]Write to MH i2c: F0 00 00 CB 0B C5 [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: F0 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: F0 09 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: F0 09 00 CB 0B 00 21 96 B8 67 7E 41 4F 65 17 [15:05:04]GetLastDocTimeStamp 1740150189 [15:05:04]current date 1740150305 [15:05:04]FM_GetShiftState [15:05:04]SAM_PROTO_GetShiftState [15:05:04]wFMCommunicate request_size=4 [15:05:04]MH_SAM_APDU [15:05:04]CAPDU: 80 13 01 00 [15:05:04]Write to MH i2c: E2 08 00 CC 0B 80 13 01 00 00 00 00 00 54 [15:05:04]Write i2c OK [15:05:04]MH_I2C_Read... [15:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:04]Read from MH i2c: E2 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 0E 00 [15:05:04]MH_I2C_Read... [15:05:04]Read from MH i2c: E2 0E 00 CC 0B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 42 [15:05:04]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:05:04]wFMCommunicate OK [15:05:04]SAM_PROTO_GetShiftState done [15:05:04]FM_GetShiftState done [15:05:04]opened in 1740098043 [15:05:04]opened+sec_in_day 1740184443 [15:05:04]quantity*price = 50021 [15:05:04]sum+1 = 50022 [15:05:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 155 21.02.2025 15:05 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187661 ФПД: 118043071392976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150505&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187661&fm=118043071392976&tin=02508201610067®Number=0000000000091857&sum=50000 [15:05:05]StoreToDocumentArchive [15:05:05]shift 649 fd 187661 [15:05:05]save to /storage/0649/doc_00187661 [15:05:05]save last doc name /storage/0649/doc_00187661 to /storage/kkm_last_doc_name [15:05:05]save OK [15:05:05]Clear old archive folders... [15:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:05:05]tlvbuf is 00BFDAB0 [15:05:05]SAM_PROTO_ClearQueue [15:05:05]wFMCommunicate request_size=4 [15:05:05]MH_SAM_APDU [15:05:05]CAPDU: 80 09 00 00 [15:05:05]Write to MH i2c: E2 08 00 D9 0B 80 09 00 00 00 00 00 00 56 [15:05:05]Write i2c OK [15:05:05]MH_I2C_Read... [15:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:05]Read from MH i2c: E2 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: E2 03 00 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [15:05:05]RAPDU: 90 00 [15:05:05]wFMCommunicate OK [15:05:05]SAM_PROTO_ClearQueue done [15:05:05]KKMCreateOFDPacket [15:05:05]OFDProtocolAddRootSTLVToBuf [15:05:05]FM_MakeSignedData [15:05:05]FM_MakeSignedData [15:05:05]SAM_PROTO_SignData [15:05:05]wFMCommunicate request_size=4 [15:05:05]MH_SAM_APDU [15:05:05]CAPDU: 80 0D 01 02 [15:05:05]Write to MH i2c: E2 08 00 DA 0B 80 0D 01 02 00 00 00 00 5E [15:05:05]Write i2c OK [15:05:05]MH_I2C_Read... [15:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:05]Read from MH i2c: E2 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: E2 03 00 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [15:05:05]RAPDU: 90 00 [15:05:05]wFMCommunicate OK [15:05:05]wFMCommunicate request_size=255 [15:05:05]MH_SAM_APDU [15:05:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DD 02 00 35 04 06 00 6B 5C 0B 56 [15:05:05]Write to MH i2c: E2 02 01 DB 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DD 02 00 35 04 06 00 6B 5C 0B 56 00 00 2A [15:05:05]Write i2c OK [15:05:05]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 DB 0B 00 90 00 5A [15:05:06]RAPDU: 90 00 [15:05:06]wFMCommunicate OK [15:05:06]wFMCommunicate request_size=7 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 0D 02 02 02 AC D0 [15:05:06]Write to MH i2c: E2 0A 00 DC 0B 80 0D 02 02 02 00 AC D0 00 00 E1 [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 DC 0B 00 90 00 5B [15:05:06]RAPDU: 90 00 [15:05:06]wFMCommunicate OK [15:05:06]wFMCommunicate request_size=4 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 0D 03 02 [15:05:06]Write to MH i2c: E2 08 00 DD 0B 80 0D 03 02 00 00 00 00 63 [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 0B 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 0B 00 DD 0B 00 C4 6A 5A AC A7 03 07 D3 90 00 1C [15:05:06]RAPDU: C4 6A 5A AC A7 03 07 D3 90 00 [15:05:06]wFMCommunicate OK [15:05:06]SAM_PROTO_SignData done [15:05:06]FM_MakeSignedData done [15:05:06]CreateOFDProtocolMessage [15:05:06]wFMCommunicate request_size=4 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 11 00 00 [15:05:06]Write to MH i2c: E2 08 00 DE 0B 80 11 00 00 00 00 00 00 63 [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 17 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 17 00 DE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [15:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:05:06]wFMCommunicate OK [15:05:06]CreateOFDProtocolMessage done [15:05:06]OFDSenderStorePacket 187661 [15:05:06]StoreOFDPacket docnum=187661 [15:05:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 95 BA 04 01 0D C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DD 02 00 35 04 06 00 6B 5C 0B 56 AC D0 C4 6A 5A AC A7 03 07 D3 [15:05:06]CheckFolder [15:05:06]dirname=/storage/ofd_packets [15:05:06]CheckFolder done [15:05:06]ProducePacketName [15:05:06]name=ofd_packets/00187661 [15:05:06]NVStorageSaveData ofd_packets/00187661 [15:05:06]File name is /storage/ofd_packets/00187661 [15:05:06]Write 298 bytes [15:05:06]NVStorageSaveData done [15:05:06]OFDSenderStorePacket done [15:05:06]KKMCreateOFDPacket done [15:05:06]NVStorageSaveData kkm_last_timestamp [15:05:06]File name is /storage/kkm_last_timestamp [15:05:06]Write 4 bytes [15:05:06]NVStorageSaveData done [15:05:06]ExternCall_PrintAddStr [15:05:06]wPrintStart [15:05:06]Write to MH i2c: 01 00 00 DF 0B EA [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: 01 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: 01 07 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: 01 07 00 DF 0B 00 00 00 00 00 FF 0F FF [15:05:06]RasterBufferAndPrint [15:05:06]line Счет N : (1)412821 [15:05:06]line ИНН: 02508201610067 [15:05:06]line Контрольно-Кассовый Чек [15:05:06]line ПРОДАЖА [15:05:06]line ТРК (МРК, ГНК) : 5 [15:05:06]line Товар: 2710194210 [15:05:06]line ДТ-К-5 [15:05:06]line 6.890 * 72.60 [15:05:06]line = 500.21 [15:05:06]line НДС 12% НСП 1% [15:05:06]line > о реализуемом товаре [15:05:06]line ОКРУГЛЕНИЕ: -0.21 [15:05:06]line ИТОГО: 500.00 [15:05:06]line Внесено: 500.00 [15:05:06]line СДАЧА: 0.00 [15:05:06]line НСП 1% : 4.43 [15:05:06]line НДС 12% : 53.12 [15:05:06]line Наличными: 500.00 [15:05:06]line Безнал.: 0.00 [15:05:06]line Место: АЗС № 92 "Партнер Нефть" [15:05:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:05:06]line СНО: Общий режим [15:05:06]line Чек 155 21.02.2025 15:05 [15:05:06]line Смена: 649 ФФД: 1.0 [15:05:06]line ЗНМ: 0300000118 [15:05:06]line РНМ: 0000000000091857 [15:05:06]line Версия ККМ: 001 [15:05:06]line ФМ: 0000000000871826 [15:05:06]line ФД: 187661 [15:05:06]line ФПД: 118043071392976 [15:05:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150505&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187661&fm=118043071392976&tin=02508201610067®Number=0000000000091857&sum=50000 [15:05:06]OFD Sender: Processing packet 187661 [packets to send 49, broken 48] [15:05:06]ProducePacketName [15:05:06]name=ofd_packets/00187661 [15:05:06]OFD Sender: To server: pG, [15:05:06]CommunicateWithHost lk.salyk.kg:30040 [15:05:06]ConnectInit lk.salyk.kg [15:05:06]written 0, free lines is 4095 [15:05:06]Connected sock=10 [15:05:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 95 BA 04 01 0D C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 21 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DD 02 00 35 04 06 00 6B 5C 0B 56 AC D0 C4 6A 5A AC A7 03 07 D3 [15:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 03 45 47 00 BE BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DD 02 00 F4 03 04 00 6E 3C B8 67 B6 04 01 00 00 B0 97 78 2B AC 82 12 0E [15:05:06]CommunicateWithHost err = 0 [15:05:06]CheckOFDResponse [15:05:06]1017 (14) - 77093643461234 [15:05:06]1041 (16) - 0000000000871826 [15:05:06]1040 (4) - 187661 [15:05:06]1012 (4) - 21.02.2025 08:42 [15:05:06]1206 (1) - 0 [15:05:06]OFD Sender: Remove packet 187661 [15:05:06]ProducePacketName [15:05:06]name=ofd_packets/00187661 [15:05:06]NVStorageDeleteData [15:05:06]Write to MH i2c: 01 00 00 0A 0C 16 [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: 01 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: 01 07 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: 01 07 00 0A 0C 00 00 00 00 00 F0 0C 19 [15:05:06]RasterBufferAndPrint [15:05:06]line [15:05:06]line [15:05:06]line [15:05:06]line [15:05:06]line [15:05:06]written 0, free lines is 3318 [15:05:07]MH_Cut [15:05:07]Write to MH i2c: D1 01 00 11 0C 01 EF [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: D1 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: D1 01 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: D1 01 00 11 0C 00 EE [15:05:07]Write to MH i2c: 01 00 00 12 0C 1E [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]OFD Sender: No OFD packet to send [15:05:07]*** Cut start [15:05:07]*** Partial cut [15:05:07]*** CUTSNS_PIN = 1 [15:05:07]*** CUTSNS_PIN = 0 [15:05:08]*** Brake cut motor [15:05:08]Read from MH i2c: 01 [15:05:08]MH_I2C_Read... [15:05:08]*** Stop cut motor [15:05:08]*** Cut end [15:05:08]Read from MH i2c: 01 07 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: 01 07 00 12 0C 00 00 00 00 00 FF 0F 33 [15:05:08]process_action close_receipt done [15:05:08]requested_data is exist [15:05:08]produce_requested_data [15:05:08]requested_item fm.sn is exist - process it [15:05:08]wFMCommunicate request_size=4 [15:05:08]MH_SAM_APDU [15:05:08]CAPDU: 80 11 00 00 [15:05:08]Write to MH i2c: E2 08 00 13 0C 80 11 00 00 00 00 00 00 99 [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:08]Read from MH i2c: E2 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 17 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 17 00 13 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EC [15:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:05:08]wFMCommunicate OK [15:05:08]requested_item fd.num is exist - process it [15:05:08]SAM_PROTO_GetFieldsCounters [15:05:08]wFMCommunicate request_size=4 [15:05:08]MH_SAM_APDU [15:05:08]CAPDU: 80 13 00 00 [15:05:08]Write to MH i2c: E2 08 00 14 0C 80 13 00 00 00 00 00 00 9C [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:08]Read from MH i2c: E2 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 62 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 62 00 14 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0D DD 02 00 0E 04 04 00 89 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 0A [15:05:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0D DD 02 00 0E 04 04 00 89 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 [15:05:08]wFMCommunicate OK [15:05:08]SAM_PROTO_GetFieldsCounters done [15:05:08]requested_item shift.num is exist - process it [15:05:08]requested_item shift.opened is exist - process it [15:05:08]req_shift_opened [15:05:08]FM_GetShiftState [15:05:08]SAM_PROTO_GetShiftState [15:05:08]wFMCommunicate request_size=4 [15:05:08]MH_SAM_APDU [15:05:08]CAPDU: 80 13 01 00 [15:05:08]Write to MH i2c: E2 08 00 15 0C 80 13 01 00 00 00 00 00 9E [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 [15:05:08]MH_I2C_Read... [15:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:08]Read from MH i2c: E2 0E 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: E2 0E 00 15 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 8C [15:05:08]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:05:08]wFMCommunicate OK [15:05:08]SAM_PROTO_GetShiftState done [15:05:08]FM_GetShiftState done [15:05:08]req_shift_opened done [15:05:08]requested_item shift.open_date is exist - process it [15:05:08]req_shift_open_date [15:05:08]req_shift_open_date done [15:05:08]produce_requested_data done [15:05:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187661,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:05:08]process_action_free close_receipt [15:05:08]json_value_free [15:05:08]json_value_free done [15:05:08]process_json_proto returns [15:05:08]Send response to host [15:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187661,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:05:08]free response buf [15:05:08]execute_script done [15:05:08]execute_script returns [15:05:08]free content buf [15:05:08]Sock 9.Close socket [15:05:08]Sock 9.Thread stoped [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:44]accept exits with 7 [15:05:44]New connection [15:05:44]New thread 3067481444 created [15:05:44]Thread 3067624804 joined [15:05:44]Waiting for new connection... [15:05:44] Sock 7.Parse request [15:05:44]Sock 7.Check first char [15:05:44]Sock 7.First char is OK [15:05:44]request: POST /json_proto HTTP/1.0 [15:05:44]Method: POST [15:05:44]URL: /json_proto [15:05:44]Method is POST - this is cgi request [15:05:44]url: /json_proto [15:05:44]query_string will be loaded in cgi processing [15:05:44]execute_cgi json_proto POST (null) [15:05:44]execute_cgi path=json_proto method=POST [15:05:44]POST find Content-Length [15:05:44]Host: 172.17.46.131:8080 [15:05:44]Content-Length: 677 [15:05:44]Content-Type: application/json [15:05:44] [15:05:44]POST finish read [15:05:44]Found Content-Length = 677 [15:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:44]execute_script... [15:05: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)412822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:44]POST & json_proto [15:05:44]process_json_proto [15:05:44]json parsed OK: [15:05:44]protocol is kg_v1.0 [15:05:44]action value=close_receipt [15:05:44]process_action close_receipt [15:05:44]cmd_close_receipt [15:05:44]MH_GetDate [15:05:44]Write to MH i2c: F0 00 00 16 0C 11 [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: F0 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: F0 09 00 [15:05:44]MH_I2C_Read... [15:05:44]Read from MH i2c: F0 09 00 16 0C 00 49 96 B8 67 7E 41 4F 65 8B [15:05:44]GetLastDocTimeStamp 1740150305 [15:05:44]current date 1740150345 [15:05:44]FM_GetShiftState [15:05:44]SAM_PROTO_GetShiftState [15:05:44]wFMCommunicate request_size=4 [15:05:44]MH_SAM_APDU [15:05:44]CAPDU: 80 13 01 00 [15:05:44]Write to MH i2c: E2 08 00 17 0C 80 13 01 00 00 00 00 00 A0 [15:05:44]Write i2c OK [15:05:44]MH_I2C_Read... [15:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:45]Read from MH i2c: E2 [15:05:45]MH_I2C_Read... [15:05:45]Read from MH i2c: E2 0E 00 [15:05:45]MH_I2C_Read... [15:05:45]Read from MH i2c: E2 0E 00 17 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 8E [15:05:45]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:05:45]wFMCommunicate OK [15:05:45]SAM_PROTO_GetShiftState done [15:05:45]FM_GetShiftState done [15:05:45]opened in 1740098043 [15:05:45]opened+sec_in_day 1740184443 [15:05:45]quantity*price = 50011 [15:05:45]sum+1 = 50013 [15:05:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 156 21.02.2025 15:05 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187662 ФПД: 126364591218171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150545&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187662&fm=126364591218171&tin=02508201610067®Number=0000000000091857&sum=50000 [15:05:46]StoreToDocumentArchive [15:05:46]shift 649 fd 187662 [15:05:46]save to /storage/0649/doc_00187662 [15:05:46]save last doc name /storage/0649/doc_00187662 to /storage/kkm_last_doc_name [15:05:46]save OK [15:05:46]Clear old archive folders... [15:05:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:46]tlvbuf is 00C0CC10 [15:05:46]SAM_PROTO_ClearQueue [15:05:46]wFMCommunicate request_size=4 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 09 00 00 [15:05:46]Write to MH i2c: E2 08 00 24 0C 80 09 00 00 00 00 00 00 A2 [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [15:05:46]RAPDU: 90 00 [15:05:46]wFMCommunicate OK [15:05:46]SAM_PROTO_ClearQueue done [15:05:46]KKMCreateOFDPacket [15:05:46]OFDProtocolAddRootSTLVToBuf [15:05:46]FM_MakeSignedData [15:05:46]FM_MakeSignedData [15:05:46]SAM_PROTO_SignData [15:05:46]wFMCommunicate request_size=4 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 0D 01 02 [15:05:46]Write to MH i2c: E2 08 00 25 0C 80 0D 01 02 00 00 00 00 AA [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 25 0C 00 90 00 A5 [15:05:46]RAPDU: 90 00 [15:05:46]wFMCommunicate OK [15:05:46]wFMCommunicate request_size=255 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 49 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DD 02 00 35 04 06 00 72 [15:05:46]Write to MH i2c: E2 02 01 26 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 49 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DD 02 00 35 04 06 00 72 00 00 C7 [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 26 0C 00 90 00 A6 [15:05:46]RAPDU: 90 00 [15:05:46]wFMCommunicate OK [15:05:46]wFMCommunicate request_size=10 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 0D 02 02 05 ED 8C 92 5D FB [15:05:46]Write to MH i2c: E2 0D 00 27 0C 80 0D 02 02 05 00 ED 8C 92 5D FB 00 00 1A [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:46]Read from MH i2c: E2 03 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [15:05:46]RAPDU: 90 00 [15:05:46]wFMCommunicate OK [15:05:46]wFMCommunicate request_size=4 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 0D 03 02 [15:05:46]Write to MH i2c: E2 08 00 28 0C 80 0D 03 02 00 00 00 00 AF [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 0B 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 0B 00 28 0C 00 EE 04 44 B6 58 8D 4A 19 90 00 E4 [15:05:46]RAPDU: EE 04 44 B6 58 8D 4A 19 90 00 [15:05:46]wFMCommunicate OK [15:05:46]SAM_PROTO_SignData done [15:05:46]FM_MakeSignedData done [15:05:46]CreateOFDProtocolMessage [15:05:46]wFMCommunicate request_size=4 [15:05:46]MH_SAM_APDU [15:05:46]CAPDU: 80 11 00 00 [15:05:46]Write to MH i2c: E2 08 00 29 0C 80 11 00 00 00 00 00 00 AF [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:46]Read from MH i2c: E2 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 17 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: E2 17 00 29 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 02 [15:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:05:46]wFMCommunicate OK [15:05:46]CreateOFDProtocolMessage done [15:05:46]OFDSenderStorePacket 187662 [15:05:46]StoreOFDPacket docnum=187662 [15:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 52 69 07 01 E1 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 49 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DD 02 00 35 04 06 00 72 ED 8C 92 5D FB EE 04 44 B6 58 8D 4A 19 [15:05:46]CheckFolder [15:05:46]dirname=/storage/ofd_packets [15:05:46]CheckFolder done [15:05:46]ProducePacketName [15:05:46]name=ofd_packets/00187662 [15:05:46]NVStorageSaveData ofd_packets/00187662 [15:05:46]File name is /storage/ofd_packets/00187662 [15:05:46]Write 301 bytes [15:05:46]NVStorageSaveData done [15:05:46]OFDSenderStorePacket done [15:05:46]KKMCreateOFDPacket done [15:05:46]NVStorageSaveData kkm_last_timestamp [15:05:46]File name is /storage/kkm_last_timestamp [15:05:46]Write 4 bytes [15:05:46]NVStorageSaveData done [15:05:46]ExternCall_PrintAddStr [15:05:46]wPrintStart [15:05:46]Write to MH i2c: 01 00 00 2A 0C 36 [15:05:46]Write i2c OK [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 [15:05:46]MH_I2C_Read... [15:05:46]Read from MH i2c: 01 07 00 2A 0C 00 00 00 00 00 FF 0F 4B [15:05:46]RasterBufferAndPrint [15:05:46]line Счет N : (1)412822 [15:05:46]line ИНН: 02508201610067 [15:05:46]line Контрольно-Кассовый Чек [15:05:46]line ПРОДАЖА [15:05:46]line ТРК (МРК, ГНК) : 32 [15:05:46]line Товар: 2710124130 [15:05:46]line Аи-92-К-2 [15:05:46]line 7.790 * 64.20 [15:05:46]line = 500.12 [15:05:46]line НДС 12% НСП 1% [15:05:46]line > о реализуемом товаре [15:05:46]line ОКРУГЛЕНИЕ: -0.12 [15:05:46]line ИТОГО: 500.00 [15:05:46]line Внесено: 500.00 [15:05:46]line СДАЧА: 0.00 [15:05:46]line НСП 1% : 4.43 [15:05:46]line НДС 12% : 53.11 [15:05:46]line Наличными: 500.00 [15:05:46]line Безнал.: 0.00 [15:05:46]line Место: АЗС № 92 "Партнер Нефть" [15:05:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:05:46]line СНО: Общий режим [15:05:46]line Чек 156 21.02.2025 15:05 [15:05:46]line Смена: 649 ФФД: 1.0 [15:05:46]line ЗНМ: 0300000118 [15:05:46]line РНМ: 0000000000091857 [15:05:46]line Версия ККМ: 001 [15:05:46]line ФМ: 0000000000871826 [15:05:46]line ФД: 187662 [15:05:46]line ФПД: 126364591218171 [15:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150545&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187662&fm=126364591218171&tin=02508201610067®Number=0000000000091857&sum=50000 [15:05:47]written 0, free lines is 4095 [15:05:47]OFD Sender: Processing packet 187662 [packets to send 49, broken 48] [15:05:47]ProducePacketName [15:05:47]name=ofd_packets/00187662 [15:05:47]OFD Sender: To server: pG, [15:05:47]CommunicateWithHost lk.salyk.kg:30040 [15:05:47]ConnectInit lk.salyk.kg [15:05:47]Connected sock=10 [15:05:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 52 69 07 01 E1 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 49 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DD 02 00 35 04 06 00 72 ED 8C 92 5D FB EE 04 44 B6 58 8D 4A 19 [15:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D6 F0 47 00 C8 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 38 32 36 10 04 04 00 0E DD 02 00 F4 03 04 00 97 3C B8 67 B6 04 01 00 00 76 A7 F1 DD 44 78 72 E1 [15:05:47]CommunicateWithHost err = 0 [15:05:47]CheckOFDResponse [15:05:47]1017 (14) - 77093643461234 [15:05:47]1041 (16) - 0000000000871826 [15:05:47]1040 (4) - 187662 [15:05:47]1012 (4) - 21.02.2025 08:43 [15:05:47]1206 (1) - 0 [15:05:47]OFD Sender: Remove packet 187662 [15:05:47]ProducePacketName [15:05:47]name=ofd_packets/00187662 [15:05:47]NVStorageDeleteData [15:05:47]Write to MH i2c: 01 00 00 55 0C 61 [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: 01 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: 01 07 00 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: 01 07 00 55 0C 00 00 00 00 00 FD 0C 71 [15:05:47]RasterBufferAndPrint [15:05:47]line [15:05:47]line [15:05:47]line [15:05:47]line [15:05:47]line [15:05:47]written 0, free lines is 3332 [15:05:47]MH_Cut [15:05:47]Write to MH i2c: D1 01 00 5C 0C 01 3A [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: D1 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: D1 01 00 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: D1 01 00 5C 0C 00 39 [15:05:47]Write to MH i2c: 01 00 00 5D 0C 69 [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:48]OFD Sender: No OFD packet to send [15:05:48]*** Cut start [15:05:48]*** Partial cut [15:05:48]*** CUTSNS_PIN = 1 [15:05:48]*** CUTSNS_PIN = 0 [15:05:48]*** Brake cut motor [15:05:48]Read from MH i2c: 01 [15:05:48]MH_I2C_Read... [15:05:48]*** Stop cut motor [15:05:48]*** Cut end [15:05:48]Read from MH i2c: 01 07 00 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: 01 07 00 5D 0C 00 00 00 00 00 FF 0F 7E [15:05:48]process_action close_receipt done [15:05:48]requested_data is exist [15:05:48]produce_requested_data [15:05:48]requested_item fm.sn is exist - process it [15:05:48]wFMCommunicate request_size=4 [15:05:48]MH_SAM_APDU [15:05:48]CAPDU: 80 11 00 00 [15:05:48]Write to MH i2c: E2 08 00 5E 0C 80 11 00 00 00 00 00 00 E4 [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:48]Read from MH i2c: E2 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: E2 17 00 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: E2 17 00 5E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [15:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:05:48]wFMCommunicate OK [15:05:48]requested_item fd.num is exist - process it [15:05:48]SAM_PROTO_GetFieldsCounters [15:05:48]wFMCommunicate request_size=4 [15:05:48]MH_SAM_APDU [15:05:48]CAPDU: 80 13 00 00 [15:05:48]Write to MH i2c: E2 08 00 5F 0C 80 13 00 00 00 00 00 00 E7 [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:49]Read from MH i2c: E2 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 62 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 62 00 5F 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0E DD 02 00 0E 04 04 00 89 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 59 [15:05:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0E DD 02 00 0E 04 04 00 89 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 [15:05:49]wFMCommunicate OK [15:05:49]SAM_PROTO_GetFieldsCounters done [15:05:49]requested_item shift.num is exist - process it [15:05:49]requested_item shift.opened is exist - process it [15:05:49]req_shift_opened [15:05:49]FM_GetShiftState [15:05:49]SAM_PROTO_GetShiftState [15:05:49]wFMCommunicate request_size=4 [15:05:49]MH_SAM_APDU [15:05:49]CAPDU: 80 13 01 00 [15:05:49]Write to MH i2c: E2 08 00 60 0C 80 13 01 00 00 00 00 00 E9 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:49]Read from MH i2c: E2 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 0E 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 0E 00 60 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D7 [15:05:49]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:05:49]wFMCommunicate OK [15:05:49]SAM_PROTO_GetShiftState done [15:05:49]FM_GetShiftState done [15:05:49]req_shift_opened done [15:05:49]requested_item shift.open_date is exist - process it [15:05:49]req_shift_open_date [15:05:49]req_shift_open_date done [15:05:49]produce_requested_data done [15:05:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187662,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:05:49]process_action_free close_receipt [15:05:49]json_value_free [15:05:49]json_value_free done [15:05:49]process_json_proto returns [15:05:49]Send response to host [15:05:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187662,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:05:49]free response buf [15:05:49]execute_script done [15:05:49]execute_script returns [15:05:49]free content buf [15:05:49]Sock 7.Close socket [15:05:49]Sock 7.Thread stoped [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:05:58]accept exits with 9 [15:05:58]New connection [15:05:58]New thread 3067624804 created [15:05:58]Thread 3067481444 joined [15:05:58]Waiting for new connection... [15:05:58] Sock 9.Parse request [15:05:58]Sock 9.Check first char [15:05:58]Sock 9.First char is OK [15:05:58]request: POST /json_proto HTTP/1.0 [15:05:58]Method: POST [15:05:58]URL: /json_proto [15:05:58]Method is POST - this is cgi request [15:05:58]url: /json_proto [15:05:58]query_string will be loaded in cgi processing [15:05:58]execute_cgi json_proto POST (null) [15:05:58]execute_cgi path=json_proto method=POST [15:05:58]POST find Content-Length [15:05:58]Host: 172.17.46.131:8080 [15:05:58]Content-Length: 796 [15:05:58]Content-Type: application/json [15:05:58] [15:05:58]POST finish read [15:05:58]Found Content-Length = 796 [15:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:58]execute_script... [15:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:58]POST & json_proto [15:05:58]process_json_proto [15:05:58]json parsed OK: [15:05:58]protocol is kg_v1.0 [15:05:58]action value=close_receipt [15:05:58]process_action close_receipt [15:05:58]cmd_close_receipt [15:05:58]MH_GetDate [15:05:58]Write to MH i2c: F0 00 00 61 0C 5C [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: F0 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: F0 09 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: F0 09 00 61 0C 00 57 96 B8 67 7E 41 4F 65 E4 [15:05:58]GetLastDocTimeStamp 1740150345 [15:05:58]current date 1740150359 [15:05:58]FM_GetShiftState [15:05:58]SAM_PROTO_GetShiftState [15:05:58]wFMCommunicate request_size=4 [15:05:58]MH_SAM_APDU [15:05:58]CAPDU: 80 13 01 00 [15:05:58]Write to MH i2c: E2 08 00 62 0C 80 13 01 00 00 00 00 00 EB [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:58]Read from MH i2c: E2 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 0E 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 0E 00 62 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D9 [15:05:58]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:05:58]wFMCommunicate OK [15:05:58]SAM_PROTO_GetShiftState done [15:05:58]FM_GetShiftState done [15:05:58]opened in 1740098043 [15:05:58]opened+sec_in_day 1740184443 [15:05:58]quantity*price = 40002 [15:05:58]sum+1 = 40004 [15:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.03 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.03 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 157 21.02.2025 15:05 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187663 ФПД: 155834005883494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150559&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187663&fm=155834005883494&tin=02508201610067®Number=0000000000091857&sum=40003 [15:05:59]StoreToDocumentArchive [15:05:59]shift 649 fd 187663 [15:05:59]save to /storage/0649/doc_00187663 [15:05:59]save last doc name /storage/0649/doc_00187663 to /storage/kkm_last_doc_name [15:05:59]save OK [15:05:59]Clear old archive folders... [15:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:05:59]tlvbuf is 00BCA0A0 [15:05:59]SAM_PROTO_ClearQueue [15:05:59]wFMCommunicate request_size=4 [15:05:59]MH_SAM_APDU [15:05:59]CAPDU: 80 09 00 00 [15:05:59]Write to MH i2c: E2 08 00 6F 0C 80 09 00 00 00 00 00 00 ED [15:05:59]Write i2c OK [15:05:59]MH_I2C_Read... [15:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:59]Read from MH i2c: E2 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 03 00 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [15:05:59]RAPDU: 90 00 [15:05:59]wFMCommunicate OK [15:05:59]SAM_PROTO_ClearQueue done [15:05:59]KKMCreateOFDPacket [15:05:59]OFDProtocolAddRootSTLVToBuf [15:05:59]FM_MakeSignedData [15:05:59]FM_MakeSignedData [15:05:59]SAM_PROTO_SignData [15:05:59]wFMCommunicate request_size=4 [15:05:59]MH_SAM_APDU [15:05:59]CAPDU: 80 0D 01 02 [15:05:59]Write to MH i2c: E2 08 00 70 0C 80 0D 01 02 00 00 00 00 F5 [15:05:59]Write i2c OK [15:05:59]MH_I2C_Read... [15:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:59]Read from MH i2c: E2 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 03 00 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [15:05:59]RAPDU: 90 00 [15:05:59]wFMCommunicate OK [15:05:59]wFMCommunicate request_size=255 [15:05:59]MH_SAM_APDU [15:05:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 57 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DD 02 00 35 04 06 00 8D BA EE 90 [15:05:59]Write to MH i2c: E2 02 01 71 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 57 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DD 02 00 35 04 06 00 8D BA EE 90 00 00 F9 [15:05:59]Write i2c OK [15:05:59]MH_I2C_Read... [15:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:00]Read from MH i2c: E2 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 03 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [15:06:00]RAPDU: 90 00 [15:06:00]wFMCommunicate OK [15:06:00]wFMCommunicate request_size=7 [15:06:00]MH_SAM_APDU [15:06:00]CAPDU: 80 0D 02 02 02 8A 66 [15:06:00]Write to MH i2c: E2 0A 00 72 0C 80 0D 02 02 02 00 8A 66 00 00 EC [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:00]Read from MH i2c: E2 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 03 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [15:06:00]RAPDU: 90 00 [15:06:00]wFMCommunicate OK [15:06:00]wFMCommunicate request_size=4 [15:06:00]MH_SAM_APDU [15:06:00]CAPDU: 80 0D 03 02 [15:06:00]Write to MH i2c: E2 08 00 73 0C 80 0D 03 02 00 00 00 00 FA [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:00]Read from MH i2c: E2 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 0B 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 0B 00 73 0C 00 26 75 EA 58 C7 F8 BF 78 90 00 CE [15:06:00]RAPDU: 26 75 EA 58 C7 F8 BF 78 90 00 [15:06:00]wFMCommunicate OK [15:06:00]SAM_PROTO_SignData done [15:06:00]FM_MakeSignedData done [15:06:00]CreateOFDProtocolMessage [15:06:00]wFMCommunicate request_size=4 [15:06:00]MH_SAM_APDU [15:06:00]CAPDU: 80 11 00 00 [15:06:00]Write to MH i2c: E2 08 00 74 0C 80 11 00 00 00 00 00 00 FA [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:00]Read from MH i2c: E2 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 17 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 17 00 74 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [15:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:06:00]wFMCommunicate OK [15:06:00]CreateOFDProtocolMessage done [15:06:00]OFDSenderStorePacket 187663 [15:06:00]StoreOFDPacket docnum=187663 [15:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 89 BD 04 01 A1 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 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 57 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DD 02 00 35 04 06 00 8D BA EE 90 8A 66 26 75 EA 58 C7 F8 BF 78 [15:06:00]CheckFolder [15:06:00]dirname=/storage/ofd_packets [15:06:00]CheckFolder done [15:06:00]ProducePacketName [15:06:00]name=ofd_packets/00187663 [15:06:00]NVStorageSaveData ofd_packets/00187663 [15:06:00]File name is /storage/ofd_packets/00187663 [15:06:00]Write 298 bytes [15:06:00]NVStorageSaveData done [15:06:00]OFDSenderStorePacket done [15:06:00]KKMCreateOFDPacket done [15:06:00]NVStorageSaveData kkm_last_timestamp [15:06:00]File name is /storage/kkm_last_timestamp [15:06:00]Write 4 bytes [15:06:00]NVStorageSaveData done [15:06:00]ExternCall_PrintAddStr [15:06:00]wPrintStart [15:06:00]Write to MH i2c: 01 00 00 75 0C 81 [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: 01 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: 01 07 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: 01 07 00 75 0C 00 00 00 00 00 FF 0F 96 [15:06:00]RasterBufferAndPrint [15:06:00]line Счет N : (1)412823 [15:06:00]line ИНН: 02508201610067 [15:06:00]line Контрольно-Кассовый Чек [15:06:00]line ПРОДАЖА [15:06:00]line ТРК (МРК, ГНК) : 5 [15:06:00]line Товар: 2710194210 [15:06:00]line ДТ-К-5 [15:06:00]line 5.510 * 72.60 [15:06:00]line = 400.03 [15:06:00]line НДС 12% НСП 1% [15:06:00]line > о реализуемом товаре [15:06:00]line ИТОГО: 400.03 [15:06:00]line НСП 1% : 3.54 [15:06:00]line НДС 12% : 42.48 [15:06:00]line Наличными: 0.00 [15:06:00]line Безнал.: 400.03 [15:06:00]line Место: АЗС № 92 "Партнер Нефть" [15:06:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:06:00]line СНО: Общий режим [15:06:00]line Чек 157 21.02.2025 15:05 [15:06:00]line Смена: 649 ФФД: 1.0 [15:06:00]line ЗНМ: 0300000118 [15:06:00]line РНМ: 0000000000091857 [15:06:00]line Версия ККМ: 001 [15:06:00]line Платежная система: O! деньги [15:06:00]line ФМ: 0000000000871826 [15:06:00]line ФД: 187663 [15:06:00]line ФПД: 155834005883494 [15:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150559&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187663&fm=155834005883494&tin=02508201610067®Number=0000000000091857&sum=40003 [15:06:00]OFD Sender: Processing packet 187663 [packets to send 49, broken 48] [15:06:00]ProducePacketName [15:06:00]name=ofd_packets/00187663 [15:06:00]OFD Sender: To server: pG, [15:06:00]CommunicateWithHost lk.salyk.kg:30040 [15:06:00]ConnectInit lk.salyk.kg [15:06:00]written 0, free lines is 4095 [15:06:00]Connected sock=10 [15:06:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 89 BD 04 01 A1 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 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 57 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DD 02 00 35 04 06 00 8D BA EE 90 8A 66 26 75 EA 58 C7 F8 BF 78 [15:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F8 A0 47 00 83 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F DD 02 00 F4 03 04 00 A4 3C B8 67 B6 04 01 00 00 69 DC 12 79 B2 76 24 F4 [15:06:01]CommunicateWithHost err = 0 [15:06:01]CheckOFDResponse [15:06:01]1017 (14) - 77093643461234 [15:06:01]1041 (16) - 0000000000871826 [15:06:01]1040 (4) - 187663 [15:06:01]1012 (4) - 21.02.2025 08:43 [15:06:01]1206 (1) - 0 [15:06:01]OFD Sender: Remove packet 187663 [15:06:01]ProducePacketName [15:06:01]name=ofd_packets/00187663 [15:06:01]NVStorageDeleteData [15:06:01]Write to MH i2c: 01 00 00 9F 0C AB [15:06:01]Write i2c OK [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: 01 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: 01 07 00 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: 01 07 00 9F 0C 00 00 00 00 00 0A 0D C9 [15:06:01]RasterBufferAndPrint [15:06:01]line [15:06:01]line [15:06:01]line [15:06:01]line [15:06:01]line [15:06:01]written 0, free lines is 3344 [15:06:01]MH_Cut [15:06:01]Write to MH i2c: D1 01 00 A6 0C 01 84 [15:06:01]Write i2c OK [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: D1 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: D1 01 00 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: D1 01 00 A6 0C 00 83 [15:06:01]Write to MH i2c: 01 00 00 A7 0C B3 [15:06:01]Write i2c OK [15:06:01]MH_I2C_Read... [15:06:01]OFD Sender: No OFD packet to send [15:06:01]*** Cut start [15:06:01]*** Partial cut [15:06:01]*** CUTSNS_PIN = 1 [15:06:01]*** CUTSNS_PIN = 0 [15:06:02]*** Brake cut motor [15:06:02]Read from MH i2c: 01 [15:06:02]MH_I2C_Read... [15:06:02]*** Stop cut motor [15:06:02]*** Cut end [15:06:02]Read from MH i2c: 01 07 00 [15:06:02]MH_I2C_Read... [15:06:02]Read from MH i2c: 01 07 00 A7 0C 00 00 00 00 00 FF 0F C8 [15:06:02]process_action close_receipt done [15:06:02]requested_data is exist [15:06:02]produce_requested_data [15:06:02]requested_item fm.sn is exist - process it [15:06:02]wFMCommunicate request_size=4 [15:06:02]MH_SAM_APDU [15:06:02]CAPDU: 80 11 00 00 [15:06:02]Write to MH i2c: E2 08 00 A8 0C 80 11 00 00 00 00 00 00 2E [15:06:02]Write i2c OK [15:06:02]MH_I2C_Read... [15:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:02]Read from MH i2c: E2 [15:06:02]MH_I2C_Read... [15:06:02]Read from MH i2c: E2 17 00 [15:06:02]MH_I2C_Read... [15:06:02]Read from MH i2c: E2 17 00 A8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [15:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:06:02]wFMCommunicate OK [15:06:02]requested_item fd.num is exist - process it [15:06:02]SAM_PROTO_GetFieldsCounters [15:06:02]wFMCommunicate request_size=4 [15:06:02]MH_SAM_APDU [15:06:02]CAPDU: 80 13 00 00 [15:06:02]Write to MH i2c: E2 08 00 A9 0C 80 13 00 00 00 00 00 00 31 [15:06:02]Write i2c OK [15:06:02]MH_I2C_Read... [15:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:02]Read from MH i2c: E2 [15:06:02]MH_I2C_Read... [15:06:02]Read from MH i2c: E2 62 00 [15:06:02]MH_I2C_Read... [15:06:02]Read from MH i2c: E2 62 00 A9 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0F DD 02 00 0E 04 04 00 89 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 A7 [15:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0F DD 02 00 0E 04 04 00 89 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 [15:06:02]wFMCommunicate OK [15:06:02]SAM_PROTO_GetFieldsCounters done [15:06:02]requested_item shift.num is exist - process it [15:06:02]requested_item shift.opened is exist - process it [15:06:02]req_shift_opened [15:06:02]FM_GetShiftState [15:06:02]SAM_PROTO_GetShiftState [15:06:02]wFMCommunicate request_size=4 [15:06:02]MH_SAM_APDU [15:06:02]CAPDU: 80 13 01 00 [15:06:02]Write to MH i2c: E2 08 00 AA 0C 80 13 01 00 00 00 00 00 33 [15:06:02]Write i2c OK [15:06:02]MH_I2C_Read... [15:06:02]Read from MH i2c: E2 [15:06:02]MH_I2C_Read... [15:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:02]Read from MH i2c: E2 0E 00 [15:06:02]MH_I2C_Read... [15:06:02]Read from MH i2c: E2 0E 00 AA 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 21 [15:06:02]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:06:02]wFMCommunicate OK [15:06:02]SAM_PROTO_GetShiftState done [15:06:02]FM_GetShiftState done [15:06:02]req_shift_opened done [15:06:02]requested_item shift.open_date is exist - process it [15:06:02]req_shift_open_date [15:06:02]req_shift_open_date done [15:06:02]produce_requested_data done [15:06:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187663,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:06:02]process_action_free close_receipt [15:06:02]json_value_free [15:06:02]json_value_free done [15:06:02]process_json_proto returns [15:06:02]Send response to host [15:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187663,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:06:02]free response buf [15:06:02]execute_script done [15:06:02]execute_script returns [15:06:02]free content buf [15:06:02]Sock 9.Close socket [15:06:02]Sock 9.Thread stoped [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:32]accept exits with 7 [15:07:32]New connection [15:07:32]New thread 3067481444 created [15:07:32]Thread 3067624804 joined [15:07:32]Waiting for new connection... [15:07:32] Sock 7.Parse request [15:07:32]Sock 7.Check first char [15:07:32]Sock 7.First char is OK [15:07:32]request: POST /json_proto HTTP/1.0 [15:07:32]Method: POST [15:07:32]URL: /json_proto [15:07:32]Method is POST - this is cgi request [15:07:32]url: /json_proto [15:07:32]query_string will be loaded in cgi processing [15:07:32]execute_cgi json_proto POST (null) [15:07:32]execute_cgi path=json_proto method=POST [15:07:32]POST find Content-Length [15:07:32]Host: 172.17.46.131:8080 [15:07:32]Content-Length: 682 [15:07:32]Content-Type: application/json [15:07:32] [15:07:32]POST finish read [15:07:32]Found Content-Length = 682 [15:07:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:32]execute_script... [15:07: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)412824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:32]POST & json_proto [15:07:32]process_json_proto [15:07:32]json parsed OK: [15:07:32]protocol is kg_v1.0 [15:07:32]action value=close_receipt [15:07:32]process_action close_receipt [15:07:32]cmd_close_receipt [15:07:32]MH_GetDate [15:07:32]Write to MH i2c: F0 00 00 AB 0C A6 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: F0 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: F0 09 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: F0 09 00 AB 0C 00 B5 96 B8 67 7E 41 4F 65 8C [15:07:32]GetLastDocTimeStamp 1740150359 [15:07:32]current date 1740150453 [15:07:32]FM_GetShiftState [15:07:32]SAM_PROTO_GetShiftState [15:07:32]wFMCommunicate request_size=4 [15:07:32]MH_SAM_APDU [15:07:32]CAPDU: 80 13 01 00 [15:07:32]Write to MH i2c: E2 08 00 AC 0C 80 13 01 00 00 00 00 00 35 [15:07:32]Write i2c OK [15:07:32]MH_I2C_Read... [15:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:32]Read from MH i2c: E2 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 0E 00 [15:07:32]MH_I2C_Read... [15:07:32]Read from MH i2c: E2 0E 00 AC 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 23 [15:07:32]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:07:32]wFMCommunicate OK [15:07:32]SAM_PROTO_GetShiftState done [15:07:32]FM_GetShiftState done [15:07:32]opened in 1740098043 [15:07:32]opened+sec_in_day 1740184443 [15:07:32]quantity*price = 100012 [15:07:32]sum+1 = 100014 [15:07:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 158 21.02.2025 15:07 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187664 ФПД: 59584980037954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150733&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187664&fm=59584980037954&tin=02508201610067®Number=0000000000091857&sum=100000 [15:07:34]StoreToDocumentArchive [15:07:34]shift 649 fd 187664 [15:07:34]save to /storage/0649/doc_00187664 [15:07:34]save last doc name /storage/0649/doc_00187664 to /storage/kkm_last_doc_name [15:07:34]save OK [15:07:34]Clear old archive folders... [15:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:34]tlvbuf is 00BC6E70 [15:07:34]SAM_PROTO_ClearQueue [15:07:34]wFMCommunicate request_size=4 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 09 00 00 [15:07:34]Write to MH i2c: E2 08 00 B9 0C 80 09 00 00 00 00 00 00 37 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 B9 0C 00 90 00 39 [15:07:34]RAPDU: 90 00 [15:07:34]wFMCommunicate OK [15:07:34]SAM_PROTO_ClearQueue done [15:07:34]KKMCreateOFDPacket [15:07:34]OFDProtocolAddRootSTLVToBuf [15:07:34]FM_MakeSignedData [15:07:34]FM_MakeSignedData [15:07:34]SAM_PROTO_SignData [15:07:34]wFMCommunicate request_size=4 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 0D 01 02 [15:07:34]Write to MH i2c: E2 08 00 BA 0C 80 0D 01 02 00 00 00 00 3F [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [15:07:34]RAPDU: 90 00 [15:07:34]wFMCommunicate OK [15:07:34]wFMCommunicate request_size=255 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B5 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DD 02 00 35 04 06 00 36 [15:07:34]Write to MH i2c: E2 02 01 BB 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B5 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DD 02 00 35 04 06 00 36 00 00 68 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 BB 0C 00 90 00 3B [15:07:34]RAPDU: 90 00 [15:07:34]wFMCommunicate OK [15:07:34]wFMCommunicate request_size=10 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 0D 02 02 05 31 35 91 B1 42 [15:07:34]Write to MH i2c: E2 0D 00 BC 0C 80 0D 02 02 05 00 31 35 91 B1 42 00 00 36 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 03 00 BC 0C 00 90 00 3C [15:07:34]RAPDU: 90 00 [15:07:34]wFMCommunicate OK [15:07:34]wFMCommunicate request_size=4 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 0D 03 02 [15:07:34]Write to MH i2c: E2 08 00 BD 0C 80 0D 03 02 00 00 00 00 44 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 0B 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 0B 00 BD 0C 00 64 6E 90 99 D8 84 C0 29 90 00 85 [15:07:34]RAPDU: 64 6E 90 99 D8 84 C0 29 90 00 [15:07:34]wFMCommunicate OK [15:07:34]SAM_PROTO_SignData done [15:07:34]FM_MakeSignedData done [15:07:34]CreateOFDProtocolMessage [15:07:34]wFMCommunicate request_size=4 [15:07:34]MH_SAM_APDU [15:07:34]CAPDU: 80 11 00 00 [15:07:34]Write to MH i2c: E2 08 00 BE 0C 80 11 00 00 00 00 00 00 44 [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:34]Read from MH i2c: E2 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 17 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: E2 17 00 BE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [15:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:07:34]wFMCommunicate OK [15:07:34]CreateOFDProtocolMessage done [15:07:34]OFDSenderStorePacket 187664 [15:07:34]StoreOFDPacket docnum=187664 [15:07:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A3 45 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B5 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DD 02 00 35 04 06 00 36 31 35 91 B1 42 64 6E 90 99 D8 84 C0 29 [15:07:34]CheckFolder [15:07:34]dirname=/storage/ofd_packets [15:07:34]CheckFolder done [15:07:34]ProducePacketName [15:07:34]name=ofd_packets/00187664 [15:07:34]NVStorageSaveData ofd_packets/00187664 [15:07:34]File name is /storage/ofd_packets/00187664 [15:07:34]Write 301 bytes [15:07:34]NVStorageSaveData done [15:07:34]OFDSenderStorePacket done [15:07:34]KKMCreateOFDPacket done [15:07:34]NVStorageSaveData kkm_last_timestamp [15:07:34]File name is /storage/kkm_last_timestamp [15:07:34]Write 4 bytes [15:07:34]NVStorageSaveData done [15:07:34]ExternCall_PrintAddStr [15:07:34]wPrintStart [15:07:34]Write to MH i2c: 01 00 00 BF 0C CB [15:07:34]Write i2c OK [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: 01 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: 01 07 00 [15:07:34]MH_I2C_Read... [15:07:34]Read from MH i2c: 01 07 00 BF 0C 00 00 00 00 00 FF 0F E0 [15:07:34]RasterBufferAndPrint [15:07:34]line Счет N : (1)412824 [15:07:34]line ИНН: 02508201610067 [15:07:34]line Контрольно-Кассовый Чек [15:07:34]line ПРОДАЖА [15:07:34]line ТРК (МРК, ГНК) : 13 [15:07:34]line Товар: 2710124500 [15:07:34]line Аи-95-К-5 [15:07:34]line 13.910 * 71.90 [15:07:34]line = 1000.13 [15:07:34]line НДС 12% НСП 1% [15:07:34]line > о реализуемом товаре [15:07:34]line ОКРУГЛЕНИЕ: -0.13 [15:07:34]line ИТОГО: 1000.00 [15:07:34]line Внесено: 1000.00 [15:07:34]line СДАЧА: 0.00 [15:07:34]line НСП 1% : 8.85 [15:07:34]line НДС 12% : 106.21 [15:07:34]line Наличными: 1000.00 [15:07:34]line Безнал.: 0.00 [15:07:34]line Место: АЗС № 92 "Партнер Нефть" [15:07:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:07:34]line СНО: Общий режим [15:07:34]line Чек 158 21.02.2025 15:07 [15:07:34]line Смена: 649 ФФД: 1.0 [15:07:34]line ЗНМ: 0300000118 [15:07:34]line РНМ: 0000000000091857 [15:07:34]line Версия ККМ: 001 [15:07:34]line ФМ: 0000000000871826 [15:07:34]line ФД: 187664 [15:07:34]line ФПД: 59584980037954 [15:07:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150733&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187664&fm=59584980037954&tin=02508201610067®Number=0000000000091857&sum=100000 [15:07:34]OFD Sender: Processing packet 187664 [packets to send 49, broken 48] [15:07:34]ProducePacketName [15:07:34]name=ofd_packets/00187664 [15:07:34]OFD Sender: To server: pG, [15:07:34]CommunicateWithHost lk.salyk.kg:30040 [15:07:34]ConnectInit lk.salyk.kg [15:07:34]written 0, free lines is 4095 [15:07:35]Connected sock=10 [15:07:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A3 45 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 B5 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DD 02 00 35 04 06 00 36 31 35 91 B1 42 64 6E 90 99 D8 84 C0 29 [15:07:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D5 87 47 00 4E 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DD 02 00 F4 03 04 00 03 3D B8 67 B6 04 01 00 00 B2 82 39 BC 3E 76 98 43 [15:07:35]CommunicateWithHost err = 0 [15:07:35]CheckOFDResponse [15:07:35]1017 (14) - 77093643461234 [15:07:35]1041 (16) - 0000000000871826 [15:07:35]1040 (4) - 187664 [15:07:35]1012 (4) - 21.02.2025 08:44 [15:07:35]1206 (1) - 0 [15:07:35]OFD Sender: Remove packet 187664 [15:07:35]ProducePacketName [15:07:35]name=ofd_packets/00187664 [15:07:35]NVStorageDeleteData [15:07:35]Write to MH i2c: 01 00 00 EA 0C F6 [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 07 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: 01 07 00 EA 0C 00 00 00 00 00 F2 0C FB [15:07:35]RasterBufferAndPrint [15:07:35]line [15:07:35]line [15:07:35]line [15:07:35]line [15:07:35]line [15:07:35]written 0, free lines is 3320 [15:07:35]MH_Cut [15:07:35]Write to MH i2c: D1 01 00 F1 0C 01 CF [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: D1 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: D1 01 00 [15:07:35]MH_I2C_Read... [15:07:35]Read from MH i2c: D1 01 00 F1 0C 00 CE [15:07:35]Write to MH i2c: 01 00 00 F2 0C FE [15:07:35]Write i2c OK [15:07:35]MH_I2C_Read... [15:07:35]OFD Sender: No OFD packet to send [15:07:36]*** Cut start [15:07:36]*** Partial cut [15:07:36]*** CUTSNS_PIN = 1 [15:07:36]*** CUTSNS_PIN = 0 [15:07:36]*** Brake cut motor [15:07:36]Read from MH i2c: 01 [15:07:36]MH_I2C_Read... [15:07:36]*** Stop cut motor [15:07:36]*** Cut end [15:07:36]Read from MH i2c: 01 07 00 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: 01 07 00 F2 0C 00 00 00 00 00 FF 0F 13 [15:07:36]process_action close_receipt done [15:07:36]requested_data is exist [15:07:36]produce_requested_data [15:07:36]requested_item fm.sn is exist - process it [15:07:36]wFMCommunicate request_size=4 [15:07:36]MH_SAM_APDU [15:07:36]CAPDU: 80 11 00 00 [15:07:36]Write to MH i2c: E2 08 00 F3 0C 80 11 00 00 00 00 00 00 79 [15:07:36]Write i2c OK [15:07:36]MH_I2C_Read... [15:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:36]Read from MH i2c: E2 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 17 00 [15:07:36]MH_I2C_Read... [15:07:36]Read from MH i2c: E2 17 00 F3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CC [15:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:07:36]wFMCommunicate OK [15:07:36]requested_item fd.num is exist - process it [15:07:36]SAM_PROTO_GetFieldsCounters [15:07:36]wFMCommunicate request_size=4 [15:07:36]MH_SAM_APDU [15:07:36]CAPDU: 80 13 00 00 [15:07:36]Write to MH i2c: E2 08 00 F4 0C 80 13 00 00 00 00 00 00 7C [15:07:36]Write i2c OK [15:07:36]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 62 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 62 00 F4 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 10 DD 02 00 0E 04 04 00 89 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 F6 [15:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 10 DD 02 00 0E 04 04 00 89 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 [15:07:37]wFMCommunicate OK [15:07:37]SAM_PROTO_GetFieldsCounters done [15:07:37]requested_item shift.num is exist - process it [15:07:37]requested_item shift.opened is exist - process it [15:07:37]req_shift_opened [15:07:37]FM_GetShiftState [15:07:37]SAM_PROTO_GetShiftState [15:07:37]wFMCommunicate request_size=4 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 13 01 00 [15:07:37]Write to MH i2c: E2 08 00 F5 0C 80 13 01 00 00 00 00 00 7E [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 0E 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 0E 00 F5 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6C [15:07:37]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:07:37]wFMCommunicate OK [15:07:37]SAM_PROTO_GetShiftState done [15:07:37]FM_GetShiftState done [15:07:37]req_shift_opened done [15:07:37]requested_item shift.open_date is exist - process it [15:07:37]req_shift_open_date [15:07:37]req_shift_open_date done [15:07:37]produce_requested_data done [15:07:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187664,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:07:37]process_action_free close_receipt [15:07:37]json_value_free [15:07:37]json_value_free done [15:07:37]process_json_proto returns [15:07:37]Send response to host [15:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187664,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:07:37]free response buf [15:07:37]execute_script done [15:07:37]execute_script returns [15:07:37]free content buf [15:07:37]Sock 7.Close socket [15:07:37]Sock 7.Thread stoped [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]accept exits with 9 [15:08:00]New connection [15:08:00]New thread 3067624804 created [15:08:00]Thread 3067481444 joined [15:08:00]Waiting for new connection... [15:08:00] Sock 9.Parse request [15:08:00]Sock 9.Check first char [15:08:00]Sock 9.First char is OK [15:08:00]request: POST /json_proto HTTP/1.0 [15:08:00]Method: POST [15:08:00]URL: /json_proto [15:08:00]Method is POST - this is cgi request [15:08:00]url: /json_proto [15:08:00]query_string will be loaded in cgi processing [15:08:00]execute_cgi json_proto POST (null) [15:08:00]execute_cgi path=json_proto method=POST [15:08:00]POST find Content-Length [15:08:00]Host: 172.17.46.131:8080 [15:08:00]Content-Length: 682 [15:08:00]Content-Type: application/json [15:08:00] [15:08:00]POST finish read [15:08:00]Found Content-Length = 682 [15:08:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:00]execute_script... [15:08: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)412825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:00]POST & json_proto [15:08:00]process_json_proto [15:08:00]json parsed OK: [15:08:00]protocol is kg_v1.0 [15:08:00]action value=close_receipt [15:08:00]process_action close_receipt [15:08:00]cmd_close_receipt [15:08:00]MH_GetDate [15:08:00]Write to MH i2c: F0 00 00 F6 0C F1 [15:08:00]Write i2c OK [15:08:00]MH_I2C_Read... [15:08:00]Read from MH i2c: F0 [15:08:00]MH_I2C_Read... [15:08:00]Read from MH i2c: F0 09 00 [15:08:00]MH_I2C_Read... [15:08:00]Read from MH i2c: F0 09 00 F6 0C 00 D1 96 B8 67 7E 41 4F 65 F3 [15:08:00]GetLastDocTimeStamp 1740150453 [15:08:00]current date 1740150481 [15:08:00]FM_GetShiftState [15:08:00]SAM_PROTO_GetShiftState [15:08:00]wFMCommunicate request_size=4 [15:08:00]MH_SAM_APDU [15:08:00]CAPDU: 80 13 01 00 [15:08:00]Write to MH i2c: E2 08 00 F7 0C 80 13 01 00 00 00 00 00 80 [15:08:00]Write i2c OK [15:08:00]MH_I2C_Read... [15:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:00]Read from MH i2c: E2 [15:08:00]MH_I2C_Read... [15:08:00]Read from MH i2c: E2 0E 00 [15:08:00]MH_I2C_Read... [15:08:00]Read from MH i2c: E2 0E 00 F7 0C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6E [15:08:00]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:08:00]wFMCommunicate OK [15:08:00]SAM_PROTO_GetShiftState done [15:08:00]FM_GetShiftState done [15:08:00]opened in 1740098043 [15:08:00]opened+sec_in_day 1740184443 [15:08:00]quantity*price = 100023 [15:08:00]sum+1 = 100025 [15:08:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 159 21.02.2025 15:08 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187665 ФПД: 131226300283928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150801&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187665&fm=131226300283928&tin=02508201610067®Number=0000000000091857&sum=100000 [15:08:01]StoreToDocumentArchive [15:08:01]shift 649 fd 187665 [15:08:01]save to /storage/0649/doc_00187665 [15:08:01]save last doc name /storage/0649/doc_00187665 to /storage/kkm_last_doc_name [15:08:01]save OK [15:08:01]Clear old archive folders... [15:08:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:01]tlvbuf is 00BF2FF0 [15:08:01]SAM_PROTO_ClearQueue [15:08:01]wFMCommunicate request_size=4 [15:08:01]MH_SAM_APDU [15:08:01]CAPDU: 80 09 00 00 [15:08:01]Write to MH i2c: E2 08 00 04 0D 80 09 00 00 00 00 00 00 83 [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:01]Read from MH i2c: E2 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 03 00 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 03 00 04 0D 00 90 00 85 [15:08:01]RAPDU: 90 00 [15:08:01]wFMCommunicate OK [15:08:01]SAM_PROTO_ClearQueue done [15:08:01]KKMCreateOFDPacket [15:08:01]OFDProtocolAddRootSTLVToBuf [15:08:01]FM_MakeSignedData [15:08:01]FM_MakeSignedData [15:08:01]SAM_PROTO_SignData [15:08:01]wFMCommunicate request_size=4 [15:08:01]MH_SAM_APDU [15:08:01]CAPDU: 80 0D 01 02 [15:08:01]Write to MH i2c: E2 08 00 05 0D 80 0D 01 02 00 00 00 00 8B [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:01]Read from MH i2c: E2 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 03 00 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 03 00 05 0D 00 90 00 86 [15:08:01]RAPDU: 90 00 [15:08:01]wFMCommunicate OK [15:08:01]wFMCommunicate request_size=255 [15:08:01]MH_SAM_APDU [15: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D1 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DD 02 00 35 04 06 00 77 [15:08:01]Write to MH i2c: E2 02 01 06 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D1 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DD 02 00 35 04 06 00 77 00 00 9F [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:01]Read from MH i2c: E2 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 03 00 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 03 00 06 0D 00 90 00 87 [15:08:01]RAPDU: 90 00 [15:08:01]wFMCommunicate OK [15:08:01]wFMCommunicate request_size=10 [15:08:01]MH_SAM_APDU [15:08:01]CAPDU: 80 0D 02 02 05 59 81 03 7C 18 [15:08:01]Write to MH i2c: E2 0D 00 07 0D 80 0D 02 02 05 00 59 81 03 7C 18 00 00 09 [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:02]Read from MH i2c: E2 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [15:08:02]RAPDU: 90 00 [15:08:02]wFMCommunicate OK [15:08:02]wFMCommunicate request_size=4 [15:08:02]MH_SAM_APDU [15:08:02]CAPDU: 80 0D 03 02 [15:08:02]Write to MH i2c: E2 08 00 08 0D 80 0D 03 02 00 00 00 00 90 [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:02]Read from MH i2c: E2 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 0B 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 0B 00 08 0D 00 63 D1 83 79 F1 62 8B 40 90 00 DF [15:08:02]RAPDU: 63 D1 83 79 F1 62 8B 40 90 00 [15:08:02]wFMCommunicate OK [15:08:02]SAM_PROTO_SignData done [15:08:02]FM_MakeSignedData done [15:08:02]CreateOFDProtocolMessage [15:08:02]wFMCommunicate request_size=4 [15:08:02]MH_SAM_APDU [15:08:02]CAPDU: 80 11 00 00 [15:08:02]Write to MH i2c: E2 08 00 09 0D 80 11 00 00 00 00 00 00 90 [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:02]Read from MH i2c: E2 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 17 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: E2 17 00 09 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E3 [15:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:08:02]wFMCommunicate OK [15:08:02]CreateOFDProtocolMessage done [15:08:02]OFDSenderStorePacket 187665 [15:08:02]StoreOFDPacket docnum=187665 [15:08:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 25 41 07 01 62 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D1 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DD 02 00 35 04 06 00 77 59 81 03 7C 18 63 D1 83 79 F1 62 8B 40 [15:08:02]CheckFolder [15:08:02]dirname=/storage/ofd_packets [15:08:02]CheckFolder done [15:08:02]ProducePacketName [15:08:02]name=ofd_packets/00187665 [15:08:02]NVStorageSaveData ofd_packets/00187665 [15:08:02]File name is /storage/ofd_packets/00187665 [15:08:02]Write 301 bytes [15:08:02]NVStorageSaveData done [15:08:02]OFDSenderStorePacket done [15:08:02]KKMCreateOFDPacket done [15:08:02]NVStorageSaveData kkm_last_timestamp [15:08:02]File name is /storage/kkm_last_timestamp [15:08:02]Write 4 bytes [15:08:02]NVStorageSaveData done [15:08:02]ExternCall_PrintAddStr [15:08:02]wPrintStart [15:08:02]Write to MH i2c: 01 00 00 0A 0D 17 [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: 01 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: 01 07 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: 01 07 00 0A 0D 00 00 00 00 00 FF 0F 2C [15:08:02]RasterBufferAndPrint [15:08:02]line Счет N : (1)412825 [15:08:02]line ИНН: 02508201610067 [15:08:02]line Контрольно-Кассовый Чек [15:08:02]line ПРОДАЖА [15:08:02]line ТРК (МРК, ГНК) : 22 [15:08:02]line Товар: 2710124130 [15:08:02]line Аи-92-К-2 [15:08:02]line 15.580 * 64.20 [15:08:02]line = 1000.24 [15:08:02]line НДС 12% НСП 1% [15:08:02]line > о реализуемом товаре [15:08:02]line ОКРУГЛЕНИЕ: -0.24 [15:08:02]line ИТОГО: 1000.00 [15:08:02]line Внесено: 1000.00 [15:08:02]line СДАЧА: 0.00 [15:08:02]line НСП 1% : 8.85 [15:08:02]line НДС 12% : 106.22 [15:08:02]line Наличными: 1000.00 [15:08:02]line Безнал.: 0.00 [15:08:02]line Место: АЗС № 92 "Партнер Нефть" [15:08:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:08:02]line СНО: Общий режим [15:08:02]line Чек 159 21.02.2025 15:08 [15:08:02]line Смена: 649 ФФД: 1.0 [15:08:02]line ЗНМ: 0300000118 [15:08:02]line РНМ: 0000000000091857 [15:08:02]line Версия ККМ: 001 [15:08:02]line ФМ: 0000000000871826 [15:08:02]line ФД: 187665 [15:08:02]line ФПД: 131226300283928 [15:08:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150801&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187665&fm=131226300283928&tin=02508201610067®Number=0000000000091857&sum=100000 [15:08:02]OFD Sender: Processing packet 187665 [packets to send 49, broken 48] [15:08:02]ProducePacketName [15:08:02]name=ofd_packets/00187665 [15:08:02]OFD Sender: To server: pG, [15:08:02]CommunicateWithHost lk.salyk.kg:30040 [15:08:02]ConnectInit lk.salyk.kg [15:08:02]written 0, free lines is 4095 [15:08:02]Connected sock=11 [15: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 38 32 36 0F 01 00 00 25 41 07 01 62 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 D1 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DD 02 00 35 04 06 00 77 59 81 03 7C 18 63 D1 83 79 F1 62 8B 40 [15:08:02]Write to MH i2c: 01 00 00 35 0D 42 [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: 01 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: 01 07 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: 01 07 00 35 0D 00 00 00 00 00 F7 0C 4C [15:08:02]RasterBufferAndPrint [15:08:02]line [15:08:02]line [15:08:02]line [15:08:02]line [15:08:02]line [15:08:02]written 0, free lines is 3326 [15:08:02]MH_Cut [15:08:02]Write to MH i2c: D1 01 00 3C 0D 01 1B [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: D1 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: D1 01 00 [15:08:02]MH_I2C_Read... [15:08:02]Read from MH i2c: D1 01 00 3C 0D 00 1A [15:08:02]Write to MH i2c: 01 00 00 3D 0D 4A [15:08:02]Write i2c OK [15:08:02]MH_I2C_Read... [15:08:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 20 55 47 00 F2 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 DD 02 00 F4 03 04 00 1E 3D B8 67 B6 04 01 00 00 C0 75 CD 67 F9 D3 AA BB [15:08:03]CommunicateWithHost err = 0 [15:08:03]CheckOFDResponse [15:08:03]1017 (14) - 77093643461234 [15:08:03]1041 (16) - 0000000000871826 [15:08:03]1040 (4) - 187665 [15:08:03]1012 (4) - 21.02.2025 08:45 [15:08:03]1206 (1) - 0 [15:08:03]OFD Sender: Remove packet 187665 [15:08:03]ProducePacketName [15:08:03]name=ofd_packets/00187665 [15:08:03]NVStorageDeleteData [15:08:03]OFD Sender: No OFD packet to send [15:08:03]*** Cut start [15:08:03]*** Partial cut [15:08:03]*** CUTSNS_PIN = 1 [15:08:03]*** CUTSNS_PIN = 0 [15:08:04]*** Brake cut motor [15:08:04]Read from MH i2c: 01 [15:08:04]MH_I2C_Read... [15:08:04]*** Stop cut motor [15:08:04]*** Cut end [15:08:04]Read from MH i2c: 01 07 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: 01 07 00 3D 0D 00 00 00 00 00 FF 0F 5F [15:08:04]process_action close_receipt done [15:08:04]requested_data is exist [15:08:04]produce_requested_data [15:08:04]requested_item fm.sn is exist - process it [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 11 00 00 [15:08:04]Write to MH i2c: E2 08 00 3E 0D 80 11 00 00 00 00 00 00 C5 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 17 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 17 00 3E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 18 [15:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:08:04]wFMCommunicate OK [15:08:04]requested_item fd.num is exist - process it [15:08:04]SAM_PROTO_GetFieldsCounters [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 13 00 00 [15:08:04]Write to MH i2c: E2 08 00 3F 0D 80 13 00 00 00 00 00 00 C8 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 62 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 62 00 3F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 11 DD 02 00 0E 04 04 00 89 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 46 [15: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 11 DD 02 00 0E 04 04 00 89 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 [15:08:04]wFMCommunicate OK [15:08:04]SAM_PROTO_GetFieldsCounters done [15:08:04]requested_item shift.num is exist - process it [15:08:04]requested_item shift.opened is exist - process it [15:08:04]req_shift_opened [15:08:04]FM_GetShiftState [15:08:04]SAM_PROTO_GetShiftState [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 13 01 00 [15:08:04]Write to MH i2c: E2 08 00 40 0D 80 13 01 00 00 00 00 00 CA [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 0E 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 0E 00 40 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B8 [15:08:04]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:08:04]wFMCommunicate OK [15:08:04]SAM_PROTO_GetShiftState done [15:08:04]FM_GetShiftState done [15:08:04]req_shift_opened done [15:08:04]requested_item shift.open_date is exist - process it [15:08:04]req_shift_open_date [15:08:04]req_shift_open_date done [15:08:04]produce_requested_data done [15:08:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187665,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:08:04]process_action_free close_receipt [15:08:04]json_value_free [15:08:04]json_value_free done [15:08:04]process_json_proto returns [15:08:04]Send response to host [15:08:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187665,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:08:04]free response buf [15:08:04]execute_script done [15:08:04]execute_script returns [15:08:04]free content buf [15:08:04]Sock 9.Close socket [15:08:04]Sock 9.Thread stoped [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:27]accept exits with 7 [15:08:27]New connection [15:08:27]New thread 3067481444 created [15:08:27]Thread 3067624804 joined [15:08:27]Waiting for new connection... [15:08:27] Sock 7.Parse request [15:08:27]Sock 7.Check first char [15:08:27]Sock 7.First char is OK [15:08:27]request: POST /json_proto HTTP/1.0 [15:08:27]Method: POST [15:08:27]URL: /json_proto [15:08:27]Method is POST - this is cgi request [15:08:27]url: /json_proto [15:08:27]query_string will be loaded in cgi processing [15:08:27]execute_cgi json_proto POST (null) [15:08:27]execute_cgi path=json_proto method=POST [15:08:27]POST find Content-Length [15:08:27]Host: 172.17.46.131:8080 [15:08:27]Content-Length: 677 [15:08:27]Content-Type: application/json [15:08:27] [15:08:27]POST finish read [15:08:27]Found Content-Length = 677 [15:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:27]execute_script... [15:08:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:27]POST & json_proto [15:08:27]process_json_proto [15:08:27]json parsed OK: [15:08:27]protocol is kg_v1.0 [15:08:27]action value=close_receipt [15:08:27]process_action close_receipt [15:08:27]cmd_close_receipt [15:08:27]MH_GetDate [15:08:27]Write to MH i2c: F0 00 00 41 0D 3D [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: F0 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: F0 09 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: F0 09 00 41 0D 00 EB 96 B8 67 7E 41 4F 65 59 [15:08:27]GetLastDocTimeStamp 1740150481 [15:08:27]current date 1740150507 [15:08:27]FM_GetShiftState [15:08:27]SAM_PROTO_GetShiftState [15:08:27]wFMCommunicate request_size=4 [15:08:27]MH_SAM_APDU [15:08:27]CAPDU: 80 13 01 00 [15:08:27]Write to MH i2c: E2 08 00 42 0D 80 13 01 00 00 00 00 00 CC [15:08:27]Write i2c OK [15:08:27]MH_I2C_Read... [15:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:27]Read from MH i2c: E2 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 0E 00 [15:08:27]MH_I2C_Read... [15:08:27]Read from MH i2c: E2 0E 00 42 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 BA [15:08:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:08:27]wFMCommunicate OK [15:08:27]SAM_PROTO_GetShiftState done [15:08:27]FM_GetShiftState done [15:08:27]opened in 1740098043 [15:08:27]opened+sec_in_day 1740184443 [15:08:27]quantity*price = 20030 [15:08:27]sum+1 = 20031 [15:08:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 160 21.02.2025 15:08 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187666 ФПД: 77418752047619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150827&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187666&fm=77418752047619&tin=02508201610067®Number=0000000000091857&sum=20000 [15:08:28]StoreToDocumentArchive [15:08:28]shift 649 fd 187666 [15:08:28]save to /storage/0649/doc_00187666 [15:08:28]save last doc name /storage/0649/doc_00187666 to /storage/kkm_last_doc_name [15:08:28]save OK [15:08:28]Clear old archive folders... [15:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:28]tlvbuf is 00BFE860 [15:08:28]SAM_PROTO_ClearQueue [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 09 00 00 [15:08:28]Write to MH i2c: E2 08 00 4F 0D 80 09 00 00 00 00 00 00 CE [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 03 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [15:08:28]RAPDU: 90 00 [15:08:28]wFMCommunicate OK [15:08:28]SAM_PROTO_ClearQueue done [15:08:28]KKMCreateOFDPacket [15:08:28]OFDProtocolAddRootSTLVToBuf [15:08:28]FM_MakeSignedData [15:08:28]FM_MakeSignedData [15:08:28]SAM_PROTO_SignData [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 0D 01 02 [15:08:28]Write to MH i2c: E2 08 00 50 0D 80 0D 01 02 00 00 00 00 D6 [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 03 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [15:08:28]RAPDU: 90 00 [15:08:28]wFMCommunicate OK [15:08:28]wFMCommunicate request_size=255 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 EB 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DD 02 00 35 04 06 00 46 [15:08:28]Write to MH i2c: E2 02 01 51 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 EB 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DD 02 00 35 04 06 00 46 00 00 BD [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]OFD Sender: No OFD packet to send [15:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 03 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 03 00 51 0D 00 90 00 D2 [15:08:28]RAPDU: 90 00 [15:08:28]wFMCommunicate OK [15:08:28]wFMCommunicate request_size=10 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 0D 02 02 05 69 75 36 FA 03 [15:08:28]Write to MH i2c: E2 0D 00 52 0D 80 0D 02 02 05 00 69 75 36 FA 03 00 00 F4 [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 03 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [15:08:28]RAPDU: 90 00 [15:08:28]wFMCommunicate OK [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 0D 03 02 [15:08:28]Write to MH i2c: E2 08 00 53 0D 80 0D 03 02 00 00 00 00 DB [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 0B 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 0B 00 53 0D 00 26 F8 76 DF 0E 78 95 68 90 00 D2 [15:08:28]RAPDU: 26 F8 76 DF 0E 78 95 68 90 00 [15:08:28]wFMCommunicate OK [15:08:28]SAM_PROTO_SignData done [15:08:28]FM_MakeSignedData done [15:08:28]CreateOFDProtocolMessage [15:08:28]wFMCommunicate request_size=4 [15:08:28]MH_SAM_APDU [15:08:28]CAPDU: 80 11 00 00 [15:08:28]Write to MH i2c: E2 08 00 54 0D 80 11 00 00 00 00 00 00 DB [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:28]Read from MH i2c: E2 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 17 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: E2 17 00 54 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2E [15:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:08:28]wFMCommunicate OK [15:08:28]CreateOFDProtocolMessage done [15:08:28]OFDSenderStorePacket 187666 [15:08:28]StoreOFDPacket docnum=187666 [15:08:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CE 3F 07 01 24 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 EB 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DD 02 00 35 04 06 00 46 69 75 36 FA 03 26 F8 76 DF 0E 78 95 68 [15:08:28]CheckFolder [15:08:28]dirname=/storage/ofd_packets [15:08:28]CheckFolder done [15:08:28]ProducePacketName [15:08:28]name=ofd_packets/00187666 [15:08:28]NVStorageSaveData ofd_packets/00187666 [15:08:28]File name is /storage/ofd_packets/00187666 [15:08:28]Write 301 bytes [15:08:28]NVStorageSaveData done [15:08:28]OFDSenderStorePacket done [15:08:28]KKMCreateOFDPacket done [15:08:28]NVStorageSaveData kkm_last_timestamp [15:08:28]File name is /storage/kkm_last_timestamp [15:08:28]Write 4 bytes [15:08:28]NVStorageSaveData done [15:08:28]ExternCall_PrintAddStr [15:08:28]wPrintStart [15:08:28]Write to MH i2c: 01 00 00 55 0D 62 [15:08:28]Write i2c OK [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: 01 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: 01 07 00 [15:08:28]MH_I2C_Read... [15:08:28]Read from MH i2c: 01 07 00 55 0D 00 00 00 00 00 FF 0F 77 [15:08:28]RasterBufferAndPrint [15:08:28]line Счет N : (1)412826 [15:08:28]line ИНН: 02508201610067 [15:08:28]line Контрольно-Кассовый Чек [15:08:28]line ПРОДАЖА [15:08:28]line ТРК (МРК, ГНК) : 32 [15:08:28]line Товар: 2710124130 [15:08:28]line Аи-92-К-2 [15:08:28]line 3.120 * 64.20 [15:08:28]line = 200.30 [15:08:28]line НДС 12% НСП 1% [15:08:28]line > о реализуемом товаре [15:08:28]line ОКРУГЛЕНИЕ: -0.30 [15:08:28]line ИТОГО: 200.00 [15:08:28]line Внесено: 200.00 [15:08:28]line СДАЧА: 0.00 [15:08:28]line НСП 1% : 1.77 [15:08:28]line НДС 12% : 21.27 [15:08:28]line Наличными: 200.00 [15:08:28]line Безнал.: 0.00 [15:08:28]line Место: АЗС № 92 "Партнер Нефть" [15:08:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:08:28]line СНО: Общий режим [15:08:28]line Чек 160 21.02.2025 15:08 [15:08:28]line Смена: 649 ФФД: 1.0 [15:08:28]line ЗНМ: 0300000118 [15:08:28]line РНМ: 0000000000091857 [15:08:28]line Версия ККМ: 001 [15:08:28]line ФМ: 0000000000871826 [15:08:28]line ФД: 187666 [15:08:28]line ФПД: 77418752047619 [15:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T150827&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187666&fm=77418752047619&tin=02508201610067®Number=0000000000091857&sum=20000 [15:08:29]OFD Sender: Processing packet 187666 [packets to send 49, broken 48] [15:08:29]ProducePacketName [15:08:29]name=ofd_packets/00187666 [15:08:29]OFD Sender: To server: pG, [15:08:29]CommunicateWithHost lk.salyk.kg:30040 [15:08:29]ConnectInit lk.salyk.kg [15:08:29]written 0, free lines is 4095 [15:08:29]Connected sock=10 [15:08:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CE 3F 07 01 24 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 EB 96 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DD 02 00 35 04 06 00 46 69 75 36 FA 03 26 F8 76 DF 0E 78 95 68 [15:08:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8F B8 47 00 F7 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 38 32 36 10 04 04 00 12 DD 02 00 F4 03 04 00 39 3D B8 67 B6 04 01 00 00 FA DA 31 DC 13 AC F4 72 [15:08:29]CommunicateWithHost err = 0 [15:08:29]CheckOFDResponse [15:08:29]1017 (14) - 77093643461234 [15:08:29]1041 (16) - 0000000000871826 [15:08:29]1040 (4) - 187666 [15:08:29]1012 (4) - 21.02.2025 08:45 [15:08:29]1206 (1) - 0 [15:08:29]OFD Sender: Remove packet 187666 [15:08:29]ProducePacketName [15:08:29]name=ofd_packets/00187666 [15:08:29]NVStorageDeleteData [15:08:29]Write to MH i2c: 01 00 00 80 0D 8D [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: 01 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: 01 07 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: 01 07 00 80 0D 00 00 00 00 00 F1 0C 91 [15:08:29]RasterBufferAndPrint [15:08:29]line [15:08:29]line [15:08:29]line [15:08:29]line [15:08:29]line [15:08:29]written 0, free lines is 3320 [15:08:29]MH_Cut [15:08:29]Write to MH i2c: D1 01 00 87 0D 01 66 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: D1 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: D1 01 00 [15:08:29]MH_I2C_Read... [15:08:29]Read from MH i2c: D1 01 00 87 0D 00 65 [15:08:29]Write to MH i2c: 01 00 00 88 0D 95 [15:08:29]Write i2c OK [15:08:29]MH_I2C_Read... [15:08:30]OFD Sender: No OFD packet to send [15:08:30]*** Cut start [15:08:30]*** Partial cut [15:08:30]*** CUTSNS_PIN = 1 [15:08:30]*** CUTSNS_PIN = 0 [15:08:30]*** Brake cut motor [15:08:30]Read from MH i2c: 01 [15:08:31]MH_I2C_Read... [15:08:31]*** Stop cut motor [15:08:31]*** Cut end [15:08:31]Read from MH i2c: 01 07 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: 01 07 00 88 0D 00 00 00 00 00 FF 0F AA [15:08:31]process_action close_receipt done [15:08:31]requested_data is exist [15:08:31]produce_requested_data [15:08:31]requested_item fm.sn is exist - process it [15:08:31]wFMCommunicate request_size=4 [15:08:31]MH_SAM_APDU [15:08:31]CAPDU: 80 11 00 00 [15:08:31]Write to MH i2c: E2 08 00 89 0D 80 11 00 00 00 00 00 00 10 [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:31]Read from MH i2c: E2 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 17 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 17 00 89 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 63 [15:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:08:31]wFMCommunicate OK [15:08:31]requested_item fd.num is exist - process it [15:08:31]SAM_PROTO_GetFieldsCounters [15:08:31]wFMCommunicate request_size=4 [15:08:31]MH_SAM_APDU [15:08:31]CAPDU: 80 13 00 00 [15:08:31]Write to MH i2c: E2 08 00 8A 0D 80 13 00 00 00 00 00 00 13 [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:31]Read from MH i2c: E2 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 62 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 62 00 8A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 12 DD 02 00 0E 04 04 00 89 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 95 [15:08:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 12 DD 02 00 0E 04 04 00 89 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 [15:08:31]wFMCommunicate OK [15:08:31]SAM_PROTO_GetFieldsCounters done [15:08:31]requested_item shift.num is exist - process it [15:08:31]requested_item shift.opened is exist - process it [15:08:31]req_shift_opened [15:08:31]FM_GetShiftState [15:08:31]SAM_PROTO_GetShiftState [15:08:31]wFMCommunicate request_size=4 [15:08:31]MH_SAM_APDU [15:08:31]CAPDU: 80 13 01 00 [15:08:31]Write to MH i2c: E2 08 00 8B 0D 80 13 01 00 00 00 00 00 15 [15:08:31]Write i2c OK [15:08:31]MH_I2C_Read... [15:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:31]Read from MH i2c: E2 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 0E 00 [15:08:31]MH_I2C_Read... [15:08:31]Read from MH i2c: E2 0E 00 8B 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 03 [15:08:31]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:08:31]wFMCommunicate OK [15:08:31]SAM_PROTO_GetShiftState done [15:08:31]FM_GetShiftState done [15:08:31]req_shift_opened done [15:08:31]requested_item shift.open_date is exist - process it [15:08:31]req_shift_open_date [15:08:31]req_shift_open_date done [15:08:31]produce_requested_data done [15:08:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187666,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:08:31]process_action_free close_receipt [15:08:31]json_value_free [15:08:31]json_value_free done [15:08:31]process_json_proto returns [15:08:31]Send response to host [15:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187666,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:08:31]free response buf [15:08:31]execute_script done [15:08:31]execute_script returns [15:08:31]free content buf [15:08:31]Sock 7.Close socket [15:08:31]Sock 7.Thread stoped [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [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:42]accept exits with 9 [15:10:42]New connection [15:10:42]New thread 3067624804 created [15:10:42]Thread 3067481444 joined [15:10:42]Waiting for new connection... [15:10:42] Sock 9.Parse request [15:10:42]Sock 9.Check first char [15:10:42]Sock 9.First char is OK [15:10:42]request: POST /json_proto HTTP/1.0 [15:10:42]Method: POST [15:10:42]URL: /json_proto [15:10:42]Method is POST - this is cgi request [15:10:42]url: /json_proto [15:10:42]query_string will be loaded in cgi processing [15:10:42]execute_cgi json_proto POST (null) [15:10:42]execute_cgi path=json_proto method=POST [15:10:42]POST find Content-Length [15:10:42]Host: 172.17.46.131:8080 [15:10:42]Content-Length: 677 [15:10:42]Content-Type: application/json [15:10:42] [15:10:42]POST finish read [15:10:42]Found Content-Length = 677 [15:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 2.650, "sum" : 170.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:42]execute_script... [15:10:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 2.650, "sum" : 170.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:42]POST & json_proto [15:10:42]process_json_proto [15:10:42]json parsed OK: [15:10:42]protocol is kg_v1.0 [15:10:42]action value=close_receipt [15:10:42]process_action close_receipt [15:10:42]cmd_close_receipt [15:10:42]MH_GetDate [15:10:42]Write to MH i2c: F0 00 00 8C 0D 88 [15:10:42]Write i2c OK [15:10:42]MH_I2C_Read... [15:10:42]Read from MH i2c: F0 [15:10:42]MH_I2C_Read... [15:10:42]Read from MH i2c: F0 09 00 [15:10:42]MH_I2C_Read... [15:10:42]Read from MH i2c: F0 09 00 8C 0D 00 72 97 B8 67 7E 41 4F 65 2C [15:10:42]GetLastDocTimeStamp 1740150507 [15:10:42]current date 1740150642 [15:10:42]FM_GetShiftState [15:10:42]SAM_PROTO_GetShiftState [15:10:42]wFMCommunicate request_size=4 [15:10:42]MH_SAM_APDU [15:10:42]CAPDU: 80 13 01 00 [15:10:42]Write to MH i2c: E2 08 00 8D 0D 80 13 01 00 00 00 00 00 17 [15:10:42]Write i2c OK [15:10:42]MH_I2C_Read... [15:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:42]Read from MH i2c: E2 [15:10:42]MH_I2C_Read... [15:10:42]Read from MH i2c: E2 0E 00 [15:10:42]MH_I2C_Read... [15:10:42]Read from MH i2c: E2 0E 00 8D 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 05 [15:10:42]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:10:42]wFMCommunicate OK [15:10:42]SAM_PROTO_GetShiftState done [15:10:42]FM_GetShiftState done [15:10:42]opened in 1740098043 [15:10:42]opened+sec_in_day 1740184443 [15:10:42]quantity*price = 17013 [15:10:42]sum+1 = 17014 [15:10:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.07 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 161 21.02.2025 15:10 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187667 ФПД: 209770687099005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T151043&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187667&fm=209770687099005&tin=02508201610067®Number=0000000000091857&sum=17000 [15:10:43]StoreToDocumentArchive [15:10:43]shift 649 fd 187667 [15:10:43]save to /storage/0649/doc_00187667 [15:10:43]save last doc name /storage/0649/doc_00187667 to /storage/kkm_last_doc_name [15:10:43]save OK [15:10:43]Clear old archive folders... [15:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:43]tlvbuf is 00BCAA20 [15:10:43]SAM_PROTO_ClearQueue [15:10:43]wFMCommunicate request_size=4 [15:10:43]MH_SAM_APDU [15:10:43]CAPDU: 80 09 00 00 [15:10:43]Write to MH i2c: E2 08 00 9A 0D 80 09 00 00 00 00 00 00 19 [15:10:43]Write i2c OK [15:10:43]MH_I2C_Read... [15:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:43]Read from MH i2c: E2 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 03 00 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [15:10:43]RAPDU: 90 00 [15:10:43]wFMCommunicate OK [15:10:43]SAM_PROTO_ClearQueue done [15:10:43]KKMCreateOFDPacket [15:10:43]OFDProtocolAddRootSTLVToBuf [15:10:43]FM_MakeSignedData [15:10:43]FM_MakeSignedData [15:10:43]SAM_PROTO_SignData [15:10:43]wFMCommunicate request_size=4 [15:10:43]MH_SAM_APDU [15:10:43]CAPDU: 80 0D 01 02 [15:10:43]Write to MH i2c: E2 08 00 9B 0D 80 0D 01 02 00 00 00 00 21 [15:10:43]Write i2c OK [15:10:43]MH_I2C_Read... [15:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:43]Read from MH i2c: E2 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 03 00 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [15:10:43]RAPDU: 90 00 [15:10:43]wFMCommunicate OK [15:10:43]wFMCommunicate request_size=255 [15:10:43]MH_SAM_APDU [15:10:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 0A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 75 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 73 97 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DD 02 00 35 04 06 00 BE [15:10:43]Write to MH i2c: E2 02 01 9C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 0A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 75 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 73 97 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DD 02 00 35 04 06 00 BE 00 00 7B [15:10:43]Write i2c OK [15:10:43]MH_I2C_Read... [15:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:43]Read from MH i2c: E2 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 03 00 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [15:10:43]RAPDU: 90 00 [15:10:43]wFMCommunicate OK [15:10:43]wFMCommunicate request_size=10 [15:10:43]MH_SAM_APDU [15:10:43]CAPDU: 80 0D 02 02 05 C9 0B 49 F0 7D [15:10:43]Write to MH i2c: E2 0D 00 9D 0D 80 0D 02 02 05 00 C9 0B 49 F0 7D 00 00 B8 [15:10:43]Write i2c OK [15:10:43]MH_I2C_Read... [15:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:43]Read from MH i2c: E2 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 03 00 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [15:10:43]RAPDU: 90 00 [15:10:43]wFMCommunicate OK [15:10:43]wFMCommunicate request_size=4 [15:10:43]MH_SAM_APDU [15:10:43]CAPDU: 80 0D 03 02 [15:10:43]Write to MH i2c: E2 08 00 9E 0D 80 0D 03 02 00 00 00 00 26 [15:10:43]Write i2c OK [15:10:43]MH_I2C_Read... [15:10:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:43]Read from MH i2c: E2 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 0B 00 [15:10:43]MH_I2C_Read... [15:10:43]Read from MH i2c: E2 0B 00 9E 0D 00 D6 41 3D 52 A6 B8 AD 4A 90 00 22 [15:10:43]RAPDU: D6 41 3D 52 A6 B8 AD 4A 90 00 [15:10:43]wFMCommunicate OK [15:10:43]SAM_PROTO_SignData done [15:10:43]FM_MakeSignedData done [15:10:43]CreateOFDProtocolMessage [15:10:43]wFMCommunicate request_size=4 [15:10:43]MH_SAM_APDU [15:10:43]CAPDU: 80 11 00 00 [15:10:43]Write to MH i2c: E2 08 00 9F 0D 80 11 00 00 00 00 00 00 26 [15:10:43]Write i2c OK [15:10:43]MH_I2C_Read... [15:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:44]Read from MH i2c: E2 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 17 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: E2 17 00 9F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 79 [15:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:10:44]wFMCommunicate OK [15:10:44]CreateOFDProtocolMessage done [15:10:44]OFDSenderStorePacket 187667 [15:10:44]StoreOFDPacket docnum=187667 [15:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4E 68 07 01 2A FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 0A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 75 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 73 97 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DD 02 00 35 04 06 00 BE C9 0B 49 F0 7D D6 41 3D 52 A6 B8 AD 4A [15:10:44]CheckFolder [15:10:44]dirname=/storage/ofd_packets [15:10:44]CheckFolder done [15:10:44]ProducePacketName [15:10:44]name=ofd_packets/00187667 [15:10:44]NVStorageSaveData ofd_packets/00187667 [15:10:44]File name is /storage/ofd_packets/00187667 [15:10:44]Write 301 bytes [15:10:44]NVStorageSaveData done [15:10:44]OFDSenderStorePacket done [15:10:44]KKMCreateOFDPacket done [15:10:44]NVStorageSaveData kkm_last_timestamp [15:10:44]File name is /storage/kkm_last_timestamp [15:10:44]Write 4 bytes [15:10:44]NVStorageSaveData done [15:10:44]ExternCall_PrintAddStr [15:10:44]wPrintStart [15:10:44]Write to MH i2c: 01 00 00 A0 0D AD [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: 01 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: 01 07 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: 01 07 00 A0 0D 00 00 00 00 00 FF 0F C2 [15:10:44]RasterBufferAndPrint [15:10:44]line Счет N : (1)412827 [15:10:44]line ИНН: 02508201610067 [15:10:44]line Контрольно-Кассовый Чек [15:10:44]line ПРОДАЖА [15:10:44]line ТРК (МРК, ГНК) : 22 [15:10:44]line Товар: 2710124130 [15:10:44]line Аи-92-К-2 [15:10:44]line 2.650 * 64.20 [15:10:44]line = 170.13 [15:10:44]line НДС 12% НСП 1% [15:10:44]line > о реализуемом товаре [15:10:44]line ОКРУГЛЕНИЕ: -0.13 [15:10:44]line ИТОГО: 170.00 [15:10:44]line Внесено: 170.00 [15:10:44]line СДАЧА: 0.00 [15:10:44]line НСП 1% : 1.51 [15:10:44]line НДС 12% : 18.07 [15:10:44]line Наличными: 170.00 [15:10:44]line Безнал.: 0.00 [15:10:44]line Место: АЗС № 92 "Партнер Нефть" [15:10:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:10:44]line СНО: Общий режим [15:10:44]line Чек 161 21.02.2025 15:10 [15:10:44]line Смена: 649 ФФД: 1.0 [15:10:44]line ЗНМ: 0300000118 [15:10:44]line РНМ: 0000000000091857 [15:10:44]line Версия ККМ: 001 [15:10:44]line ФМ: 0000000000871826 [15:10:44]line ФД: 187667 [15:10:44]line ФПД: 209770687099005 [15:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T151043&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187667&fm=209770687099005&tin=02508201610067®Number=0000000000091857&sum=17000 [15:10:44]written 0, free lines is 4095 [15:10:44]OFD Sender: Processing packet 187667 [packets to send 49, broken 48] [15:10:44]ProducePacketName [15:10:44]name=ofd_packets/00187667 [15:10:44]OFD Sender: To server: pG, [15:10:44]CommunicateWithHost lk.salyk.kg:30040 [15:10:44]ConnectInit lk.salyk.kg [15:10:44]Connected sock=10 [15:10:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4E 68 07 01 2A FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5A 0A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 75 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 73 97 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DD 02 00 35 04 06 00 BE C9 0B 49 F0 7D D6 41 3D 52 A6 B8 AD 4A [15:10:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EE 25 47 00 46 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 DD 02 00 F4 03 04 00 C0 3D B8 67 B6 04 01 00 00 CD 96 7B 2E F9 39 6F 33 [15:10:44]CommunicateWithHost err = 0 [15:10:44]CheckOFDResponse [15:10:44]1017 (14) - 77093643461234 [15:10:44]1041 (16) - 0000000000871826 [15:10:44]1040 (4) - 187667 [15:10:44]1012 (4) - 21.02.2025 08:48 [15:10:44]1206 (1) - 0 [15:10:44]OFD Sender: Remove packet 187667 [15:10:44]ProducePacketName [15:10:44]name=ofd_packets/00187667 [15:10:44]NVStorageDeleteData [15:10:44]Write to MH i2c: 01 00 00 CB 0D D8 [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: 01 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: 01 07 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: 01 07 00 CB 0D 00 00 00 00 00 FA 0C E5 [15:10:44]RasterBufferAndPrint [15:10:44]line [15:10:44]line [15:10:44]line [15:10:44]line [15:10:44]line [15:10:44]written 0, free lines is 3328 [15:10:44]MH_Cut [15:10:44]Write to MH i2c: D1 01 00 D2 0D 01 B1 [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: D1 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: D1 01 00 [15:10:44]MH_I2C_Read... [15:10:44]Read from MH i2c: D1 01 00 D2 0D 00 B0 [15:10:44]Write to MH i2c: 01 00 00 D3 0D E0 [15:10:44]Write i2c OK [15:10:44]MH_I2C_Read... [15:10:45]OFD Sender: No OFD packet to send [15:10:45]*** Cut start [15:10:45]*** Partial cut [15:10:45]*** CUTSNS_PIN = 1 [15:10:45]*** CUTSNS_PIN = 0 [15:10:45]*** Brake cut motor [15:10:46]Read from MH i2c: 01 [15:10:46]MH_I2C_Read... [15:10:46]*** Stop cut motor [15:10:46]*** Cut end [15:10:46]Read from MH i2c: 01 07 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: 01 07 00 D3 0D 00 00 00 00 00 FF 0F F5 [15:10:46]process_action close_receipt done [15:10:46]requested_data is exist [15:10:46]produce_requested_data [15:10:46]requested_item fm.sn is exist - process it [15:10:46]wFMCommunicate request_size=4 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 11 00 00 [15:10:46]Write to MH i2c: E2 08 00 D4 0D 80 11 00 00 00 00 00 00 5B [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 17 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 17 00 D4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AE [15:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:10:46]wFMCommunicate OK [15:10:46]requested_item fd.num is exist - process it [15:10:46]SAM_PROTO_GetFieldsCounters [15:10:46]wFMCommunicate request_size=4 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 13 00 00 [15:10:46]Write to MH i2c: E2 08 00 D5 0D 80 13 00 00 00 00 00 00 5E [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 62 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 62 00 D5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 13 DD 02 00 0E 04 04 00 89 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 E4 [15:10:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 13 DD 02 00 0E 04 04 00 89 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 [15:10:46]wFMCommunicate OK [15:10:46]SAM_PROTO_GetFieldsCounters done [15:10:46]requested_item shift.num is exist - process it [15:10:46]requested_item shift.opened is exist - process it [15:10:46]req_shift_opened [15:10:46]FM_GetShiftState [15:10:46]SAM_PROTO_GetShiftState [15:10:46]wFMCommunicate request_size=4 [15:10:46]MH_SAM_APDU [15:10:46]CAPDU: 80 13 01 00 [15:10:46]Write to MH i2c: E2 08 00 D6 0D 80 13 01 00 00 00 00 00 60 [15:10:46]Write i2c OK [15:10:46]MH_I2C_Read... [15:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:46]Read from MH i2c: E2 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 0E 00 [15:10:46]MH_I2C_Read... [15:10:46]Read from MH i2c: E2 0E 00 D6 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4E [15:10:46]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:10:46]wFMCommunicate OK [15:10:46]SAM_PROTO_GetShiftState done [15:10:46]FM_GetShiftState done [15:10:46]req_shift_opened done [15:10:46]requested_item shift.open_date is exist - process it [15:10:46]req_shift_open_date [15:10:46]req_shift_open_date done [15:10:46]produce_requested_data done [15:10:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187667,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:10:46]process_action_free close_receipt [15:10:46]json_value_free [15:10:46]json_value_free done [15:10:46]process_json_proto returns [15:10:46]Send response to host [15:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187667,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:10:46]free response buf [15:10:46]execute_script done [15:10:46]execute_script returns [15:10:46]free content buf [15:10:46]Sock 9.Close socket [15:10:46]Sock 9.Thread stoped [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:22]accept exits with 7 [15:11:22]New connection [15:11:22]New thread 3067481444 created [15:11:22]Thread 3067624804 joined [15:11:22]Waiting for new connection... [15:11:22] Sock 7.Parse request [15:11:22]Sock 7.Check first char [15:11:22]Sock 7.First char is OK [15:11:22]request: POST /json_proto HTTP/1.0 [15:11:22]Method: POST [15:11:22]URL: /json_proto [15:11:22]Method is POST - this is cgi request [15:11:22]url: /json_proto [15:11:22]query_string will be loaded in cgi processing [15:11:22]execute_cgi json_proto POST (null) [15:11:22]execute_cgi path=json_proto method=POST [15:11:22]POST find Content-Length [15:11:22]Host: 172.17.46.131:8080 [15:11:22]Content-Length: 678 [15:11:22]Content-Type: application/json [15:11:22] [15:11:22]POST finish read [15:11:22]Found Content-Length = 678 [15:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:22]execute_script... [15: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)412828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:22]POST & json_proto [15:11:22]process_json_proto [15:11:22]json parsed OK: [15:11:22]protocol is kg_v1.0 [15:11:22]action value=close_receipt [15:11:22]process_action close_receipt [15:11:22]cmd_close_receipt [15:11:22]MH_GetDate [15:11:22]Write to MH i2c: F0 00 00 D7 0D D3 [15:11:22]Write i2c OK [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: F0 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: F0 09 00 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: F0 09 00 D7 0D 00 9B 97 B8 67 7E 41 4F 65 A0 [15:11:22]GetLastDocTimeStamp 1740150643 [15:11:22]current date 1740150683 [15:11:22]FM_GetShiftState [15:11:22]SAM_PROTO_GetShiftState [15:11:22]wFMCommunicate request_size=4 [15:11:22]MH_SAM_APDU [15:11:22]CAPDU: 80 13 01 00 [15:11:22]Write to MH i2c: E2 08 00 D8 0D 80 13 01 00 00 00 00 00 62 [15:11:22]Write i2c OK [15:11:22]MH_I2C_Read... [15:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:22]Read from MH i2c: E2 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: E2 0E 00 [15:11:22]MH_I2C_Read... [15:11:22]Read from MH i2c: E2 0E 00 D8 0D 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 50 [15:11:22]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:11:22]wFMCommunicate OK [15:11:22]SAM_PROTO_GetShiftState done [15:11:22]FM_GetShiftState done [15:11:22]opened in 1740098043 [15:11:22]opened+sec_in_day 1740184443 [15:11:22]quantity*price = 90018 [15:11:22]sum+1 = 90020 [15:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 162 21.02.2025 15:11 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187668 ФПД: 48690687311212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T151123&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187668&fm=48690687311212&tin=02508201610067®Number=0000000000091857&sum=90000 [15:11:24]StoreToDocumentArchive [15:11:24]shift 649 fd 187668 [15:11:24]save to /storage/0649/doc_00187668 [15:11:24]save last doc name /storage/0649/doc_00187668 to /storage/kkm_last_doc_name [15:11:24]save OK [15:11:24]Clear old archive folders... [15:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:24]tlvbuf is 00BF1D50 [15:11:24]SAM_PROTO_ClearQueue [15:11:24]wFMCommunicate request_size=4 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 09 00 00 [15:11:24]Write to MH i2c: E2 08 00 E5 0D 80 09 00 00 00 00 00 00 64 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [15:11:24]RAPDU: 90 00 [15:11:24]wFMCommunicate OK [15:11:24]SAM_PROTO_ClearQueue done [15:11:24]KKMCreateOFDPacket [15:11:24]OFDProtocolAddRootSTLVToBuf [15:11:24]FM_MakeSignedData [15:11:24]FM_MakeSignedData [15:11:24]SAM_PROTO_SignData [15:11:24]wFMCommunicate request_size=4 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 0D 01 02 [15:11:24]Write to MH i2c: E2 08 00 E6 0D 80 0D 01 02 00 00 00 00 6C [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [15:11:24]RAPDU: 90 00 [15:11:24]wFMCommunicate OK [15:11:24]wFMCommunicate request_size=255 [15:11:24]MH_SAM_APDU [15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9B 97 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DD 02 00 35 04 06 00 2C [15:11:24]Write to MH i2c: E2 02 01 E7 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9B 97 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DD 02 00 35 04 06 00 2C 00 00 E5 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [15:11:24]RAPDU: 90 00 [15:11:24]wFMCommunicate OK [15:11:24]wFMCommunicate request_size=10 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 0D 02 02 05 48 AF 1E FD 6C [15:11:24]Write to MH i2c: E2 0D 00 E8 0D 80 0D 02 02 05 00 48 AF 1E FD 6C 00 00 F7 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 03 00 E8 0D 00 90 00 69 [15:11:24]RAPDU: 90 00 [15:11:24]wFMCommunicate OK [15:11:24]wFMCommunicate request_size=4 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 0D 03 02 [15:11:24]Write to MH i2c: E2 08 00 E9 0D 80 0D 03 02 00 00 00 00 71 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 0B 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 0B 00 E9 0D 00 44 33 46 11 9D 92 58 58 90 00 1F [15:11:24]RAPDU: 44 33 46 11 9D 92 58 58 90 00 [15:11:24]wFMCommunicate OK [15:11:24]SAM_PROTO_SignData done [15:11:24]FM_MakeSignedData done [15:11:24]CreateOFDProtocolMessage [15:11:24]wFMCommunicate request_size=4 [15:11:24]MH_SAM_APDU [15:11:24]CAPDU: 80 11 00 00 [15:11:24]Write to MH i2c: E2 08 00 EA 0D 80 11 00 00 00 00 00 00 71 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:24]Read from MH i2c: E2 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 17 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: E2 17 00 EA 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C4 [15:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:11:24]wFMCommunicate OK [15:11:24]CreateOFDProtocolMessage done [15:11:24]OFDSenderStorePacket 187668 [15:11:24]StoreOFDPacket docnum=187668 [15:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E8 B6 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9B 97 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DD 02 00 35 04 06 00 2C 48 AF 1E FD 6C 44 33 46 11 9D 92 58 58 [15:11:24]CheckFolder [15:11:24]dirname=/storage/ofd_packets [15:11:24]CheckFolder done [15:11:24]ProducePacketName [15:11:24]name=ofd_packets/00187668 [15:11:24]NVStorageSaveData ofd_packets/00187668 [15:11:24]File name is /storage/ofd_packets/00187668 [15:11:24]Write 301 bytes [15:11:24]NVStorageSaveData done [15:11:24]OFDSenderStorePacket done [15:11:24]KKMCreateOFDPacket done [15:11:24]NVStorageSaveData kkm_last_timestamp [15:11:24]File name is /storage/kkm_last_timestamp [15:11:24]Write 4 bytes [15:11:24]NVStorageSaveData done [15:11:24]ExternCall_PrintAddStr [15:11:24]wPrintStart [15:11:24]Write to MH i2c: 01 00 00 EB 0D F8 [15:11:24]Write i2c OK [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: 01 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: 01 07 00 [15:11:24]MH_I2C_Read... [15:11:24]Read from MH i2c: 01 07 00 EB 0D 00 00 00 00 00 FF 0F 0D [15:11:24]RasterBufferAndPrint [15:11:24]line Счет N : (1)412828 [15:11:24]line ИНН: 02508201610067 [15:11:24]line Контрольно-Кассовый Чек [15:11:24]line ПРОДАЖА [15:11:24]line ТРК (МРК, ГНК) : 33 [15:11:24]line Товар: 2710124500 [15:11:24]line Аи-95-К-5 [15:11:24]line 12.520 * 71.90 [15:11:24]line = 900.19 [15:11:24]line НДС 12% НСП 1% [15:11:24]line > о реализуемом товаре [15:11:24]line ОКРУГЛЕНИЕ: -0.19 [15:11:24]line ИТОГО: 900.00 [15:11:24]line Внесено: 900.00 [15:11:24]line СДАЧА: 0.00 [15:11:24]line НСП 1% : 7.97 [15:11:24]line НДС 12% : 95.59 [15:11:24]line Наличными: 900.00 [15:11:24]line Безнал.: 0.00 [15:11:24]line Место: АЗС № 92 "Партнер Нефть" [15:11:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:11:24]line СНО: Общий режим [15:11:24]line Чек 162 21.02.2025 15:11 [15:11:24]line Смена: 649 ФФД: 1.0 [15:11:24]line ЗНМ: 0300000118 [15:11:24]line РНМ: 0000000000091857 [15:11:24]line Версия ККМ: 001 [15:11:24]line ФМ: 0000000000871826 [15:11:24]line ФД: 187668 [15:11:24]line ФПД: 48690687311212 [15:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T151123&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187668&fm=48690687311212&tin=02508201610067®Number=0000000000091857&sum=90000 [15:11:24]written 0, free lines is 4095 [15:11:24]OFD Sender: Processing packet 187668 [packets to send 49, broken 48] [15:11:24]ProducePacketName [15:11:24]name=ofd_packets/00187668 [15:11:24]OFD Sender: To server: pG, [15:11:24]CommunicateWithHost lk.salyk.kg:30040 [15:11:24]ConnectInit lk.salyk.kg [15:11:25]Connected sock=10 [15: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 38 32 36 0F 01 00 00 E8 B6 07 01 08 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 9B 97 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DD 02 00 35 04 06 00 2C 48 AF 1E FD 6C 44 33 46 11 9D 92 58 58 [15: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 38 32 36 4F 00 00 00 7B 10 47 00 04 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 38 32 36 10 04 04 00 14 DD 02 00 F4 03 04 00 E9 3D B8 67 B6 04 01 00 00 18 6B 8D 16 31 80 E8 3D [15:11:25]CommunicateWithHost err = 0 [15:11:25]CheckOFDResponse [15:11:25]1017 (14) - 77093643461234 [15:11:25]1041 (16) - 0000000000871826 [15:11:25]1040 (4) - 187668 [15:11:25]1012 (4) - 21.02.2025 08:48 [15:11:25]1206 (1) - 0 [15:11:25]OFD Sender: Remove packet 187668 [15:11:25]ProducePacketName [15:11:25]name=ofd_packets/00187668 [15:11:25]NVStorageDeleteData [15:11:25]Write to MH i2c: 01 00 00 16 0E 24 [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 07 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: 01 07 00 16 0E 00 00 00 00 00 F8 0C 2F [15:11:25]RasterBufferAndPrint [15:11:25]line [15:11:25]line [15:11:25]line [15:11:25]line [15:11:25]line [15:11:25]written 0, free lines is 3326 [15:11:25]MH_Cut [15:11:25]Write to MH i2c: D1 01 00 1D 0E 01 FD [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: D1 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: D1 01 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: D1 01 00 1D 0E 00 FC [15:11:25]Write to MH i2c: 01 00 00 1E 0E 2C [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]OFD Sender: No OFD packet to send [15:11:26]*** Cut start [15:11:26]*** Partial cut [15:11:26]*** CUTSNS_PIN = 1 [15:11:26]*** CUTSNS_PIN = 0 [15:11:26]*** Brake cut motor [15:11:26]Read from MH i2c: 01 [15:11:26]MH_I2C_Read... [15:11:26]*** Stop cut motor [15:11:26]*** Cut end [15:11:26]Read from MH i2c: 01 07 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: 01 07 00 1E 0E 00 00 00 00 00 FF 0F 41 [15:11:26]process_action close_receipt done [15:11:26]requested_data is exist [15:11:26]produce_requested_data [15:11:26]requested_item fm.sn is exist - process it [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 11 00 00 [15:11:26]Write to MH i2c: E2 08 00 1F 0E 80 11 00 00 00 00 00 00 A7 [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 17 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 17 00 1F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [15:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:11:26]wFMCommunicate OK [15:11:26]requested_item fd.num is exist - process it [15:11:26]SAM_PROTO_GetFieldsCounters [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 13 00 00 [15:11:26]Write to MH i2c: E2 08 00 20 0E 80 13 00 00 00 00 00 00 AA [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 62 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 62 00 20 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 14 DD 02 00 0E 04 04 00 89 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 34 [15:11:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 14 DD 02 00 0E 04 04 00 89 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 [15:11:26]wFMCommunicate OK [15:11:26]SAM_PROTO_GetFieldsCounters done [15:11:26]requested_item shift.num is exist - process it [15:11:26]requested_item shift.opened is exist - process it [15:11:26]req_shift_opened [15:11:26]FM_GetShiftState [15:11:26]SAM_PROTO_GetShiftState [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 13 01 00 [15:11:26]Write to MH i2c: E2 08 00 21 0E 80 13 01 00 00 00 00 00 AC [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:27]Read from MH i2c: E2 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: E2 0E 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: E2 0E 00 21 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 9A [15:11:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:11:27]wFMCommunicate OK [15:11:27]SAM_PROTO_GetShiftState done [15:11:27]FM_GetShiftState done [15:11:27]req_shift_opened done [15:11:27]requested_item shift.open_date is exist - process it [15:11:27]req_shift_open_date [15:11:27]req_shift_open_date done [15:11:27]produce_requested_data done [15:11:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187668,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:11:27]process_action_free close_receipt [15:11:27]json_value_free [15:11:27]json_value_free done [15:11:27]process_json_proto returns [15:11:27]Send response to host [15:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187668,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:11:27]free response buf [15:11:27]execute_script done [15:11:27]execute_script returns [15:11:27]free content buf [15:11:27]Sock 7.Close socket [15:11:27]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [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:26]accept exits with 9 [15:13:26]New connection [15:13:26]New thread 3067624804 created [15:13:26]Thread 3067481444 joined [15:13:26]Waiting for new connection... [15:13:26] Sock 9.Parse request [15:13:26]Sock 9.Check first char [15:13:26]Sock 9.First char is OK [15:13:26]request: POST /json_proto HTTP/1.0 [15:13:26]Method: POST [15:13:26]URL: /json_proto [15:13:26]Method is POST - this is cgi request [15:13:26]url: /json_proto [15:13:26]query_string will be loaded in cgi processing [15:13:26]execute_cgi json_proto POST (null) [15:13:26]execute_cgi path=json_proto method=POST [15:13:26]POST find Content-Length [15:13:26]Host: 172.17.46.131:8080 [15:13:26]Content-Length: 792 [15:13:26]Content-Type: application/json [15:13:26] [15:13:26]POST finish read [15:13:26]Found Content-Length = 792 [15:13:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99955", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:26]execute_script... [15:13: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)412829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99955", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:26]POST & json_proto [15:13:26]process_json_proto [15:13:26]json parsed OK: [15:13:26]protocol is kg_v1.0 [15:13:26]action value=close_receipt [15:13:26]process_action close_receipt [15:13:26]cmd_close_receipt [15:13:26]MH_GetDate [15:13:26]Write to MH i2c: F0 00 00 22 0E 1F [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: F0 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: F0 09 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: F0 09 00 22 0E 00 17 98 B8 67 7E 41 4F 65 69 [15:13:26]GetLastDocTimeStamp 1740150683 [15:13:26]current date 1740150807 [15:13:26]FM_GetShiftState [15:13:26]SAM_PROTO_GetShiftState [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 13 01 00 [15:13:26]Write to MH i2c: E2 08 00 23 0E 80 13 01 00 00 00 00 00 AE [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 23 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 9C [15:13:26]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:13:26]wFMCommunicate OK [15:13:26]SAM_PROTO_GetShiftState done [15:13:26]FM_GetShiftState done [15:13:26]opened in 1740098043 [15:13:26]opened+sec_in_day 1740184443 [15:13:26]quantity*price = 0 [15:13:26]sum+1 = 1 [15:13:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 163 21.02.2025 15:13 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99955 ФМ: 0000000000871826 ФД: 187669 ФПД: 12577343775957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T151327&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187669&fm=12577343775957&tin=02508201610067®Number=0000000000091857&sum=0 [15:13:27]StoreToDocumentArchive [15:13:27]shift 649 fd 187669 [15:13:27]save to /storage/0649/doc_00187669 [15:13:27]save last doc name /storage/0649/doc_00187669 to /storage/kkm_last_doc_name [15:13:27]save OK [15:13:27]Clear old archive folders... [15:13:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:27]tlvbuf is 00BC7660 [15:13:27]SAM_PROTO_ClearQueue [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 09 00 00 [15:13:27]Write to MH i2c: E2 08 00 30 0E 80 09 00 00 00 00 00 00 B0 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:27]Read from MH i2c: E2 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 [15:13:27]MH_I2C_Read... [15:13:27]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [15:13:27]RAPDU: 90 00 [15:13:27]wFMCommunicate OK [15:13:27]SAM_PROTO_ClearQueue done [15:13:27]KKMCreateOFDPacket [15:13:27]OFDProtocolAddRootSTLVToBuf [15:13:27]FM_MakeSignedData [15:13:27]FM_MakeSignedData [15:13:27]SAM_PROTO_SignData [15:13:27]wFMCommunicate request_size=4 [15:13:27]MH_SAM_APDU [15:13:27]CAPDU: 80 0D 01 02 [15:13:27]Write to MH i2c: E2 08 00 31 0E 80 0D 01 02 00 00 00 00 B8 [15:13:27]Write i2c OK [15:13:27]MH_I2C_Read... [15:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [15:13:28]RAPDU: 90 00 [15:13:28]wFMCommunicate OK [15:13:28]wFMCommunicate request_size=255 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 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 A3 00 00 00 F4 03 04 00 17 98 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DD 02 00 35 04 06 00 0B [15:13:28]Write to MH i2c: E2 02 01 32 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 17 98 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DD 02 00 35 04 06 00 0B 00 00 D7 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 32 0E 00 90 00 B4 [15:13:28]RAPDU: 90 00 [15:13:28]wFMCommunicate OK [15:13:28]wFMCommunicate request_size=10 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 0D 02 02 05 70 64 1B A4 D5 [15:13:28]Write to MH i2c: E2 0D 00 33 0E 80 0D 02 02 05 00 70 64 1B A4 D5 00 00 2D [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [15:13:28]RAPDU: 90 00 [15:13:28]wFMCommunicate OK [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 0D 03 02 [15:13:28]Write to MH i2c: E2 08 00 34 0E 80 0D 03 02 00 00 00 00 BD [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 0B 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 0B 00 34 0E 00 0B DD F6 46 5F 0D B8 50 90 00 56 [15:13:28]RAPDU: 0B DD F6 46 5F 0D B8 50 90 00 [15:13:28]wFMCommunicate OK [15:13:28]SAM_PROTO_SignData done [15:13:28]FM_MakeSignedData done [15:13:28]CreateOFDProtocolMessage [15:13:28]wFMCommunicate request_size=4 [15:13:28]MH_SAM_APDU [15:13:28]CAPDU: 80 11 00 00 [15:13:28]Write to MH i2c: E2 08 00 35 0E 80 11 00 00 00 00 00 00 BD [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:28]Read from MH i2c: E2 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 17 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: E2 17 00 35 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 10 [15:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:13:28]wFMCommunicate OK [15:13:28]CreateOFDProtocolMessage done [15:13:28]OFDSenderStorePacket 187669 [15:13:28]StoreOFDPacket docnum=187669 [15:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F1 D1 07 01 B3 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 17 98 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DD 02 00 35 04 06 00 0B 70 64 1B A4 D5 0B DD F6 46 5F 0D B8 50 [15:13:28]CheckFolder [15:13:28]dirname=/storage/ofd_packets [15:13:28]CheckFolder done [15:13:28]ProducePacketName [15:13:28]name=ofd_packets/00187669 [15:13:28]NVStorageSaveData ofd_packets/00187669 [15:13:28]File name is /storage/ofd_packets/00187669 [15:13:28]Write 301 bytes [15:13:28]NVStorageSaveData done [15:13:28]OFDSenderStorePacket done [15:13:28]KKMCreateOFDPacket done [15:13:28]NVStorageSaveData kkm_last_timestamp [15:13:28]File name is /storage/kkm_last_timestamp [15:13:28]Write 4 bytes [15:13:28]NVStorageSaveData done [15:13:28]ExternCall_PrintAddStr [15:13:28]wPrintStart [15:13:28]Write to MH i2c: 01 00 00 36 0E 44 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 36 0E 00 00 00 00 00 FF 0F 59 [15:13:28]RasterBufferAndPrint [15:13:28]line Счет N : (1)412829 [15:13:28]line ИНН: 02508201610067 [15:13:28]line Контрольно-Кассовый Чек [15:13:28]line ПРОДАЖА [15:13:28]line ТРК (МРК, ГНК) : 42 [15:13:28]line Товар: 2710124130 [15:13:28]line Аи-92-К-2 [15:13:28]line 15.580 * 0.00 [15:13:28]line = 0.00 [15:13:28]line НДС 12% НСП 1% [15:13:28]line > о реализуемом товаре [15:13:28]line ИТОГО: 0.00 [15:13:28]line НСП 1% : 0.00 [15:13:28]line НДС 12% : 0.00 [15:13:28]line Наличными: 0.00 [15:13:28]line Безнал.: 0.00 [15:13:28]line Место: АЗС № 92 "Партнер Нефть" [15:13:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:13:28]line СНО: Общий режим [15:13:28]line Чек 163 21.02.2025 15:13 [15:13:28]line Смена: 649 ФФД: 1.0 [15:13:28]line ЗНМ: 0300000118 [15:13:28]line РНМ: 0000000000091857 [15:13:28]line Версия ККМ: 001 [15:13:28]line Талоны: Топливная Карта [15:13:28]line 99955 [15:13:28]line ФМ: 0000000000871826 [15:13:28]line ФД: 187669 [15:13:28]line ФПД: 12577343775957 [15:13:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T151327&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187669&fm=12577343775957&tin=02508201610067®Number=0000000000091857&sum=0 [15:13:28]written 0, free lines is 4095 [15:13:28]OFD Sender: Processing packet 187669 [packets to send 49, broken 48] [15:13:28]ProducePacketName [15:13:28]name=ofd_packets/00187669 [15:13:28]OFD Sender: To server: pG, [15:13:28]CommunicateWithHost lk.salyk.kg:30040 [15:13:28]ConnectInit lk.salyk.kg [15:13:28]Connected sock=7 [15:13:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F1 D1 07 01 B3 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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 17 98 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DD 02 00 35 04 06 00 0B 70 64 1B A4 D5 0B DD F6 46 5F 0D B8 50 [15:13:28]Write to MH i2c: 01 00 00 60 0E 6E [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: 01 07 00 60 0E 00 00 00 00 00 FA 0C 7B [15:13:28]RasterBufferAndPrint [15:13:28]line [15:13:28]line [15:13:28]line [15:13:28]line [15:13:28]line [15:13:28]written 0, free lines is 3328 [15:13:28]MH_Cut [15:13:28]Write to MH i2c: D1 01 00 67 0E 01 47 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: D1 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: D1 01 00 [15:13:28]MH_I2C_Read... [15:13:28]Read from MH i2c: D1 01 00 67 0E 00 46 [15:13:28]Write to MH i2c: 01 00 00 68 0E 76 [15:13:28]Write i2c OK [15:13:28]MH_I2C_Read... [15:13:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 93 D3 47 00 CA 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 DD 02 00 F4 03 04 00 64 3E B8 67 B6 04 01 00 00 5A 5A 74 90 B3 D0 E0 B6 [15:13:28]CommunicateWithHost err = 0 [15:13:28]CheckOFDResponse [15:13:28]1017 (14) - 77093643461234 [15:13:28]1041 (16) - 0000000000871826 [15:13:28]1040 (4) - 187669 [15:13:28]1012 (4) - 21.02.2025 08:50 [15:13:28]1206 (1) - 0 [15:13:28]OFD Sender: Remove packet 187669 [15:13:28]ProducePacketName [15:13:28]name=ofd_packets/00187669 [15:13:28]NVStorageDeleteData [15:13:29]OFD Sender: No OFD packet to send [15:13:29]*** Cut start [15:13:29]*** Partial cut [15:13:29]*** CUTSNS_PIN = 1 [15:13:29]*** CUTSNS_PIN = 0 [15:13:29]*** Brake cut motor [15:13:30]Read from MH i2c: 01 [15:13:30]MH_I2C_Read... [15:13:30]*** Stop cut motor [15:13:30]*** Cut end [15:13:30]Read from MH i2c: 01 07 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: 01 07 00 68 0E 00 00 00 00 00 FF 0F 8B [15:13:30]process_action close_receipt done [15:13:30]requested_data is exist [15:13:30]produce_requested_data [15:13:30]requested_item fm.sn is exist - process it [15:13:30]wFMCommunicate request_size=4 [15:13:30]MH_SAM_APDU [15:13:30]CAPDU: 80 11 00 00 [15:13:30]Write to MH i2c: E2 08 00 69 0E 80 11 00 00 00 00 00 00 F1 [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:30]Read from MH i2c: E2 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 17 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 17 00 69 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [15:13:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:13:30]wFMCommunicate OK [15:13:30]requested_item fd.num is exist - process it [15:13:30]SAM_PROTO_GetFieldsCounters [15:13:30]wFMCommunicate request_size=4 [15:13:30]MH_SAM_APDU [15:13:30]CAPDU: 80 13 00 00 [15:13:30]Write to MH i2c: E2 08 00 6A 0E 80 13 00 00 00 00 00 00 F4 [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:30]Read from MH i2c: E2 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 62 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 62 00 6A 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 15 DD 02 00 0E 04 04 00 89 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 82 [15:13:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 15 DD 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:30]wFMCommunicate OK [15:13:30]SAM_PROTO_GetFieldsCounters done [15:13:30]requested_item shift.num is exist - process it [15:13:30]requested_item shift.opened is exist - process it [15:13:30]req_shift_opened [15:13:30]FM_GetShiftState [15:13:30]SAM_PROTO_GetShiftState [15:13:30]wFMCommunicate request_size=4 [15:13:30]MH_SAM_APDU [15:13:30]CAPDU: 80 13 01 00 [15:13:30]Write to MH i2c: E2 08 00 6B 0E 80 13 01 00 00 00 00 00 F6 [15:13:30]Write i2c OK [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 [15:13:30]MH_I2C_Read... [15:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:30]Read from MH i2c: E2 0E 00 [15:13:30]MH_I2C_Read... [15:13:30]Read from MH i2c: E2 0E 00 6B 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E4 [15:13:30]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:13:30]wFMCommunicate OK [15:13:30]SAM_PROTO_GetShiftState done [15:13:30]FM_GetShiftState done [15:13:30]req_shift_opened done [15:13:30]requested_item shift.open_date is exist - process it [15:13:30]req_shift_open_date [15:13:30]req_shift_open_date done [15:13:30]produce_requested_data done [15:13:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187669,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:13:30]process_action_free close_receipt [15:13:30]json_value_free [15:13:30]json_value_free done [15:13:30]process_json_proto returns [15:13:30]Send response to host [15:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187669,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:13:30]free response buf [15:13:30]execute_script done [15:13:30]execute_script returns [15:13:30]free content buf [15:13:30]Sock 9.Close socket [15:13:30]Sock 9.Thread stoped [15:13:34]OFD Sender: No OFD packet to send [15:13:38]accept exits with 10 [15:13:38]New connection [15:13:38]New thread 3067481444 created [15:13:38]Thread 3067624804 joined [15:13:38]Waiting for new connection... [15:13:38] Sock 10.Parse request [15:13:38]Sock 10.Check first char [15:13:38]Sock 10.First char is OK [15:13:38]request: POST /json_proto HTTP/1.0 [15:13:38]Method: POST [15:13:38]URL: /json_proto [15:13:38]Method is POST - this is cgi request [15:13:38]url: /json_proto [15:13:38]query_string will be loaded in cgi processing [15:13:38]execute_cgi json_proto POST (null) [15:13:38]execute_cgi path=json_proto method=POST [15:13:38]POST find Content-Length [15:13:38]Host: 172.17.46.131:8080 [15:13:38]Content-Length: 682 [15:13:38]Content-Type: application/json [15:13:38] [15:13:38]POST finish read [15:13:38]Found Content-Length = 682 [15:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:38]execute_script... [15: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)412830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:38]POST & json_proto [15:13:38]process_json_proto [15:13:38]json parsed OK: [15:13:38]protocol is kg_v1.0 [15:13:38]action value=close_receipt [15:13:38]process_action close_receipt [15:13:38]cmd_close_receipt [15:13:38]MH_GetDate [15:13:38]Write to MH i2c: F0 00 00 6C 0E 69 [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: F0 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: F0 09 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: F0 09 00 6C 0E 00 22 98 B8 67 7E 41 4F 65 BE [15:13:38]GetLastDocTimeStamp 1740150807 [15:13:38]current date 1740150818 [15:13:38]FM_GetShiftState [15:13:38]SAM_PROTO_GetShiftState [15:13:38]wFMCommunicate request_size=4 [15:13:38]MH_SAM_APDU [15:13:38]CAPDU: 80 13 01 00 [15:13:38]Write to MH i2c: E2 08 00 6D 0E 80 13 01 00 00 00 00 00 F8 [15:13:38]Write i2c OK [15:13:38]MH_I2C_Read... [15:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:38]Read from MH i2c: E2 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 0E 00 [15:13:38]MH_I2C_Read... [15:13:38]Read from MH i2c: E2 0E 00 6D 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E6 [15:13:38]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:13:38]wFMCommunicate OK [15:13:38]SAM_PROTO_GetShiftState done [15:13:38]FM_GetShiftState done [15:13:38]opened in 1740098043 [15:13:38]opened+sec_in_day 1740184443 [15:13:38]quantity*price = 150055 [15:13:38]sum+1 = 150056 [15:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 164 21.02.2025 15:13 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187670 ФПД: 24668701624421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T151338&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187670&fm=24668701624421&tin=02508201610067®Number=0000000000091857&sum=150000 [15:13:39]StoreToDocumentArchive [15:13:39]shift 649 fd 187670 [15:13:39]save to /storage/0649/doc_00187670 [15:13:39]save last doc name /storage/0649/doc_00187670 to /storage/kkm_last_doc_name [15:13:39]save OK [15:13:39]Clear old archive folders... [15:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:39]tlvbuf is 00C268C0 [15:13:39]SAM_PROTO_ClearQueue [15:13:39]wFMCommunicate request_size=4 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 09 00 00 [15:13:39]Write to MH i2c: E2 08 00 7A 0E 80 09 00 00 00 00 00 00 FA [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 7A 0E 00 90 00 FC [15:13:39]RAPDU: 90 00 [15:13:39]wFMCommunicate OK [15:13:39]SAM_PROTO_ClearQueue done [15:13:39]KKMCreateOFDPacket [15:13:39]OFDProtocolAddRootSTLVToBuf [15:13:39]FM_MakeSignedData [15:13:39]FM_MakeSignedData [15:13:39]SAM_PROTO_SignData [15:13:39]wFMCommunicate request_size=4 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 0D 01 02 [15:13:39]Write to MH i2c: E2 08 00 7B 0E 80 0D 01 02 00 00 00 00 02 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 7B 0E 00 90 00 FD [15:13:39]RAPDU: 90 00 [15:13:39]wFMCommunicate OK [15:13:39]wFMCommunicate request_size=255 [15:13:39]MH_SAM_APDU [15: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 22 98 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DD 02 00 35 04 06 00 16 [15:13:39]Write to MH i2c: E2 02 01 7C 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 22 98 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DD 02 00 35 04 06 00 16 00 00 CC [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]OFD Sender: No OFD packet to send [15:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [15:13:39]RAPDU: 90 00 [15:13:39]wFMCommunicate OK [15:13:39]wFMCommunicate request_size=10 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 0D 02 02 05 6F A1 32 88 65 [15:13:39]Write to MH i2c: E2 0D 00 7D 0E 80 0D 02 02 05 00 6F A1 32 88 65 00 00 3E [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 03 00 7D 0E 00 90 00 FF [15:13:39]RAPDU: 90 00 [15:13:39]wFMCommunicate OK [15:13:39]wFMCommunicate request_size=4 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 0D 03 02 [15:13:39]Write to MH i2c: E2 08 00 7E 0E 80 0D 03 02 00 00 00 00 07 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 0B 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 0B 00 7E 0E 00 44 9D C2 1F 1E 04 A8 56 90 00 EA [15:13:39]RAPDU: 44 9D C2 1F 1E 04 A8 56 90 00 [15:13:39]wFMCommunicate OK [15:13:39]SAM_PROTO_SignData done [15:13:39]FM_MakeSignedData done [15:13:39]CreateOFDProtocolMessage [15:13:39]wFMCommunicate request_size=4 [15:13:39]MH_SAM_APDU [15:13:39]CAPDU: 80 11 00 00 [15:13:39]Write to MH i2c: E2 08 00 7F 0E 80 11 00 00 00 00 00 00 07 [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:39]Read from MH i2c: E2 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 17 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: E2 17 00 7F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [15:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:13:39]wFMCommunicate OK [15:13:39]CreateOFDProtocolMessage done [15:13:39]OFDSenderStorePacket 187670 [15:13:39]StoreOFDPacket docnum=187670 [15:13:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1D 8A 07 01 3E 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 22 98 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DD 02 00 35 04 06 00 16 6F A1 32 88 65 44 9D C2 1F 1E 04 A8 56 [15:13:39]CheckFolder [15:13:39]dirname=/storage/ofd_packets [15:13:39]CheckFolder done [15:13:39]ProducePacketName [15:13:39]name=ofd_packets/00187670 [15:13:39]NVStorageSaveData ofd_packets/00187670 [15:13:39]File name is /storage/ofd_packets/00187670 [15:13:39]Write 301 bytes [15:13:39]NVStorageSaveData done [15:13:39]OFDSenderStorePacket done [15:13:39]KKMCreateOFDPacket done [15:13:39]NVStorageSaveData kkm_last_timestamp [15:13:39]File name is /storage/kkm_last_timestamp [15:13:39]Write 4 bytes [15:13:39]NVStorageSaveData done [15:13:39]ExternCall_PrintAddStr [15:13:39]wPrintStart [15:13:39]Write to MH i2c: 01 00 00 80 0E 8E [15:13:39]Write i2c OK [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: 01 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: 01 07 00 [15:13:39]MH_I2C_Read... [15:13:39]Read from MH i2c: 01 07 00 80 0E 00 00 00 00 00 FF 0F A3 [15:13:39]RasterBufferAndPrint [15:13:39]line Счет N : (1)412830 [15:13:39]line ИНН: 02508201610067 [15:13:39]line Контрольно-Кассовый Чек [15:13:39]line ПРОДАЖА [15:13:39]line ТРК (МРК, ГНК) : 13 [15:13:39]line Товар: 2710124500 [15:13:39]line Аи-95-К-5 [15:13:39]line 20.870 * 71.90 [15:13:39]line = 1500.55 [15:13:39]line НДС 12% НСП 1% [15:13:39]line > о реализуемом товаре [15:13:39]line ОКРУГЛЕНИЕ: -0.55 [15:13:39]line ИТОГО: 1500.00 [15:13:39]line Внесено: 1500.00 [15:13:39]line СДАЧА: 0.00 [15:13:39]line НСП 1% : 13.28 [15:13:39]line НДС 12% : 159.35 [15:13:39]line Наличными: 1500.00 [15:13:39]line Безнал.: 0.00 [15:13:39]line Место: АЗС № 92 "Партнер Нефть" [15:13:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:13:39]line СНО: Общий режим [15:13:39]line Чек 164 21.02.2025 15:13 [15:13:39]line Смена: 649 ФФД: 1.0 [15:13:39]line ЗНМ: 0300000118 [15:13:39]line РНМ: 0000000000091857 [15:13:39]line Версия ККМ: 001 [15:13:39]line ФМ: 0000000000871826 [15:13:39]line ФД: 187670 [15:13:39]line ФПД: 24668701624421 [15:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T151338&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187670&fm=24668701624421&tin=02508201610067®Number=0000000000091857&sum=150000 [15:13:39]OFD Sender: Processing packet 187670 [packets to send 49, broken 48] [15:13:39]ProducePacketName [15:13:39]name=ofd_packets/00187670 [15:13:39]OFD Sender: To server: pG, [15:13:40]CommunicateWithHost lk.salyk.kg:30040 [15:13:40]ConnectInit lk.salyk.kg [15:13:40]written 0, free lines is 4095 [15:13:40]Connected sock=9 [15: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 38 32 36 0F 01 00 00 1D 8A 07 01 3E 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 22 98 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DD 02 00 35 04 06 00 16 6F A1 32 88 65 44 9D C2 1F 1E 04 A8 56 [15: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 38 32 36 4F 00 00 00 EE C7 47 00 7C 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DD 02 00 F4 03 04 00 70 3E B8 67 B6 04 01 00 00 24 54 40 69 D1 D9 40 18 [15:13:40]CommunicateWithHost err = 0 [15:13:40]CheckOFDResponse [15:13:40]1017 (14) - 77093643461234 [15:13:40]1041 (16) - 0000000000871826 [15:13:40]1040 (4) - 187670 [15:13:40]1012 (4) - 21.02.2025 08:50 [15:13:40]1206 (1) - 0 [15:13:40]OFD Sender: Remove packet 187670 [15:13:40]ProducePacketName [15:13:40]name=ofd_packets/00187670 [15:13:40]NVStorageDeleteData [15:13:40]Write to MH i2c: 01 00 00 AB 0E B9 [15:13:40]Write i2c OK [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: 01 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: 01 07 00 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: 01 07 00 AB 0E 00 00 00 00 00 06 0D D3 [15:13:40]RasterBufferAndPrint [15:13:40]line [15:13:40]line [15:13:40]line [15:13:40]line [15:13:40]line [15:13:40]written 0, free lines is 3346 [15:13:40]MH_Cut [15:13:40]Write to MH i2c: D1 01 00 B2 0E 01 92 [15:13:40]Write i2c OK [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: D1 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: D1 01 00 [15:13:40]MH_I2C_Read... [15:13:40]Read from MH i2c: D1 01 00 B2 0E 00 91 [15:13:40]Write to MH i2c: 01 00 00 B3 0E C1 [15:13:40]Write i2c OK [15:13:40]MH_I2C_Read... [15:13:41]OFD Sender: No OFD packet to send [15:13:41]*** Cut start [15:13:41]*** Partial cut [15:13:41]*** CUTSNS_PIN = 1 [15:13:41]*** CUTSNS_PIN = 0 [15:13:41]*** Brake cut motor [15:13:41]Read from MH i2c: 01 [15:13:41]MH_I2C_Read... [15:13:41]*** Stop cut motor [15:13:41]*** Cut end [15:13:41]Read from MH i2c: 01 07 00 [15:13:41]MH_I2C_Read... [15:13:41]Read from MH i2c: 01 07 00 B3 0E 00 00 00 00 00 FF 0F D6 [15:13:41]process_action close_receipt done [15:13:41]requested_data is exist [15:13:41]produce_requested_data [15:13:41]requested_item fm.sn is exist - process it [15:13:41]wFMCommunicate request_size=4 [15:13:41]MH_SAM_APDU [15:13:41]CAPDU: 80 11 00 00 [15:13:41]Write to MH i2c: E2 08 00 B4 0E 80 11 00 00 00 00 00 00 3C [15:13:41]Write i2c OK [15:13:41]MH_I2C_Read... [15:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:42]Read from MH i2c: E2 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 17 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 17 00 B4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [15:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:13:42]wFMCommunicate OK [15:13:42]requested_item fd.num is exist - process it [15:13:42]SAM_PROTO_GetFieldsCounters [15:13:42]wFMCommunicate request_size=4 [15:13:42]MH_SAM_APDU [15:13:42]CAPDU: 80 13 00 00 [15:13:42]Write to MH i2c: E2 08 00 B5 0E 80 13 00 00 00 00 00 00 3F [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:42]Read from MH i2c: E2 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 62 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 62 00 B5 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 16 DD 02 00 0E 04 04 00 89 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 D1 [15: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 16 DD 02 00 0E 04 04 00 89 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 [15:13:42]wFMCommunicate OK [15:13:42]SAM_PROTO_GetFieldsCounters done [15:13:42]requested_item shift.num is exist - process it [15:13:42]requested_item shift.opened is exist - process it [15:13:42]req_shift_opened [15:13:42]FM_GetShiftState [15:13:42]SAM_PROTO_GetShiftState [15:13:42]wFMCommunicate request_size=4 [15:13:42]MH_SAM_APDU [15:13:42]CAPDU: 80 13 01 00 [15:13:42]Write to MH i2c: E2 08 00 B6 0E 80 13 01 00 00 00 00 00 41 [15:13:42]Write i2c OK [15:13:42]MH_I2C_Read... [15:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:42]Read from MH i2c: E2 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 0E 00 [15:13:42]MH_I2C_Read... [15:13:42]Read from MH i2c: E2 0E 00 B6 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2F [15:13:42]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:13:42]wFMCommunicate OK [15:13:42]SAM_PROTO_GetShiftState done [15:13:42]FM_GetShiftState done [15:13:42]req_shift_opened done [15:13:42]requested_item shift.open_date is exist - process it [15:13:42]req_shift_open_date [15:13:42]req_shift_open_date done [15:13:42]produce_requested_data done [15:13:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187670,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:13:42]process_action_free close_receipt [15:13:42]json_value_free [15:13:42]json_value_free done [15:13:42]process_json_proto returns [15:13:42]Send response to host [15:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187670,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:13:42]free response buf [15:13:42]execute_script done [15:13:42]execute_script returns [15:13:42]free content buf [15:13:42]Sock 10.Close socket [15:13:42]Sock 10.Thread stoped [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:35]accept exits with 7 [15:20:35]New connection [15:20:35]New thread 3067624804 created [15:20:35]Thread 3067481444 joined [15:20:35]Waiting for new connection... [15:20:35] Sock 7.Parse request [15:20:35]Sock 7.Check first char [15:20:35]Sock 7.First char is OK [15:20:35]request: POST /json_proto HTTP/1.0 [15:20:35]Method: POST [15:20:35]URL: /json_proto [15:20:35]Method is POST - this is cgi request [15:20:35]url: /json_proto [15:20:35]query_string will be loaded in cgi processing [15:20:35]execute_cgi json_proto POST (null) [15:20:35]execute_cgi path=json_proto method=POST [15:20:35]POST find Content-Length [15:20:35]Host: 172.17.46.131:8080 [15:20:35]Content-Length: 800 [15:20:35]Content-Type: application/json [15:20:35] [15:20:35]POST finish read [15:20:35]Found Content-Length = 800 [15:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997510", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:35]execute_script... [15:20: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)412831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997510", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:35]POST & json_proto [15:20:35]process_json_proto [15:20:35]json parsed OK: [15:20:35]protocol is kg_v1.0 [15:20:35]action value=close_receipt [15:20:35]process_action close_receipt [15:20:35]cmd_close_receipt [15:20:35]MH_GetDate [15:20:35]Write to MH i2c: F0 00 00 B7 0E B4 [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: F0 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: F0 09 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: F0 09 00 B7 0E 00 C4 99 B8 67 7E 41 4F 65 AC [15:20:35]GetLastDocTimeStamp 1740150818 [15:20:35]current date 1740151236 [15:20:35]FM_GetShiftState [15:20:35]SAM_PROTO_GetShiftState [15:20:35]wFMCommunicate request_size=4 [15:20:35]MH_SAM_APDU [15:20:35]CAPDU: 80 13 01 00 [15:20:35]Write to MH i2c: E2 08 00 B8 0E 80 13 01 00 00 00 00 00 43 [15:20:35]Write i2c OK [15:20:35]MH_I2C_Read... [15:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:35]Read from MH i2c: E2 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 0E 00 [15:20:35]MH_I2C_Read... [15:20:35]Read from MH i2c: E2 0E 00 B8 0E 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 31 [15:20:35]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:20:35]wFMCommunicate OK [15:20:35]SAM_PROTO_GetShiftState done [15:20:35]FM_GetShiftState done [15:20:35]opened in 1740098043 [15:20:35]opened+sec_in_day 1740184443 [15:20:35]quantity*price = 0 [15:20:35]sum+1 = 1 [15:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 165 21.02.2025 15:20 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4997510 ФМ: 0000000000871826 ФД: 187671 ФПД: 188168155310034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T152036&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187671&fm=188168155310034&tin=02508201610067®Number=0000000000091857&sum=0 [15:20:37]StoreToDocumentArchive [15:20:37]shift 649 fd 187671 [15:20:37]save to /storage/0649/doc_00187671 [15:20:37]save last doc name /storage/0649/doc_00187671 to /storage/kkm_last_doc_name [15:20:37]save OK [15:20:37]Clear old archive folders... [15:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:37]tlvbuf is 00B9C0B0 [15:20:37]SAM_PROTO_ClearQueue [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 09 00 00 [15:20:37]Write to MH i2c: E2 08 00 C5 0E 80 09 00 00 00 00 00 00 45 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 C5 0E 00 90 00 47 [15:20:37]RAPDU: 90 00 [15:20:37]wFMCommunicate OK [15:20:37]SAM_PROTO_ClearQueue done [15:20:37]KKMCreateOFDPacket [15:20:37]OFDProtocolAddRootSTLVToBuf [15:20:37]FM_MakeSignedData [15:20:37]FM_MakeSignedData [15:20:37]SAM_PROTO_SignData [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 0D 01 02 [15:20:37]Write to MH i2c: E2 08 00 C6 0E 80 0D 01 02 00 00 00 00 4D [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 C6 0E 00 90 00 48 [15:20:37]RAPDU: 90 00 [15:20:37]wFMCommunicate OK [15:20:37]wFMCommunicate request_size=255 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 A5 00 00 00 F4 03 04 00 C4 99 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DD 02 00 35 04 06 00 AB [15:20:37]Write to MH i2c: E2 02 01 C7 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 A5 00 00 00 F4 03 04 00 C4 99 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DD 02 00 35 04 06 00 AB 00 00 DD [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [15:20:37]RAPDU: 90 00 [15:20:37]wFMCommunicate OK [15:20:37]wFMCommunicate request_size=10 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 0D 02 02 05 23 50 0E 27 D2 [15:20:37]Write to MH i2c: E2 0D 00 C8 0E 80 0D 02 02 05 00 23 50 0E 27 D2 00 00 D4 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [15:20:37]RAPDU: 90 00 [15:20:37]wFMCommunicate OK [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 0D 03 02 [15:20:37]Write to MH i2c: E2 08 00 C9 0E 80 0D 03 02 00 00 00 00 52 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 0B 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 0B 00 C9 0E 00 7A 3E 73 88 3E 82 1C 47 90 00 29 [15:20:37]RAPDU: 7A 3E 73 88 3E 82 1C 47 90 00 [15:20:37]wFMCommunicate OK [15:20:37]SAM_PROTO_SignData done [15:20:37]FM_MakeSignedData done [15:20:37]CreateOFDProtocolMessage [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 11 00 00 [15:20:37]Write to MH i2c: E2 08 00 CA 0E 80 11 00 00 00 00 00 00 52 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 17 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 17 00 CA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [15:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:20:37]wFMCommunicate OK [15:20:37]CreateOFDProtocolMessage done [15:20:37]OFDSenderStorePacket 187671 [15:20:37]StoreOFDPacket docnum=187671 [15:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 05 91 07 01 7A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 A5 00 00 00 F4 03 04 00 C4 99 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DD 02 00 35 04 06 00 AB 23 50 0E 27 D2 7A 3E 73 88 3E 82 1C 47 [15:20:37]CheckFolder [15:20:37]dirname=/storage/ofd_packets [15:20:37]CheckFolder done [15:20:37]ProducePacketName [15:20:37]name=ofd_packets/00187671 [15:20:37]NVStorageSaveData ofd_packets/00187671 [15:20:37]File name is /storage/ofd_packets/00187671 [15:20:37]Write 301 bytes [15:20:37]NVStorageSaveData done [15:20:37]OFDSenderStorePacket done [15:20:37]KKMCreateOFDPacket done [15:20:37]NVStorageSaveData kkm_last_timestamp [15:20:37]File name is /storage/kkm_last_timestamp [15:20:37]Write 4 bytes [15:20:37]NVStorageSaveData done [15:20:37]ExternCall_PrintAddStr [15:20:37]wPrintStart [15:20:37]Write to MH i2c: 01 00 00 CB 0E D9 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: 01 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: 01 07 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: 01 07 00 CB 0E 00 00 00 00 00 FF 0F EE [15:20:37]RasterBufferAndPrint [15:20:37]line Счет N : (1)412831 [15:20:37]line ИНН: 02508201610067 [15:20:37]line Контрольно-Кассовый Чек [15:20:37]line ПРОДАЖА [15:20:37]line ТРК (МРК, ГНК) : 42 [15:20:37]line Товар: 2710124130 [15:20:37]line Аи-92-К-2 [15:20:37]line 10.000 * 0.00 [15:20:37]line = 0.00 [15:20:37]line НДС 12% НСП 1% [15:20:37]line > о реализуемом товаре [15:20:37]line ИТОГО: 0.00 [15:20:37]line НСП 1% : 0.00 [15:20:37]line НДС 12% : 0.00 [15:20:37]line Наличными: 0.00 [15:20:37]line Безнал.: 0.00 [15:20:37]line Место: АЗС № 92 "Партнер Нефть" [15:20:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:20:37]line СНО: Общий режим [15:20:37]line Чек 165 21.02.2025 15:20 [15:20:37]line Смена: 649 ФФД: 1.0 [15:20:37]line ЗНМ: 0300000118 [15:20:37]line РНМ: 0000000000091857 [15:20:37]line Версия ККМ: 001 [15:20:37]line Талоны: Топливные Талоны [15:20:37]line 4997510 [15:20:37]line ФМ: 0000000000871826 [15:20:37]line ФД: 187671 [15:20:37]line ФПД: 188168155310034 [15:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T152036&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187671&fm=188168155310034&tin=02508201610067®Number=0000000000091857&sum=0 [15:20:37]written 0, free lines is 4095 [15:20:37]OFD Sender: Processing packet 187671 [packets to send 49, broken 48] [15:20:37]ProducePacketName [15:20:37]name=ofd_packets/00187671 [15:20:37]OFD Sender: To server: pG, [15:20:37]CommunicateWithHost lk.salyk.kg:30040 [15:20:37]ConnectInit lk.salyk.kg [15:20:37]Connected sock=10 [15:20:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 05 91 07 01 7A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 A5 00 00 00 F4 03 04 00 C4 99 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 DD 02 00 35 04 06 00 AB 23 50 0E 27 D2 7A 3E 73 88 3E 82 1C 47 [15:20:38]Write to MH i2c: 01 00 00 F5 0E 03 [15:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B2 FE 47 00 46 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 38 32 36 10 04 04 00 17 DD 02 00 F4 03 04 00 11 40 B8 67 B6 04 01 00 00 D4 14 E5 35 62 9B 96 29 [15:20:38]CommunicateWithHost err = 0 [15:20:38]CheckOFDResponse [15:20:38]1017 (14) - 77093643461234 [15:20:38]1041 (16) - 0000000000871826 [15:20:38]1040 (4) - 187671 [15:20:38]1012 (4) - 21.02.2025 08:57 [15:20:38]1206 (1) - 0 [15:20:38]OFD Sender: Remove packet 187671 [15:20:38]ProducePacketName [15:20:38]name=ofd_packets/00187671 [15:20:38]NVStorageDeleteData [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: 01 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: 01 07 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: 01 07 00 F5 0E 00 00 00 00 00 0A 0D 21 [15:20:38]RasterBufferAndPrint [15:20:38]line [15:20:38]line [15:20:38]line [15:20:38]line [15:20:38]line [15:20:38]written 0, free lines is 3353 [15:20:38]MH_Cut [15:20:38]Write to MH i2c: D1 01 00 FC 0E 01 DC [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: D1 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: D1 01 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: D1 01 00 FC 0E 00 DB [15:20:38]Write to MH i2c: 01 00 00 FD 0E 0B [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]OFD Sender: No OFD packet to send [15:20:38]*** Cut start [15:20:38]*** Partial cut [15:20:38]*** CUTSNS_PIN = 1 [15:20:38]*** CUTSNS_PIN = 0 [15:20:39]*** Brake cut motor [15:20:39]Read from MH i2c: 01 [15:20:39]MH_I2C_Read... [15:20:39]*** Stop cut motor [15:20:39]*** Cut end [15:20:39]Read from MH i2c: 01 07 00 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: 01 07 00 FD 0E 00 00 00 00 00 FF 0F 20 [15:20:39]process_action close_receipt done [15:20:39]requested_data is exist [15:20:39]produce_requested_data [15:20:39]requested_item fm.sn is exist - process it [15:20:39]wFMCommunicate request_size=4 [15:20:39]MH_SAM_APDU [15:20:39]CAPDU: 80 11 00 00 [15:20:39]Write to MH i2c: E2 08 00 FE 0E 80 11 00 00 00 00 00 00 86 [15:20:39]Write i2c OK [15:20:39]MH_I2C_Read... [15:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:39]Read from MH i2c: E2 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: E2 17 00 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: E2 17 00 FE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D9 [15:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:20:39]wFMCommunicate OK [15:20:39]requested_item fd.num is exist - process it [15:20:39]SAM_PROTO_GetFieldsCounters [15:20:39]wFMCommunicate request_size=4 [15:20:39]MH_SAM_APDU [15:20:39]CAPDU: 80 13 00 00 [15:20:39]Write to MH i2c: E2 08 00 FF 0E 80 13 00 00 00 00 00 00 89 [15:20:39]Write i2c OK [15:20:39]MH_I2C_Read... [15:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:39]Read from MH i2c: E2 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: E2 62 00 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: E2 62 00 FF 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 17 DD 02 00 0E 04 04 00 89 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 1F [15:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 17 DD 02 00 0E 04 04 00 89 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 [15:20:39]wFMCommunicate OK [15:20:39]SAM_PROTO_GetFieldsCounters done [15:20:39]requested_item shift.num is exist - process it [15:20:39]requested_item shift.opened is exist - process it [15:20:39]req_shift_opened [15:20:39]FM_GetShiftState [15:20:39]SAM_PROTO_GetShiftState [15:20:39]wFMCommunicate request_size=4 [15:20:39]MH_SAM_APDU [15:20:39]CAPDU: 80 13 01 00 [15:20:39]Write to MH i2c: E2 08 00 00 0F 80 13 01 00 00 00 00 00 8C [15:20:39]Write i2c OK [15:20:39]MH_I2C_Read... [15:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:39]Read from MH i2c: E2 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: E2 0E 00 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: E2 0E 00 00 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7A [15:20:39]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:20:39]wFMCommunicate OK [15:20:39]SAM_PROTO_GetShiftState done [15:20:39]FM_GetShiftState done [15:20:39]req_shift_opened done [15:20:39]requested_item shift.open_date is exist - process it [15:20:39]req_shift_open_date [15:20:39]req_shift_open_date done [15:20:39]produce_requested_data done [15:20:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187671,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:20:39]process_action_free close_receipt [15:20:39]json_value_free [15:20:39]json_value_free done [15:20:39]process_json_proto returns [15:20:39]Send response to host [15:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187671,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:20:39]free response buf [15:20:39]execute_script done [15:20:39]execute_script returns [15:20:39]free content buf [15:20:39]Sock 7.Close socket [15:20:39]Sock 7.Thread stoped [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:50]accept exits with 9 [15:24:50]New connection [15:24:50]New thread 3067481444 created [15:24:50]Thread 3067624804 joined [15:24:50]Waiting for new connection... [15:24:50] Sock 9.Parse request [15:24:50]Sock 9.Check first char [15:24:50]Sock 9.First char is OK [15:24:50]request: POST /json_proto HTTP/1.0 [15:24:50]Method: POST [15:24:50]URL: /json_proto [15:24:50]Method is POST - this is cgi request [15:24:50]url: /json_proto [15:24:50]query_string will be loaded in cgi processing [15:24:50]execute_cgi json_proto POST (null) [15:24:50]execute_cgi path=json_proto method=POST [15:24:50]POST find Content-Length [15:24:50]Host: 172.17.46.131:8080 [15:24:50]Content-Length: 682 [15:24:50]Content-Type: application/json [15:24:50] [15:24:50]POST finish read [15:24:50]Found Content-Length = 682 [15:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:50]execute_script... [15: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)412832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:50]POST & json_proto [15:24:50]process_json_proto [15:24:50]json parsed OK: [15:24:50]protocol is kg_v1.0 [15:24:50]action value=close_receipt [15:24:50]process_action close_receipt [15:24:50]cmd_close_receipt [15:24:50]MH_GetDate [15:24:50]Write to MH i2c: F0 00 00 01 0F FF [15:24:50]Write i2c OK [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: F0 [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: F0 09 00 [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: F0 09 00 01 0F 00 C3 9A B8 67 7E 41 4F 65 F7 [15:24:50]GetLastDocTimeStamp 1740151236 [15:24:50]current date 1740151491 [15:24:50]FM_GetShiftState [15:24:50]SAM_PROTO_GetShiftState [15:24:50]wFMCommunicate request_size=4 [15:24:50]MH_SAM_APDU [15:24:50]CAPDU: 80 13 01 00 [15:24:50]Write to MH i2c: E2 08 00 02 0F 80 13 01 00 00 00 00 00 8E [15:24:50]Write i2c OK [15:24:50]MH_I2C_Read... [15:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:50]Read from MH i2c: E2 [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: E2 0E 00 [15:24:50]MH_I2C_Read... [15:24:50]Read from MH i2c: E2 0E 00 02 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7C [15:24:50]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:24:50]wFMCommunicate OK [15:24:50]SAM_PROTO_GetShiftState done [15:24:50]FM_GetShiftState done [15:24:50]opened in 1740098043 [15:24:50]opened+sec_in_day 1740184443 [15:24:50]quantity*price = 100023 [15:24:50]sum+1 = 100025 [15:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 166 21.02.2025 15:24 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187672 ФПД: 220466243519377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T152451&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187672&fm=220466243519377&tin=02508201610067®Number=0000000000091857&sum=100000 [15:24:51]StoreToDocumentArchive [15:24:51]shift 649 fd 187672 [15:24:51]save to /storage/0649/doc_00187672 [15:24:51]save last doc name /storage/0649/doc_00187672 to /storage/kkm_last_doc_name [15:24:51]save OK [15:24:51]Clear old archive folders... [15:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:51]tlvbuf is 00BCA4D0 [15:24:51]SAM_PROTO_ClearQueue [15:24:51]wFMCommunicate request_size=4 [15:24:51]MH_SAM_APDU [15:24:51]CAPDU: 80 09 00 00 [15:24:51]Write to MH i2c: E2 08 00 0F 0F 80 09 00 00 00 00 00 00 90 [15:24:51]Write i2c OK [15:24:51]MH_I2C_Read... [15:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:51]Read from MH i2c: E2 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 03 00 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 03 00 0F 0F 00 90 00 92 [15:24:51]RAPDU: 90 00 [15:24:51]wFMCommunicate OK [15:24:51]SAM_PROTO_ClearQueue done [15:24:51]KKMCreateOFDPacket [15:24:51]OFDProtocolAddRootSTLVToBuf [15:24:51]FM_MakeSignedData [15:24:51]FM_MakeSignedData [15:24:51]SAM_PROTO_SignData [15:24:51]wFMCommunicate request_size=4 [15:24:51]MH_SAM_APDU [15:24:51]CAPDU: 80 0D 01 02 [15:24:51]Write to MH i2c: E2 08 00 10 0F 80 0D 01 02 00 00 00 00 98 [15:24:51]Write i2c OK [15:24:51]MH_I2C_Read... [15:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:51]Read from MH i2c: E2 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 03 00 [15:24:51]MH_I2C_Read... [15:24:51]Read from MH i2c: E2 03 00 10 0F 00 90 00 93 [15:24:51]RAPDU: 90 00 [15:24:51]wFMCommunicate OK [15:24:51]wFMCommunicate request_size=255 [15:24:51]MH_SAM_APDU [15:24:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C3 9A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DD 02 00 35 04 06 00 C8 [15:24:51]Write to MH i2c: E2 02 01 11 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C3 9A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DD 02 00 35 04 06 00 C8 00 00 01 [15:24:51]Write i2c OK [15:24:51]MH_I2C_Read... [15:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:52]Read from MH i2c: E2 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 03 00 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 03 00 11 0F 00 90 00 94 [15:24:52]RAPDU: 90 00 [15:24:52]wFMCommunicate OK [15:24:52]wFMCommunicate request_size=10 [15:24:52]MH_SAM_APDU [15:24:52]CAPDU: 80 0D 02 02 05 83 4C 21 43 91 [15:24:52]Write to MH i2c: E2 0D 00 12 0F 80 0D 02 02 05 00 83 4C 21 43 91 00 00 69 [15:24:52]Write i2c OK [15:24:52]MH_I2C_Read... [15:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:52]Read from MH i2c: E2 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 03 00 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 03 00 12 0F 00 90 00 95 [15:24:52]RAPDU: 90 00 [15:24:52]wFMCommunicate OK [15:24:52]wFMCommunicate request_size=4 [15:24:52]MH_SAM_APDU [15:24:52]CAPDU: 80 0D 03 02 [15:24:52]Write to MH i2c: E2 08 00 13 0F 80 0D 03 02 00 00 00 00 9D [15:24:52]Write i2c OK [15:24:52]MH_I2C_Read... [15:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:52]Read from MH i2c: E2 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 0B 00 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 0B 00 13 0F 00 22 79 D6 63 D8 6D 6C D1 90 00 F4 [15:24:52]RAPDU: 22 79 D6 63 D8 6D 6C D1 90 00 [15:24:52]wFMCommunicate OK [15:24:52]SAM_PROTO_SignData done [15:24:52]FM_MakeSignedData done [15:24:52]CreateOFDProtocolMessage [15:24:52]wFMCommunicate request_size=4 [15:24:52]MH_SAM_APDU [15:24:52]CAPDU: 80 11 00 00 [15:24:52]Write to MH i2c: E2 08 00 14 0F 80 11 00 00 00 00 00 00 9D [15:24:52]Write i2c OK [15:24:52]MH_I2C_Read... [15:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:52]Read from MH i2c: E2 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 17 00 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: E2 17 00 14 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [15:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:24:52]wFMCommunicate OK [15:24:52]CreateOFDProtocolMessage done [15:24:52]OFDSenderStorePacket 187672 [15:24:52]StoreOFDPacket docnum=187672 [15:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E4 8C 07 01 EC 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C3 9A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DD 02 00 35 04 06 00 C8 83 4C 21 43 91 22 79 D6 63 D8 6D 6C D1 [15:24:52]CheckFolder [15:24:52]dirname=/storage/ofd_packets [15:24:52]CheckFolder done [15:24:52]ProducePacketName [15:24:52]name=ofd_packets/00187672 [15:24:52]NVStorageSaveData ofd_packets/00187672 [15:24:52]File name is /storage/ofd_packets/00187672 [15:24:52]Write 301 bytes [15:24:52]NVStorageSaveData done [15:24:52]OFDSenderStorePacket done [15:24:52]KKMCreateOFDPacket done [15:24:52]NVStorageSaveData kkm_last_timestamp [15:24:52]File name is /storage/kkm_last_timestamp [15:24:52]Write 4 bytes [15:24:52]NVStorageSaveData done [15:24:52]ExternCall_PrintAddStr [15:24:52]wPrintStart [15:24:52]Write to MH i2c: 01 00 00 15 0F 24 [15:24:52]Write i2c OK [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: 01 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: 01 07 00 [15:24:52]MH_I2C_Read... [15:24:52]Read from MH i2c: 01 07 00 15 0F 00 00 00 00 00 FF 0F 39 [15:24:52]RasterBufferAndPrint [15:24:52]line Счет N : (1)412832 [15:24:52]line ИНН: 02508201610067 [15:24:52]line Контрольно-Кассовый Чек [15:24:52]line ПРОДАЖА [15:24:52]line ТРК (МРК, ГНК) : 12 [15:24:52]line Товар: 2710124130 [15:24:52]line Аи-92-К-2 [15:24:52]line 15.580 * 64.20 [15:24:52]line = 1000.24 [15:24:52]line НДС 12% НСП 1% [15:24:52]line > о реализуемом товаре [15:24:52]line ОКРУГЛЕНИЕ: -0.24 [15:24:52]line ИТОГО: 1000.00 [15:24:52]line Внесено: 1000.00 [15:24:52]line СДАЧА: 0.00 [15:24:52]line НСП 1% : 8.85 [15:24:52]line НДС 12% : 106.22 [15:24:52]line Наличными: 1000.00 [15:24:52]line Безнал.: 0.00 [15:24:52]line Место: АЗС № 92 "Партнер Нефть" [15:24:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:24:52]line СНО: Общий режим [15:24:52]line Чек 166 21.02.2025 15:24 [15:24:52]line Смена: 649 ФФД: 1.0 [15:24:52]line ЗНМ: 0300000118 [15:24:52]line РНМ: 0000000000091857 [15:24:52]line Версия ККМ: 001 [15:24:52]line ФМ: 0000000000871826 [15:24:52]line ФД: 187672 [15:24:52]line ФПД: 220466243519377 [15:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T152451&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187672&fm=220466243519377&tin=02508201610067®Number=0000000000091857&sum=100000 [15:24:52]OFD Sender: Processing packet 187672 [packets to send 49, broken 48] [15:24:52]ProducePacketName [15:24:52]name=ofd_packets/00187672 [15:24:52]OFD Sender: To server: pG, [15:24:52]CommunicateWithHost lk.salyk.kg:30040 [15:24:52]ConnectInit lk.salyk.kg [15:24:52]written 0, free lines is 4095 [15:24:53]Write to MH i2c: 01 00 00 40 0F 4F [15:24:53]Write i2c OK [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: 01 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: 01 07 00 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: 01 07 00 40 0F 00 00 00 00 00 F6 0C 58 [15:24:53]RasterBufferAndPrint [15:24:53]line [15:24:53]line [15:24:53]line [15:24:53]line [15:24:53]line [15:24:53]written 0, free lines is 3324 [15:24:53]MH_Cut [15:24:53]Write to MH i2c: D1 01 00 47 0F 01 28 [15:24:53]Write i2c OK [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: D1 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: D1 01 00 [15:24:53]MH_I2C_Read... [15:24:53]Read from MH i2c: D1 01 00 47 0F 00 27 [15:24:53]Write to MH i2c: 01 00 00 48 0F 57 [15:24:53]Write i2c OK [15:24:53]MH_I2C_Read... [15:24:53]*** Cut start [15:24:53]*** Partial cut [15:24:53]*** CUTSNS_PIN = 1 [15:24:53]*** CUTSNS_PIN = 0 [15:24:54]*** Brake cut motor [15:24:54]Read from MH i2c: 01 [15:24:54]MH_I2C_Read... [15:24:54]*** Stop cut motor [15:24:54]*** Cut end [15:24:54]Read from MH i2c: 01 07 00 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: 01 07 00 48 0F 00 00 00 00 00 FF 0F 6C [15:24:54]process_action close_receipt done [15:24:54]requested_data is exist [15:24:54]produce_requested_data [15:24:54]requested_item fm.sn is exist - process it [15:24:54]wFMCommunicate request_size=4 [15:24:54]MH_SAM_APDU [15:24:54]CAPDU: 80 11 00 00 [15:24:54]Write to MH i2c: E2 08 00 49 0F 80 11 00 00 00 00 00 00 D2 [15:24:54]Write i2c OK [15:24:54]MH_I2C_Read... [15:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:54]Read from MH i2c: E2 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: E2 17 00 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: E2 17 00 49 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [15:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:24:54]wFMCommunicate OK [15:24:54]requested_item fd.num is exist - process it [15:24:54]SAM_PROTO_GetFieldsCounters [15:24:54]wFMCommunicate request_size=4 [15:24:54]MH_SAM_APDU [15:24:54]CAPDU: 80 13 00 00 [15:24:54]Write to MH i2c: E2 08 00 4A 0F 80 13 00 00 00 00 00 00 D5 [15:24:54]Write i2c OK [15:24:54]MH_I2C_Read... [15:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:54]Read from MH i2c: E2 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: E2 62 00 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: E2 62 00 4A 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 18 DD 02 00 0E 04 04 00 89 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 6F [15:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 18 DD 02 00 0E 04 04 00 89 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 [15:24:54]wFMCommunicate OK [15:24:54]SAM_PROTO_GetFieldsCounters done [15:24:54]requested_item shift.num is exist - process it [15:24:54]requested_item shift.opened is exist - process it [15:24:54]req_shift_opened [15:24:54]FM_GetShiftState [15:24:54]SAM_PROTO_GetShiftState [15:24:54]wFMCommunicate request_size=4 [15:24:54]MH_SAM_APDU [15:24:54]CAPDU: 80 13 01 00 [15:24:54]Write to MH i2c: E2 08 00 4B 0F 80 13 01 00 00 00 00 00 D7 [15:24:54]Write i2c OK [15:24:54]MH_I2C_Read... [15:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:54]Read from MH i2c: E2 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: E2 0E 00 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: E2 0E 00 4B 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C5 [15:24:54]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:24:54]wFMCommunicate OK [15:24:54]SAM_PROTO_GetShiftState done [15:24:54]FM_GetShiftState done [15:24:54]req_shift_opened done [15:24:54]requested_item shift.open_date is exist - process it [15:24:54]req_shift_open_date [15:24:54]req_shift_open_date done [15:24:54]produce_requested_data done [15:24:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187672,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:24:54]process_action_free close_receipt [15:24:54]json_value_free [15:24:54]json_value_free done [15:24:54]process_json_proto returns [15:24:54]Send response to host [15:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187672,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:24:54]free response buf [15:24:54]execute_script done [15:24:54]execute_script returns [15:24:54]free content buf [15:24:54]Sock 9.Close socket [15:24:54]Sock 9.Thread stoped [15:27:03]ConnectInit Can't connect to host [15:27:03]CommunicateWithHost connect error [15:27:03]CommunicateWithHost err = -1 [15:27:03]OFD Sender: Server communicate error [15:27:08]OFD Sender: Processing packet 187672 [packets to send 49, broken 48] [15:27:08]ProducePacketName [15:27:08]name=ofd_packets/00187672 [15:27:08]OFD Sender: To server: pG, [15:27:08]CommunicateWithHost lk.salyk.kg:30040 [15:27:08]ConnectInit lk.salyk.kg [15:27:08]Connected sock=9 [15: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 38 32 36 0F 01 00 00 E4 8C 07 01 EC 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C3 9A B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DD 02 00 35 04 06 00 C8 83 4C 21 43 91 22 79 D6 63 D8 6D 6C D1 [15: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 38 32 36 4F 00 00 00 70 39 47 00 94 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 38 32 36 10 04 04 00 18 DD 02 00 F4 03 04 00 98 41 B8 67 B6 04 01 00 00 3C 6A B7 97 C1 2B C5 08 [15:27:08]CommunicateWithHost err = 0 [15:27:08]CheckOFDResponse [15:27:08]1017 (14) - 77093643461234 [15:27:08]1041 (16) - 0000000000871826 [15:27:08]1040 (4) - 187672 [15:27:08]1012 (4) - 21.02.2025 09:04 [15:27:08]1206 (1) - 0 [15:27:08]OFD Sender: Remove packet 187672 [15:27:08]ProducePacketName [15:27:08]name=ofd_packets/00187672 [15:27:08]NVStorageDeleteData [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]accept exits with 7 [15:39:04]New connection [15:39:04]New thread 3067624804 created [15:39:04]Thread 3067481444 joined [15:39:04]Waiting for new connection... [15:39:04] Sock 7.Parse request [15:39:04]Sock 7.Check first char [15:39:04]Sock 7.First char is OK [15:39:04]request: POST /json_proto HTTP/1.0 [15:39:04]Method: POST [15:39:04]URL: /json_proto [15:39:04]Method is POST - this is cgi request [15:39:04]url: /json_proto [15:39:04]query_string will be loaded in cgi processing [15:39:04]execute_cgi json_proto POST (null) [15:39:04]execute_cgi path=json_proto method=POST [15:39:04]POST find Content-Length [15:39:04]Host: 172.17.46.131:8080 [15:39:04]Content-Length: 801 [15:39:04]Content-Type: application/json [15:39:04] [15:39:04]POST finish read [15:39:04]Found Content-Length = 801 [15:39:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:04]execute_script... [15:39: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)412833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:04]POST & json_proto [15:39:04]process_json_proto [15:39:04]json parsed OK: [15:39:04]protocol is kg_v1.0 [15:39:04]action value=close_receipt [15:39:04]process_action close_receipt [15:39:04]cmd_close_receipt [15:39:04]MH_GetDate [15:39:04]Write to MH i2c: F0 00 00 4C 0F 4A [15:39:04]Write i2c OK [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: F0 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: F0 09 00 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: F0 09 00 4C 0F 00 18 9E B8 67 7E 41 4F 65 9B [15:39:04]GetLastDocTimeStamp 1740151491 [15:39:04]current date 1740152344 [15:39:04]FM_GetShiftState [15:39:04]SAM_PROTO_GetShiftState [15:39:04]wFMCommunicate request_size=4 [15:39:04]MH_SAM_APDU [15:39:04]CAPDU: 80 13 01 00 [15:39:04]Write to MH i2c: E2 08 00 4D 0F 80 13 01 00 00 00 00 00 D9 [15:39:04]Write i2c OK [15:39:04]MH_I2C_Read... [15:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:04]Read from MH i2c: E2 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 0E 00 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 0E 00 4D 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C7 [15:39:04]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:39:04]wFMCommunicate OK [15:39:04]SAM_PROTO_GetShiftState done [15:39:04]FM_GetShiftState done [15:39:04]opened in 1740098043 [15:39:04]opened+sec_in_day 1740184443 [15:39:04]quantity*price = 70042 [15:39:04]sum+1 = 70043 [15:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.42 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 167 21.02.2025 15:39 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187673 ФПД: 42424570274464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T153905&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187673&fm=42424570274464&tin=02508201610067®Number=0000000000091857&sum=70042 [15:39:05]StoreToDocumentArchive [15:39:05]shift 649 fd 187673 [15:39:05]save to /storage/0649/doc_00187673 [15:39:05]save last doc name /storage/0649/doc_00187673 to /storage/kkm_last_doc_name [15:39:05]save OK [15:39:05]Clear old archive folders... [15:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:05]tlvbuf is 00C08230 [15:39:05]SAM_PROTO_ClearQueue [15:39:05]wFMCommunicate request_size=4 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 09 00 00 [15:39:05]Write to MH i2c: E2 08 00 5A 0F 80 09 00 00 00 00 00 00 DB [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 5A 0F 00 90 00 DD [15:39:05]RAPDU: 90 00 [15:39:05]wFMCommunicate OK [15:39:05]SAM_PROTO_ClearQueue done [15:39:05]KKMCreateOFDPacket [15:39:05]OFDProtocolAddRootSTLVToBuf [15:39:05]FM_MakeSignedData [15:39:05]FM_MakeSignedData [15:39:05]SAM_PROTO_SignData [15:39:05]wFMCommunicate request_size=4 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 0D 01 02 [15:39:05]Write to MH i2c: E2 08 00 5B 0F 80 0D 01 02 00 00 00 00 E3 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 5B 0F 00 90 00 DE [15:39:05]RAPDU: 90 00 [15:39:05]wFMCommunicate OK [15:39:05]wFMCommunicate request_size=255 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 19 9E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DD 02 00 35 04 06 00 26 [15:39:05]Write to MH i2c: E2 02 01 5C 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 19 9E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DD 02 00 35 04 06 00 26 00 00 A7 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 5C 0F 00 90 00 DF [15:39:05]RAPDU: 90 00 [15:39:05]wFMCommunicate OK [15:39:05]wFMCommunicate request_size=10 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 0D 02 02 05 95 BD 70 E2 A0 [15:39:05]Write to MH i2c: E2 0D 00 5D 0F 80 0D 02 02 05 00 95 BD 70 E2 A0 00 00 34 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [15:39:05]RAPDU: 90 00 [15:39:05]wFMCommunicate OK [15:39:05]wFMCommunicate request_size=4 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 0D 03 02 [15:39:05]Write to MH i2c: E2 08 00 5E 0F 80 0D 03 02 00 00 00 00 E8 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 0B 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 0B 00 5E 0F 00 29 17 13 7B 1A B1 C7 0B 90 00 54 [15:39:05]RAPDU: 29 17 13 7B 1A B1 C7 0B 90 00 [15:39:05]wFMCommunicate OK [15:39:05]SAM_PROTO_SignData done [15:39:05]FM_MakeSignedData done [15:39:05]CreateOFDProtocolMessage [15:39:05]wFMCommunicate request_size=4 [15:39:05]MH_SAM_APDU [15:39:05]CAPDU: 80 11 00 00 [15:39:05]Write to MH i2c: E2 08 00 5F 0F 80 11 00 00 00 00 00 00 E8 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:05]Read from MH i2c: E2 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 17 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: E2 17 00 5F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [15:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:39:05]wFMCommunicate OK [15:39:05]CreateOFDProtocolMessage done [15:39:05]OFDSenderStorePacket 187673 [15:39:05]StoreOFDPacket docnum=187673 [15:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3E 4E 07 01 21 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 19 9E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DD 02 00 35 04 06 00 26 95 BD 70 E2 A0 29 17 13 7B 1A B1 C7 0B [15:39:05]CheckFolder [15:39:05]dirname=/storage/ofd_packets [15:39:05]CheckFolder done [15:39:05]ProducePacketName [15:39:05]name=ofd_packets/00187673 [15:39:05]NVStorageSaveData ofd_packets/00187673 [15:39:05]File name is /storage/ofd_packets/00187673 [15:39:05]Write 301 bytes [15:39:05]NVStorageSaveData done [15:39:05]OFDSenderStorePacket done [15:39:05]KKMCreateOFDPacket done [15:39:05]NVStorageSaveData kkm_last_timestamp [15:39:05]File name is /storage/kkm_last_timestamp [15:39:05]Write 4 bytes [15:39:05]NVStorageSaveData done [15:39:05]OFD Sender: Processing packet 187673 [packets to send 49, broken 48] [15:39:05]ProducePacketName [15:39:05]name=ofd_packets/00187673 [15:39:05]OFD Sender: To server: pG, [15:39:05]CommunicateWithHost lk.salyk.kg:30040 [15:39:05]ConnectInit lk.salyk.kg [15:39:05]ExternCall_PrintAddStr [15:39:05]wPrintStart [15:39:05]Write to MH i2c: 01 00 00 60 0F 6F [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: 01 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: 01 07 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: 01 07 00 60 0F 00 00 00 00 00 FF 0F 84 [15:39:05]RasterBufferAndPrint [15:39:05]line Счет N : (1)412833 [15:39:05]line ИНН: 02508201610067 [15:39:05]line Контрольно-Кассовый Чек [15:39:05]line ПРОДАЖА [15:39:05]line ТРК (МРК, ГНК) : 42 [15:39:05]line Товар: 2710124130 [15:39:05]line Аи-92-К-2 [15:39:05]line 10.910 * 64.20 [15:39:05]line = 700.42 [15:39:05]line НДС 12% НСП 1% [15:39:05]line > о реализуемом товаре [15:39:05]line ИТОГО: 700.42 [15:39:05]line НСП 1% : 6.20 [15:39:05]line НДС 12% : 74.38 [15:39:05]line Наличными: 0.00 [15:39:05]line Безнал.: 700.42 [15:39:05]line Место: АЗС № 92 "Партнер Нефть" [15:39:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:39:05]line СНО: Общий режим [15:39:05]line Чек 167 21.02.2025 15:39 [15:39:05]line Смена: 649 ФФД: 1.0 [15:39:05]line ЗНМ: 0300000118 [15:39:05]line РНМ: 0000000000091857 [15:39:05]line Версия ККМ: 001 [15:39:05]line Платежная система: O! деньги [15:39:05]line ФМ: 0000000000871826 [15:39:05]line ФД: 187673 [15:39:05]line ФПД: 42424570274464 [15:39:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T153905&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187673&fm=42424570274464&tin=02508201610067®Number=0000000000091857&sum=70042 [15:39:06]Connected sock=11 [15:39:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3E 4E 07 01 written 0, free lines is 4095 [15:39:06]21 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 19 9E B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DD 02 00 35 04 06 00 26 95 BD 70 E2 A0 29 17 13 7B 1A B1 C7 0B [15:39:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 39 57 47 00 99 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 DD 02 00 F4 03 04 00 66 44 B8 67 B6 04 01 00 00 26 8A AF 34 3F 50 2D F5 [15:39:06]CommunicateWithHost err = 0 [15:39:06]CheckOFDResponse [15:39:06]1017 (14) - 77093643461234 [15:39:06]1041 (16) - 0000000000871826 [15:39:06]1040 (4) - 187673 [15:39:06]1012 (4) - 21.02.2025 09:16 [15:39:06]1206 (1) - 0 [15:39:06]OFD Sender: Remove packet 187673 [15:39:06]ProducePacketName [15:39:06]name=ofd_packets/00187673 [15:39:06]NVStorageDeleteData [15:39:06]Write to MH i2c: 01 00 00 8A 0F 99 [15:39:06]Write i2c OK [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: 01 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: 01 07 00 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: 01 07 00 8A 0F 00 00 00 00 00 F5 0C A1 [15:39:06]RasterBufferAndPrint [15:39:06]line [15:39:06]line [15:39:06]line [15:39:06]line [15:39:06]line [15:39:06]written 0, free lines is 3323 [15:39:06]MH_Cut [15:39:06]Write to MH i2c: D1 01 00 91 0F 01 72 [15:39:06]Write i2c OK [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: D1 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: D1 01 00 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: D1 01 00 91 0F 00 71 [15:39:06]Write to MH i2c: 01 00 00 92 0F A1 [15:39:06]Write i2c OK [15:39:06]MH_I2C_Read... [15:39:06]OFD Sender: No OFD packet to send [15:39:07]*** Cut start [15:39:07]*** Partial cut [15:39:07]*** CUTSNS_PIN = 1 [15:39:07]*** CUTSNS_PIN = 0 [15:39:07]*** Brake cut motor [15:39:08]Read from MH i2c: 01 [15:39:08]MH_I2C_Read... [15:39:08]*** Stop cut motor [15:39:08]*** Cut end [15:39:08]Read from MH i2c: 01 07 00 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: 01 07 00 92 0F 00 00 00 00 00 FF 0F B6 [15:39:08]process_action close_receipt done [15:39:08]requested_data is exist [15:39:08]produce_requested_data [15:39:08]requested_item fm.sn is exist - process it [15:39:08]wFMCommunicate request_size=4 [15:39:08]MH_SAM_APDU [15:39:08]CAPDU: 80 11 00 00 [15:39:08]Write to MH i2c: E2 08 00 93 0F 80 11 00 00 00 00 00 00 1C [15:39:08]Write i2c OK [15:39:08]MH_I2C_Read... [15:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:08]Read from MH i2c: E2 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 17 00 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 17 00 93 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6F [15:39:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:39:08]wFMCommunicate OK [15:39:08]requested_item fd.num is exist - process it [15:39:08]SAM_PROTO_GetFieldsCounters [15:39:08]wFMCommunicate request_size=4 [15:39:08]MH_SAM_APDU [15:39:08]CAPDU: 80 13 00 00 [15:39:08]Write to MH i2c: E2 08 00 94 0F 80 13 00 00 00 00 00 00 1F [15:39:08]Write i2c OK [15:39:08]MH_I2C_Read... [15:39:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:08]Read from MH i2c: E2 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 62 00 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 62 00 94 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 19 DD 02 00 0E 04 04 00 89 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 BD [15:39:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 19 DD 02 00 0E 04 04 00 89 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 [15:39:08]wFMCommunicate OK [15:39:08]SAM_PROTO_GetFieldsCounters done [15:39:08]requested_item shift.num is exist - process it [15:39:08]requested_item shift.opened is exist - process it [15:39:08]req_shift_opened [15:39:08]FM_GetShiftState [15:39:08]SAM_PROTO_GetShiftState [15:39:08]wFMCommunicate request_size=4 [15:39:08]MH_SAM_APDU [15:39:08]CAPDU: 80 13 01 00 [15:39:08]Write to MH i2c: E2 08 00 95 0F 80 13 01 00 00 00 00 00 21 [15:39:08]Write i2c OK [15:39:08]MH_I2C_Read... [15:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:08]Read from MH i2c: E2 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 0E 00 [15:39:08]MH_I2C_Read... [15:39:08]Read from MH i2c: E2 0E 00 95 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0F [15:39:08]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:39:08]wFMCommunicate OK [15:39:08]SAM_PROTO_GetShiftState done [15:39:08]FM_GetShiftState done [15:39:08]req_shift_opened done [15:39:08]requested_item shift.open_date is exist - process it [15:39:08]req_shift_open_date [15:39:08]req_shift_open_date done [15:39:08]produce_requested_data done [15:39:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187673,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:39:08]process_action_free close_receipt [15:39:08]json_value_free [15:39:08]json_value_free done [15:39:08]process_json_proto returns [15:39:08]Send response to host [15:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187673,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:39:08]free response buf [15:39:08]execute_script done [15:39:08]execute_script returns [15:39:08]free content buf [15:39:08]Sock 7.Close socket [15:39:08]Sock 7.Thread stoped [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:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43: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:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]accept exits with 9 [15:47:22]New connection [15:47:22]New thread 3067481444 created [15:47:22]Thread 3067624804 joined [15:47:22]Waiting for new connection... [15:47:22] Sock 9.Parse request [15:47:22]Sock 9.Check first char [15:47:22]Sock 9.First char is OK [15:47:22]request: POST /json_proto HTTP/1.0 [15:47:22]Method: POST [15:47:22]URL: /json_proto [15:47:22]Method is POST - this is cgi request [15:47:22]url: /json_proto [15:47:22]query_string will be loaded in cgi processing [15:47:22]execute_cgi json_proto POST (null) [15:47:22]execute_cgi path=json_proto method=POST [15:47:22]POST find Content-Length [15:47:22]Host: 172.17.46.131:8080 [15:47:22]Content-Length: 678 [15:47:22]Content-Type: application/json [15:47:22] [15:47:22]POST finish read [15:47:22]Found Content-Length = 678 [15:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:22]execute_script... [15:47: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)412834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:22]POST & json_proto [15:47:22]process_json_proto [15:47:22]json parsed OK: [15:47:22]protocol is kg_v1.0 [15:47:22]action value=close_receipt [15:47:22]process_action close_receipt [15:47:22]cmd_close_receipt [15:47:22]MH_GetDate [15:47:22]Write to MH i2c: F0 00 00 96 0F 94 [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: F0 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: F0 09 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: F0 09 00 96 0F 00 0A A0 B8 67 7E 41 4F 65 D9 [15:47:22]GetLastDocTimeStamp 1740152345 [15:47:22]current date 1740152842 [15:47:22]FM_GetShiftState [15:47:22]SAM_PROTO_GetShiftState [15:47:22]wFMCommunicate request_size=4 [15:47:22]MH_SAM_APDU [15:47:22]CAPDU: 80 13 01 00 [15:47:22]Write to MH i2c: E2 08 00 97 0F 80 13 01 00 00 00 00 00 23 [15:47:22]Write i2c OK [15:47:22]MH_I2C_Read... [15:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:22]Read from MH i2c: E2 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 0E 00 [15:47:22]MH_I2C_Read... [15:47:22]Read from MH i2c: E2 0E 00 97 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 11 [15:47:22]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:47:22]wFMCommunicate OK [15:47:22]SAM_PROTO_GetShiftState done [15:47:22]FM_GetShiftState done [15:47:22]opened in 1740098043 [15:47:22]opened+sec_in_day 1740184443 [15:47:22]quantity*price = 80057 [15:47:22]sum+1 = 80058 [15:47:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 168 21.02.2025 15:47 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187674 ФПД: 213295417231295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T154722&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187674&fm=213295417231295&tin=02508201610067®Number=0000000000091857&sum=80000 [15:47:23]StoreToDocumentArchive [15:47:23]shift 649 fd 187674 [15:47:23]save to /storage/0649/doc_00187674 [15:47:23]save last doc name /storage/0649/doc_00187674 to /storage/kkm_last_doc_name [15:47:23]save OK [15:47:23]Clear old archive folders... [15:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:23]tlvbuf is 00C08300 [15:47:23]SAM_PROTO_ClearQueue [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 09 00 00 [15:47:23]Write to MH i2c: E2 08 00 A4 0F 80 09 00 00 00 00 00 00 25 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 A4 0F 00 90 00 27 [15:47:23]RAPDU: 90 00 [15:47:23]wFMCommunicate OK [15:47:23]SAM_PROTO_ClearQueue done [15:47:23]KKMCreateOFDPacket [15:47:23]OFDProtocolAddRootSTLVToBuf [15:47:23]FM_MakeSignedData [15:47:23]FM_MakeSignedData [15:47:23]SAM_PROTO_SignData [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 0D 01 02 [15:47:23]Write to MH i2c: E2 08 00 A5 0F 80 0D 01 02 00 00 00 00 2D [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 A5 0F 00 90 00 28 [15:47:23]RAPDU: 90 00 [15:47:23]wFMCommunicate OK [15:47:23]wFMCommunicate request_size=255 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0A A0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DD 02 00 35 04 06 00 C1 [15:47:23]Write to MH i2c: E2 02 01 A6 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0A A0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DD 02 00 35 04 06 00 C1 00 00 83 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 A6 0F 00 90 00 29 [15:47:23]RAPDU: 90 00 [15:47:23]wFMCommunicate OK [15:47:23]wFMCommunicate request_size=10 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 0D 02 02 05 FD B5 93 87 BF [15:47:23]Write to MH i2c: E2 0D 00 A7 0F 80 0D 02 02 05 00 FD B5 93 87 BF 00 00 C5 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [15:47:23]RAPDU: 90 00 [15:47:23]wFMCommunicate OK [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 0D 03 02 [15:47:23]Write to MH i2c: E2 08 00 A8 0F 80 0D 03 02 00 00 00 00 32 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 0B 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 0B 00 A8 0F 00 85 A8 33 B9 0D BF F6 70 90 00 7E [15:47:23]RAPDU: 85 A8 33 B9 0D BF F6 70 90 00 [15:47:23]wFMCommunicate OK [15:47:23]SAM_PROTO_SignData done [15:47:23]FM_MakeSignedData done [15:47:23]CreateOFDProtocolMessage [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 11 00 00 [15:47:23]Write to MH i2c: E2 08 00 A9 0F 80 11 00 00 00 00 00 00 32 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 17 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 17 00 A9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [15:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:47:23]wFMCommunicate OK [15:47:23]CreateOFDProtocolMessage done [15:47:23]OFDSenderStorePacket 187674 [15:47:23]StoreOFDPacket docnum=187674 [15:47:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AF CE 07 01 F7 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0A A0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DD 02 00 35 04 06 00 C1 FD B5 93 87 BF 85 A8 33 B9 0D BF F6 70 [15:47:23]CheckFolder [15:47:23]dirname=/storage/ofd_packets [15:47:23]CheckFolder done [15:47:23]ProducePacketName [15:47:23]name=ofd_packets/00187674 [15:47:23]NVStorageSaveData ofd_packets/00187674 [15:47:23]File name is /storage/ofd_packets/00187674 [15:47:23]Write 301 bytes [15:47:23]NVStorageSaveData done [15:47:23]OFDSenderStorePacket done [15:47:23]KKMCreateOFDPacket done [15:47:23]NVStorageSaveData kkm_last_timestamp [15:47:23]File name is /storage/kkm_last_timestamp [15:47:23]Write 4 bytes [15:47:23]NVStorageSaveData done [15:47:23]ExternCall_PrintAddStr [15:47:23]wPrintStart [15:47:23]Write to MH i2c: 01 00 00 AA 0F B9 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: 01 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: 01 07 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: 01 07 00 AA 0F 00 00 00 00 00 FF 0F CE [15:47:23]RasterBufferAndPrint [15:47:23]line Счет N : (1)412834 [15:47:23]line ИНН: 02508201610067 [15:47:23]line Контрольно-Кассовый Чек [15:47:23]line ПРОДАЖА [15:47:23]line ТРК (МРК, ГНК) : 42 [15:47:23]line Товар: 2710124130 [15:47:23]line Аи-92-К-2 [15:47:23]line 12.470 * 64.20 [15:47:23]line = 800.57 [15:47:23]line НДС 12% НСП 1% [15:47:23]line > о реализуемом товаре [15:47:23]line ОКРУГЛЕНИЕ: -0.57 [15:47:23]line ИТОГО: 800.00 [15:47:23]line Внесено: 800.00 [15:47:23]line СДАЧА: 0.00 [15:47:23]line НСП 1% : 7.08 [15:47:23]line НДС 12% : 85.02 [15:47:23]line Наличными: 800.00 [15:47:23]line Безнал.: 0.00 [15:47:23]line Место: АЗС № 92 "Партнер Нефть" [15:47:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:47:23]line СНО: Общий режим [15:47:23]line Чек 168 21.02.2025 15:47 [15:47:23]line Смена: 649 ФФД: 1.0 [15:47:23]line ЗНМ: 0300000118 [15:47:23]line РНМ: 0000000000091857 [15:47:23]line Версия ККМ: 001 [15:47:23]line ФМ: 0000000000871826 [15:47:23]line ФД: 187674 [15:47:23]line ФПД: 213295417231295 [15:47:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T154722&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187674&fm=213295417231295&tin=02508201610067®Number=0000000000091857&sum=80000 [15:47:24]OFD Sender: Processing packet 187674 [packets to send 49, broken 48] [15:47:24]ProducePacketName [15:47:24]name=ofd_packets/00187674 [15:47:24]OFD Sender: To server: pG, [15:47:24]CommunicateWithHost lk.salyk.kg:30040 [15:47:24]ConnectInit lk.salyk.kg [15:47:24]written 0, free lines is 4095 [15:47:24]Connected sock=10 [15:47:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AF CE 07 01 F7 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 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 0A A0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A DD 02 00 35 04 06 00 C1 FD B5 93 87 BF 85 A8 33 B9 0D BF F6 70 [15:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9E CF 47 00 24 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 38 32 36 10 04 04 00 1A DD 02 00 F4 03 04 00 58 46 B8 67 B6 04 01 00 00 3C 3D 1A FE 67 D7 AF AC [15:47:24]CommunicateWithHost err = 0 [15:47:24]CheckOFDResponse [15:47:24]1017 (14) - 77093643461234 [15:47:24]1041 (16) - 0000000000871826 [15:47:24]1040 (4) - 187674 [15:47:24]1012 (4) - 21.02.2025 09:24 [15:47:24]1206 (1) - 0 [15:47:24]OFD Sender: Remove packet 187674 [15:47:24]ProducePacketName [15:47:24]name=ofd_packets/00187674 [15:47:24]NVStorageDeleteData [15:47:24]Write to MH i2c: 01 00 00 D5 0F E4 [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: 01 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: 01 07 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: 01 07 00 D5 0F 00 00 00 00 00 ED 0C E4 [15:47:24]RasterBufferAndPrint [15:47:24]line [15:47:24]line [15:47:24]line [15:47:24]line [15:47:24]line [15:47:24]written 0, free lines is 3318 [15:47:24]MH_Cut [15:47:24]Write to MH i2c: D1 01 00 DC 0F 01 BD [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: D1 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: D1 01 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: D1 01 00 DC 0F 00 BC [15:47:24]Write to MH i2c: 01 00 00 DD 0F EC [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:25]OFD Sender: No OFD packet to send [15:47:25]*** Cut start [15:47:25]*** Partial cut [15:47:25]*** CUTSNS_PIN = 1 [15:47:25]*** CUTSNS_PIN = 0 [15:47:25]*** Brake cut motor [15:47:25]Read from MH i2c: 01 [15:47:25]MH_I2C_Read... [15:47:25]*** Stop cut motor [15:47:25]*** Cut end [15:47:25]Read from MH i2c: 01 07 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: 01 07 00 DD 0F 00 00 00 00 00 FF 0F 01 [15:47:25]process_action close_receipt done [15:47:25]requested_data is exist [15:47:25]produce_requested_data [15:47:25]requested_item fm.sn is exist - process it [15:47:25]wFMCommunicate request_size=4 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 11 00 00 [15:47:25]Write to MH i2c: E2 08 00 DE 0F 80 11 00 00 00 00 00 00 67 [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:26]Read from MH i2c: E2 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 17 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 17 00 DE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [15:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:47:26]wFMCommunicate OK [15:47:26]requested_item fd.num is exist - process it [15:47:26]SAM_PROTO_GetFieldsCounters [15:47:26]wFMCommunicate request_size=4 [15:47:26]MH_SAM_APDU [15:47:26]CAPDU: 80 13 00 00 [15:47:26]Write to MH i2c: E2 08 00 DF 0F 80 13 00 00 00 00 00 00 6A [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:26]Read from MH i2c: E2 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 62 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 62 00 DF 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1A DD 02 00 0E 04 04 00 89 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 0C [15:47:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1A DD 02 00 0E 04 04 00 89 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 [15:47:26]wFMCommunicate OK [15:47:26]SAM_PROTO_GetFieldsCounters done [15:47:26]requested_item shift.num is exist - process it [15:47:26]requested_item shift.opened is exist - process it [15:47:26]req_shift_opened [15:47:26]FM_GetShiftState [15:47:26]SAM_PROTO_GetShiftState [15:47:26]wFMCommunicate request_size=4 [15:47:26]MH_SAM_APDU [15:47:26]CAPDU: 80 13 01 00 [15:47:26]Write to MH i2c: E2 08 00 E0 0F 80 13 01 00 00 00 00 00 6C [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:26]Read from MH i2c: E2 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 0E 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: E2 0E 00 E0 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 5A [15:47:26]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:47:26]wFMCommunicate OK [15:47:26]SAM_PROTO_GetShiftState done [15:47:26]FM_GetShiftState done [15:47:26]req_shift_opened done [15:47:26]requested_item shift.open_date is exist - process it [15:47:26]req_shift_open_date [15:47:26]req_shift_open_date done [15:47:26]produce_requested_data done [15:47:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187674,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:47:26]process_action_free close_receipt [15:47:26]json_value_free [15:47:26]json_value_free done [15:47:26]process_json_proto returns [15:47:26]Send response to host [15:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187674,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:47:26]free response buf [15:47:26]execute_script done [15:47:26]execute_script returns [15:47:26]free content buf [15:47:26]Sock 9.Close socket [15:47:26]Sock 9.Thread stoped [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:45]accept exits with 7 [15:52:45]New connection [15:52:45]New thread 3067624804 created [15:52:45]Thread 3067481444 joined [15:52:45]Waiting for new connection... [15:52:45] Sock 7.Parse request [15:52:45]Sock 7.Check first char [15:52:45]Sock 7.First char is OK [15:52:45]request: POST /json_proto HTTP/1.0 [15:52:45]Method: POST [15:52:45]URL: /json_proto [15:52:45]Method is POST - this is cgi request [15:52:45]url: /json_proto [15:52:45]query_string will be loaded in cgi processing [15:52:45]execute_cgi json_proto POST (null) [15:52:45]execute_cgi path=json_proto method=POST [15:52:45]POST find Content-Length [15:52:45]Host: 172.17.46.131:8080 [15:52:45]Content-Length: 677 [15:52:45]Content-Type: application/json [15:52:45] [15:52:45]POST finish read [15:52:45]Found Content-Length = 677 [15:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.050, "sum" : 260.01, "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" ] } } [15:52:45]execute_script... [15:52: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)412835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.050, "sum" : 260.01, "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" ] } } [15:52:45]POST & json_proto [15:52:45]process_json_proto [15:52:45]json parsed OK: [15:52:45]protocol is kg_v1.0 [15:52:45]action value=close_receipt [15:52:45]process_action close_receipt [15:52:45]cmd_close_receipt [15:52:45]MH_GetDate [15:52:45]Write to MH i2c: F0 00 00 E1 0F DF [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: F0 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: F0 09 00 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: F0 09 00 E1 0F 00 4E A1 B8 67 7E 41 4F 65 69 [15:52:45]GetLastDocTimeStamp 1740152842 [15:52:45]current date 1740153166 [15:52:45]FM_GetShiftState [15:52:45]SAM_PROTO_GetShiftState [15:52:45]wFMCommunicate request_size=4 [15:52:45]MH_SAM_APDU [15:52:45]CAPDU: 80 13 01 00 [15:52:45]Write to MH i2c: E2 08 00 E2 0F 80 13 01 00 00 00 00 00 6E [15:52:45]Write i2c OK [15:52:45]MH_I2C_Read... [15:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:45]Read from MH i2c: E2 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 0E 00 [15:52:45]MH_I2C_Read... [15:52:45]Read from MH i2c: E2 0E 00 E2 0F 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 5C [15:52:45]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:52:45]wFMCommunicate OK [15:52:45]SAM_PROTO_GetShiftState done [15:52:45]FM_GetShiftState done [15:52:45]opened in 1740098043 [15:52:45]opened+sec_in_day 1740184443 [15:52:45]quantity*price = 26001 [15:52:45]sum+1 = 26002 [15:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 169 21.02.2025 15:52 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187675 ФПД: 164111359124079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T155246&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187675&fm=164111359124079&tin=02508201610067®Number=0000000000091857&sum=26000 [15:52:46]StoreToDocumentArchive [15:52:46]shift 649 fd 187675 [15:52:46]save to /storage/0649/doc_00187675 [15:52:46]save last doc name /storage/0649/doc_00187675 to /storage/kkm_last_doc_name [15:52:46]save OK [15:52:46]Clear old archive folders... [15:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:46]tlvbuf is 00BC7140 [15:52:46]SAM_PROTO_ClearQueue [15:52:46]wFMCommunicate request_size=4 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 09 00 00 [15:52:46]Write to MH i2c: E2 08 00 EF 0F 80 09 00 00 00 00 00 00 70 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 EF 0F 00 90 00 72 [15:52:46]RAPDU: 90 00 [15:52:46]wFMCommunicate OK [15:52:46]SAM_PROTO_ClearQueue done [15:52:46]KKMCreateOFDPacket [15:52:46]OFDProtocolAddRootSTLVToBuf [15:52:46]FM_MakeSignedData [15:52:46]FM_MakeSignedData [15:52:46]SAM_PROTO_SignData [15:52:46]wFMCommunicate request_size=4 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 0D 01 02 [15:52:46]Write to MH i2c: E2 08 00 F0 0F 80 0D 01 02 00 00 00 00 78 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 F0 0F 00 90 00 73 [15:52:46]RAPDU: 90 00 [15:52:46]wFMCommunicate OK [15:52:46]wFMCommunicate request_size=255 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 91 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 C9 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 A9 00 00 00 F4 03 04 00 4E A1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DD 02 00 35 04 06 00 95 [15:52:46]Write to MH i2c: E2 02 01 F1 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 91 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 C9 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 A9 00 00 00 F4 03 04 00 4E A1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DD 02 00 35 04 06 00 95 00 00 FC [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:46]Read from MH i2c: E2 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 [15:52:46]MH_I2C_Read... [15:52:46]Read from MH i2c: E2 03 00 F1 0F 00 90 00 74 [15:52:46]RAPDU: 90 00 [15:52:46]wFMCommunicate OK [15:52:46]wFMCommunicate request_size=10 [15:52:46]MH_SAM_APDU [15:52:46]CAPDU: 80 0D 02 02 05 42 27 43 A2 6F [15:52:46]Write to MH i2c: E2 0D 00 F2 0F 80 0D 02 02 05 00 42 27 43 A2 6F 00 00 42 [15:52:46]Write i2c OK [15:52:46]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 03 00 F2 0F 00 90 00 75 [15:52:47]RAPDU: 90 00 [15:52:47]wFMCommunicate OK [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 0D 03 02 [15:52:47]Write to MH i2c: E2 08 00 F3 0F 80 0D 03 02 00 00 00 00 7D [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 0B 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 0B 00 F3 0F 00 27 C0 EE 6A E2 7F 90 76 90 00 24 [15:52:47]RAPDU: 27 C0 EE 6A E2 7F 90 76 90 00 [15:52:47]wFMCommunicate OK [15:52:47]SAM_PROTO_SignData done [15:52:47]FM_MakeSignedData done [15:52:47]CreateOFDProtocolMessage [15:52:47]wFMCommunicate request_size=4 [15:52:47]MH_SAM_APDU [15:52:47]CAPDU: 80 11 00 00 [15:52:47]Write to MH i2c: E2 08 00 F4 0F 80 11 00 00 00 00 00 00 7D [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:47]Read from MH i2c: E2 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 17 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: E2 17 00 F4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [15:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:52:47]wFMCommunicate OK [15:52:47]CreateOFDProtocolMessage done [15:52:47]OFDSenderStorePacket 187675 [15:52:47]StoreOFDPacket docnum=187675 [15:52:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 B4 07 01 31 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 32 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 91 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 C9 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 A9 00 00 00 F4 03 04 00 4E A1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DD 02 00 35 04 06 00 95 42 27 43 A2 6F 27 C0 EE 6A E2 7F 90 76 [15:52:47]CheckFolder [15:52:47]dirname=/storage/ofd_packets [15:52:47]CheckFolder done [15:52:47]ProducePacketName [15:52:47]name=ofd_packets/00187675 [15:52:47]NVStorageSaveData ofd_packets/00187675 [15:52:47]File name is /storage/ofd_packets/00187675 [15:52:47]Write 301 bytes [15:52:47]NVStorageSaveData done [15:52:47]OFDSenderStorePacket done [15:52:47]KKMCreateOFDPacket done [15:52:47]NVStorageSaveData kkm_last_timestamp [15:52:47]File name is /storage/kkm_last_timestamp [15:52:47]Write 4 bytes [15:52:47]NVStorageSaveData done [15:52:47]ExternCall_PrintAddStr [15:52:47]wPrintStart [15:52:47]Write to MH i2c: 01 00 00 F5 0F 04 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 F5 0F 00 00 00 00 00 FF 0F 19 [15:52:47]RasterBufferAndPrint [15:52:47]line Счет N : (1)412835 [15:52:47]line ИНН: 02508201610067 [15:52:47]line Контрольно-Кассовый Чек [15:52:47]line ПРОДАЖА [15:52:47]line ТРК (МРК, ГНК) : 22 [15:52:47]line Товар: 2710124130 [15:52:47]line Аи-92-К-2 [15:52:47]line 4.050 * 64.20 [15:52:47]line = 260.01 [15:52:47]line НДС 12% НСП 1% [15:52:47]line > о реализуемом товаре [15:52:47]line ОКРУГЛЕНИЕ: -0.01 [15:52:47]line ИТОГО: 260.00 [15:52:47]line Внесено: 260.00 [15:52:47]line СДАЧА: 0.00 [15:52:47]line НСП 1% : 2.30 [15:52:47]line НДС 12% : 27.61 [15:52:47]line Наличными: 260.00 [15:52:47]line Безнал.: 0.00 [15:52:47]line Место: АЗС № 92 "Партнер Нефть" [15:52:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:52:47]line СНО: Общий режим [15:52:47]line Чек 169 21.02.2025 15:52 [15:52:47]line Смена: 649 ФФД: 1.0 [15:52:47]line ЗНМ: 0300000118 [15:52:47]line РНМ: 0000000000091857 [15:52:47]line Версия ККМ: 001 [15:52:47]line ФМ: 0000000000871826 [15:52:47]line ФД: 187675 [15:52:47]line ФПД: 164111359124079 [15:52:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T155246&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187675&fm=164111359124079&tin=02508201610067®Number=0000000000091857&sum=26000 [15:52:47]written 0, free lines is 4095 [15:52:47]OFD Sender: Processing packet 187675 [packets to send 49, broken 48] [15:52:47]ProducePacketName [15:52:47]name=ofd_packets/00187675 [15:52:47]OFD Sender: To server: pG, [15:52:47]CommunicateWithHost lk.salyk.kg:30040 [15:52:47]ConnectInit lk.salyk.kg [15:52:47]Connected sock=10 [15:52:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A1 B4 07 01 31 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 32 FF 03 08 00 03 D2 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 91 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 C9 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 A9 00 00 00 F4 03 04 00 4E A1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DD 02 00 35 04 06 00 95 42 27 43 A2 6F 27 C0 EE 6A E2 7F 90 76 [15:52:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1E D9 47 00 A4 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B DD 02 00 F4 03 04 00 9B 47 B8 67 B6 04 01 00 00 66 7A E0 A7 3E 19 1A 97 [15:52:47]CommunicateWithHost err = 0 [15:52:47]CheckOFDResponse [15:52:47]1017 (14) - 77093643461234 [15:52:47]1041 (16) - 0000000000871826 [15:52:47]1040 (4) - 187675 [15:52:47]1012 (4) - 21.02.2025 09:30 [15:52:47]1206 (1) - 0 [15:52:47]OFD Sender: Remove packet 187675 [15:52:47]ProducePacketName [15:52:47]name=ofd_packets/00187675 [15:52:47]NVStorageDeleteData [15:52:47]Write to MH i2c: 01 00 00 20 10 30 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: 01 07 00 20 10 00 00 00 00 00 F6 0C 39 [15:52:47]RasterBufferAndPrint [15:52:47]line [15:52:47]line [15:52:47]line [15:52:47]line [15:52:47]line [15:52:47]written 0, free lines is 3328 [15:52:47]MH_Cut [15:52:47]Write to MH i2c: D1 01 00 27 10 01 09 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: D1 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: D1 01 00 [15:52:47]MH_I2C_Read... [15:52:47]Read from MH i2c: D1 01 00 27 10 00 08 [15:52:47]Write to MH i2c: 01 00 00 28 10 38 [15:52:47]Write i2c OK [15:52:47]MH_I2C_Read... [15:52:48]OFD Sender: No OFD packet to send [15:52:48]*** Cut start [15:52:48]*** Partial cut [15:52:48]*** CUTSNS_PIN = 1 [15:52:48]*** CUTSNS_PIN = 0 [15:52:48]*** Brake cut motor [15:52:49]Read from MH i2c: 01 [15:52:49]MH_I2C_Read... [15:52:49]*** Stop cut motor [15:52:49]*** Cut end [15:52:49]Read from MH i2c: 01 07 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: 01 07 00 28 10 00 00 00 00 00 FF 0F 4D [15:52:49]process_action close_receipt done [15:52:49]requested_data is exist [15:52:49]produce_requested_data [15:52:49]requested_item fm.sn is exist - process it [15:52:49]wFMCommunicate request_size=4 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 11 00 00 [15:52:49]Write to MH i2c: E2 08 00 29 10 80 11 00 00 00 00 00 00 B3 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 17 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 17 00 29 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [15:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:52:49]wFMCommunicate OK [15:52:49]requested_item fd.num is exist - process it [15:52:49]SAM_PROTO_GetFieldsCounters [15:52:49]wFMCommunicate request_size=4 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 13 00 00 [15:52:49]Write to MH i2c: E2 08 00 2A 10 80 13 00 00 00 00 00 00 B6 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 62 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 62 00 2A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1B DD 02 00 0E 04 04 00 89 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 5C [15:52:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1B DD 02 00 0E 04 04 00 89 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 [15:52:49]wFMCommunicate OK [15:52:49]SAM_PROTO_GetFieldsCounters done [15:52:49]requested_item shift.num is exist - process it [15:52:49]requested_item shift.opened is exist - process it [15:52:49]req_shift_opened [15:52:49]FM_GetShiftState [15:52:49]SAM_PROTO_GetShiftState [15:52:49]wFMCommunicate request_size=4 [15:52:49]MH_SAM_APDU [15:52:49]CAPDU: 80 13 01 00 [15:52:49]Write to MH i2c: E2 08 00 2B 10 80 13 01 00 00 00 00 00 B8 [15:52:49]Write i2c OK [15:52:49]MH_I2C_Read... [15:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:49]Read from MH i2c: E2 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 0E 00 [15:52:49]MH_I2C_Read... [15:52:49]Read from MH i2c: E2 0E 00 2B 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A6 [15:52:49]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:52:49]wFMCommunicate OK [15:52:49]SAM_PROTO_GetShiftState done [15:52:49]FM_GetShiftState done [15:52:49]req_shift_opened done [15:52:49]requested_item shift.open_date is exist - process it [15:52:49]req_shift_open_date [15:52:49]req_shift_open_date done [15:52:49]produce_requested_data done [15:52:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187675,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:52:49]process_action_free close_receipt [15:52:49]json_value_free [15:52:49]json_value_free done [15:52:49]process_json_proto returns [15:52:49]Send response to host [15:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187675,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:52:49]free response buf [15:52:49]execute_script done [15:52:49]execute_script returns [15:52:49]free content buf [15:52:49]Sock 7.Close socket [15:52:49]Sock 7.Thread stoped [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:01]accept exits with 9 [15:56:01]New connection [15:56:01]New thread 3067481444 created [15:56:01]Thread 3067624804 joined [15:56:01]Waiting for new connection... [15:56:01] Sock 9.Parse request [15:56:01]Sock 9.Check first char [15:56:01]Sock 9.First char is OK [15:56:01]request: POST /json_proto HTTP/1.0 [15:56:01]Method: POST [15:56:01]URL: /json_proto [15:56:01]Method is POST - this is cgi request [15:56:01]url: /json_proto [15:56:01]query_string will be loaded in cgi processing [15:56:01]execute_cgi json_proto POST (null) [15:56:01]execute_cgi path=json_proto method=POST [15:56:01]POST find Content-Length [15:56:01]Host: 172.17.46.131:8080 [15:56:01]Content-Length: 800 [15:56:01]Content-Type: application/json [15:56:01] [15:56:01]POST finish read [15:56:01]Found Content-Length = 800 [15:56:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:01]execute_script... [15:56:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:01]POST & json_proto [15:56:01]process_json_proto [15:56:01]json parsed OK: [15:56:01]protocol is kg_v1.0 [15:56:01]action value=close_receipt [15:56:01]process_action close_receipt [15:56:01]cmd_close_receipt [15:56:01]MH_GetDate [15:56:01]Write to MH i2c: F0 00 00 2C 10 2B [15:56:01]Write i2c OK [15:56:01]MH_I2C_Read... [15:56:01]Read from MH i2c: F0 [15:56:01]MH_I2C_Read... [15:56:01]Read from MH i2c: F0 09 00 [15:56:01]MH_I2C_Read... [15:56:01]Read from MH i2c: F0 09 00 2C 10 00 12 A2 B8 67 7E 41 4F 65 7A [15:56:01]GetLastDocTimeStamp 1740153166 [15:56:01]current date 1740153362 [15:56:01]FM_GetShiftState [15:56:01]SAM_PROTO_GetShiftState [15:56:01]wFMCommunicate request_size=4 [15:56:01]MH_SAM_APDU [15:56:01]CAPDU: 80 13 01 00 [15:56:01]Write to MH i2c: E2 08 00 2D 10 80 13 01 00 00 00 00 00 BA [15:56:01]Write i2c OK [15:56:01]MH_I2C_Read... [15:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:01]Read from MH i2c: E2 [15:56:01]MH_I2C_Read... [15:56:01]Read from MH i2c: E2 0E 00 [15:56:01]MH_I2C_Read... [15:56:01]Read from MH i2c: E2 0E 00 2D 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A8 [15:56:01]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:56:01]wFMCommunicate OK [15:56:01]SAM_PROTO_GetShiftState done [15:56:01]FM_GetShiftState done [15:56:01]opened in 1740098043 [15:56:01]opened+sec_in_day 1740184443 [15:56:01]quantity*price = 50011 [15:56:01]sum+1 = 50013 [15:56:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 170 21.02.2025 15:56 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187676 ФПД: 262118563205206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T155602&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187676&fm=262118563205206&tin=02508201610067®Number=0000000000091857&sum=50012 [15:56:03]StoreToDocumentArchive [15:56:03]shift 649 fd 187676 [15:56:03]save to /storage/0649/doc_00187676 [15:56:03]save last doc name /storage/0649/doc_00187676 to /storage/kkm_last_doc_name [15:56:03]save OK [15:56:03]Clear old archive folders... [15:56:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:03]tlvbuf is 00BCA750 [15:56:03]SAM_PROTO_ClearQueue [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 09 00 00 [15:56:03]Write to MH i2c: E2 08 00 3A 10 80 09 00 00 00 00 00 00 BC [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 3A 10 00 90 00 BE [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]SAM_PROTO_ClearQueue done [15:56:03]KKMCreateOFDPacket [15:56:03]OFDProtocolAddRootSTLVToBuf [15:56:03]FM_MakeSignedData [15:56:03]FM_MakeSignedData [15:56:03]SAM_PROTO_SignData [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 0D 01 02 [15:56:03]Write to MH i2c: E2 08 00 3B 10 80 0D 01 02 00 00 00 00 C4 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 3B 10 00 90 00 BF [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]wFMCommunicate request_size=255 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 12 A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DD 02 00 35 04 06 00 EE [15:56:03]Write to MH i2c: E2 02 01 3C 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 12 A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DD 02 00 35 04 06 00 EE 00 00 66 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 3C 10 00 90 00 C0 [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]wFMCommunicate request_size=10 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 0D 02 02 05 65 3B D9 50 56 [15:56:03]Write to MH i2c: E2 0D 00 3D 10 80 0D 02 02 05 00 65 3B D9 50 56 00 00 F0 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 03 00 3D 10 00 90 00 C1 [15:56:03]RAPDU: 90 00 [15:56:03]wFMCommunicate OK [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 0D 03 02 [15:56:03]Write to MH i2c: E2 08 00 3E 10 80 0D 03 02 00 00 00 00 C9 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:03]OFD Sender: No OFD packet to send [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 0B 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 0B 00 3E 10 00 EF 6B 47 7E AF 78 2D DC 90 00 19 [15:56:03]RAPDU: EF 6B 47 7E AF 78 2D DC 90 00 [15:56:03]wFMCommunicate OK [15:56:03]SAM_PROTO_SignData done [15:56:03]FM_MakeSignedData done [15:56:03]CreateOFDProtocolMessage [15:56:03]wFMCommunicate request_size=4 [15:56:03]MH_SAM_APDU [15:56:03]CAPDU: 80 11 00 00 [15:56:03]Write to MH i2c: E2 08 00 3F 10 80 11 00 00 00 00 00 00 C9 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:03]Read from MH i2c: E2 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 17 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: E2 17 00 3F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [15:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:56:03]wFMCommunicate OK [15:56:03]CreateOFDProtocolMessage done [15:56:03]OFDSenderStorePacket 187676 [15:56:03]StoreOFDPacket docnum=187676 [15:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 24 32 07 01 50 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 12 A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DD 02 00 35 04 06 00 EE 65 3B D9 50 56 EF 6B 47 7E AF 78 2D DC [15:56:03]CheckFolder [15:56:03]dirname=/storage/ofd_packets [15:56:03]CheckFolder done [15:56:03]ProducePacketName [15:56:03]name=ofd_packets/00187676 [15:56:03]NVStorageSaveData ofd_packets/00187676 [15:56:03]File name is /storage/ofd_packets/00187676 [15:56:03]Write 301 bytes [15:56:03]NVStorageSaveData done [15:56:03]OFDSenderStorePacket done [15:56:03]KKMCreateOFDPacket done [15:56:03]NVStorageSaveData kkm_last_timestamp [15:56:03]File name is /storage/kkm_last_timestamp [15:56:03]Write 4 bytes [15:56:03]NVStorageSaveData done [15:56:03]ExternCall_PrintAddStr [15:56:03]wPrintStart [15:56:03]Write to MH i2c: 01 00 00 40 10 50 [15:56:03]Write i2c OK [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: 01 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: 01 07 00 [15:56:03]MH_I2C_Read... [15:56:03]Read from MH i2c: 01 07 00 40 10 00 00 00 00 00 FF 0F 65 [15:56:03]RasterBufferAndPrint [15:56:03]line Счет N : (1)412836 [15:56:03]line ИНН: 02508201610067 [15:56:03]line Контрольно-Кассовый Чек [15:56:03]line ПРОДАЖА [15:56:03]line ТРК (МРК, ГНК) : 32 [15:56:03]line Товар: 2710124130 [15:56:03]line Аи-92-К-2 [15:56:03]line 7.790 * 64.20 [15:56:03]line = 500.12 [15:56:03]line НДС 12% НСП 1% [15:56:03]line > о реализуемом товаре [15:56:03]line ИТОГО: 500.12 [15:56:03]line НСП 1% : 4.43 [15:56:03]line НДС 12% : 53.11 [15:56:03]line Наличными: 0.00 [15:56:03]line Безнал.: 500.12 [15:56:03]line Место: АЗС № 92 "Партнер Нефть" [15:56:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:56:03]line СНО: Общий режим [15:56:03]line Чек 170 21.02.2025 15:56 [15:56:03]line Смена: 649 ФФД: 1.0 [15:56:03]line ЗНМ: 0300000118 [15:56:03]line РНМ: 0000000000091857 [15:56:03]line Версия ККМ: 001 [15:56:03]line Платежная система: O! деньги [15:56:03]line ФМ: 0000000000871826 [15:56:03]line ФД: 187676 [15:56:03]line ФПД: 262118563205206 [15:56:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T155602&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187676&fm=262118563205206&tin=02508201610067®Number=0000000000091857&sum=50012 [15:56:04]OFD Sender: Processing packet 187676 [packets to send 49, broken 48] [15:56:04]ProducePacketName [15:56:04]name=ofd_packets/00187676 [15:56:04]OFD Sender: To server: pG, [15:56:04]CommunicateWithHost lk.salyk.kg:30040 [15:56:04]ConnectInit lk.salyk.kg [15:56:04]written 0, free lines is 4095 [15:56:04]Connected sock=10 [15:56:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 24 32 07 01 50 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 12 A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DD 02 00 35 04 06 00 EE 65 3B D9 50 56 EF 6B 47 7E AF 78 2D DC [15:56:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F2 2E 47 00 80 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 38 32 36 10 04 04 00 1C DD 02 00 F4 03 04 00 60 48 B8 67 B6 04 01 00 00 C4 47 2C C3 F0 74 DB 9D [15:56:04]CommunicateWithHost err = 0 [15:56:04]CheckOFDResponse [15:56:04]1017 (14) - 77093643461234 [15:56:04]1041 (16) - 0000000000871826 [15:56:04]1040 (4) - 187676 [15:56:04]1012 (4) - 21.02.2025 09:33 [15:56:04]1206 (1) - 0 [15:56:04]OFD Sender: Remove packet 187676 [15:56:04]ProducePacketName [15:56:04]name=ofd_packets/00187676 [15:56:04]NVStorageDeleteData [15:56:04]Write to MH i2c: 01 00 00 6A 10 7A [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 07 00 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: 01 07 00 6A 10 00 00 00 00 00 F5 0C 82 [15:56:04]RasterBufferAndPrint [15:56:04]line [15:56:04]line [15:56:04]line [15:56:04]line [15:56:04]line [15:56:04]written 0, free lines is 3324 [15:56:04]MH_Cut [15:56:04]Write to MH i2c: D1 01 00 71 10 01 53 [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: D1 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: D1 01 00 [15:56:04]MH_I2C_Read... [15:56:04]Read from MH i2c: D1 01 00 71 10 00 52 [15:56:04]Write to MH i2c: 01 00 00 72 10 82 [15:56:04]Write i2c OK [15:56:04]MH_I2C_Read... [15:56:04]OFD Sender: No OFD packet to send [15:56:05]*** Cut start [15:56:05]*** Partial cut [15:56:05]*** CUTSNS_PIN = 1 [15:56:05]*** CUTSNS_PIN = 0 [15:56:05]*** Brake cut motor [15:56:05]Read from MH i2c: 01 [15:56:05]MH_I2C_Read... [15:56:05]*** Stop cut motor [15:56:05]*** Cut end [15:56:05]Read from MH i2c: 01 07 00 [15:56:05]MH_I2C_Read... [15:56:05]Read from MH i2c: 01 07 00 72 10 00 00 00 00 00 FF 0F 97 [15:56:05]process_action close_receipt done [15:56:05]requested_data is exist [15:56:05]produce_requested_data [15:56:05]requested_item fm.sn is exist - process it [15:56:05]wFMCommunicate request_size=4 [15:56:05]MH_SAM_APDU [15:56:05]CAPDU: 80 11 00 00 [15:56:05]Write to MH i2c: E2 08 00 73 10 80 11 00 00 00 00 00 00 FD [15:56:05]Write i2c OK [15:56:05]MH_I2C_Read... [15:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:05]Read from MH i2c: E2 [15:56:05]MH_I2C_Read... [15:56:05]Read from MH i2c: E2 17 00 [15:56:05]MH_I2C_Read... [15:56:05]Read from MH i2c: E2 17 00 73 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 50 [15:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:56:05]wFMCommunicate OK [15:56:05]requested_item fd.num is exist - process it [15:56:05]SAM_PROTO_GetFieldsCounters [15:56:05]wFMCommunicate request_size=4 [15:56:05]MH_SAM_APDU [15:56:05]CAPDU: 80 13 00 00 [15:56:05]Write to MH i2c: E2 08 00 74 10 80 13 00 00 00 00 00 00 00 [15:56:05]Write i2c OK [15:56:05]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 62 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 62 00 74 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1C DD 02 00 0E 04 04 00 89 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 AA [15:56:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1C DD 02 00 0E 04 04 00 89 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 [15:56:06]wFMCommunicate OK [15:56:06]SAM_PROTO_GetFieldsCounters done [15:56:06]requested_item shift.num is exist - process it [15:56:06]requested_item shift.opened is exist - process it [15:56:06]req_shift_opened [15:56:06]FM_GetShiftState [15:56:06]SAM_PROTO_GetShiftState [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 13 01 00 [15:56:06]Write to MH i2c: E2 08 00 75 10 80 13 01 00 00 00 00 00 02 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 0E 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 0E 00 75 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 F0 [15:56:06]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:56:06]wFMCommunicate OK [15:56:06]SAM_PROTO_GetShiftState done [15:56:06]FM_GetShiftState done [15:56:06]req_shift_opened done [15:56:06]requested_item shift.open_date is exist - process it [15:56:06]req_shift_open_date [15:56:06]req_shift_open_date done [15:56:06]produce_requested_data done [15:56:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187676,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:56:06]process_action_free close_receipt [15:56:06]json_value_free [15:56:06]json_value_free done [15:56:06]process_json_proto returns [15:56:06]Send response to host [15:56:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187676,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:56:06]free response buf [15:56:06]execute_script done [15:56:06]execute_script returns [15:56:06]free content buf [15:56:06]Sock 9.Close socket [15:56:06]Sock 9.Thread stoped [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:51]accept exits with 7 [15:56:51]New connection [15:56:51]New thread 3067624804 created [15:56:51]Thread 3067481444 joined [15:56:51]Waiting for new connection... [15:56:51] Sock 7.Parse request [15:56:51]Sock 7.Check first char [15:56:51]Sock 7.First char is OK [15:56:51]request: POST /json_proto HTTP/1.0 [15:56:51]Method: POST [15:56:51]URL: /json_proto [15:56:51]Method is POST - this is cgi request [15:56:51]url: /json_proto [15:56:51]query_string will be loaded in cgi processing [15:56:51]execute_cgi json_proto POST (null) [15:56:51]execute_cgi path=json_proto method=POST [15:56:51]POST find Content-Length [15:56:51]Host: 172.17.46.131:8080 [15:56:51]Content-Length: 677 [15:56:51]Content-Type: application/json [15:56:51] [15:56:51]POST finish read [15:56:51]Found Content-Length = 677 [15:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:51]execute_script... [15:56: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)412838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:51]POST & json_proto [15:56:51]process_json_proto [15:56:51]json parsed OK: [15:56:51]protocol is kg_v1.0 [15:56:51]action value=close_receipt [15:56:51]process_action close_receipt [15:56:51]cmd_close_receipt [15:56:51]MH_GetDate [15:56:51]Write to MH i2c: F0 00 00 76 10 75 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: F0 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: F0 09 00 [15:56:51]MH_I2C_Read... [15:56:51]Read from MH i2c: F0 09 00 76 10 00 44 A2 B8 67 7E 41 4F 65 F6 [15:56:51]GetLastDocTimeStamp 1740153362 [15:56:51]current date 1740153412 [15:56:51]FM_GetShiftState [15:56:51]SAM_PROTO_GetShiftState [15:56:51]wFMCommunicate request_size=4 [15:56:51]MH_SAM_APDU [15:56:51]CAPDU: 80 13 01 00 [15:56:51]Write to MH i2c: E2 08 00 77 10 80 13 01 00 00 00 00 00 04 [15:56:51]Write i2c OK [15:56:51]MH_I2C_Read... [15:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:52]Read from MH i2c: E2 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 0E 00 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 0E 00 77 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 F2 [15:56:52]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:56:52]wFMCommunicate OK [15:56:52]SAM_PROTO_GetShiftState done [15:56:52]FM_GetShiftState done [15:56:52]opened in 1740098043 [15:56:52]opened+sec_in_day 1740184443 [15:56:52]quantity*price = 40060 [15:56:52]sum+1 = 40062 [15:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 171 21.02.2025 15:56 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187677 ФПД: 273263970155053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T155652&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187677&fm=273263970155053&tin=02508201610067®Number=0000000000091857&sum=40000 [15:56:53]StoreToDocumentArchive [15:56:53]shift 649 fd 187677 [15:56:53]save to /storage/0649/doc_00187677 [15:56:53]save last doc name /storage/0649/doc_00187677 to /storage/kkm_last_doc_name [15:56:53]save OK [15:56:53]Clear old archive folders... [15:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:53]tlvbuf is 00BCCFA0 [15:56:53]SAM_PROTO_ClearQueue [15:56:53]wFMCommunicate request_size=4 [15:56:53]MH_SAM_APDU [15:56:53]CAPDU: 80 09 00 00 [15:56:53]Write to MH i2c: E2 08 00 84 10 80 09 00 00 00 00 00 00 06 [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:53]Read from MH i2c: E2 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 03 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 03 00 84 10 00 90 00 08 [15:56:53]RAPDU: 90 00 [15:56:53]wFMCommunicate OK [15:56:53]SAM_PROTO_ClearQueue done [15:56:53]KKMCreateOFDPacket [15:56:53]OFDProtocolAddRootSTLVToBuf [15:56:53]FM_MakeSignedData [15:56:53]FM_MakeSignedData [15:56:53]SAM_PROTO_SignData [15:56:53]wFMCommunicate request_size=4 [15:56:53]MH_SAM_APDU [15:56:53]CAPDU: 80 0D 01 02 [15:56:53]Write to MH i2c: E2 08 00 85 10 80 0D 01 02 00 00 00 00 0E [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:53]Read from MH i2c: E2 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 03 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 03 00 85 10 00 90 00 09 [15:56:53]RAPDU: 90 00 [15:56:53]wFMCommunicate OK [15:56:53]wFMCommunicate request_size=255 [15:56:53]MH_SAM_APDU [15:56:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 44 A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DD 02 00 35 04 06 00 F8 [15:56:53]Write to MH i2c: E2 02 01 86 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 44 A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DD 02 00 35 04 06 00 F8 00 00 D0 [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:53]Read from MH i2c: E2 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 03 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 03 00 86 10 00 90 00 0A [15:56:53]RAPDU: 90 00 [15:56:53]wFMCommunicate OK [15:56:53]wFMCommunicate request_size=10 [15:56:53]MH_SAM_APDU [15:56:53]CAPDU: 80 0D 02 02 05 88 39 DE FA 2D [15:56:53]Write to MH i2c: E2 0D 00 87 10 80 0D 02 02 05 00 88 39 DE FA 2D 00 00 E1 [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:53]Read from MH i2c: E2 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 03 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 03 00 87 10 00 90 00 0B [15:56:53]RAPDU: 90 00 [15:56:53]wFMCommunicate OK [15:56:53]wFMCommunicate request_size=4 [15:56:53]MH_SAM_APDU [15:56:53]CAPDU: 80 0D 03 02 [15:56:53]Write to MH i2c: E2 08 00 88 10 80 0D 03 02 00 00 00 00 13 [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:53]Read from MH i2c: E2 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 0B 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 0B 00 88 10 00 69 64 02 4C C3 5A CC EF 90 00 07 [15:56:53]RAPDU: 69 64 02 4C C3 5A CC EF 90 00 [15:56:53]wFMCommunicate OK [15:56:53]SAM_PROTO_SignData done [15:56:53]FM_MakeSignedData done [15:56:53]CreateOFDProtocolMessage [15:56:53]wFMCommunicate request_size=4 [15:56:53]MH_SAM_APDU [15:56:53]CAPDU: 80 11 00 00 [15:56:53]Write to MH i2c: E2 08 00 89 10 80 11 00 00 00 00 00 00 13 [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:53]Read from MH i2c: E2 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 17 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: E2 17 00 89 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [15:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:56:53]wFMCommunicate OK [15:56:53]CreateOFDProtocolMessage done [15:56:53]OFDSenderStorePacket 187677 [15:56:53]StoreOFDPacket docnum=187677 [15:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0B DD 07 01 F2 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 44 A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DD 02 00 35 04 06 00 F8 88 39 DE FA 2D 69 64 02 4C C3 5A CC EF [15:56:53]CheckFolder [15:56:53]dirname=/storage/ofd_packets [15:56:53]CheckFolder done [15:56:53]ProducePacketName [15:56:53]name=ofd_packets/00187677 [15:56:53]NVStorageSaveData ofd_packets/00187677 [15:56:53]File name is /storage/ofd_packets/00187677 [15:56:53]Write 301 bytes [15:56:53]NVStorageSaveData done [15:56:53]OFDSenderStorePacket done [15:56:53]KKMCreateOFDPacket done [15:56:53]NVStorageSaveData kkm_last_timestamp [15:56:53]File name is /storage/kkm_last_timestamp [15:56:53]Write 4 bytes [15:56:53]NVStorageSaveData done [15:56:53]ExternCall_PrintAddStr [15:56:53]wPrintStart [15:56:53]Write to MH i2c: 01 00 00 8A 10 9A [15:56:53]Write i2c OK [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: 01 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: 01 07 00 [15:56:53]MH_I2C_Read... [15:56:53]Read from MH i2c: 01 07 00 8A 10 00 00 00 00 00 FF 0F AF [15:56:53]RasterBufferAndPrint [15:56:53]line Счет N : (1)412838 [15:56:53]line ИНН: 02508201610067 [15:56:53]line Контрольно-Кассовый Чек [15:56:53]line ПРОДАЖА [15:56:53]line ТРК (МРК, ГНК) : 12 [15:56:53]line Товар: 2710124130 [15:56:53]line Аи-92-К-2 [15:56:53]line 6.240 * 64.20 [15:56:53]line = 400.61 [15:56:53]line НДС 12% НСП 1% [15:56:53]line > о реализуемом товаре [15:56:53]line ОКРУГЛЕНИЕ: -0.61 [15:56:53]line ИТОГО: 400.00 [15:56:53]line Внесено: 400.00 [15:56:53]line СДАЧА: 0.00 [15:56:53]line НСП 1% : 3.54 [15:56:53]line НДС 12% : 42.54 [15:56:53]line Наличными: 400.00 [15:56:53]line Безнал.: 0.00 [15:56:53]line Место: АЗС № 92 "Партнер Нефть" [15:56:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:56:53]line СНО: Общий режим [15:56:53]line Чек 171 21.02.2025 15:56 [15:56:53]line Смена: 649 ФФД: 1.0 [15:56:53]line ЗНМ: 0300000118 [15:56:53]line РНМ: 0000000000091857 [15:56:53]line Версия ККМ: 001 [15:56:53]line ФМ: 0000000000871826 [15:56:53]line ФД: 187677 [15:56:53]line ФПД: 273263970155053 [15:56:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T155652&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187677&fm=273263970155053&tin=02508201610067®Number=0000000000091857&sum=40000 [15:56:53]OFD Sender: Processing packet 187677 [packets to send 49, broken 48] [15:56:53]ProducePacketName [15:56:53]name=ofd_packets/00187677 [15:56:53]OFD Sender: To server: pG, [15:56:53]CommunicateWithHost lk.salyk.kg:30040 [15:56:53]ConnectInit lk.salyk.kg [15:56:53]written 0, free lines is 4095 [15:56:54]Connected sock=10 [15:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0B DD 07 01 F2 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 44 A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DD 02 00 35 04 06 00 F8 88 39 DE FA 2D 69 64 02 4C C3 5A CC EF [15:56:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7E 97 47 00 35 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D DD 02 00 F4 03 04 00 92 48 B8 67 B6 04 01 00 00 7D C9 11 CD 1B 1C F2 7A [15:56:54]CommunicateWithHost err = 0 [15:56:54]CheckOFDResponse [15:56:54]1017 (14) - 77093643461234 [15:56:54]1041 (16) - 0000000000871826 [15:56:54]1040 (4) - 187677 [15:56:54]1012 (4) - 21.02.2025 09:34 [15:56:54]1206 (1) - 0 [15:56:54]OFD Sender: Remove packet 187677 [15:56:54]ProducePacketName [15:56:54]name=ofd_packets/00187677 [15:56:54]NVStorageDeleteData [15:56:54]Write to MH i2c: 01 00 00 B5 10 C5 [15:56:54]Write i2c OK [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: 01 [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: 01 07 00 [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: 01 07 00 B5 10 00 00 00 00 00 E6 0C BE [15:56:54]RasterBufferAndPrint [15:56:54]line [15:56:54]line [15:56:54]line [15:56:54]line [15:56:54]line [15:56:54]written 0, free lines is 3309 [15:56:54]MH_Cut [15:56:54]Write to MH i2c: D1 01 00 BC 10 01 9E [15:56:54]Write i2c OK [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: D1 [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: D1 01 00 [15:56:54]MH_I2C_Read... [15:56:54]Read from MH i2c: D1 01 00 BC 10 00 9D [15:56:54]Write to MH i2c: 01 00 00 BD 10 CD [15:56:54]Write i2c OK [15:56:54]MH_I2C_Read... [15:56:54]OFD Sender: No OFD packet to send [15:56:55]*** Cut start [15:56:55]*** Partial cut [15:56:55]*** CUTSNS_PIN = 1 [15:56:55]*** CUTSNS_PIN = 0 [15:56:55]*** Brake cut motor [15:56:55]Read from MH i2c: 01 [15:56:55]MH_I2C_Read... [15:56:55]*** Stop cut motor [15:56:55]*** Cut end [15:56:55]Read from MH i2c: 01 07 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: 01 07 00 BD 10 00 00 00 00 00 FF 0F E2 [15:56:55]process_action close_receipt done [15:56:55]requested_data is exist [15:56:55]produce_requested_data [15:56:55]requested_item fm.sn is exist - process it [15:56:55]wFMCommunicate request_size=4 [15:56:55]MH_SAM_APDU [15:56:55]CAPDU: 80 11 00 00 [15:56:55]Write to MH i2c: E2 08 00 BE 10 80 11 00 00 00 00 00 00 48 [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:55]Read from MH i2c: E2 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 17 00 [15:56:55]MH_I2C_Read... [15:56:55]Read from MH i2c: E2 17 00 BE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [15:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:56:55]wFMCommunicate OK [15:56:55]requested_item fd.num is exist - process it [15:56:55]SAM_PROTO_GetFieldsCounters [15:56:55]wFMCommunicate request_size=4 [15:56:55]MH_SAM_APDU [15:56:55]CAPDU: 80 13 00 00 [15:56:55]Write to MH i2c: E2 08 00 BF 10 80 13 00 00 00 00 00 00 4B [15:56:55]Write i2c OK [15:56:55]MH_I2C_Read... [15:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:56]Read from MH i2c: E2 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: E2 62 00 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: E2 62 00 BF 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1D DD 02 00 0E 04 04 00 89 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 F9 [15:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1D DD 02 00 0E 04 04 00 89 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 [15:56:56]wFMCommunicate OK [15:56:56]SAM_PROTO_GetFieldsCounters done [15:56:56]requested_item shift.num is exist - process it [15:56:56]requested_item shift.opened is exist - process it [15:56:56]req_shift_opened [15:56:56]FM_GetShiftState [15:56:56]SAM_PROTO_GetShiftState [15:56:56]wFMCommunicate request_size=4 [15:56:56]MH_SAM_APDU [15:56:56]CAPDU: 80 13 01 00 [15:56:56]Write to MH i2c: E2 08 00 C0 10 80 13 01 00 00 00 00 00 4D [15:56:56]Write i2c OK [15:56:56]MH_I2C_Read... [15:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:56]Read from MH i2c: E2 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: E2 0E 00 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: E2 0E 00 C0 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 3B [15:56:56]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:56:56]wFMCommunicate OK [15:56:56]SAM_PROTO_GetShiftState done [15:56:56]FM_GetShiftState done [15:56:56]req_shift_opened done [15:56:56]requested_item shift.open_date is exist - process it [15:56:56]req_shift_open_date [15:56:56]req_shift_open_date done [15:56:56]produce_requested_data done [15:56:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187677,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:56:56]process_action_free close_receipt [15:56:56]json_value_free [15:56:56]json_value_free done [15:56:56]process_json_proto returns [15:56:56]Send response to host [15:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187677,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:56:56]free response buf [15:56:56]execute_script done [15:56:56]execute_script returns [15:56:56]free content buf [15:56:56]Sock 7.Close socket [15:56:56]Sock 7.Thread stoped [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]accept exits with 9 [15:57:14]New connection [15:57:14]New thread 3067481444 created [15:57:14]Thread 3067624804 joined [15:57:14]Waiting for new connection... [15:57:14] Sock 9.Parse request [15:57:14]Sock 9.Check first char [15:57:14]Sock 9.First char is OK [15:57:14]request: POST /json_proto HTTP/1.0 [15:57:14]Method: POST [15:57:14]URL: /json_proto [15:57:14]Method is POST - this is cgi request [15:57:14]url: /json_proto [15:57:14]query_string will be loaded in cgi processing [15:57:14]execute_cgi json_proto POST (null) [15:57:14]execute_cgi path=json_proto method=POST [15:57:14]POST find Content-Length [15:57:14]Host: 172.17.46.131:8080 [15:57:14]Content-Length: 678 [15:57:14]Content-Type: application/json [15:57:14] [15:57:14]POST finish read [15:57:14]Found Content-Length = 678 [15:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:14]execute_script... [15:57: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)412837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:14]POST & json_proto [15:57:14]process_json_proto [15:57:14]json parsed OK: [15:57:14]protocol is kg_v1.0 [15:57:14]action value=close_receipt [15:57:14]process_action close_receipt [15:57:14]cmd_close_receipt [15:57:14]MH_GetDate [15:57:14]Write to MH i2c: F0 00 00 C1 10 C0 [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: F0 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: F0 09 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: F0 09 00 C1 10 00 5B A2 B8 67 7E 41 4F 65 58 [15:57:14]GetLastDocTimeStamp 1740153412 [15:57:14]current date 1740153435 [15:57:14]FM_GetShiftState [15:57:14]SAM_PROTO_GetShiftState [15:57:14]wFMCommunicate request_size=4 [15:57:14]MH_SAM_APDU [15:57:14]CAPDU: 80 13 01 00 [15:57:14]Write to MH i2c: E2 08 00 C2 10 80 13 01 00 00 00 00 00 4F [15:57:14]Write i2c OK [15:57:14]MH_I2C_Read... [15:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:14]Read from MH i2c: E2 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 0E 00 [15:57:14]MH_I2C_Read... [15:57:14]Read from MH i2c: E2 0E 00 C2 10 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 3D [15:57:14]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:57:14]wFMCommunicate OK [15:57:14]SAM_PROTO_GetShiftState done [15:57:14]FM_GetShiftState done [15:57:14]opened in 1740098043 [15:57:14]opened+sec_in_day 1740184443 [15:57:14]quantity*price = 200013 [15:57:14]sum+1 = 200014 [15:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 172 21.02.2025 15:57 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187678 ФПД: 279582654266813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T155715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187678&fm=279582654266813&tin=02508201610067®Number=0000000000091857&sum=200000 [15:57:16]StoreToDocumentArchive [15:57:16]shift 649 fd 187678 [15:57:16]save to /storage/0649/doc_00187678 [15:57:16]save last doc name /storage/0649/doc_00187678 to /storage/kkm_last_doc_name [15:57:16]save OK [15:57:16]Clear old archive folders... [15:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:57:16]tlvbuf is 00C0D690 [15:57:16]SAM_PROTO_ClearQueue [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 09 00 00 [15:57:16]Write to MH i2c: E2 08 00 CF 10 80 09 00 00 00 00 00 00 51 [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 CF 10 00 90 00 53 [15:57:16]RAPDU: 90 00 [15:57:16]wFMCommunicate OK [15:57:16]SAM_PROTO_ClearQueue done [15:57:16]KKMCreateOFDPacket [15:57:16]OFDProtocolAddRootSTLVToBuf [15:57:16]FM_MakeSignedData [15:57:16]FM_MakeSignedData [15:57:16]SAM_PROTO_SignData [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 0D 01 02 [15:57:16]Write to MH i2c: E2 08 00 D0 10 80 0D 01 02 00 00 00 00 59 [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 D0 10 00 90 00 54 [15:57:16]RAPDU: 90 00 [15:57:16]wFMCommunicate OK [15:57:16]wFMCommunicate request_size=255 [15:57:16]MH_SAM_APDU [15:57: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 5B A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DD 02 00 35 04 06 00 FE 47 68 CA [15:57:16]Write to MH i2c: E2 02 01 D1 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 5B A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DD 02 00 35 04 06 00 FE 47 68 CA 00 00 3A [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 D1 10 00 90 00 55 [15:57:16]RAPDU: 90 00 [15:57:16]wFMCommunicate OK [15:57:16]wFMCommunicate request_size=7 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 0D 02 02 02 FD BD [15:57:16]Write to MH i2c: E2 0A 00 D2 10 80 0D 02 02 02 00 FD BD 00 00 1A [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 03 00 D2 10 00 90 00 56 [15:57:16]RAPDU: 90 00 [15:57:16]wFMCommunicate OK [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 0D 03 02 [15:57:16]Write to MH i2c: E2 08 00 D3 10 80 0D 03 02 00 00 00 00 5E [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 0B 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 0B 00 D3 10 00 1D D5 B8 58 E8 85 AF 35 90 00 B2 [15:57:16]RAPDU: 1D D5 B8 58 E8 85 AF 35 90 00 [15:57:16]wFMCommunicate OK [15:57:16]SAM_PROTO_SignData done [15:57:16]FM_MakeSignedData done [15:57:16]CreateOFDProtocolMessage [15:57:16]wFMCommunicate request_size=4 [15:57:16]MH_SAM_APDU [15:57:16]CAPDU: 80 11 00 00 [15:57:16]Write to MH i2c: E2 08 00 D4 10 80 11 00 00 00 00 00 00 5E [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:16]Read from MH i2c: E2 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 17 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: E2 17 00 D4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [15:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:57:16]wFMCommunicate OK [15:57:16]CreateOFDProtocolMessage done [15:57:16]OFDSenderStorePacket 187678 [15:57:16]StoreOFDPacket docnum=187678 [15:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9D 30 04 01 73 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 5B A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DD 02 00 35 04 06 00 FE 47 68 CA FD BD 1D D5 B8 58 E8 85 AF 35 [15:57:16]CheckFolder [15:57:16]dirname=/storage/ofd_packets [15:57:16]CheckFolder done [15:57:16]ProducePacketName [15:57:16]name=ofd_packets/00187678 [15:57:16]NVStorageSaveData ofd_packets/00187678 [15:57:16]File name is /storage/ofd_packets/00187678 [15:57:16]Write 298 bytes [15:57:16]NVStorageSaveData done [15:57:16]OFDSenderStorePacket done [15:57:16]KKMCreateOFDPacket done [15:57:16]NVStorageSaveData kkm_last_timestamp [15:57:16]File name is /storage/kkm_last_timestamp [15:57:16]Write 4 bytes [15:57:16]NVStorageSaveData done [15:57:16]ExternCall_PrintAddStr [15:57:16]wPrintStart [15:57:16]Write to MH i2c: 01 00 00 D5 10 E5 [15:57:16]Write i2c OK [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: 01 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: 01 07 00 [15:57:16]MH_I2C_Read... [15:57:16]Read from MH i2c: 01 07 00 D5 10 00 00 00 00 00 FF 0F FA [15:57:16]RasterBufferAndPrint [15:57:16]line Счет N : (1)412837 [15:57:16]line ИНН: 02508201610067 [15:57:16]line Контрольно-Кассовый Чек [15:57:16]line ПРОДАЖА [15:57:16]line ТРК (МРК, ГНК) : 5 [15:57:16]line Товар: 2710194210 [15:57:16]line ДТ-К-5 [15:57:16]line 27.550 * 72.60 [15:57:16]line = 2000.13 [15:57:16]line НДС 12% НСП 1% [15:57:16]line > о реализуемом товаре [15:57:16]line ОКРУГЛЕНИЕ: -0.13 [15:57:16]line ИТОГО: 2000.00 [15:57:16]line Внесено: 2000.00 [15:57:16]line СДАЧА: 0.00 [15:57:16]line НСП 1% : 17.70 [15:57:16]line НДС 12% : 212.40 [15:57:16]line Наличными: 2000.00 [15:57:16]line Безнал.: 0.00 [15:57:16]line Место: АЗС № 92 "Партнер Нефть" [15:57:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:57:16]line СНО: Общий режим [15:57:16]line Чек 172 21.02.2025 15:57 [15:57:16]line Смена: 649 ФФД: 1.0 [15:57:16]line ЗНМ: 0300000118 [15:57:16]line РНМ: 0000000000091857 [15:57:16]line Версия ККМ: 001 [15:57:16]line ФМ: 0000000000871826 [15:57:16]line ФД: 187678 [15:57:16]line ФПД: 279582654266813 [15:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T155715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187678&fm=279582654266813&tin=02508201610067®Number=0000000000091857&sum=200000 [15:57:16]OFD Sender: Processing packet 187678 [packets to send 49, broken 48] [15:57:16]ProducePacketName [15:57:16]name=ofd_packets/00187678 [15:57:16]OFD Sender: To server: pG, [15:57:16]CommunicateWithHost lk.salyk.kg:30040 [15:57:16]ConnectInit lk.salyk.kg [15:57:16]written 0, free lines is 4095 [15:57:17]Connected sock=7 [15:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9D 30 04 01 73 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 5B A2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DD 02 00 35 04 06 00 FE 47 68 CA FD BD 1D D5 B8 58 E8 85 AF 35 [15:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 93 52 47 00 DC 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E DD 02 00 F4 03 04 00 A9 48 B8 67 B6 04 01 00 00 81 13 6A 0E 0B 55 EA 9B [15:57:17]CommunicateWithHost err = 0 [15:57:17]CheckOFDResponse [15:57:17]1017 (14) - 77093643461234 [15:57:17]1041 (16) - 0000000000871826 [15:57:17]1040 (4) - 187678 [15:57:17]1012 (4) - 21.02.2025 09:34 [15:57:17]1206 (1) - 0 [15:57:17]OFD Sender: Remove packet 187678 [15:57:17]ProducePacketName [15:57:17]name=ofd_packets/00187678 [15:57:17]NVStorageDeleteData [15:57:17]Write to MH i2c: 01 00 00 00 11 11 [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: 01 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: 01 07 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: 01 07 00 00 11 00 00 00 00 00 F7 0C 1B [15:57:17]RasterBufferAndPrint [15:57:17]line [15:57:17]line [15:57:17]line [15:57:17]line [15:57:17]line [15:57:17]written 0, free lines is 3325 [15:57:17]MH_Cut [15:57:17]Write to MH i2c: D1 01 00 07 11 01 EA [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: D1 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: D1 01 00 [15:57:17]MH_I2C_Read... [15:57:17]Read from MH i2c: D1 01 00 07 11 00 E9 [15:57:17]Write to MH i2c: 01 00 00 08 11 19 [15:57:17]Write i2c OK [15:57:17]MH_I2C_Read... [15:57:17]OFD Sender: No OFD packet to send [15:57:17]*** Cut start [15:57:17]*** Partial cut [15:57:17]*** CUTSNS_PIN = 1 [15:57:18]*** CUTSNS_PIN = 0 [15:57:18]*** Brake cut motor [15:57:18]Read from MH i2c: 01 [15:57:18]MH_I2C_Read... [15:57:18]*** Stop cut motor [15:57:18]*** Cut end [15:57:18]Read from MH i2c: 01 07 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: 01 07 00 08 11 00 00 00 00 00 FF 0F 2E [15:57:18]process_action close_receipt done [15:57:18]requested_data is exist [15:57:18]produce_requested_data [15:57:18]requested_item fm.sn is exist - process it [15:57:18]wFMCommunicate request_size=4 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 11 00 00 [15:57:18]Write to MH i2c: E2 08 00 09 11 80 11 00 00 00 00 00 00 94 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 17 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 17 00 09 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [15:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:57:18]wFMCommunicate OK [15:57:18]requested_item fd.num is exist - process it [15:57:18]SAM_PROTO_GetFieldsCounters [15:57:18]wFMCommunicate request_size=4 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 13 00 00 [15:57:18]Write to MH i2c: E2 08 00 0A 11 80 13 00 00 00 00 00 00 97 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 62 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 62 00 0A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1E DD 02 00 0E 04 04 00 89 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 49 [15:57:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1E DD 02 00 0E 04 04 00 89 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 [15:57:18]wFMCommunicate OK [15:57:18]SAM_PROTO_GetFieldsCounters done [15:57:18]requested_item shift.num is exist - process it [15:57:18]requested_item shift.opened is exist - process it [15:57:18]req_shift_opened [15:57:18]FM_GetShiftState [15:57:18]SAM_PROTO_GetShiftState [15:57:18]wFMCommunicate request_size=4 [15:57:18]MH_SAM_APDU [15:57:18]CAPDU: 80 13 01 00 [15:57:18]Write to MH i2c: E2 08 00 0B 11 80 13 01 00 00 00 00 00 99 [15:57:18]Write i2c OK [15:57:18]MH_I2C_Read... [15:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:18]Read from MH i2c: E2 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 0E 00 [15:57:18]MH_I2C_Read... [15:57:18]Read from MH i2c: E2 0E 00 0B 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 87 [15:57:18]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [15:57:18]wFMCommunicate OK [15:57:18]SAM_PROTO_GetShiftState done [15:57:18]FM_GetShiftState done [15:57:18]req_shift_opened done [15:57:18]requested_item shift.open_date is exist - process it [15:57:18]req_shift_open_date [15:57:18]req_shift_open_date done [15:57:18]produce_requested_data done [15:57:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187678,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [15:57:18]process_action_free close_receipt [15:57:18]json_value_free [15:57:18]json_value_free done [15:57:18]process_json_proto returns [15:57:18]Send response to host [15:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187678,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [15:57:18]free response buf [15:57:18]execute_script done [15:57:18]execute_script returns [15:57:18]free content buf [15:57:18]Sock 9.Close socket [15:57:18]Sock 9.Thread stoped [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:18]accept exits with 10 [16:00:18]New connection [16:00:18]New thread 3067624804 created [16:00:18]Thread 3067481444 joined [16:00:18]Waiting for new connection... [16:00:18] Sock 10.Parse request [16:00:18]Sock 10.Check first char [16:00:18]Sock 10.First char is OK [16:00:18]request: POST /json_proto HTTP/1.0 [16:00:18]Method: POST [16:00:18]URL: /json_proto [16:00:18]Method is POST - this is cgi request [16:00:18]url: /json_proto [16:00:18]query_string will be loaded in cgi processing [16:00:18]execute_cgi json_proto POST (null) [16:00:18]execute_cgi path=json_proto method=POST [16:00:18]POST find Content-Length [16:00:18]Host: 172.17.46.131:8080 [16:00:18]Content-Length: 677 [16:00:18]Content-Type: application/json [16:00:18] [16:00:18]POST finish read [16:00:18]Found Content-Length = 677 [16:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:18]execute_script... [16:00: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)412840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:18]POST & json_proto [16:00:18]process_json_proto [16:00:18]json parsed OK: [16:00:18]protocol is kg_v1.0 [16:00:18]action value=close_receipt [16:00:18]process_action close_receipt [16:00:18]cmd_close_receipt [16:00:18]MH_GetDate [16:00:18]Write to MH i2c: F0 00 00 0C 11 0C [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: F0 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: F0 09 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: F0 09 00 0C 11 00 13 A3 B8 67 7E 41 4F 65 5D [16:00:18]GetLastDocTimeStamp 1740153435 [16:00:18]current date 1740153619 [16:00:18]FM_GetShiftState [16:00:18]SAM_PROTO_GetShiftState [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 13 01 00 [16:00:18]Write to MH i2c: E2 08 00 0D 11 80 13 01 00 00 00 00 00 9B [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 0E 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 0E 00 0D 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 89 [16:00:18]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:00:18]wFMCommunicate OK [16:00:18]SAM_PROTO_GetShiftState done [16:00:18]FM_GetShiftState done [16:00:18]opened in 1740098043 [16:00:18]opened+sec_in_day 1740184443 [16:00:18]quantity*price = 35053 [16:00:18]sum+1 = 35054 [16:00:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 173 21.02.2025 16:00 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187679 ФПД: 183352129396001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160019&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187679&fm=183352129396001&tin=02508201610067®Number=0000000000091857&sum=35000 [16:00:19]StoreToDocumentArchive [16:00:19]shift 649 fd 187679 [16:00:19]save to /storage/0649/doc_00187679 [16:00:19]save last doc name /storage/0649/doc_00187679 to /storage/kkm_last_doc_name [16:00:19]save OK [16:00:19]Clear old archive folders... [16:00:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:19]tlvbuf is 00BFE0C0 [16:00:19]SAM_PROTO_ClearQueue [16:00:19]wFMCommunicate request_size=4 [16:00:19]MH_SAM_APDU [16:00:19]CAPDU: 80 09 00 00 [16:00:19]Write to MH i2c: E2 08 00 1A 11 80 09 00 00 00 00 00 00 9D [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 1A 11 00 90 00 9F [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]SAM_PROTO_ClearQueue done [16:00:20]KKMCreateOFDPacket [16:00:20]OFDProtocolAddRootSTLVToBuf [16:00:20]FM_MakeSignedData [16:00:20]FM_MakeSignedData [16:00:20]SAM_PROTO_SignData [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 01 02 [16:00:20]Write to MH i2c: E2 08 00 1B 11 80 0D 01 02 00 00 00 00 A5 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 1B 11 00 90 00 A0 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]wFMCommunicate request_size=255 [16:00:20]MH_SAM_APDU [16: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 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 13 A3 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DD 02 00 35 04 06 00 A6 [16:00:20]Write to MH i2c: E2 02 01 1C 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 13 A3 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DD 02 00 35 04 06 00 A6 00 00 BC [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 1C 11 00 90 00 A1 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]wFMCommunicate request_size=10 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 02 02 05 C1 FE 8A 9D 21 [16:00:20]Write to MH i2c: E2 0D 00 1D 11 80 0D 02 02 05 00 C1 FE 8A 9D 21 00 00 B9 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 03 00 1D 11 00 90 00 A2 [16:00:20]RAPDU: 90 00 [16:00:20]wFMCommunicate OK [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 0D 03 02 [16:00:20]Write to MH i2c: E2 08 00 1E 11 80 0D 03 02 00 00 00 00 AA [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0B 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 0B 00 1E 11 00 6A 54 1D 22 F4 F5 E1 3D 90 00 AF [16:00:20]RAPDU: 6A 54 1D 22 F4 F5 E1 3D 90 00 [16:00:20]wFMCommunicate OK [16:00:20]SAM_PROTO_SignData done [16:00:20]FM_MakeSignedData done [16:00:20]CreateOFDProtocolMessage [16:00:20]wFMCommunicate request_size=4 [16:00:20]MH_SAM_APDU [16:00:20]CAPDU: 80 11 00 00 [16:00:20]Write to MH i2c: E2 08 00 1F 11 80 11 00 00 00 00 00 00 AA [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:20]Read from MH i2c: E2 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 17 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: E2 17 00 1F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [16:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:00:20]wFMCommunicate OK [16:00:20]CreateOFDProtocolMessage done [16:00:20]OFDSenderStorePacket 187679 [16:00:20]StoreOFDPacket docnum=187679 [16:00:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 E9 07 01 4A 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 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 13 A3 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DD 02 00 35 04 06 00 A6 C1 FE 8A 9D 21 6A 54 1D 22 F4 F5 E1 3D [16:00:20]CheckFolder [16:00:20]dirname=/storage/ofd_packets [16:00:20]CheckFolder done [16:00:20]ProducePacketName [16:00:20]name=ofd_packets/00187679 [16:00:20]NVStorageSaveData ofd_packets/00187679 [16:00:20]File name is /storage/ofd_packets/00187679 [16:00:20]Write 301 bytes [16:00:20]NVStorageSaveData done [16:00:20]OFDSenderStorePacket done [16:00:20]KKMCreateOFDPacket done [16:00:20]NVStorageSaveData kkm_last_timestamp [16:00:20]File name is /storage/kkm_last_timestamp [16:00:20]Write 4 bytes [16:00:20]NVStorageSaveData done [16:00:20]ExternCall_PrintAddStr [16:00:20]wPrintStart [16:00:20]Write to MH i2c: 01 00 00 20 11 31 [16:00:20]Write i2c OK [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 07 00 [16:00:20]MH_I2C_Read... [16:00:20]Read from MH i2c: 01 07 00 20 11 00 00 00 00 00 FF 0F 46 [16:00:20]RasterBufferAndPrint [16:00:20]line Счет N : (1)412840 [16:00:20]line ИНН: 02508201610067 [16:00:20]line Контрольно-Кассовый Чек [16:00:20]line ПРОДАЖА [16:00:20]line ТРК (МРК, ГНК) : 42 [16:00:20]line Товар: 2710124130 [16:00:20]line Аи-92-К-2 [16:00:20]line 5.460 * 64.20 [16:00:20]line = 350.53 [16:00:20]line НДС 12% НСП 1% [16:00:20]line > о реализуемом товаре [16:00:20]line ОКРУГЛЕНИЕ: -0.53 [16:00:20]line ИТОГО: 350.00 [16:00:20]line Внесено: 350.00 [16:00:20]line СДАЧА: 0.00 [16:00:20]line НСП 1% : 3.10 [16:00:20]line НДС 12% : 37.22 [16:00:20]line Наличными: 350.00 [16:00:20]line Безнал.: 0.00 [16:00:20]line Место: АЗС № 92 "Партнер Нефть" [16:00:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:00:20]line СНО: Общий режим [16:00:20]line Чек 173 21.02.2025 16:00 [16:00:20]line Смена: 649 ФФД: 1.0 [16:00:20]line ЗНМ: 0300000118 [16:00:20]line РНМ: 0000000000091857 [16:00:20]line Версия ККМ: 001 [16:00:20]line ФМ: 0000000000871826 [16:00:20]line ФД: 187679 [16:00:20]line ФПД: 183352129396001 [16:00:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160019&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187679&fm=183352129396001&tin=02508201610067®Number=0000000000091857&sum=35000 [16:00:20]written 0, free lines is 4095 [16:00:20]OFD Sender: Processing packet 187679 [packets to send 49, broken 48] [16:00:20]ProducePacketName [16:00:20]name=ofd_packets/00187679 [16:00:20]OFD Sender: To server: pG, [16:00:20]CommunicateWithHost lk.salyk.kg:30040 [16:00:20]ConnectInit lk.salyk.kg [16:00:20]Connected sock=9 [16:00:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 69 E9 07 01 4A 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 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 13 A3 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DD 02 00 35 04 06 00 A6 C1 FE 8A 9D 21 6A 54 1D 22 F4 F5 E1 3D [16:00:21]Write to MH i2c: 01 00 00 4B 11 5C [16: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 38 32 36 4F 00 00 00 05 7C 47 00 BE 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F DD 02 00 F4 03 04 00 61 49 B8 67 B6 04 01 00 00 8A D9 15 13 08 69 71 B5 [16:00:21]CommunicateWithHost err = 0 [16:00:21]CheckOFDResponse [16:00:21]1017 (14) - 77093643461234 [16:00:21]1041 (16) - 0000000000871826 [16:00:21]1040 (4) - 187679 [16:00:21]1012 (4) - 21.02.2025 09:37 [16:00:21]1206 (1) - 0 [16:00:21]OFD Sender: Remove packet 187679 [16:00:21]ProducePacketName [16:00:21]name=ofd_packets/00187679 [16:00:21]NVStorageDeleteData [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 07 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 07 00 4B 11 00 00 00 00 00 EB 0C 5A [16:00:21]RasterBufferAndPrint [16:00:21]line [16:00:21]line [16:00:21]line [16:00:21]line [16:00:21]line [16:00:21]written 0, free lines is 3326 [16:00:21]MH_Cut [16:00:21]Write to MH i2c: D1 01 00 52 11 01 35 [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: D1 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: D1 01 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: D1 01 00 52 11 00 34 [16:00:21]Write to MH i2c: 01 00 00 53 11 64 [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]OFD Sender: No OFD packet to send [16:00:21]*** Cut start [16:00:21]*** Partial cut [16:00:21]*** CUTSNS_PIN = 1 [16:00:22]*** CUTSNS_PIN = 0 [16:00:22]*** Brake cut motor [16:00:22]Read from MH i2c: 01 [16:00:22]MH_I2C_Read... [16:00:22]*** Stop cut motor [16:00:22]*** Cut end [16:00:22]Read from MH i2c: 01 07 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: 01 07 00 53 11 00 00 00 00 00 FF 0F 79 [16:00:22]process_action close_receipt done [16:00:22]requested_data is exist [16:00:22]produce_requested_data [16:00:22]requested_item fm.sn is exist - process it [16:00:22]wFMCommunicate request_size=4 [16:00:22]MH_SAM_APDU [16:00:22]CAPDU: 80 11 00 00 [16:00:22]Write to MH i2c: E2 08 00 54 11 80 11 00 00 00 00 00 00 DF [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:22]Read from MH i2c: E2 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 17 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 17 00 54 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [16:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:00:22]wFMCommunicate OK [16:00:22]requested_item fd.num is exist - process it [16:00:22]SAM_PROTO_GetFieldsCounters [16:00:22]wFMCommunicate request_size=4 [16:00:22]MH_SAM_APDU [16:00:22]CAPDU: 80 13 00 00 [16:00:22]Write to MH i2c: E2 08 00 55 11 80 13 00 00 00 00 00 00 E2 [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:22]Read from MH i2c: E2 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 62 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 62 00 55 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1F DD 02 00 0E 04 04 00 89 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 98 [16:00:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1F DD 02 00 0E 04 04 00 89 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 [16:00:22]wFMCommunicate OK [16:00:22]SAM_PROTO_GetFieldsCounters done [16:00:22]requested_item shift.num is exist - process it [16:00:22]requested_item shift.opened is exist - process it [16:00:22]req_shift_opened [16:00:22]FM_GetShiftState [16:00:22]SAM_PROTO_GetShiftState [16:00:22]wFMCommunicate request_size=4 [16:00:22]MH_SAM_APDU [16:00:22]CAPDU: 80 13 01 00 [16:00:22]Write to MH i2c: E2 08 00 56 11 80 13 01 00 00 00 00 00 E4 [16:00:22]Write i2c OK [16:00:22]MH_I2C_Read... [16:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:22]Read from MH i2c: E2 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 0E 00 [16:00:22]MH_I2C_Read... [16:00:22]Read from MH i2c: E2 0E 00 56 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D2 [16:00:22]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:00:22]wFMCommunicate OK [16:00:22]SAM_PROTO_GetShiftState done [16:00:22]FM_GetShiftState done [16:00:22]req_shift_opened done [16:00:22]requested_item shift.open_date is exist - process it [16:00:22]req_shift_open_date [16:00:22]req_shift_open_date done [16:00:22]produce_requested_data done [16:00:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187679,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:00:22]process_action_free close_receipt [16:00:22]json_value_free [16:00:22]json_value_free done [16:00:22]process_json_proto returns [16:00:22]Send response to host [16:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187679,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:00:22]free response buf [16:00:22]execute_script done [16:00:22]execute_script returns [16:00:22]free content buf [16:00:22]Sock 10.Close socket [16:00:22]Sock 10.Thread stoped [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:37]accept exits with 7 [16:00:37]New connection [16:00:37]New thread 3067481444 created [16:00:37]Thread 3067624804 joined [16:00:37]Waiting for new connection... [16:00:37] Sock 7.Parse request [16:00:37]Sock 7.Check first char [16:00:37]Sock 7.First char is OK [16:00:37]request: POST /json_proto HTTP/1.0 [16:00:37]Method: POST [16:00:37]URL: /json_proto [16:00:37]Method is POST - this is cgi request [16:00:37]url: /json_proto [16:00:37]query_string will be loaded in cgi processing [16:00:37]execute_cgi json_proto POST (null) [16:00:37]execute_cgi path=json_proto method=POST [16:00:37]POST find Content-Length [16:00:37]Host: 172.17.46.131:8080 [16:00:37]Content-Length: 682 [16:00:37]Content-Type: application/json [16:00:37] [16:00:37]POST finish read [16:00:37]Found Content-Length = 682 [16:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:37]execute_script... [16:00:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 22.260, "sum" : 1600.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:37]POST & json_proto [16:00:37]process_json_proto [16:00:37]json parsed OK: [16:00:37]protocol is kg_v1.0 [16:00:37]action value=close_receipt [16:00:37]process_action close_receipt [16:00:37]cmd_close_receipt [16:00:37]MH_GetDate [16:00:37]Write to MH i2c: F0 00 00 57 11 57 [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: F0 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: F0 09 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: F0 09 00 57 11 00 26 A3 B8 67 7E 41 4F 65 BB [16:00:37]GetLastDocTimeStamp 1740153619 [16:00:37]current date 1740153638 [16:00:37]FM_GetShiftState [16:00:37]SAM_PROTO_GetShiftState [16:00:37]wFMCommunicate request_size=4 [16:00:37]MH_SAM_APDU [16:00:37]CAPDU: 80 13 01 00 [16:00:37]Write to MH i2c: E2 08 00 58 11 80 13 01 00 00 00 00 00 E6 [16:00:37]Write i2c OK [16:00:37]MH_I2C_Read... [16:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:37]Read from MH i2c: E2 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 0E 00 [16:00:37]MH_I2C_Read... [16:00:37]Read from MH i2c: E2 0E 00 58 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D4 [16:00:37]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:00:37]wFMCommunicate OK [16:00:37]SAM_PROTO_GetShiftState done [16:00:37]FM_GetShiftState done [16:00:37]opened in 1740098043 [16:00:37]opened+sec_in_day 1740184443 [16:00:37]quantity*price = 160049 [16:00:37]sum+1 = 160050 [16:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.96 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 174 21.02.2025 16:00 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187680 ФПД: 8753864646471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160038&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187680&fm=8753864646471&tin=02508201610067®Number=0000000000091857&sum=160000 [16:00:38]StoreToDocumentArchive [16:00:38]shift 649 fd 187680 [16:00:38]save to /storage/0649/doc_00187680 [16:00:38]save last doc name /storage/0649/doc_00187680 to /storage/kkm_last_doc_name [16:00:38]save OK [16:00:38]Clear old archive folders... [16:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:38]tlvbuf is 00BBB320 [16:00:38]SAM_PROTO_ClearQueue [16:00:38]wFMCommunicate request_size=4 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 09 00 00 [16:00:38]Write to MH i2c: E2 08 00 65 11 80 09 00 00 00 00 00 00 E8 [16:00:38]Write i2c OK [16:00:38]MH_I2C_Read... [16:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:38]Read from MH i2c: E2 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 03 00 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 03 00 65 11 00 90 00 EA [16:00:38]RAPDU: 90 00 [16:00:38]wFMCommunicate OK [16:00:38]SAM_PROTO_ClearQueue done [16:00:38]KKMCreateOFDPacket [16:00:38]OFDProtocolAddRootSTLVToBuf [16:00:38]FM_MakeSignedData [16:00:38]FM_MakeSignedData [16:00:38]SAM_PROTO_SignData [16:00:38]wFMCommunicate request_size=4 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 0D 01 02 [16:00:38]Write to MH i2c: E2 08 00 66 11 80 0D 01 02 00 00 00 00 F0 [16:00:38]Write i2c OK [16:00:38]MH_I2C_Read... [16:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:38]Read from MH i2c: E2 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 03 00 [16:00:38]MH_I2C_Read... [16:00:38]Read from MH i2c: E2 03 00 66 11 00 90 00 EB [16:00:38]RAPDU: 90 00 [16:00:38]wFMCommunicate OK [16:00:38]wFMCommunicate request_size=255 [16:00:38]MH_SAM_APDU [16:00:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 26 A3 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DD 02 00 35 04 06 00 07 [16:00:38]Write to MH i2c: E2 02 01 67 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 26 A3 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DD 02 00 35 04 06 00 07 00 00 63 [16:00:38]Write i2c OK [16:00:38]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 03 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 03 00 67 11 00 90 00 EC [16:00:39]RAPDU: 90 00 [16:00:39]wFMCommunicate OK [16:00:39]wFMCommunicate request_size=10 [16:00:39]MH_SAM_APDU [16:00:39]CAPDU: 80 0D 02 02 05 F6 2A FE 1F 47 [16:00:39]Write to MH i2c: E2 0D 00 68 11 80 0D 02 02 05 00 F6 2A FE 1F 47 00 00 81 [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 03 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 03 00 68 11 00 90 00 ED [16:00:39]RAPDU: 90 00 [16:00:39]wFMCommunicate OK [16:00:39]wFMCommunicate request_size=4 [16:00:39]MH_SAM_APDU [16:00:39]CAPDU: 80 0D 03 02 [16:00:39]Write to MH i2c: E2 08 00 69 11 80 0D 03 02 00 00 00 00 F5 [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 0B 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 0B 00 69 11 00 EC BC 6C C5 A3 0A 7F 9E 90 00 99 [16:00:39]RAPDU: EC BC 6C C5 A3 0A 7F 9E 90 00 [16:00:39]wFMCommunicate OK [16:00:39]SAM_PROTO_SignData done [16:00:39]FM_MakeSignedData done [16:00:39]CreateOFDProtocolMessage [16:00:39]wFMCommunicate request_size=4 [16:00:39]MH_SAM_APDU [16:00:39]CAPDU: 80 11 00 00 [16:00:39]Write to MH i2c: E2 08 00 6A 11 80 11 00 00 00 00 00 00 F5 [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:39]Read from MH i2c: E2 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 17 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: E2 17 00 6A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [16:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:00:39]wFMCommunicate OK [16:00:39]CreateOFDProtocolMessage done [16:00:39]OFDSenderStorePacket 187680 [16:00:39]StoreOFDPacket docnum=187680 [16:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C1 AF 07 01 AE A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 26 A3 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DD 02 00 35 04 06 00 07 F6 2A FE 1F 47 EC BC 6C C5 A3 0A 7F 9E [16:00:39]CheckFolder [16:00:39]dirname=/storage/ofd_packets [16:00:39]CheckFolder done [16:00:39]ProducePacketName [16:00:39]name=ofd_packets/00187680 [16:00:39]NVStorageSaveData ofd_packets/00187680 [16:00:39]File name is /storage/ofd_packets/00187680 [16:00:39]Write 301 bytes [16:00:39]NVStorageSaveData done [16:00:39]OFDSenderStorePacket done [16:00:39]KKMCreateOFDPacket done [16:00:39]NVStorageSaveData kkm_last_timestamp [16:00:39]File name is /storage/kkm_last_timestamp [16:00:39]Write 4 bytes [16:00:39]NVStorageSaveData done [16:00:39]ExternCall_PrintAddStr [16:00:39]wPrintStart [16:00:39]Write to MH i2c: 01 00 00 6B 11 7C [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: 01 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: 01 07 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: 01 07 00 6B 11 00 00 00 00 00 FF 0F 91 [16:00:39]RasterBufferAndPrint [16:00:39]line Счет N : (1)412839 [16:00:39]line ИНН: 02508201610067 [16:00:39]line Контрольно-Кассовый Чек [16:00:39]line ПРОДАЖА [16:00:39]line ТРК (МРК, ГНК) : 33 [16:00:39]line Товар: 2710124500 [16:00:39]line Аи-95-К-5 [16:00:39]line 22.260 * 71.90 [16:00:39]line = 1600.49 [16:00:39]line НДС 12% НСП 1% [16:00:39]line > о реализуемом товаре [16:00:39]line ОКРУГЛЕНИЕ: -0.49 [16:00:39]line ИТОГО: 1600.00 [16:00:39]line Внесено: 1600.00 [16:00:39]line СДАЧА: 0.00 [16:00:39]line НСП 1% : 14.16 [16:00:39]line НДС 12% : 169.96 [16:00:39]line Наличными: 1600.00 [16:00:39]line Безнал.: 0.00 [16:00:39]line Место: АЗС № 92 "Партнер Нефть" [16:00:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:00:39]line СНО: Общий режим [16:00:39]line Чек 174 21.02.2025 16:00 [16:00:39]line Смена: 649 ФФД: 1.0 [16:00:39]line ЗНМ: 0300000118 [16:00:39]line РНМ: 0000000000091857 [16:00:39]line Версия ККМ: 001 [16:00:39]line ФМ: 0000000000871826 [16:00:39]line ФД: 187680 [16:00:39]line ФПД: 8753864646471 [16:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160038&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187680&fm=8753864646471&tin=02508201610067®Number=0000000000091857&sum=160000 [16:00:39]written 0, free lines is 4095 [16:00:39]OFD Sender: Processing packet 187680 [packets to send 49, broken 48] [16:00:39]ProducePacketName [16:00:39]name=ofd_packets/00187680 [16:00:39]OFD Sender: To server: pG, [16:00:39]CommunicateWithHost lk.salyk.kg:30040 [16:00:39]ConnectInit lk.salyk.kg [16:00:39]Connected sock=10 [16:00:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C1 AF 07 01 AE A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 31 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 26 A3 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DD 02 00 35 04 06 00 07 F6 2A FE 1F 47 EC BC 6C C5 A3 0A 7F 9E [16:00:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 74 FB 47 00 0C C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DD 02 00 F4 03 04 00 73 49 B8 67 B6 04 01 00 00 0E 6F 02 A9 22 2B 06 04 [16:00:39]CommunicateWithHost err = 0 [16:00:39]CheckOFDResponse [16:00:39]1017 (14) - 77093643461234 [16:00:39]1041 (16) - 0000000000871826 [16:00:39]1040 (4) - 187680 [16:00:39]1012 (4) - 21.02.2025 09:37 [16:00:39]1206 (1) - 0 [16:00:39]OFD Sender: Remove packet 187680 [16:00:39]ProducePacketName [16:00:39]name=ofd_packets/00187680 [16:00:39]NVStorageDeleteData [16:00:39]Write to MH i2c: 01 00 00 96 11 A7 [16:00:39]Write i2c OK [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: 01 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: 01 07 00 [16:00:39]MH_I2C_Read... [16:00:39]Read from MH i2c: 01 07 00 96 11 00 00 00 00 00 F5 0C AF [16:00:39]RasterBufferAndPrint [16:00:39]line [16:00:39]line [16:00:39]line [16:00:39]line [16:00:39]line [16:00:39]written 0, free lines is 3323 [16:00:40]MH_Cut [16:00:40]Write to MH i2c: D1 01 00 9D 11 01 80 [16:00:40]Write i2c OK [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: D1 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: D1 01 00 [16:00:40]MH_I2C_Read... [16:00:40]Read from MH i2c: D1 01 00 9D 11 00 7F [16:00:40]Write to MH i2c: 01 00 00 9E 11 AF [16:00:40]Write i2c OK [16:00:40]MH_I2C_Read... [16:00:40]OFD Sender: No OFD packet to send [16:00:40]*** Cut start [16:00:40]*** Partial cut [16:00:40]*** CUTSNS_PIN = 1 [16:00:40]*** CUTSNS_PIN = 0 [16:00:41]*** Brake cut motor [16:00:41]Read from MH i2c: 01 [16:00:41]MH_I2C_Read... [16:00:41]*** Stop cut motor [16:00:41]*** Cut end [16:00:41]Read from MH i2c: 01 07 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: 01 07 00 9E 11 00 00 00 00 00 FF 0F C4 [16:00:41]process_action close_receipt done [16:00:41]requested_data is exist [16:00:41]produce_requested_data [16:00:41]requested_item fm.sn is exist - process it [16:00:41]wFMCommunicate request_size=4 [16:00:41]MH_SAM_APDU [16:00:41]CAPDU: 80 11 00 00 [16:00:41]Write to MH i2c: E2 08 00 9F 11 80 11 00 00 00 00 00 00 2A [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:41]Read from MH i2c: E2 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 17 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 17 00 9F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [16:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:00:41]wFMCommunicate OK [16:00:41]requested_item fd.num is exist - process it [16:00:41]SAM_PROTO_GetFieldsCounters [16:00:41]wFMCommunicate request_size=4 [16:00:41]MH_SAM_APDU [16:00:41]CAPDU: 80 13 00 00 [16:00:41]Write to MH i2c: E2 08 00 A0 11 80 13 00 00 00 00 00 00 2D [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:41]Read from MH i2c: E2 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 62 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 62 00 A0 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 20 DD 02 00 0E 04 04 00 89 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 E7 [16:00:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 20 DD 02 00 0E 04 04 00 89 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 [16:00:41]wFMCommunicate OK [16:00:41]SAM_PROTO_GetFieldsCounters done [16:00:41]requested_item shift.num is exist - process it [16:00:41]requested_item shift.opened is exist - process it [16:00:41]req_shift_opened [16:00:41]FM_GetShiftState [16:00:41]SAM_PROTO_GetShiftState [16:00:41]wFMCommunicate request_size=4 [16:00:41]MH_SAM_APDU [16:00:41]CAPDU: 80 13 01 00 [16:00:41]Write to MH i2c: E2 08 00 A1 11 80 13 01 00 00 00 00 00 2F [16:00:41]Write i2c OK [16:00:41]MH_I2C_Read... [16:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:41]Read from MH i2c: E2 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 0E 00 [16:00:41]MH_I2C_Read... [16:00:41]Read from MH i2c: E2 0E 00 A1 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1D [16:00:41]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:00:41]wFMCommunicate OK [16:00:41]SAM_PROTO_GetShiftState done [16:00:41]FM_GetShiftState done [16:00:41]req_shift_opened done [16:00:41]requested_item shift.open_date is exist - process it [16:00:41]req_shift_open_date [16:00:41]req_shift_open_date done [16:00:41]produce_requested_data done [16:00:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187680,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:00:41]process_action_free close_receipt [16:00:41]json_value_free [16:00:41]json_value_free done [16:00:41]process_json_proto returns [16:00:41]Send response to host [16:00:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187680,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:00:41]free response buf [16:00:41]execute_script done [16:00:41]execute_script returns [16:00:41]free content buf [16:00:41]Sock 7.Close socket [16:00:41]Sock 7.Thread stoped [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:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:42]accept exits with 9 [16:06:42]New connection [16:06:42]New thread 3067624804 created [16:06:42]Thread 3067481444 joined [16:06:42]Waiting for new connection... [16:06:42] Sock 9.Parse request [16:06:42]Sock 9.Check first char [16:06:42]Sock 9.First char is OK [16:06:42]request: POST /json_proto HTTP/1.0 [16:06:42]Method: POST [16:06:42]URL: /json_proto [16:06:42]Method is POST - this is cgi request [16:06:42]url: /json_proto [16:06:42]query_string will be loaded in cgi processing [16:06:42]execute_cgi json_proto POST (null) [16:06:42]execute_cgi path=json_proto method=POST [16:06:42]POST find Content-Length [16:06:42]Host: 172.17.46.131:8080 [16:06:42]Content-Length: 754 [16:06:42]Content-Type: application/json [16:06:42] [16:06:42]POST finish read [16:06:42]Found Content-Length = 754 [16:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:42]execute_script... [16:06: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)412841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:42]POST & json_proto [16:06:42]process_json_proto [16:06:42]json parsed OK: [16:06:42]protocol is kg_v1.0 [16:06:42]action value=close_receipt [16:06:42]process_action close_receipt [16:06:42]cmd_close_receipt [16:06:42]MH_GetDate [16:06:42]Write to MH i2c: F0 00 00 A2 11 A2 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: F0 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: F0 09 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: F0 09 00 A2 11 00 93 A4 B8 67 7E 41 4F 65 74 [16:06:42]GetLastDocTimeStamp 1740153638 [16:06:42]current date 1740154003 [16:06:42]FM_GetShiftState [16:06:42]SAM_PROTO_GetShiftState [16:06:42]wFMCommunicate request_size=4 [16:06:42]MH_SAM_APDU [16:06:42]CAPDU: 80 13 01 00 [16:06:42]Write to MH i2c: E2 08 00 A3 11 80 13 01 00 00 00 00 00 31 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:42]Read from MH i2c: E2 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 0E 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 0E 00 A3 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1F [16:06:42]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:06:42]wFMCommunicate OK [16:06:42]SAM_PROTO_GetShiftState done [16:06:42]FM_GetShiftState done [16:06:42]opened in 1740098043 [16:06:42]opened+sec_in_day 1740184443 [16:06:42]quantity*price = 0 [16:06:42]sum+1 = 1 [16:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 175 21.02.2025 16:06 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116166 ФМ: 0000000000871826 ФД: 187681 ФПД: 68013274798657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160643&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187681&fm=68013274798657&tin=02508201610067®Number=0000000000091857&sum=0 [16:06:43]StoreToDocumentArchive [16:06:43]shift 649 fd 187681 [16:06:43]save to /storage/0649/doc_00187681 [16:06:43]save last doc name /storage/0649/doc_00187681 to /storage/kkm_last_doc_name [16:06:43]save OK [16:06:43]Clear old archive folders... [16:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:43]tlvbuf is 00BF2D10 [16:06:43]SAM_PROTO_ClearQueue [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 09 00 00 [16:06:43]Write to MH i2c: E2 08 00 B0 11 80 09 00 00 00 00 00 00 33 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 B0 11 00 90 00 35 [16:06:43]RAPDU: 90 00 [16:06:43]wFMCommunicate OK [16:06:43]SAM_PROTO_ClearQueue done [16:06:43]KKMCreateOFDPacket [16:06:43]OFDProtocolAddRootSTLVToBuf [16:06:43]FM_MakeSignedData [16:06:43]FM_MakeSignedData [16:06:43]SAM_PROTO_SignData [16:06:43]wFMCommunicate request_size=4 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 0D 01 02 [16:06:43]Write to MH i2c: E2 08 00 B1 11 80 0D 01 02 00 00 00 00 3B [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 B1 11 00 90 00 36 [16:06:43]RAPDU: 90 00 [16:06:43]wFMCommunicate OK [16:06:43]wFMCommunicate request_size=255 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 AF 00 00 00 F4 03 04 00 93 A4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DD 02 00 35 04 06 00 3D [16:06:43]Write to MH i2c: E2 02 01 B2 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 AF 00 00 00 F4 03 04 00 93 A4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DD 02 00 35 04 06 00 3D 00 00 B9 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:43]Read from MH i2c: E2 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 [16:06:43]MH_I2C_Read... [16:06:43]Read from MH i2c: E2 03 00 B2 11 00 90 00 37 [16:06:43]RAPDU: 90 00 [16:06:43]wFMCommunicate OK [16:06:43]wFMCommunicate request_size=10 [16:06:43]MH_SAM_APDU [16:06:43]CAPDU: 80 0D 02 02 05 DB 93 15 9A 41 [16:06:43]Write to MH i2c: E2 0D 00 B3 11 80 0D 02 02 05 00 DB 93 15 9A 41 00 00 A6 [16:06:43]Write i2c OK [16:06:43]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 03 00 B3 11 00 90 00 38 [16:06:44]RAPDU: 90 00 [16:06:44]wFMCommunicate OK [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 0D 03 02 [16:06:44]Write to MH i2c: E2 08 00 B4 11 80 0D 03 02 00 00 00 00 40 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0B 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0B 00 B4 11 00 A5 7F 8B 95 C0 E2 B5 95 90 00 71 [16:06:44]RAPDU: A5 7F 8B 95 C0 E2 B5 95 90 00 [16:06:44]wFMCommunicate OK [16:06:44]SAM_PROTO_SignData done [16:06:44]FM_MakeSignedData done [16:06:44]CreateOFDProtocolMessage [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 11 00 00 [16:06:44]Write to MH i2c: E2 08 00 B5 11 80 11 00 00 00 00 00 00 40 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 17 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 17 00 B5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [16:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:06:44]wFMCommunicate OK [16:06:44]CreateOFDProtocolMessage done [16:06:44]OFDSenderStorePacket 187681 [16:06:44]StoreOFDPacket docnum=187681 [16:06:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 51 E2 07 01 A4 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 AF 00 00 00 F4 03 04 00 93 A4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DD 02 00 35 04 06 00 3D DB 93 15 9A 41 A5 7F 8B 95 C0 E2 B5 95 [16:06:44]CheckFolder [16:06:44]dirname=/storage/ofd_packets [16:06:44]CheckFolder done [16:06:44]ProducePacketName [16:06:44]name=ofd_packets/00187681 [16:06:44]NVStorageSaveData ofd_packets/00187681 [16:06:44]File name is /storage/ofd_packets/00187681 [16:06:44]Write 301 bytes [16:06:44]NVStorageSaveData done [16:06:44]OFDSenderStorePacket done [16:06:44]KKMCreateOFDPacket done [16:06:44]NVStorageSaveData kkm_last_timestamp [16:06:44]File name is /storage/kkm_last_timestamp [16:06:44]Write 4 bytes [16:06:44]NVStorageSaveData done [16:06:44]OFD Sender: Processing packet 187681 [packets to send 49, broken 48] [16:06:44]ProducePacketName [16:06:44]name=ofd_packets/00187681 [16:06:44]OFD Sender: To server: pG, [16:06:44]CommunicateWithHost lk.salyk.kg:30040 [16:06:44]ConnectInit lk.salyk.kg [16:06:44]ExternCall_PrintAddStr [16:06:44]wPrintStart [16:06:44]Write to MH i2c: 01 00 00 B6 11 C7 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 07 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 07 00 B6 11 00 00 00 00 00 FF 0F DC [16:06:44]RasterBufferAndPrint [16:06:44]line Счет N : (1)412841 [16:06:44]line ИНН: 02508201610067 [16:06:44]line Контрольно-Кассовый Чек [16:06:44]line ПРОДАЖА [16:06:44]line ТРК (МРК, ГНК) : 32 [16:06:44]line Товар: 2710124130 [16:06:44]line Аи-92-К-2 [16:06:44]line 30.000 * 0.00 [16:06:44]line = 0.00 [16:06:44]line НДС 12% НСП 1% [16:06:44]line > о реализуемом товаре [16:06:44]line ИТОГО: 0.00 [16:06:44]line НСП 1% : 0.00 [16:06:44]line НДС 12% : 0.00 [16:06:44]line Наличными: 0.00 [16:06:44]line Безнал.: 0.00 [16:06:44]line Место: АЗС № 92 "Партнер Нефть" [16:06:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:06:44]line СНО: Общий режим [16:06:44]line Чек 175 21.02.2025 16:06 [16:06:44]line Смена: 649 ФФД: 1.0 [16:06:44]line ЗНМ: 0300000118 [16:06:44]line РНМ: 0000000000091857 [16:06:44]line Версия ККМ: 001 [16:06:44]line Талоны: ТК ГПНА Online [16:06:44]line 30116166 [16:06:44]line ФМ: 0000000000871826 [16:06:44]line ФД: 187681 [16:06:44]line ФПД: 68013274798657 [16:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160643&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187681&fm=68013274798657&tin=02508201610067®Number=0000000000091857&sum=0 [16:06:44]Connected sock=11 [16:06:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 51 E2 07 01 A4 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 AF 00 00 00 F4 03 04 00 93 A4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DD 02 00 35 04 06 00 3D DB 93 15 9A 41 A5 7F 8B 95 C0 E2 B5 95 [16:06:44]written 0, free lines is 4095 [16:06:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C6 CD 47 00 7E C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DD 02 00 F4 03 04 00 E0 4A B8 67 B6 04 01 00 00 04 62 54 5A EB 7B CA ED [16:06:44]CommunicateWithHost err = 0 [16:06:44]CheckOFDResponse [16:06:44]1017 (14) - 77093643461234 [16:06:44]1041 (16) - 0000000000871826 [16:06:44]1040 (4) - 187681 [16:06:44]1012 (4) - 21.02.2025 09:44 [16:06:44]1206 (1) - 0 [16:06:44]OFD Sender: Remove packet 187681 [16:06:44]ProducePacketName [16:06:44]name=ofd_packets/00187681 [16:06:44]NVStorageDeleteData [16:06:44]Write to MH i2c: 01 00 00 E0 11 F1 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 07 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 07 00 E0 11 00 00 00 00 00 FE 0C 02 [16:06:44]RasterBufferAndPrint [16:06:44]line [16:06:44]line [16:06:44]line [16:06:44]line [16:06:44]line [16:06:44]written 0, free lines is 3335 [16:06:44]MH_Cut [16:06:44]Write to MH i2c: D1 01 00 E7 11 01 CA [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: D1 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: D1 01 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: D1 01 00 E7 11 00 C9 [16:06:44]Write to MH i2c: 01 00 00 E8 11 F9 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:45]OFD Sender: No OFD packet to send [16:06:45]*** Cut start [16:06:45]*** Partial cut [16:06:45]*** CUTSNS_PIN = 1 [16:06:45]*** CUTSNS_PIN = 0 [16:06:45]*** Brake cut motor [16:06:46]Read from MH i2c: 01 [16:06:46]MH_I2C_Read... [16:06:46]*** Stop cut motor [16:06:46]*** Cut end [16:06:46]Read from MH i2c: 01 07 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: 01 07 00 E8 11 00 00 00 00 00 FF 0F 0E [16:06:46]process_action close_receipt done [16:06:46]requested_data is exist [16:06:46]produce_requested_data [16:06:46]requested_item fm.sn is exist - process it [16:06:46]wFMCommunicate request_size=4 [16:06:46]MH_SAM_APDU [16:06:46]CAPDU: 80 11 00 00 [16:06:46]Write to MH i2c: E2 08 00 E9 11 80 11 00 00 00 00 00 00 74 [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:46]Read from MH i2c: E2 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: E2 17 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: E2 17 00 E9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [16:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:06:46]wFMCommunicate OK [16:06:46]requested_item fd.num is exist - process it [16:06:46]SAM_PROTO_GetFieldsCounters [16:06:46]wFMCommunicate request_size=4 [16:06:46]MH_SAM_APDU [16:06:46]CAPDU: 80 13 00 00 [16:06:46]Write to MH i2c: E2 08 00 EA 11 80 13 00 00 00 00 00 00 77 [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:46]Read from MH i2c: E2 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: E2 62 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: E2 62 00 EA 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 21 DD 02 00 0E 04 04 00 89 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 35 [16:06:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 21 DD 02 00 0E 04 04 00 89 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 [16:06:46]wFMCommunicate OK [16:06:46]SAM_PROTO_GetFieldsCounters done [16:06:46]requested_item shift.num is exist - process it [16:06:46]requested_item shift.opened is exist - process it [16:06:46]req_shift_opened [16:06:46]FM_GetShiftState [16:06:46]SAM_PROTO_GetShiftState [16:06:46]wFMCommunicate request_size=4 [16:06:46]MH_SAM_APDU [16:06:46]CAPDU: 80 13 01 00 [16:06:46]Write to MH i2c: E2 08 00 EB 11 80 13 01 00 00 00 00 00 79 [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:46]Read from MH i2c: E2 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: E2 0E 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: E2 0E 00 EB 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 67 [16:06:46]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:06:46]wFMCommunicate OK [16:06:46]SAM_PROTO_GetShiftState done [16:06:46]FM_GetShiftState done [16:06:46]req_shift_opened done [16:06:46]requested_item shift.open_date is exist - process it [16:06:46]req_shift_open_date [16:06:46]req_shift_open_date done [16:06:46]produce_requested_data done [16:06:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187681,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:06:46]process_action_free close_receipt [16:06:46]json_value_free [16:06:46]json_value_free done [16:06:46]process_json_proto returns [16:06:46]Send response to host [16:06:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187681,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:06:46]free response buf [16:06:46]execute_script done [16:06:46]execute_script returns [16:06:46]free content buf [16:06:46]Sock 9.Close socket [16:06:46]Sock 9.Thread stoped [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:43]accept exits with 7 [16:07:43]New connection [16:07:43]New thread 3067481444 created [16:07:43]Thread 3067624804 joined [16:07:43]Waiting for new connection... [16:07:43] Sock 7.Parse request [16:07:43]Sock 7.Check first char [16:07:43]Sock 7.First char is OK [16:07:43]request: POST /json_proto HTTP/1.0 [16:07:43]Method: POST [16:07:43]URL: /json_proto [16:07:43]Method is POST - this is cgi request [16:07:43]url: /json_proto [16:07:43]query_string will be loaded in cgi processing [16:07:43]execute_cgi json_proto POST (null) [16:07:43]execute_cgi path=json_proto method=POST [16:07:43]POST find Content-Length [16:07:43]Host: 172.17.46.131:8080 [16:07:43]Content-Length: 677 [16:07:43]Content-Type: application/json [16:07:43] [16:07:43]POST finish read [16:07:43]Found Content-Length = 677 [16:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:43]execute_script... [16:07:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:43]POST & json_proto [16:07:43]process_json_proto [16:07:43]json parsed OK: [16:07:43]protocol is kg_v1.0 [16:07:43]action value=close_receipt [16:07:43]process_action close_receipt [16:07:43]cmd_close_receipt [16:07:43]MH_GetDate [16:07:43]Write to MH i2c: F0 00 00 EC 11 EC [16:07:43]Write i2c OK [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: F0 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: F0 09 00 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: F0 09 00 EC 11 00 D0 A4 B8 67 7E 41 4F 65 FB [16:07:43]GetLastDocTimeStamp 1740154003 [16:07:43]current date 1740154064 [16:07:43]FM_GetShiftState [16:07:43]SAM_PROTO_GetShiftState [16:07:43]wFMCommunicate request_size=4 [16:07:43]MH_SAM_APDU [16:07:43]CAPDU: 80 13 01 00 [16:07:43]Write to MH i2c: E2 08 00 ED 11 80 13 01 00 00 00 00 00 7B [16:07:43]Write i2c OK [16:07:43]MH_I2C_Read... [16:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:43]Read from MH i2c: E2 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 0E 00 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 0E 00 ED 11 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 69 [16:07:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:07:43]wFMCommunicate OK [16:07:43]SAM_PROTO_GetShiftState done [16:07:43]FM_GetShiftState done [16:07:43]opened in 1740098043 [16:07:43]opened+sec_in_day 1740184443 [16:07:43]quantity*price = 40060 [16:07:43]sum+1 = 40062 [16:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 176 21.02.2025 16:07 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187682 ФПД: 14893908518575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160744&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187682&fm=14893908518575&tin=02508201610067®Number=0000000000091857&sum=40000 [16:07:44]StoreToDocumentArchive [16:07:44]shift 649 fd 187682 [16:07:44]save to /storage/0649/doc_00187682 [16:07:44]save last doc name /storage/0649/doc_00187682 to /storage/kkm_last_doc_name [16:07:44]save OK [16:07:44]Clear old archive folders... [16:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:44]tlvbuf is 00BE5C90 [16:07:44]SAM_PROTO_ClearQueue [16:07:44]wFMCommunicate request_size=4 [16:07:44]MH_SAM_APDU [16:07:44]CAPDU: 80 09 00 00 [16:07:44]Write to MH i2c: E2 08 00 FA 11 80 09 00 00 00 00 00 00 7D [16:07:44]Write i2c OK [16:07:44]MH_I2C_Read... [16:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:44]Read from MH i2c: E2 [16:07:44]MH_I2C_Read... [16:07:44]Read from MH i2c: E2 03 00 [16:07:44]MH_I2C_Read... [16:07:44]Read from MH i2c: E2 03 00 FA 11 00 90 00 7F [16:07:44]RAPDU: 90 00 [16:07:44]wFMCommunicate OK [16:07:44]SAM_PROTO_ClearQueue done [16:07:44]KKMCreateOFDPacket [16:07:44]OFDProtocolAddRootSTLVToBuf [16:07:44]FM_MakeSignedData [16:07:44]FM_MakeSignedData [16:07:44]SAM_PROTO_SignData [16:07:44]wFMCommunicate request_size=4 [16:07:44]MH_SAM_APDU [16:07:44]CAPDU: 80 0D 01 02 [16:07:44]Write to MH i2c: E2 08 00 FB 11 80 0D 01 02 00 00 00 00 85 [16:07:44]Write i2c OK [16:07:44]MH_I2C_Read... [16:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:44]Read from MH i2c: E2 [16:07:44]MH_I2C_Read... [16:07:44]Read from MH i2c: E2 03 00 [16:07:44]MH_I2C_Read... [16:07:44]Read from MH i2c: E2 03 00 FB 11 00 90 00 80 [16:07:44]RAPDU: 90 00 [16:07:44]wFMCommunicate OK [16:07:44]wFMCommunicate request_size=255 [16:07:44]MH_SAM_APDU [16:07:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 A4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DD 02 00 35 04 06 00 0D [16:07:44]Write to MH i2c: E2 02 01 FC 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 A4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DD 02 00 35 04 06 00 0D 00 00 F4 [16:07:44]Write i2c OK [16:07:44]MH_I2C_Read... [16:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:45]Read from MH i2c: E2 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: E2 03 00 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: E2 03 00 FC 11 00 90 00 81 [16:07:45]RAPDU: 90 00 [16:07:45]wFMCommunicate OK [16:07:45]wFMCommunicate request_size=10 [16:07:45]MH_SAM_APDU [16:07:45]CAPDU: 80 0D 02 02 05 8B C2 20 66 AF [16:07:45]Write to MH i2c: E2 0D 00 FD 11 80 0D 02 02 05 00 8B C2 20 66 AF 00 00 14 [16:07:45]Write i2c OK [16:07:45]MH_I2C_Read... [16:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:45]Read from MH i2c: E2 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: E2 03 00 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: E2 03 00 FD 11 00 90 00 82 [16:07:45]RAPDU: 90 00 [16:07:45]wFMCommunicate OK [16:07:45]wFMCommunicate request_size=4 [16:07:45]MH_SAM_APDU [16:07:45]CAPDU: 80 0D 03 02 [16:07:45]Write to MH i2c: E2 08 00 FE 11 80 0D 03 02 00 00 00 00 8A [16:07:45]Write i2c OK [16:07:45]MH_I2C_Read... [16:07:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:45]Read from MH i2c: E2 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: E2 0B 00 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: E2 0B 00 FE 11 00 0C E4 E5 22 03 E9 F9 B2 90 00 19 [16:07:45]RAPDU: 0C E4 E5 22 03 E9 F9 B2 90 00 [16:07:45]wFMCommunicate OK [16:07:45]SAM_PROTO_SignData done [16:07:45]FM_MakeSignedData done [16:07:45]CreateOFDProtocolMessage [16:07:45]wFMCommunicate request_size=4 [16:07:45]MH_SAM_APDU [16:07:45]CAPDU: 80 11 00 00 [16:07:45]Write to MH i2c: E2 08 00 FF 11 80 11 00 00 00 00 00 00 8A [16:07:45]Write i2c OK [16:07:45]MH_I2C_Read... [16:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:45]Read from MH i2c: E2 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: E2 17 00 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: E2 17 00 FF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [16:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:07:45]wFMCommunicate OK [16:07:45]CreateOFDProtocolMessage done [16:07:45]OFDSenderStorePacket 187682 [16:07:45]StoreOFDPacket docnum=187682 [16:07:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 07 FA 07 01 9C C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 A4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DD 02 00 35 04 06 00 0D 8B C2 20 66 AF 0C E4 E5 22 03 E9 F9 B2 [16:07:45]CheckFolder [16:07:45]dirname=/storage/ofd_packets [16:07:45]CheckFolder done [16:07:45]ProducePacketName [16:07:45]name=ofd_packets/00187682 [16:07:45]NVStorageSaveData ofd_packets/00187682 [16:07:45]File name is /storage/ofd_packets/00187682 [16:07:45]Write 301 bytes [16:07:45]NVStorageSaveData done [16:07:45]OFDSenderStorePacket done [16:07:45]KKMCreateOFDPacket done [16:07:45]NVStorageSaveData kkm_last_timestamp [16:07:45]File name is /storage/kkm_last_timestamp [16:07:45]Write 4 bytes [16:07:45]NVStorageSaveData done [16:07:45]ExternCall_PrintAddStr [16:07:45]wPrintStart [16:07:45]Write to MH i2c: 01 00 00 00 12 12 [16:07:45]Write i2c OK [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: 01 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: 01 07 00 [16:07:45]MH_I2C_Read... [16:07:45]Read from MH i2c: 01 07 00 00 12 00 00 00 00 00 FF 0F 27 [16:07:45]RasterBufferAndPrint [16:07:45]line Счет N : (1)412843 [16:07:45]line ИНН: 02508201610067 [16:07:45]line Контрольно-Кассовый Чек [16:07:45]line ПРОДАЖА [16:07:45]line ТРК (МРК, ГНК) : 12 [16:07:45]line Товар: 2710124130 [16:07:45]line Аи-92-К-2 [16:07:45]line 6.240 * 64.20 [16:07:45]line = 400.61 [16:07:45]line НДС 12% НСП 1% [16:07:45]line > о реализуемом товаре [16:07:45]line ОКРУГЛЕНИЕ: -0.61 [16:07:45]line ИТОГО: 400.00 [16:07:45]line Внесено: 400.00 [16:07:45]line СДАЧА: 0.00 [16:07:45]line НСП 1% : 3.54 [16:07:45]line НДС 12% : 42.54 [16:07:45]line Наличными: 400.00 [16:07:45]line Безнал.: 0.00 [16:07:45]line Место: АЗС № 92 "Партнер Нефть" [16:07:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:07:45]line СНО: Общий режим [16:07:45]line Чек 176 21.02.2025 16:07 [16:07:45]line Смена: 649 ФФД: 1.0 [16:07:45]line ЗНМ: 0300000118 [16:07:45]line РНМ: 0000000000091857 [16:07:45]line Версия ККМ: 001 [16:07:45]line ФМ: 0000000000871826 [16:07:45]line ФД: 187682 [16:07:45]line ФПД: 14893908518575 [16:07:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160744&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187682&fm=14893908518575&tin=02508201610067®Number=0000000000091857&sum=40000 [16:07:45]written 0, free lines is 4095 [16:07:45]OFD Sender: Processing packet 187682 [packets to send 49, broken 48] [16:07:45]ProducePacketName [16:07:45]name=ofd_packets/00187682 [16:07:45]OFD Sender: To server: pG, [16:07:45]CommunicateWithHost lk.salyk.kg:30040 [16:07:45]ConnectInit lk.salyk.kg [16:07:45]Connected sock=10 [16:07:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 07 FA 07 01 9C C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 D0 A4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DD 02 00 35 04 06 00 0D 8B C2 20 66 AF 0C E4 E5 22 03 E9 F9 B2 [16:07:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CB F5 47 00 97 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 38 32 36 10 04 04 00 22 DD 02 00 F4 03 04 00 1D 4B B8 67 B6 04 01 00 00 6C 29 BB DC 3D D7 CE E5 [16:07:46]CommunicateWithHost err = 0 [16:07:46]CheckOFDResponse [16:07:46]1017 (14) - 77093643461234 [16:07:46]1041 (16) - 0000000000871826 [16:07:46]1040 (4) - 187682 [16:07:46]1012 (4) - 21.02.2025 09:45 [16:07:46]1206 (1) - 0 [16:07:46]OFD Sender: Remove packet 187682 [16:07:46]ProducePacketName [16:07:46]name=ofd_packets/00187682 [16:07:46]NVStorageDeleteData [16:07:46]Write to MH i2c: 01 00 00 2B 12 3D [16:07:46]Write i2c OK [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: 01 [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: 01 07 00 [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: 01 07 00 2B 12 00 00 00 00 00 F3 0C 43 [16:07:46]RasterBufferAndPrint [16:07:46]line [16:07:46]line [16:07:46]line [16:07:46]line [16:07:46]line [16:07:46]written 0, free lines is 3321 [16:07:46]MH_Cut [16:07:46]Write to MH i2c: D1 01 00 32 12 01 16 [16:07:46]Write i2c OK [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: D1 [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: D1 01 00 [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: D1 01 00 32 12 00 15 [16:07:46]Write to MH i2c: 01 00 00 33 12 45 [16:07:46]Write i2c OK [16:07:46]MH_I2C_Read... [16:07:46]OFD Sender: No OFD packet to send [16:07:46]*** Cut start [16:07:46]*** Partial cut [16:07:46]*** CUTSNS_PIN = 1 [16:07:46]*** CUTSNS_PIN = 0 [16:07:47]*** Brake cut motor [16:07:47]Read from MH i2c: 01 [16:07:47]MH_I2C_Read... [16:07:47]*** Stop cut motor [16:07:47]*** Cut end [16:07:47]Read from MH i2c: 01 07 00 [16:07:47]MH_I2C_Read... [16:07:47]Read from MH i2c: 01 07 00 33 12 00 00 00 00 00 FF 0F 5A [16:07:47]process_action close_receipt done [16:07:47]requested_data is exist [16:07:47]produce_requested_data [16:07:47]requested_item fm.sn is exist - process it [16:07:47]wFMCommunicate request_size=4 [16:07:47]MH_SAM_APDU [16:07:47]CAPDU: 80 11 00 00 [16:07:47]Write to MH i2c: E2 08 00 34 12 80 11 00 00 00 00 00 00 C0 [16:07:47]Write i2c OK [16:07:47]MH_I2C_Read... [16:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:47]Read from MH i2c: E2 [16:07:47]MH_I2C_Read... [16:07:47]Read from MH i2c: E2 17 00 [16:07:47]MH_I2C_Read... [16:07:47]Read from MH i2c: E2 17 00 34 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [16:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:07:47]wFMCommunicate OK [16:07:47]requested_item fd.num is exist - process it [16:07:47]SAM_PROTO_GetFieldsCounters [16:07:47]wFMCommunicate request_size=4 [16:07:47]MH_SAM_APDU [16:07:47]CAPDU: 80 13 00 00 [16:07:47]Write to MH i2c: E2 08 00 35 12 80 13 00 00 00 00 00 00 C3 [16:07:47]Write i2c OK [16:07:47]MH_I2C_Read... [16:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:47]Read from MH i2c: E2 [16:07:47]MH_I2C_Read... [16:07:47]Read from MH i2c: E2 62 00 [16:07:47]MH_I2C_Read... [16:07:47]Read from MH i2c: E2 62 00 35 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 22 DD 02 00 0E 04 04 00 89 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 85 [16:07:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 22 DD 02 00 0E 04 04 00 89 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 [16:07:47]wFMCommunicate OK [16:07:47]SAM_PROTO_GetFieldsCounters done [16:07:47]requested_item shift.num is exist - process it [16:07:47]requested_item shift.opened is exist - process it [16:07:47]req_shift_opened [16:07:47]FM_GetShiftState [16:07:47]SAM_PROTO_GetShiftState [16:07:47]wFMCommunicate request_size=4 [16:07:47]MH_SAM_APDU [16:07:47]CAPDU: 80 13 01 00 [16:07:47]Write to MH i2c: E2 08 00 36 12 80 13 01 00 00 00 00 00 C5 [16:07:47]Write i2c OK [16:07:47]MH_I2C_Read... [16:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:47]Read from MH i2c: E2 [16:07:47]MH_I2C_Read... [16:07:47]Read from MH i2c: E2 0E 00 [16:07:47]MH_I2C_Read... [16:07:47]Read from MH i2c: E2 0E 00 36 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B3 [16:07:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:07:47]wFMCommunicate OK [16:07:47]SAM_PROTO_GetShiftState done [16:07:47]FM_GetShiftState done [16:07:47]req_shift_opened done [16:07:47]requested_item shift.open_date is exist - process it [16:07:47]req_shift_open_date [16:07:47]req_shift_open_date done [16:07:47]produce_requested_data done [16:07:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187682,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:07:47]process_action_free close_receipt [16:07:47]json_value_free [16:07:47]json_value_free done [16:07:47]process_json_proto returns [16:07:47]Send response to host [16:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187682,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:07:47]free response buf [16:07:47]execute_script done [16:07:47]execute_script returns [16:07:47]free content buf [16:07:47]Sock 7.Close socket [16:07:47]Sock 7.Thread stoped [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]accept exits with 9 [16:08:31]New connection [16:08:31]New thread 3067624804 created [16:08:31]Thread 3067481444 joined [16:08:31]Waiting for new connection... [16:08:31] Sock 9.Parse request [16:08:31]Sock 9.Check first char [16:08:31]Sock 9.First char is OK [16:08:31]request: POST /json_proto HTTP/1.0 [16:08:31]Method: POST [16:08:31]URL: /json_proto [16:08:31]Method is POST - this is cgi request [16:08:31]url: /json_proto [16:08:31]query_string will be loaded in cgi processing [16:08:31]execute_cgi json_proto POST (null) [16:08:31]execute_cgi path=json_proto method=POST [16:08:31]POST find Content-Length [16:08:31]Host: 172.17.46.131:8080 [16:08:31]Content-Length: 754 [16:08:31]Content-Type: application/json [16:08:31] [16:08:31]POST finish read [16:08:31]Found Content-Length = 754 [16:08:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 17.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:31]execute_script... [16:08: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)412842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 17.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:31]POST & json_proto [16:08:31]process_json_proto [16:08:31]json parsed OK: [16:08:31]protocol is kg_v1.0 [16:08:31]action value=close_receipt [16:08:31]process_action close_receipt [16:08:31]cmd_close_receipt [16:08:31]MH_GetDate [16:08:31]Write to MH i2c: F0 00 00 37 12 38 [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: F0 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: F0 09 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: F0 09 00 37 12 00 00 A5 B8 67 7E 41 4F 65 78 [16:08:31]GetLastDocTimeStamp 1740154064 [16:08:31]current date 1740154112 [16:08:31]FM_GetShiftState [16:08:31]SAM_PROTO_GetShiftState [16:08:31]wFMCommunicate request_size=4 [16:08:31]MH_SAM_APDU [16:08:31]CAPDU: 80 13 01 00 [16:08:31]Write to MH i2c: E2 08 00 38 12 80 13 01 00 00 00 00 00 C7 [16:08:31]Write i2c OK [16:08:31]MH_I2C_Read... [16:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:31]Read from MH i2c: E2 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 0E 00 [16:08:31]MH_I2C_Read... [16:08:31]Read from MH i2c: E2 0E 00 38 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B5 [16:08:31]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:08:31]wFMCommunicate OK [16:08:31]SAM_PROTO_GetShiftState done [16:08:31]FM_GetShiftState done [16:08:31]opened in 1740098043 [16:08:31]opened+sec_in_day 1740184443 [16:08:31]quantity*price = 0 [16:08:31]sum+1 = 1 [16:08:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 177 21.02.2025 16:08 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116166 ФМ: 0000000000871826 ФД: 187683 ФПД: 228499643475010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160832&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187683&fm=228499643475010&tin=02508201610067®Number=0000000000091857&sum=0 [16:08:32]StoreToDocumentArchive [16:08:32]shift 649 fd 187683 [16:08:32]save to /storage/0649/doc_00187683 [16:08:32]save last doc name /storage/0649/doc_00187683 to /storage/kkm_last_doc_name [16:08:32]save OK [16:08:32]Clear old archive folders... [16:08:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:32]tlvbuf is 00C0D590 [16:08:32]SAM_PROTO_ClearQueue [16:08:32]wFMCommunicate request_size=4 [16:08:32]MH_SAM_APDU [16:08:32]CAPDU: 80 09 00 00 [16:08:32]Write to MH i2c: E2 08 00 45 12 80 09 00 00 00 00 00 00 C9 [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:32]Read from MH i2c: E2 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 03 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 03 00 45 12 00 90 00 CB [16:08:32]RAPDU: 90 00 [16:08:32]wFMCommunicate OK [16:08:32]SAM_PROTO_ClearQueue done [16:08:32]KKMCreateOFDPacket [16:08:32]OFDProtocolAddRootSTLVToBuf [16:08:32]FM_MakeSignedData [16:08:32]FM_MakeSignedData [16:08:32]SAM_PROTO_SignData [16:08:32]wFMCommunicate request_size=4 [16:08:32]MH_SAM_APDU [16:08:32]CAPDU: 80 0D 01 02 [16:08:32]Write to MH i2c: E2 08 00 46 12 80 0D 01 02 00 00 00 00 D1 [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:32]Read from MH i2c: E2 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 03 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 03 00 46 12 00 90 00 CC [16:08:32]RAPDU: 90 00 [16:08:32]wFMCommunicate OK [16:08:32]wFMCommunicate request_size=255 [16:08:32]MH_SAM_APDU [16:08:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 00 A5 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DD 02 00 35 04 06 00 CF [16:08:32]Write to MH i2c: E2 02 01 47 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 00 A5 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DD 02 00 35 04 06 00 CF 00 00 58 [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:32]Read from MH i2c: E2 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 03 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 03 00 47 12 00 90 00 CD [16:08:32]RAPDU: 90 00 [16:08:32]wFMCommunicate OK [16:08:32]wFMCommunicate request_size=10 [16:08:32]MH_SAM_APDU [16:08:32]CAPDU: 80 0D 02 02 05 D1 B8 14 A4 42 [16:08:32]Write to MH i2c: E2 0D 00 48 12 80 0D 02 02 05 00 D1 B8 14 A4 42 00 00 61 [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:32]Read from MH i2c: E2 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 03 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 03 00 48 12 00 90 00 CE [16:08:32]RAPDU: 90 00 [16:08:32]wFMCommunicate OK [16:08:32]wFMCommunicate request_size=4 [16:08:32]MH_SAM_APDU [16:08:32]CAPDU: 80 0D 03 02 [16:08:32]Write to MH i2c: E2 08 00 49 12 80 0D 03 02 00 00 00 00 D6 [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:32]Read from MH i2c: E2 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 0B 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 0B 00 49 12 00 0C 54 57 95 89 03 40 BE 90 00 AD [16:08:32]RAPDU: 0C 54 57 95 89 03 40 BE 90 00 [16:08:32]wFMCommunicate OK [16:08:32]SAM_PROTO_SignData done [16:08:32]FM_MakeSignedData done [16:08:32]CreateOFDProtocolMessage [16:08:32]wFMCommunicate request_size=4 [16:08:32]MH_SAM_APDU [16:08:32]CAPDU: 80 11 00 00 [16:08:32]Write to MH i2c: E2 08 00 4A 12 80 11 00 00 00 00 00 00 D6 [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:32]Read from MH i2c: E2 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 17 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: E2 17 00 4A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [16:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:08:32]wFMCommunicate OK [16:08:32]CreateOFDProtocolMessage done [16:08:32]OFDSenderStorePacket 187683 [16:08:32]StoreOFDPacket docnum=187683 [16:08:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F6 67 07 01 6E 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 32 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 00 A5 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DD 02 00 35 04 06 00 CF D1 B8 14 A4 42 0C 54 57 95 89 03 40 BE [16:08:32]CheckFolder [16:08:32]dirname=/storage/ofd_packets [16:08:32]CheckFolder done [16:08:32]ProducePacketName [16:08:32]name=ofd_packets/00187683 [16:08:32]NVStorageSaveData ofd_packets/00187683 [16:08:32]File name is /storage/ofd_packets/00187683 [16:08:32]Write 301 bytes [16:08:32]NVStorageSaveData done [16:08:32]OFDSenderStorePacket done [16:08:32]KKMCreateOFDPacket done [16:08:32]NVStorageSaveData kkm_last_timestamp [16:08:32]File name is /storage/kkm_last_timestamp [16:08:32]Write 4 bytes [16:08:32]NVStorageSaveData done [16:08:32]ExternCall_PrintAddStr [16:08:32]wPrintStart [16:08:32]Write to MH i2c: 01 00 00 4B 12 5D [16:08:32]Write i2c OK [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: 01 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: 01 07 00 [16:08:32]MH_I2C_Read... [16:08:32]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 FF 0F 72 [16:08:32]RasterBufferAndPrint [16:08:32]line Счет N : (1)412842 [16:08:32]line ИНН: 02508201610067 [16:08:32]line Контрольно-Кассовый Чек [16:08:32]line ПРОДАЖА [16:08:32]line ТРК (МРК, ГНК) : 32 [16:08:32]line Товар: 2710124130 [16:08:32]line Аи-92-К-2 [16:08:32]line 17.000 * 0.00 [16:08:32]line = 0.00 [16:08:32]line НДС 12% НСП 1% [16:08:32]line > о реализуемом товаре [16:08:32]line ИТОГО: 0.00 [16:08:32]line НСП 1% : 0.00 [16:08:32]line НДС 12% : 0.00 [16:08:32]line Наличными: 0.00 [16:08:32]line Безнал.: 0.00 [16:08:32]line Место: АЗС № 92 "Партнер Нефть" [16:08:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:08:32]line СНО: Общий режим [16:08:32]line Чек 177 21.02.2025 16:08 [16:08:32]line Смена: 649 ФФД: 1.0 [16:08:32]line ЗНМ: 0300000118 [16:08:32]line РНМ: 0000000000091857 [16:08:32]line Версия ККМ: 001 [16:08:32]line Талоны: ТК ГПНА Online [16:08:32]line 30116166 [16:08:32]line ФМ: 0000000000871826 [16:08:32]line ФД: 187683 [16:08:32]line ФПД: 228499643475010 [16:08:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T160832&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187683&fm=228499643475010&tin=02508201610067®Number=0000000000091857&sum=0 [16:08:32]written 0, free lines is 4095 [16:08:32]OFD Sender: Processing packet 187683 [packets to send 49, broken 48] [16:08:32]ProducePacketName [16:08:32]name=ofd_packets/00187683 [16:08:33]OFD Sender: To server: pG, [16:08:33]CommunicateWithHost lk.salyk.kg:30040 [16:08:33]ConnectInit lk.salyk.kg [16:08:33]Write to MH i2c: 01 00 00 75 12 87 [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: 01 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: 01 07 00 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: 01 07 00 75 12 00 00 00 00 00 FA 0C 94 [16:08:33]RasterBufferAndPrint [16:08:33]line [16:08:33]line [16:08:33]line [16:08:33]line [16:08:33]line [16:08:33]written 0, free lines is 3328 [16:08:33]MH_Cut [16:08:33]Write to MH i2c: D1 01 00 7C 12 01 60 [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: D1 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: D1 01 00 [16:08:33]MH_I2C_Read... [16:08:33]Read from MH i2c: D1 01 00 7C 12 00 5F [16:08:33]Write to MH i2c: 01 00 00 7D 12 8F [16:08:33]Write i2c OK [16:08:33]MH_I2C_Read... [16:08:33]Connected sock=10 [16:08:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F6 67 07 01 6E 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 32 FF 03 08 00 03 68 42 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 00 A5 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DD 02 00 35 04 06 00 CF D1 B8 14 A4 42 0C 54 57 95 89 03 40 BE [16:08:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 70 05 47 00 A5 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DD 02 00 F4 03 04 00 4D 4B B8 67 B6 04 01 00 00 96 E2 0C 68 A6 8B C9 68 [16:08:33]CommunicateWithHost err = 0 [16:08:33]CheckOFDResponse [16:08:33]1017 (14) - 77093643461234 [16:08:33]1041 (16) - 0000000000871826 [16:08:33]1040 (4) - 187683 [16:08:33]1012 (4) - 21.02.2025 09:45 [16:08:33]1206 (1) - 0 [16:08:33]OFD Sender: Remove packet 187683 [16:08:33]ProducePacketName [16:08:33]name=ofd_packets/00187683 [16:08:33]NVStorageDeleteData [16:08:33]*** Cut start [16:08:33]*** Partial cut [16:08:33]*** CUTSNS_PIN = 1 [16:08:34]*** CUTSNS_PIN = 0 [16:08:34]OFD Sender: No OFD packet to send [16:08:34]*** Brake cut motor [16:08:34]Read from MH i2c: 01 [16:08:34]MH_I2C_Read... [16:08:34]*** Stop cut motor [16:08:34]*** Cut end [16:08:34]Read from MH i2c: 01 07 00 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: 01 07 00 7D 12 00 00 00 00 00 FF 0F A4 [16:08:34]process_action close_receipt done [16:08:34]requested_data is exist [16:08:34]produce_requested_data [16:08:34]requested_item fm.sn is exist - process it [16:08:34]wFMCommunicate request_size=4 [16:08:34]MH_SAM_APDU [16:08:34]CAPDU: 80 11 00 00 [16:08:34]Write to MH i2c: E2 08 00 7E 12 80 11 00 00 00 00 00 00 0A [16:08:34]Write i2c OK [16:08:34]MH_I2C_Read... [16:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:34]Read from MH i2c: E2 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 17 00 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 17 00 7E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5D [16:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:08:34]wFMCommunicate OK [16:08:34]requested_item fd.num is exist - process it [16:08:34]SAM_PROTO_GetFieldsCounters [16:08:34]wFMCommunicate request_size=4 [16:08:34]MH_SAM_APDU [16:08:34]CAPDU: 80 13 00 00 [16:08:34]Write to MH i2c: E2 08 00 7F 12 80 13 00 00 00 00 00 00 0D [16:08:34]Write i2c OK [16:08:34]MH_I2C_Read... [16:08:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:34]Read from MH i2c: E2 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 62 00 [16:08:34]MH_I2C_Read... [16:08:34]Read from MH i2c: E2 62 00 7F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 23 DD 02 00 0E 04 04 00 89 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 D3 [16:08:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 23 DD 02 00 0E 04 04 00 89 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 [16:08:34]wFMCommunicate OK [16:08:34]SAM_PROTO_GetFieldsCounters done [16:08:34]requested_item shift.num is exist - process it [16:08:34]requested_item shift.opened is exist - process it [16:08:34]req_shift_opened [16:08:34]FM_GetShiftState [16:08:34]SAM_PROTO_GetShiftState [16:08:34]wFMCommunicate request_size=4 [16:08:34]MH_SAM_APDU [16:08:34]CAPDU: 80 13 01 00 [16:08:34]Write to MH i2c: E2 08 00 80 12 80 13 01 00 00 00 00 00 0F [16:08:34]Write i2c OK [16:08:34]MH_I2C_Read... [16:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:35]Read from MH i2c: E2 [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: E2 0E 00 [16:08:35]MH_I2C_Read... [16:08:35]Read from MH i2c: E2 0E 00 80 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FD [16:08:35]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:08:35]wFMCommunicate OK [16:08:35]SAM_PROTO_GetShiftState done [16:08:35]FM_GetShiftState done [16:08:35]req_shift_opened done [16:08:35]requested_item shift.open_date is exist - process it [16:08:35]req_shift_open_date [16:08:35]req_shift_open_date done [16:08:35]produce_requested_data done [16:08:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187683,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:08:35]process_action_free close_receipt [16:08:35]json_value_free [16:08:35]json_value_free done [16:08:35]process_json_proto returns [16:08:35]Send response to host [16:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187683,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:08:35]free response buf [16:08:35]execute_script done [16:08:35]execute_script returns [16:08:35]free content buf [16:08:35]Sock 9.Close socket [16:08:35]Sock 9.Thread stoped [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]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:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:36]accept exits with 7 [16:14:36]New connection [16:14:36]New thread 3067481444 created [16:14:36]Thread 3067624804 joined [16:14:36]Waiting for new connection... [16:14:36] Sock 7.Parse request [16:14:36]Sock 7.Check first char [16:14:36]Sock 7.First char is OK [16:14:36]request: POST /json_proto HTTP/1.0 [16:14:36]Method: POST [16:14:36]URL: /json_proto [16:14:36]Method is POST - this is cgi request [16:14:36]url: /json_proto [16:14:36]query_string will be loaded in cgi processing [16:14:36]execute_cgi json_proto POST (null) [16:14:36]execute_cgi path=json_proto method=POST [16:14:36]POST find Content-Length [16:14:36]Host: 172.17.46.131:8080 [16:14:36]Content-Length: 754 [16:14:36]Content-Type: application/json [16:14:36] [16:14:36]POST finish read [16:14:36]Found Content-Length = 754 [16:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075149", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:36]execute_script... [16:14: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)412844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30075149", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:36]POST & json_proto [16:14:36]process_json_proto [16:14:36]json parsed OK: [16:14:36]protocol is kg_v1.0 [16:14:36]action value=close_receipt [16:14:36]process_action close_receipt [16:14:36]cmd_close_receipt [16:14:36]MH_GetDate [16:14:36]Write to MH i2c: F0 00 00 81 12 82 [16:14:36]Write i2c OK [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: F0 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: F0 09 00 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: F0 09 00 81 12 00 6D A6 B8 67 7E 41 4F 65 30 [16:14:36]GetLastDocTimeStamp 1740154112 [16:14:36]current date 1740154477 [16:14:36]FM_GetShiftState [16:14:36]SAM_PROTO_GetShiftState [16:14:36]wFMCommunicate request_size=4 [16:14:36]MH_SAM_APDU [16:14:36]CAPDU: 80 13 01 00 [16:14:36]Write to MH i2c: E2 08 00 82 12 80 13 01 00 00 00 00 00 11 [16:14:36]Write i2c OK [16:14:36]MH_I2C_Read... [16:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:36]Read from MH i2c: E2 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 0E 00 [16:14:36]MH_I2C_Read... [16:14:36]Read from MH i2c: E2 0E 00 82 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 FF [16:14:36]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:14:36]wFMCommunicate OK [16:14:36]SAM_PROTO_GetShiftState done [16:14:36]FM_GetShiftState done [16:14:36]opened in 1740098043 [16:14:36]opened+sec_in_day 1740184443 [16:14:36]quantity*price = 0 [16:14:36]sum+1 = 1 [16:14:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 178 21.02.2025 16:14 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30075149 ФМ: 0000000000871826 ФД: 187684 ФПД: 129782167025847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T161437&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187684&fm=129782167025847&tin=02508201610067®Number=0000000000091857&sum=0 [16:14:37]StoreToDocumentArchive [16:14:37]shift 649 fd 187684 [16:14:37]save to /storage/0649/doc_00187684 [16:14:37]save last doc name /storage/0649/doc_00187684 to /storage/kkm_last_doc_name [16:14:37]save OK [16:14:37]Clear old archive folders... [16:14:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:37]tlvbuf is 00C0D5D0 [16:14:37]SAM_PROTO_ClearQueue [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 09 00 00 [16:14:37]Write to MH i2c: E2 08 00 8F 12 80 09 00 00 00 00 00 00 13 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 8F 12 00 90 00 15 [16:14:37]RAPDU: 90 00 [16:14:37]wFMCommunicate OK [16:14:37]SAM_PROTO_ClearQueue done [16:14:37]KKMCreateOFDPacket [16:14:37]OFDProtocolAddRootSTLVToBuf [16:14:37]FM_MakeSignedData [16:14:37]FM_MakeSignedData [16:14:37]SAM_PROTO_SignData [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 0D 01 02 [16:14:37]Write to MH i2c: E2 08 00 90 12 80 0D 01 02 00 00 00 00 1B [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 90 12 00 90 00 16 [16:14:37]RAPDU: 90 00 [16:14:37]wFMCommunicate OK [16:14:37]wFMCommunicate request_size=255 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 6D A6 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DD 02 00 35 04 06 00 76 [16:14:37]Write to MH i2c: E2 02 01 91 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 B2 00 00 00 F4 03 04 00 6D A6 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DD 02 00 35 04 06 00 76 00 00 EB [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 91 12 00 90 00 17 [16:14:37]RAPDU: 90 00 [16:14:37]wFMCommunicate OK [16:14:37]wFMCommunicate request_size=10 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 0D 02 02 05 09 43 F6 B8 B7 [16:14:37]Write to MH i2c: E2 0D 00 92 12 80 0D 02 02 05 00 09 43 F6 B8 B7 00 00 D9 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 03 00 92 12 00 90 00 18 [16:14:37]RAPDU: 90 00 [16:14:37]wFMCommunicate OK [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 0D 03 02 [16:14:37]Write to MH i2c: E2 08 00 93 12 80 0D 03 02 00 00 00 00 20 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 0B 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 0B 00 93 12 00 D0 96 86 B0 6F 4C 2E 8A 90 00 30 [16:14:37]RAPDU: D0 96 86 B0 6F 4C 2E 8A 90 00 [16:14:37]wFMCommunicate OK [16:14:37]SAM_PROTO_SignData done [16:14:37]FM_MakeSignedData done [16:14:37]CreateOFDProtocolMessage [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 11 00 00 [16:14:37]Write to MH i2c: E2 08 00 94 12 80 11 00 00 00 00 00 00 20 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:38]Read from MH i2c: E2 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 17 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 17 00 94 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 73 [16:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:14:38]wFMCommunicate OK [16:14:38]CreateOFDProtocolMessage done [16:14:38]OFDSenderStorePacket 187684 [16:14:38]StoreOFDPacket docnum=187684 [16:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E4 7A 07 01 97 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 6D A6 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DD 02 00 35 04 06 00 76 09 43 F6 B8 B7 D0 96 86 B0 6F 4C 2E 8A [16:14:38]CheckFolder [16:14:38]dirname=/storage/ofd_packets [16:14:38]CheckFolder done [16:14:38]ProducePacketName [16:14:38]name=ofd_packets/00187684 [16:14:38]NVStorageSaveData ofd_packets/00187684 [16:14:38]File name is /storage/ofd_packets/00187684 [16:14:38]Write 301 bytes [16:14:38]NVStorageSaveData done [16:14:38]OFDSenderStorePacket done [16:14:38]KKMCreateOFDPacket done [16:14:38]NVStorageSaveData kkm_last_timestamp [16:14:38]File name is /storage/kkm_last_timestamp [16:14:38]Write 4 bytes [16:14:38]NVStorageSaveData done [16:14:38]ExternCall_PrintAddStr [16:14:38]wPrintStart [16:14:38]Write to MH i2c: 01 00 00 95 12 A7 [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 07 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 07 00 95 12 00 00 00 00 00 FF 0F BC [16:14:38]RasterBufferAndPrint [16:14:38]line Счет N : (1)412844 [16:14:38]line ИНН: 02508201610067 [16:14:38]line Контрольно-Кассовый Чек [16:14:38]line ПРОДАЖА [16:14:38]line ТРК (МРК, ГНК) : 42 [16:14:38]line Товар: 2710124130 [16:14:38]line Аи-92-К-2 [16:14:38]line 40.000 * 0.00 [16:14:38]line = 0.00 [16:14:38]line НДС 12% НСП 1% [16:14:38]line > о реализуемом товаре [16:14:38]line ИТОГО: 0.00 [16:14:38]line НСП 1% : 0.00 [16:14:38]line НДС 12% : 0.00 [16:14:38]line Наличными: 0.00 [16:14:38]line Безнал.: 0.00 [16:14:38]line Место: АЗС № 92 "Партнер Нефть" [16:14:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:14:38]line СНО: Общий режим [16:14:38]line Чек 178 21.02.2025 16:14 [16:14:38]line Смена: 649 ФФД: 1.0 [16:14:38]line ЗНМ: 0300000118 [16:14:38]line РНМ: 0000000000091857 [16:14:38]line Версия ККМ: 001 [16:14:38]line Талоны: ТК ГПНА Online [16:14:38]line 30075149 [16:14:38]line ФМ: 0000000000871826 [16:14:38]line ФД: 187684 [16:14:38]line ФПД: 129782167025847 [16:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T161437&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187684&fm=129782167025847&tin=02508201610067®Number=0000000000091857&sum=0 [16:14:38]OFD Sender: Processing packet 187684 [packets to send 49, broken 48] [16:14:38]ProducePacketName [16:14:38]name=ofd_packets/00187684 [16:14:38]OFD Sender: To server: pG, [16:14:38]CommunicateWithHost lk.salyk.kg:30040 [16:14:38]ConnectInit lk.salyk.kg [16:14:38]written 0, free lines is 4095 [16:14:38]Connected sock=10 [16:14:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E4 7A 07 01 97 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 6D A6 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DD 02 00 35 04 06 00 76 09 43 F6 B8 B7 D0 96 86 B0 6F 4C 2E 8A [16:14:38]Write to MH i2c: 01 00 00 BF 12 D1 [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 07 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: 01 07 00 BF 12 00 00 00 00 00 F6 0C DA [16:14:38]RasterBufferAndPrint [16:14:38]line [16:14:38]line [16:14:38]line [16:14:38]line [16:14:38]line [16:14:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FA CD 47 00 B1 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 DD 02 00 F4 03 04 00 BA 4C B8 67 B6 04 01 00 00 1A A6 A4 29 14 FA 66 CB [16:14:38]CommunicateWithHost err = 0 [16:14:38]CheckOFDResponse [16:14:38]1017 (14) - 77093643461234 [16:14:38]1041 (16) - 0000000000871826 [16:14:38]1040 (4) - 187684 [16:14:38]1012 (4) - 21.02.2025 09:51 [16:14:38]1206 (1) - 0 [16:14:38]OFD Sender: Remove packet 187684 [16:14:38]ProducePacketName [16:14:38]name=ofd_packets/00187684 [16:14:38]NVStorageDeleteData [16:14:38]written 0, free lines is 3324 [16:14:38]MH_Cut [16:14:38]Write to MH i2c: D1 01 00 C6 12 01 AA [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: D1 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: D1 01 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: D1 01 00 C6 12 00 A9 [16:14:38]Write to MH i2c: 01 00 00 C7 12 D9 [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:39]OFD Sender: No OFD packet to send [16:14:39]*** Cut start [16:14:39]*** Partial cut [16:14:39]*** CUTSNS_PIN = 1 [16:14:39]*** CUTSNS_PIN = 0 [16:14:39]*** Brake cut motor [16:14:40]Read from MH i2c: 01 [16:14:40]MH_I2C_Read... [16:14:40]*** Stop cut motor [16:14:40]*** Cut end [16:14:40]Read from MH i2c: 01 07 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: 01 07 00 C7 12 00 00 00 00 00 FF 0F EE [16:14:40]process_action close_receipt done [16:14:40]requested_data is exist [16:14:40]produce_requested_data [16:14:40]requested_item fm.sn is exist - process it [16:14:40]wFMCommunicate request_size=4 [16:14:40]MH_SAM_APDU [16:14:40]CAPDU: 80 11 00 00 [16:14:40]Write to MH i2c: E2 08 00 C8 12 80 11 00 00 00 00 00 00 54 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:40]Read from MH i2c: E2 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 17 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 17 00 C8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [16:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:14:40]wFMCommunicate OK [16:14:40]requested_item fd.num is exist - process it [16:14:40]SAM_PROTO_GetFieldsCounters [16:14:40]wFMCommunicate request_size=4 [16:14:40]MH_SAM_APDU [16:14:40]CAPDU: 80 13 00 00 [16:14:40]Write to MH i2c: E2 08 00 C9 12 80 13 00 00 00 00 00 00 57 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:40]Read from MH i2c: E2 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 62 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 62 00 C9 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 24 DD 02 00 0E 04 04 00 89 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 21 [16:14:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 24 DD 02 00 0E 04 04 00 89 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:40]wFMCommunicate OK [16:14:40]SAM_PROTO_GetFieldsCounters done [16:14:40]requested_item shift.num is exist - process it [16:14:40]requested_item shift.opened is exist - process it [16:14:40]req_shift_opened [16:14:40]FM_GetShiftState [16:14:40]SAM_PROTO_GetShiftState [16:14:40]wFMCommunicate request_size=4 [16:14:40]MH_SAM_APDU [16:14:40]CAPDU: 80 13 01 00 [16:14:40]Write to MH i2c: E2 08 00 CA 12 80 13 01 00 00 00 00 00 59 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:40]Read from MH i2c: E2 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 0E 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 0E 00 CA 12 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 47 [16:14:40]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:14:40]wFMCommunicate OK [16:14:40]SAM_PROTO_GetShiftState done [16:14:40]FM_GetShiftState done [16:14:40]req_shift_opened done [16:14:40]requested_item shift.open_date is exist - process it [16:14:40]req_shift_open_date [16:14:40]req_shift_open_date done [16:14:40]produce_requested_data done [16:14:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187684,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:14:40]process_action_free close_receipt [16:14:40]json_value_free [16:14:40]json_value_free done [16:14:40]process_json_proto returns [16:14:40]Send response to host [16:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187684,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:14:40]free response buf [16:14:40]execute_script done [16:14:40]execute_script returns [16:14:40]free content buf [16:14:40]Sock 7.Close socket [16:14:40]Sock 7.Thread stoped [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21: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]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:31:57]ConnectInit Can't connect to host [16:31:59]OFD Sender: Processing packet 187685 [packets to send 49, broken 48] [16:31:59]ProducePacketName [16:31:59]name=ofd_packets/00187685 [16:31:59]OFD Sender: To server: pG, [16:31:59]CommunicateWithHost lk.salyk.kg:30040 [16:31:59]ConnectInit lk.salyk.kg [16:32:04]ConnectInit Can't take IP for lk.salyk.kg [16:32:04]CommunicateWithHost connect error [16:32:04]CommunicateWithHost err = -1 [16:32:04]OFD Sender: Server communicate error [16:32:09]OFD Sender: Processing packet 187685 [packets to send 49, broken 48] [16:32:09]ProducePacketName [16:32:09]name=ofd_packets/00187685 [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]Connected sock=7 [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 38 32 36 0F 01 00 00 D4 92 07 01 39 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 38 AA B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DD 02 00 35 04 06 00 95 D0 C3 1F 8C 4A 6E 7F C4 96 DD A5 67 F3 [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 38 32 36 4F 00 00 00 30 CE 47 00 E7 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 DD 02 00 F4 03 04 00 D5 50 B8 67 B6 04 01 00 00 A8 6F B6 6F 67 DC 1C BD [16:32:09]CommunicateWithHost err = 0 [16:32:09]CheckOFDResponse [16:32:09]1017 (14) - 77093643461234 [16:32:09]1041 (16) - 0000000000871826 [16:32:09]1040 (4) - 187685 [16:32:09]1012 (4) - 21.02.2025 10:09 [16:32:09]1206 (1) - 0 [16:32:09]OFD Sender: Remove packet 187685 [16:32:09]ProducePacketName [16:32:09]name=ofd_packets/00187685 [16:32:09]NVStorageDeleteData [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:29]accept exits with 10 [16:32:29]New connection [16:32:29]New thread 3067481444 created [16:32:29]Thread 3067624804 joined [16:32:29]Waiting for new connection... [16:32:29] Sock 10.Parse request [16:32:29]Sock 10.Check first char [16:32:29]Sock 10.First char is OK [16:32:29]request: POST /json_proto HTTP/1.0 [16:32:29]Method: POST [16:32:29]URL: /json_proto [16:32:29]Method is POST - this is cgi request [16:32:29]url: /json_proto [16:32:29]query_string will be loaded in cgi processing [16:32:29]execute_cgi json_proto POST (null) [16:32:29]execute_cgi path=json_proto method=POST [16:32:29]POST find Content-Length [16:32:29]Host: 172.17.46.131:8080 [16:32:29]Content-Length: 674 [16:32:29]Content-Type: application/json [16:32:29] [16:32:29]POST finish read [16:32:29]Found Content-Length = 674 [16:32:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 1.010, "sum" : 64.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 64.00, "payments": [ { "type": 0, "sum" : 64.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:29]execute_script... [16:32: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)412846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 1.010, "sum" : 64.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 64.00, "payments": [ { "type": 0, "sum" : 64.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:29]POST & json_proto [16:32:29]process_json_proto [16:32:29]json parsed OK: [16:32:29]protocol is kg_v1.0 [16:32:29]action value=close_receipt [16:32:29]process_action close_receipt [16:32:29]cmd_close_receipt [16:32:29]MH_GetDate [16:32:29]Write to MH i2c: F0 00 00 16 13 18 [16:32:29]Write i2c OK [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: F0 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: F0 09 00 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: F0 09 00 16 13 00 9E AA B8 67 7E 41 4F 65 FB [16:32:29]GetLastDocTimeStamp 1740155448 [16:32:29]current date 1740155550 [16:32:29]FM_GetShiftState [16:32:29]SAM_PROTO_GetShiftState [16:32:29]wFMCommunicate request_size=4 [16:32:29]MH_SAM_APDU [16:32:29]CAPDU: 80 13 01 00 [16:32:29]Write to MH i2c: E2 08 00 17 13 80 13 01 00 00 00 00 00 A7 [16:32:29]Write i2c OK [16:32:29]MH_I2C_Read... [16:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:29]Read from MH i2c: E2 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: E2 0E 00 [16:32:29]MH_I2C_Read... [16:32:29]Read from MH i2c: E2 0E 00 17 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 95 [16:32:29]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:32:29]wFMCommunicate OK [16:32:29]SAM_PROTO_GetShiftState done [16:32:29]FM_GetShiftState done [16:32:29]opened in 1740098043 [16:32:29]opened+sec_in_day 1740184443 [16:32:29]quantity*price = 6484 [16:32:29]sum+1 = 6485 [16:32:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 64.00 Внесено: 100.00 СДАЧА: 36.00 НСП 1% : 0.57 НДС 12% : 6.89 Наличными: 64.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 180 21.02.2025 16:32 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187686 ФПД: 13170180393306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T163230&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187686&fm=13170180393306&tin=02508201610067®Number=0000000000091857&sum=6400 [16:32:30]StoreToDocumentArchive [16:32:30]shift 649 fd 187686 [16:32:30]save to /storage/0649/doc_00187686 [16:32:30]save last doc name /storage/0649/doc_00187686 to /storage/kkm_last_doc_name [16:32:30]save OK [16:32:30]Clear old archive folders... [16:32:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:30]tlvbuf is 00C25F80 [16:32:30]SAM_PROTO_ClearQueue [16:32:30]wFMCommunicate request_size=4 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 09 00 00 [16:32:30]Write to MH i2c: E2 08 00 24 13 80 09 00 00 00 00 00 00 A9 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 24 13 00 90 00 AB [16:32:30]RAPDU: 90 00 [16:32:30]wFMCommunicate OK [16:32:30]SAM_PROTO_ClearQueue done [16:32:30]KKMCreateOFDPacket [16:32:30]OFDProtocolAddRootSTLVToBuf [16:32:30]FM_MakeSignedData [16:32:30]FM_MakeSignedData [16:32:30]SAM_PROTO_SignData [16:32:30]wFMCommunicate request_size=4 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 0D 01 02 [16:32:30]Write to MH i2c: E2 08 00 25 13 80 0D 01 02 00 00 00 00 B1 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 25 13 00 90 00 AC [16:32:30]RAPDU: 90 00 [16:32:30]wFMCommunicate OK [16:32:30]wFMCommunicate request_size=255 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 54 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 02 00 00 00 00 07 04 06 00 00 19 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 9E AA B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DD 02 00 35 04 06 00 0B [16:32:30]Write to MH i2c: E2 02 01 26 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 54 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 02 00 00 00 00 07 04 06 00 00 19 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 9E AA B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DD 02 00 35 04 06 00 0B 00 00 20 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 26 13 00 90 00 AD [16:32:30]RAPDU: 90 00 [16:32:30]wFMCommunicate OK [16:32:30]wFMCommunicate request_size=10 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 0D 02 02 05 FA 6B EC 89 5A [16:32:30]Write to MH i2c: E2 0D 00 27 13 80 0D 02 02 05 00 FA 6B EC 89 5A 00 00 F2 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 03 00 27 13 00 90 00 AE [16:32:30]RAPDU: 90 00 [16:32:30]wFMCommunicate OK [16:32:30]wFMCommunicate request_size=4 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 0D 03 02 [16:32:30]Write to MH i2c: E2 08 00 28 13 80 0D 03 02 00 00 00 00 B6 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:30]Read from MH i2c: E2 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 0B 00 [16:32:30]MH_I2C_Read... [16:32:30]Read from MH i2c: E2 0B 00 28 13 00 EE 13 4A 7D C7 EB 21 CF 90 00 21 [16:32:30]RAPDU: EE 13 4A 7D C7 EB 21 CF 90 00 [16:32:30]wFMCommunicate OK [16:32:30]SAM_PROTO_SignData done [16:32:30]FM_MakeSignedData done [16:32:30]CreateOFDProtocolMessage [16:32:30]wFMCommunicate request_size=4 [16:32:30]MH_SAM_APDU [16:32:30]CAPDU: 80 11 00 00 [16:32:30]Write to MH i2c: E2 08 00 29 13 80 11 00 00 00 00 00 00 B6 [16:32:30]Write i2c OK [16:32:30]MH_I2C_Read... [16:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:31]Read from MH i2c: E2 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: E2 17 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: E2 17 00 29 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [16:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:32:31]wFMCommunicate OK [16:32:31]CreateOFDProtocolMessage done [16:32:31]OFDSenderStorePacket 187686 [16:32:31]StoreOFDPacket docnum=187686 [16:32:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5A 45 07 01 59 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 32 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 54 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 02 00 00 00 00 07 04 06 00 00 19 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 9E AA B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DD 02 00 35 04 06 00 0B FA 6B EC 89 5A EE 13 4A 7D C7 EB 21 CF [16:32:31]CheckFolder [16:32:31]dirname=/storage/ofd_packets [16:32:31]CheckFolder done [16:32:31]ProducePacketName [16:32:31]name=ofd_packets/00187686 [16:32:31]NVStorageSaveData ofd_packets/00187686 [16:32:31]File name is /storage/ofd_packets/00187686 [16:32:31]Write 301 bytes [16:32:31]NVStorageSaveData done [16:32:31]OFDSenderStorePacket done [16:32:31]KKMCreateOFDPacket done [16:32:31]NVStorageSaveData kkm_last_timestamp [16:32:31]File name is /storage/kkm_last_timestamp [16:32:31]Write 4 bytes [16:32:31]NVStorageSaveData done [16:32:31]ExternCall_PrintAddStr [16:32:31]wPrintStart [16:32:31]Write to MH i2c: 01 00 00 2A 13 3D [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 07 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 07 00 2A 13 00 00 00 00 00 FF 0F 52 [16:32:31]RasterBufferAndPrint [16:32:31]line Счет N : (1)412846 [16:32:31]line ИНН: 02508201610067 [16:32:31]line Контрольно-Кассовый Чек [16:32:31]line ПРОДАЖА [16:32:31]line ТРК (МРК, ГНК) : 32 [16:32:31]line Товар: 2710124130 [16:32:31]line Аи-92-К-2 [16:32:31]line 1.010 * 64.20 [16:32:31]line = 64.84 [16:32:31]line НДС 12% НСП 1% [16:32:31]line > о реализуемом товаре [16:32:31]line ОКРУГЛЕНИЕ: -0.84 [16:32:31]line ИТОГО: 64.00 [16:32:31]line Внесено: 100.00 [16:32:31]line СДАЧА: 36.00 [16:32:31]line НСП 1% : 0.57 [16:32:31]line НДС 12% : 6.89 [16:32:31]line Наличными: 64.00 [16:32:31]line Безнал.: 0.00 [16:32:31]line Место: АЗС № 92 "Партнер Нефть" [16:32:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:32:31]line СНО: Общий режим [16:32:31]line Чек 180 21.02.2025 16:32 [16:32:31]line Смена: 649 ФФД: 1.0 [16:32:31]line ЗНМ: 0300000118 [16:32:31]line РНМ: 0000000000091857 [16:32:31]line Версия ККМ: 001 [16:32:31]line ФМ: 0000000000871826 [16:32:31]line ФД: 187686 [16:32:31]line ФПД: 13170180393306 [16:32:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T163230&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187686&fm=13170180393306&tin=02508201610067®Number=0000000000091857&sum=6400 [16:32:31]OFD Sender: Processing packet 187686 [packets to send 49, broken 48] [16:32:31]ProducePacketName [16:32:31]name=ofd_packets/00187686 [16:32:31]OFD Sender: To server: pG, [16:32:31]CommunicateWithHost lk.salyk.kg:30040 [16:32:31]ConnectInit lk.salyk.kg [16:32:31]written 0, free lines is 4095 [16:32:31]Connected sock=9 [16:32:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5A 45 07 01 59 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 32 FF 03 08 00 03 F2 03 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 54 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 02 00 00 00 00 07 04 06 00 00 19 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 9E AA B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DD 02 00 35 04 06 00 0B FA 6B EC 89 5A EE 13 4A 7D C7 EB 21 CF [16:32:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 11 5D 47 00 DD 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DD 02 00 F4 03 04 00 EB 50 B8 67 B6 04 01 00 00 A1 12 D5 B8 C3 48 CC 7D [16:32:31]CommunicateWithHost err = 0 [16:32:31]CheckOFDResponse [16:32:31]1017 (14) - 77093643461234 [16:32:31]1041 (16) - 0000000000871826 [16:32:31]1040 (4) - 187686 [16:32:31]1012 (4) - 21.02.2025 10:09 [16:32:31]1206 (1) - 0 [16:32:31]OFD Sender: Remove packet 187686 [16:32:31]ProducePacketName [16:32:31]name=ofd_packets/00187686 [16:32:31]NVStorageDeleteData [16:32:31]Write to MH i2c: 01 00 00 55 13 68 [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 07 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: 01 07 00 55 13 00 00 00 00 00 F8 0C 73 [16:32:31]RasterBufferAndPrint [16:32:31]line [16:32:31]line [16:32:31]line [16:32:31]line [16:32:31]line [16:32:31]written 0, free lines is 3326 [16:32:31]MH_Cut [16:32:31]Write to MH i2c: D1 01 00 5C 13 01 41 [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: D1 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: D1 01 00 [16:32:31]MH_I2C_Read... [16:32:31]Read from MH i2c: D1 01 00 5C 13 00 40 [16:32:31]Write to MH i2c: 01 00 00 5D 13 70 [16:32:31]Write i2c OK [16:32:31]MH_I2C_Read... [16:32:32]OFD Sender: No OFD packet to send [16:32:32]*** Cut start [16:32:32]*** Partial cut [16:32:32]*** CUTSNS_PIN = 1 [16:32:32]*** CUTSNS_PIN = 0 [16:32:32]*** Brake cut motor [16:32:33]Read from MH i2c: 01 [16:32:33]MH_I2C_Read... [16:32:33]*** Stop cut motor [16:32:33]*** Cut end [16:32:33]Read from MH i2c: 01 07 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: 01 07 00 5D 13 00 00 00 00 00 FF 0F 85 [16:32:33]process_action close_receipt done [16:32:33]requested_data is exist [16:32:33]produce_requested_data [16:32:33]requested_item fm.sn is exist - process it [16:32:33]wFMCommunicate request_size=4 [16:32:33]MH_SAM_APDU [16:32:33]CAPDU: 80 11 00 00 [16:32:33]Write to MH i2c: E2 08 00 5E 13 80 11 00 00 00 00 00 00 EB [16:32:33]Write i2c OK [16:32:33]MH_I2C_Read... [16:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:33]Read from MH i2c: E2 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 17 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 17 00 5E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [16:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:32:33]wFMCommunicate OK [16:32:33]requested_item fd.num is exist - process it [16:32:33]SAM_PROTO_GetFieldsCounters [16:32:33]wFMCommunicate request_size=4 [16:32:33]MH_SAM_APDU [16:32:33]CAPDU: 80 13 00 00 [16:32:33]Write to MH i2c: E2 08 00 5F 13 80 13 00 00 00 00 00 00 EE [16:32:33]Write i2c OK [16:32:33]MH_I2C_Read... [16:32:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:33]Read from MH i2c: E2 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 62 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 62 00 5F 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 26 DD 02 00 0E 04 04 00 89 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 C0 [16:32:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 26 DD 02 00 0E 04 04 00 89 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 [16:32:33]wFMCommunicate OK [16:32:33]SAM_PROTO_GetFieldsCounters done [16:32:33]requested_item shift.num is exist - process it [16:32:33]requested_item shift.opened is exist - process it [16:32:33]req_shift_opened [16:32:33]FM_GetShiftState [16:32:33]SAM_PROTO_GetShiftState [16:32:33]wFMCommunicate request_size=4 [16:32:33]MH_SAM_APDU [16:32:33]CAPDU: 80 13 01 00 [16:32:33]Write to MH i2c: E2 08 00 60 13 80 13 01 00 00 00 00 00 F0 [16:32:33]Write i2c OK [16:32:33]MH_I2C_Read... [16:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:33]Read from MH i2c: E2 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 0E 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 0E 00 60 13 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 DE [16:32:33]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:32:33]wFMCommunicate OK [16:32:33]SAM_PROTO_GetShiftState done [16:32:33]FM_GetShiftState done [16:32:33]req_shift_opened done [16:32:33]requested_item shift.open_date is exist - process it [16:32:33]req_shift_open_date [16:32:33]req_shift_open_date done [16:32:33]produce_requested_data done [16:32:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187686,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:32:33]process_action_free close_receipt [16:32:33]json_value_free [16:32:33]json_value_free done [16:32:33]process_json_proto returns [16:32:33]Send response to host [16:32:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187686,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:32:33]free response buf [16:32:33]execute_script done [16:32:33]execute_script returns [16:32:33]free content buf [16:32:33]Sock 10.Close socket [16:32:33]Sock 10.Thread stoped [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:35:55]Write i2c OK [16:35:55]MH_I2C_Read... [16:35:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:35:55]Read from MH i2c: E2 [16:35:55]MH_I2C_Read... [16:35:55]Read from MH i2c: E2 03 00 [16:35:55]MH_I2C_Read... [16:35:55]Read from MH i2c: E2 03 00 00 14 00 90 00 88 [16:35:55]RAPDU: 90 00 [16:35:55]wFMCommunicate OK [16:35:55]wFMCommunicate request_size=13 [16:35:55]MH_SAM_APDU [16:35:55]CAPDU: 80 15 02 00 08 F4 03 04 00 6C AB B8 67 [16:35:55]Write to MH i2c: E2 10 00 01 14 80 15 02 00 08 00 F4 03 04 00 6C AB B8 67 00 00 D6 [16:35:55]Write i2c OK [16:35:55]MH_I2C_Read... [16:35:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:35:55]Read from MH i2c: E2 [16:35:55]MH_I2C_Read... [16:35:55]Read from MH i2c: E2 03 00 [16:35:55]MH_I2C_Read... [16:35:55]Read from MH i2c: E2 03 00 01 14 00 90 00 89 [16:35:55]RAPDU: 90 00 [16:35:55]wFMCommunicate OK [16:35:55]wFMCommunicate request_size=25 [16:35:55]MH_SAM_APDU [16:35:55]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 [16:35:55]Write to MH i2c: E2 1C 00 02 14 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 00 00 FD [16:35:55]Write i2c OK [16:35:55]MH_I2C_Read... [16:35:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [16:35:55]Read from MH i2c: E2 [16:35:55]MH_I2C_Read... [16:35:55]Read from MH i2c: E2 03 00 [16:35:55]MH_I2C_Read... [16:35:55]Read from MH i2c: E2 03 00 02 14 00 90 00 8A [16:35:55]RAPDU: 90 00 [16:35:55]wFMCommunicate OK [16:35:55]wFMCommunicate request_size=4 [16:35:55]MH_SAM_APDU [16:35:55]CAPDU: 80 15 03 00 [16:35:55]Write to MH i2c: E2 08 00 03 14 80 15 03 00 00 00 00 00 98 [16:35:55]Write i2c OK [16:35:55]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 40 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 40 00 03 14 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DD 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 B7 00 00 00 35 04 06 00 85 7A CC B5 19 E1 90 00 52 [16:35:56]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DD 02 00 0E 04 04 00 89 02 00 00 12 04 04 00 B7 00 00 00 35 04 06 00 85 7A CC B5 19 E1 90 00 [16:35:56]wFMCommunicate OK [16:35:56]SAM_PROTO_ProcessDocument answer len = 59 [16:35:56]SAM_PROTO_ProcessDocument done [16:35:56]SetTLVBufToDocument [16:35:56]Processing tag 1209 (04B9) [16:35:56]Malloc new data [16:35:56]Processing tag 1041 (0411) [16:35:56]Processing tag 1040 (0410) [16:35:56]Malloc new data [16:35:56]Processing tag 1038 (040E) [16:35:56]Malloc new data [16:35:56]Processing tag 1042 (0412) [16:35:56]Malloc new data [16:35:56]Processing tag 1077 (0435) [16:35:56]Malloc new data [16:35:56]SetTLVBufToDocument err=0 [16:35:56]KKMLoadAndSignReceiptData store KKM data [16:35:56]KKMLoadAndSignReceiptData err=0 [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 11 00 00 [16:35:56]Write to MH i2c: E2 08 00 04 14 80 11 00 00 00 00 00 00 92 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 17 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 17 00 04 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E5 [16:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:35:56]wFMCommunicate OK [16:35:56]Счет N : (1)412849 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 12 Товар: 2710124130 Аи-92-К-2 2.190 * 64.20 = 140.60 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.60 НСП 1% : 1.24 НДС 12% : 14.93 Наличными: 0.00 Безнал.: 140.60 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 183 21.02.2025 16:35 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187689 ФПД: 146762466925025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T163556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187689&fm=146762466925025&tin=02508201610067®Number=0000000000091857&sum=14060 [16:35:56]StoreToDocumentArchive [16:35:56]shift 649 fd 187689 [16:35:56]save to /storage/0649/doc_00187689 [16:35:56]save last doc name /storage/0649/doc_00187689 to /storage/kkm_last_doc_name [16:35:56]save OK [16:35:56]Clear old archive folders... [16:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:35:56]tlvbuf is 00BBACE0 [16:35:56]SAM_PROTO_ClearQueue [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 09 00 00 [16:35:56]Write to MH i2c: E2 08 00 05 14 80 09 00 00 00 00 00 00 8B [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 05 14 00 90 00 8D [16:35:56]RAPDU: 90 00 [16:35:56]wFMCommunicate OK [16:35:56]SAM_PROTO_ClearQueue done [16:35:56]KKMCreateOFDPacket [16:35:56]OFDProtocolAddRootSTLVToBuf [16:35:56]FM_MakeSignedData [16:35:56]FM_MakeSignedData [16:35:56]SAM_PROTO_SignData [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 0D 01 02 [16:35:56]Write to MH i2c: E2 08 00 06 14 80 0D 01 02 00 00 00 00 93 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 06 14 00 90 00 8E [16:35:56]RAPDU: 90 00 [16:35:56]wFMCommunicate OK [16:35:56]wFMCommunicate request_size=255 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 08 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 EC 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 6C AB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DD 02 00 35 04 06 00 85 [16:35:56]Write to MH i2c: E2 02 01 07 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 08 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 EC 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 6C AB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DD 02 00 35 04 06 00 85 00 00 23 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 07 14 00 90 00 8F [16:35:56]RAPDU: 90 00 [16:35:56]wFMCommunicate OK [16:35:56]wFMCommunicate request_size=10 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 0D 02 02 05 7A CC B5 19 E1 [16:35:56]Write to MH i2c: E2 0D 00 08 14 80 0D 02 02 05 00 7A CC B5 19 E1 00 00 95 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 03 00 08 14 00 90 00 90 [16:35:56]RAPDU: 90 00 [16:35:56]wFMCommunicate OK [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 0D 03 02 [16:35:56]Write to MH i2c: E2 08 00 09 14 80 0D 03 02 00 00 00 00 98 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 0B 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 0B 00 09 14 00 59 77 70 B3 0E 4C 26 E1 90 00 ED [16:35:56]RAPDU: 59 77 70 B3 0E 4C 26 E1 90 00 [16:35:56]wFMCommunicate OK [16:35:56]SAM_PROTO_SignData done [16:35:56]FM_MakeSignedData done [16:35:56]CreateOFDProtocolMessage [16:35:56]wFMCommunicate request_size=4 [16:35:56]MH_SAM_APDU [16:35:56]CAPDU: 80 11 00 00 [16:35:56]Write to MH i2c: E2 08 00 0A 14 80 11 00 00 00 00 00 00 98 [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:56]Read from MH i2c: E2 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 17 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: E2 17 00 0A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EB [16:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:35:56]wFMCommunicate OK [16:35:56]CreateOFDProtocolMessage done [16:35:56]OFDSenderStorePacket 187689 [16:35:56]StoreOFDPacket docnum=187689 [16:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B2 13 07 01 B9 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 08 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 EC 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 6C AB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DD 02 00 35 04 06 00 85 7A CC B5 19 E1 59 77 70 B3 0E 4C 26 E1 [16:35:56]CheckFolder [16:35:56]dirname=/storage/ofd_packets [16:35:56]CheckFolder done [16:35:56]ProducePacketName [16:35:56]name=ofd_packets/00187689 [16:35:56]NVStorageSaveData ofd_packets/00187689 [16:35:56]File name is /storage/ofd_packets/00187689 [16:35:56]Write 301 bytes [16:35:56]NVStorageSaveData done [16:35:56]OFDSenderStorePacket done [16:35:56]KKMCreateOFDPacket done [16:35:56]NVStorageSaveData kkm_last_timestamp [16:35:56]File name is /storage/kkm_last_timestamp [16:35:56]Write 4 bytes [16:35:56]NVStorageSaveData done [16:35:56]ExternCall_PrintAddStr [16:35:56]wPrintStart [16:35:56]Write to MH i2c: 01 00 00 0B 14 1F [16:35:56]Write i2c OK [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: 01 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: 01 07 00 [16:35:56]MH_I2C_Read... [16:35:56]Read from MH i2c: 01 07 00 0B 14 00 00 00 00 00 FF 0F 34 [16:35:56]RasterBufferAndPrint [16:35:56]line Счет N : (1)412849 [16:35:56]line ИНН: 02508201610067 [16:35:56]line Контрольно-Кассовый Чек [16:35:56]line ПРОДАЖА [16:35:56]line ТРК (МРК, ГНК) : 12 [16:35:56]line Товар: 2710124130 [16:35:56]line Аи-92-К-2 [16:35:56]line 2.190 * 64.20 [16:35:56]line = 140.60 [16:35:56]line НДС 12% НСП 1% [16:35:56]line > о реализуемом товаре [16:35:56]line ИТОГО: 140.60 [16:35:56]line НСП 1% : 1.24 [16:35:56]line НДС 12% : 14.93 [16:35:56]line Наличными: 0.00 [16:35:56]line Безнал.: 140.60 [16:35:56]line Место: АЗС № 92 "Партнер Нефть" [16:35:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:35:56]line СНО: Общий режим [16:35:56]line Чек 183 21.02.2025 16:35 [16:35:56]line Смена: 649 ФФД: 1.0 [16:35:56]line ЗНМ: 0300000118 [16:35:56]line РНМ: 0000000000091857 [16:35:56]line Версия ККМ: 001 [16:35:56]line Платежная система: O! деньги [16:35:56]line ФМ: 0000000000871826 [16:35:56]line ФД: 187689 [16:35:56]line ФПД: 146762466925025 [16:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T163556&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187689&fm=146762466925025&tin=02508201610067®Number=0000000000091857&sum=14060 [16:35:56]written 0, free lines is 4095 [16:35:57]Write to MH i2c: 01 00 00 35 14 49 [16:35:57]Write i2c OK [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: 01 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: 01 07 00 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: 01 07 00 35 14 00 00 00 00 00 F7 0C 53 [16:35:57]RasterBufferAndPrint [16:35:57]line [16:35:57]line [16:35:57]line [16:35:57]line [16:35:57]line [16:35:57]written 0, free lines is 3326 [16:35:57]MH_Cut [16:35:57]Write to MH i2c: D1 01 00 3C 14 01 22 [16:35:57]Write i2c OK [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: D1 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: D1 01 00 [16:35:57]MH_I2C_Read... [16:35:57]Read from MH i2c: D1 01 00 3C 14 00 21 [16:35:57]Write to MH i2c: 01 00 00 3D 14 51 [16:35:57]Write i2c OK [16:35:57]MH_I2C_Read... [16:35:57]*** Cut start [16:35:57]*** Partial cut [16:35:57]*** CUTSNS_PIN = 1 [16:35:58]*** CUTSNS_PIN = 0 [16:35:58]*** Brake cut motor [16:35:58]Read from MH i2c: 01 [16:35:58]MH_I2C_Read... [16:35:58]*** Stop cut motor [16:35:58]*** Cut end [16:35:58]Read from MH i2c: 01 07 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: 01 07 00 3D 14 00 00 00 00 00 FF 0F 66 [16:35:58]process_action close_receipt done [16:35:58]requested_data is exist [16:35:58]produce_requested_data [16:35:58]requested_item fm.sn is exist - process it [16:35:58]wFMCommunicate request_size=4 [16:35:58]MH_SAM_APDU [16:35:58]CAPDU: 80 11 00 00 [16:35:58]Write to MH i2c: E2 08 00 3E 14 80 11 00 00 00 00 00 00 CC [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:58]Read from MH i2c: E2 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 17 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 17 00 3E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1F [16:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:35:58]wFMCommunicate OK [16:35:58]requested_item fd.num is exist - process it [16:35:58]SAM_PROTO_GetFieldsCounters [16:35:58]wFMCommunicate request_size=4 [16:35:58]MH_SAM_APDU [16:35:58]CAPDU: 80 13 00 00 [16:35:58]Write to MH i2c: E2 08 00 3F 14 80 13 00 00 00 00 00 00 CF [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:58]Read from MH i2c: E2 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 62 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 62 00 3F 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 29 DD 02 00 0E 04 04 00 89 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 AD [16:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 29 DD 02 00 0E 04 04 00 89 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 [16:35:58]wFMCommunicate OK [16:35:58]SAM_PROTO_GetFieldsCounters done [16:35:58]requested_item shift.num is exist - process it [16:35:58]requested_item shift.opened is exist - process it [16:35:58]req_shift_opened [16:35:58]FM_GetShiftState [16:35:58]SAM_PROTO_GetShiftState [16:35:58]wFMCommunicate request_size=4 [16:35:58]MH_SAM_APDU [16:35:58]CAPDU: 80 13 01 00 [16:35:58]Write to MH i2c: E2 08 00 40 14 80 13 01 00 00 00 00 00 D1 [16:35:58]Write i2c OK [16:35:58]MH_I2C_Read... [16:35:58]ConnectInit Can't connect to host [16:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:58]Read from MH i2c: E2 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 0E 00 [16:35:58]MH_I2C_Read... [16:35:58]Read from MH i2c: E2 0E 00 40 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 BF [16:35:58]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:35:58]wFMCommunicate OK [16:35:58]SAM_PROTO_GetShiftState done [16:35:58]FM_GetShiftState done [16:35:58]req_shift_opened done [16:35:58]requested_item shift.open_date is exist - process it [16:35:58]req_shift_open_date [16:35:58]req_shift_open_date done [16:35:58]produce_requested_data done [16:35:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187689,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:35:58]process_action_free close_receipt [16:35:58]json_value_free [16:35:58]json_value_free done [16:35:58]process_json_proto returns [16:35:58]Send response to host [16:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187689,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:35:58]free response buf [16:35:58]execute_script done [16:35:58]execute_script returns [16:35:58]free content buf [16:35:58]Sock 7.Close socket [16:35:58]Sock 7.Thread stoped [16:35:59]ConnectInit Can't take IP for lk.salyk.kg [16:35:59]CommunicateWithHost connect error [16:35:59]CommunicateWithHost err = -1 [16:35:59]OFD Sender: Server communicate error [16:35:59]OFD Sender: Processing packet 187687 [packets to send 51, broken 48] [16:35:59]ProducePacketName [16:35:59]name=ofd_packets/00187687 [16:35:59]OFD Sender: To server: pG, [16:35:59]CommunicateWithHost lk.salyk.kg:30040 [16:35:59]ConnectInit lk.salyk.kg [16:36:04]ConnectInit Can't take IP for lk.salyk.kg [16:36:04]CommunicateWithHost connect error [16:36:04]CommunicateWithHost err = -1 [16:36:04]OFD Sender: Server communicate error [16:36:09]OFD Sender: Processing packet 187687 [packets to send 51, broken 48] [16:36:09]ProducePacketName [16:36:09]name=ofd_packets/00187687 [16:36:09]OFD Sender: To server: pG, [16:36:09]CommunicateWithHost lk.salyk.kg:30040 [16:36:09]ConnectInit lk.salyk.kg [16:36:09]Connected sock=9 [16:36:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DA E2 04 01 2B 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 C4 AA B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DD 02 00 35 04 06 00 C2 3E 62 E9 07 15 31 63 DC 98 AD 07 6A CA [16:36:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CF 89 47 00 B9 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DD 02 00 F4 03 04 00 C5 51 B8 67 B6 04 01 00 00 46 3D 7C 42 51 55 FF 78 [16:36:10]CommunicateWithHost err = 0 [16:36:10]CheckOFDResponse [16:36:10]1017 (14) - 77093643461234 [16:36:10]1041 (16) - 0000000000871826 [16:36:10]1040 (4) - 187687 [16:36:10]1012 (4) - 21.02.2025 10:13 [16:36:10]1206 (1) - 0 [16:36:10]OFD Sender: Remove packet 187687 [16:36:10]ProducePacketName [16:36:10]name=ofd_packets/00187687 [16:36:10]NVStorageDeleteData [16:36:10]OFD Sender: Processing packet 187688 [packets to send 50, broken 48] [16:36:10]ProducePacketName [16:36:10]name=ofd_packets/00187688 [16:36:10]OFD Sender: To server: pG, [16:36:10]CommunicateWithHost lk.salyk.kg:30040 [16:36:10]ConnectInit lk.salyk.kg [16:36:10]Connected sock=7 [16:36:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FB FA 07 01 F6 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 47 AB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DD 02 00 35 04 06 00 EB C7 03 DB 68 AD F2 02 8A BA 25 02 A9 F2 [16:36:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EC FA 47 00 9F E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DD 02 00 F4 03 04 00 C6 51 B8 67 B6 04 01 00 00 87 7C 1C EB 28 03 39 EF [16:36:10]CommunicateWithHost err = 0 [16:36:10]CheckOFDResponse [16:36:10]1017 (14) - 77093643461234 [16:36:10]1041 (16) - 0000000000871826 [16:36:10]1040 (4) - 187688 [16:36:10]1012 (4) - 21.02.2025 10:13 [16:36:10]1206 (1) - 0 [16:36:10]OFD Sender: Remove packet 187688 [16:36:10]ProducePacketName [16:36:10]name=ofd_packets/00187688 [16:36:10]NVStorageDeleteData [16:36:11]OFD Sender: Processing packet 187689 [packets to send 49, broken 48] [16:36:11]ProducePacketName [16:36:11]name=ofd_packets/00187689 [16:36:11]OFD Sender: To server: pG, [16:36:11]CommunicateWithHost lk.salyk.kg:30040 [16:36:11]ConnectInit lk.salyk.kg [16:36:11]Connected sock=7 [16:36:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B2 13 07 01 B9 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8E 08 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 EC 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 6C AB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 DD 02 00 35 04 06 00 85 7A CC B5 19 E1 59 77 70 B3 0E 4C 26 E1 [16:36:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3D EE 47 00 5D 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 38 32 36 10 04 04 00 29 DD 02 00 F4 03 04 00 C7 51 B8 67 B6 04 01 00 00 0A 89 F8 FA E2 1E 4E 2C [16:36:11]CommunicateWithHost err = 0 [16:36:11]CheckOFDResponse [16:36:11]1017 (14) - 77093643461234 [16:36:11]1041 (16) - 0000000000871826 [16:36:11]1040 (4) - 187689 [16:36:11]1012 (4) - 21.02.2025 10:13 [16:36:11]1206 (1) - 0 [16:36:11]OFD Sender: Remove packet 187689 [16:36:11]ProducePacketName [16:36:11]name=ofd_packets/00187689 [16:36:11]NVStorageDeleteData [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:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:23]accept exits with 11 [16:44:23]New connection [16:44:23]New thread 3067481444 created [16:44:23]Thread 3067624804 joined [16:44:23]Waiting for new connection... [16:44:23] Sock 11.Parse request [16:44:23]Sock 11.Check first char [16:44:23]Sock 11.First char is OK [16:44:23]request: POST /json_proto HTTP/1.0 [16:44:23]Method: POST [16:44:23]URL: /json_proto [16:44:23]Method is POST - this is cgi request [16:44:23]url: /json_proto [16:44:23]query_string will be loaded in cgi processing [16:44:23]execute_cgi json_proto POST (null) [16:44:23]execute_cgi path=json_proto method=POST [16:44:23]POST find Content-Length [16:44:23]Host: 172.17.46.131:8080 [16:44:23]Content-Length: 754 [16:44:23]Content-Type: application/json [16:44:23] [16:44:23]POST finish read [16:44:23]Found Content-Length = 754 [16:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:23]execute_script... [16:44:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:23]POST & json_proto [16:44:23]process_json_proto [16:44:23]json parsed OK: [16:44:23]protocol is kg_v1.0 [16:44:23]action value=close_receipt [16:44:23]process_action close_receipt [16:44:23]cmd_close_receipt [16:44:23]MH_GetDate [16:44:23]Write to MH i2c: F0 00 00 41 14 44 [16:44:23]Write i2c OK [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: F0 [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: F0 09 00 [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: F0 09 00 41 14 00 68 AD B8 67 7E 41 4F 65 F4 [16:44:23]GetLastDocTimeStamp 1740155756 [16:44:23]current date 1740156264 [16:44:23]FM_GetShiftState [16:44:23]SAM_PROTO_GetShiftState [16:44:23]wFMCommunicate request_size=4 [16:44:23]MH_SAM_APDU [16:44:23]CAPDU: 80 13 01 00 [16:44:23]Write to MH i2c: E2 08 00 42 14 80 13 01 00 00 00 00 00 D3 [16:44:23]Write i2c OK [16:44:23]MH_I2C_Read... [16:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:23]Read from MH i2c: E2 [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: E2 0E 00 [16:44:23]MH_I2C_Read... [16:44:23]Read from MH i2c: E2 0E 00 42 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C1 [16:44:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:44:23]wFMCommunicate OK [16:44:23]SAM_PROTO_GetShiftState done [16:44:23]FM_GetShiftState done [16:44:23]opened in 1740098043 [16:44:23]opened+sec_in_day 1740184443 [16:44:23]quantity*price = 0 [16:44:23]sum+1 = 1 [16:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 184 21.02.2025 16:44 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116166 ФМ: 0000000000871826 ФД: 187690 ФПД: 168695421367804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T164424&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187690&fm=168695421367804&tin=02508201610067®Number=0000000000091857&sum=0 [16:44:24]StoreToDocumentArchive [16:44:24]shift 649 fd 187690 [16:44:24]save to /storage/0649/doc_00187690 [16:44:24]save last doc name /storage/0649/doc_00187690 to /storage/kkm_last_doc_name [16:44:24]save OK [16:44:24]Clear old archive folders... [16:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:24]tlvbuf is 00BE5BD0 [16:44:24]SAM_PROTO_ClearQueue [16:44:24]wFMCommunicate request_size=4 [16:44:24]MH_SAM_APDU [16:44:24]CAPDU: 80 09 00 00 [16:44:24]Write to MH i2c: E2 08 00 4F 14 80 09 00 00 00 00 00 00 D5 [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:24]Read from MH i2c: E2 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 4F 14 00 90 00 D7 [16:44:24]RAPDU: 90 00 [16:44:24]wFMCommunicate OK [16:44:24]SAM_PROTO_ClearQueue done [16:44:24]KKMCreateOFDPacket [16:44:24]OFDProtocolAddRootSTLVToBuf [16:44:24]FM_MakeSignedData [16:44:24]FM_MakeSignedData [16:44:24]SAM_PROTO_SignData [16:44:24]wFMCommunicate request_size=4 [16:44:24]MH_SAM_APDU [16:44:24]CAPDU: 80 0D 01 02 [16:44:24]Write to MH i2c: E2 08 00 50 14 80 0D 01 02 00 00 00 00 DD [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:24]Read from MH i2c: E2 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 [16:44:24]MH_I2C_Read... [16:44:24]Read from MH i2c: E2 03 00 50 14 00 90 00 D8 [16:44:24]RAPDU: 90 00 [16:44:24]wFMCommunicate OK [16:44:24]wFMCommunicate request_size=255 [16:44:24]MH_SAM_APDU [16:44:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 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 B8 00 00 00 F4 03 04 00 68 AD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DD 02 00 35 04 06 00 99 [16:44:24]Write to MH i2c: E2 02 01 51 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 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 B8 00 00 00 F4 03 04 00 68 AD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DD 02 00 35 04 06 00 99 00 00 D4 [16:44:24]Write i2c OK [16:44:24]MH_I2C_Read... [16:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:25]Read from MH i2c: E2 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 03 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 03 00 51 14 00 90 00 D9 [16:44:25]RAPDU: 90 00 [16:44:25]wFMCommunicate OK [16:44:25]wFMCommunicate request_size=10 [16:44:25]MH_SAM_APDU [16:44:25]CAPDU: 80 0D 02 02 05 6D 76 AA 75 FC [16:44:25]Write to MH i2c: E2 0D 00 52 14 80 0D 02 02 05 00 6D 76 AA 75 FC 00 00 E8 [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:25]Read from MH i2c: E2 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 03 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 03 00 52 14 00 90 00 DA [16:44:25]RAPDU: 90 00 [16:44:25]wFMCommunicate OK [16:44:25]wFMCommunicate request_size=4 [16:44:25]MH_SAM_APDU [16:44:25]CAPDU: 80 0D 03 02 [16:44:25]Write to MH i2c: E2 08 00 53 14 80 0D 03 02 00 00 00 00 E2 [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:25]Read from MH i2c: E2 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 0B 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 0B 00 53 14 00 AE 89 CB 7E B5 81 6C 4C 90 00 51 [16:44:25]RAPDU: AE 89 CB 7E B5 81 6C 4C 90 00 [16:44:25]wFMCommunicate OK [16:44:25]SAM_PROTO_SignData done [16:44:25]FM_MakeSignedData done [16:44:25]CreateOFDProtocolMessage [16:44:25]wFMCommunicate request_size=4 [16:44:25]MH_SAM_APDU [16:44:25]CAPDU: 80 11 00 00 [16:44:25]Write to MH i2c: E2 08 00 54 14 80 11 00 00 00 00 00 00 E2 [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:25]Read from MH i2c: E2 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 17 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: E2 17 00 54 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 35 [16:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:44:25]wFMCommunicate OK [16:44:25]CreateOFDProtocolMessage done [16:44:25]OFDSenderStorePacket 187690 [16:44:25]StoreOFDPacket docnum=187690 [16:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 16 B2 07 01 06 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 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 B8 00 00 00 F4 03 04 00 68 AD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DD 02 00 35 04 06 00 99 6D 76 AA 75 FC AE 89 CB 7E B5 81 6C 4C [16:44:25]CheckFolder [16:44:25]dirname=/storage/ofd_packets [16:44:25]CheckFolder done [16:44:25]ProducePacketName [16:44:25]name=ofd_packets/00187690 [16:44:25]NVStorageSaveData ofd_packets/00187690 [16:44:25]File name is /storage/ofd_packets/00187690 [16:44:25]Write 301 bytes [16:44:25]NVStorageSaveData done [16:44:25]OFDSenderStorePacket done [16:44:25]KKMCreateOFDPacket done [16:44:25]NVStorageSaveData kkm_last_timestamp [16:44:25]File name is /storage/kkm_last_timestamp [16:44:25]Write 4 bytes [16:44:25]NVStorageSaveData done [16:44:25]ExternCall_PrintAddStr [16:44:25]wPrintStart [16:44:25]Write to MH i2c: 01 00 00 55 14 69 [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: 01 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: 01 07 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: 01 07 00 55 14 00 00 00 00 00 FF 0F 7E [16:44:25]RasterBufferAndPrint [16:44:25]line Счет N : (1)412850 [16:44:25]line ИНН: 02508201610067 [16:44:25]line Контрольно-Кассовый Чек [16:44:25]line ПРОДАЖА [16:44:25]line ТРК (МРК, ГНК) : 32 [16:44:25]line Товар: 2710124130 [16:44:25]line Аи-92-К-2 [16:44:25]line 20.100 * 0.00 [16:44:25]line = 0.00 [16:44:25]line НДС 12% НСП 1% [16:44:25]line > о реализуемом товаре [16:44:25]line ИТОГО: 0.00 [16:44:25]line НСП 1% : 0.00 [16:44:25]line НДС 12% : 0.00 [16:44:25]line Наличными: 0.00 [16:44:25]line Безнал.: 0.00 [16:44:25]line Место: АЗС № 92 "Партнер Нефть" [16:44:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:44:25]line СНО: Общий режим [16:44:25]line Чек 184 21.02.2025 16:44 [16:44:25]line Смена: 649 ФФД: 1.0 [16:44:25]line ЗНМ: 0300000118 [16:44:25]line РНМ: 0000000000091857 [16:44:25]line Версия ККМ: 001 [16:44:25]line Талоны: ТК ГПНА Online [16:44:25]line 30116166 [16:44:25]line ФМ: 0000000000871826 [16:44:25]line ФД: 187690 [16:44:25]line ФПД: 168695421367804 [16:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T164424&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187690&fm=168695421367804&tin=02508201610067®Number=0000000000091857&sum=0 [16:44:25]written 0, free lines is 4095 [16:44:25]OFD Sender: Processing packet 187690 [packets to send 49, broken 48] [16:44:25]ProducePacketName [16:44:25]name=ofd_packets/00187690 [16:44:25]OFD Sender: To server: pG, [16:44:25]CommunicateWithHost lk.salyk.kg:30040 [16:44:25]ConnectInit lk.salyk.kg [16:44:25]Write to MH i2c: 01 00 00 7F 14 93 [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: 01 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: 01 07 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: 01 07 00 7F 14 00 00 00 00 00 FB 0C A1 [16:44:25]RasterBufferAndPrint [16:44:25]line [16:44:25]line [16:44:25]line [16:44:25]line [16:44:25]line [16:44:25]written 0, free lines is 3329 [16:44:25]MH_Cut [16:44:25]Write to MH i2c: D1 01 00 86 14 01 6C [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: D1 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: D1 01 00 [16:44:25]MH_I2C_Read... [16:44:25]Read from MH i2c: D1 01 00 86 14 00 6B [16:44:25]Write to MH i2c: 01 00 00 87 14 9B [16:44:25]Write i2c OK [16:44:25]MH_I2C_Read... [16:44:26]*** Cut start [16:44:26]*** Partial cut [16:44:26]*** CUTSNS_PIN = 1 [16:44:26]*** CUTSNS_PIN = 0 [16:44:26]*** Brake cut motor [16:44:27]Read from MH i2c: 01 [16:44:27]MH_I2C_Read... [16:44:27]*** Stop cut motor [16:44:27]*** Cut end [16:44:27]Read from MH i2c: 01 07 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: 01 07 00 87 14 00 00 00 00 00 FF 0F B0 [16:44:27]process_action close_receipt done [16:44:27]requested_data is exist [16:44:27]produce_requested_data [16:44:27]requested_item fm.sn is exist - process it [16:44:27]wFMCommunicate request_size=4 [16:44:27]MH_SAM_APDU [16:44:27]CAPDU: 80 11 00 00 [16:44:27]Write to MH i2c: E2 08 00 88 14 80 11 00 00 00 00 00 00 16 [16:44:27]Write i2c OK [16:44:27]MH_I2C_Read... [16:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:27]Read from MH i2c: E2 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 17 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 17 00 88 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 69 [16:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:44:27]wFMCommunicate OK [16:44:27]requested_item fd.num is exist - process it [16:44:27]SAM_PROTO_GetFieldsCounters [16:44:27]wFMCommunicate request_size=4 [16:44:27]MH_SAM_APDU [16:44:27]CAPDU: 80 13 00 00 [16:44:27]Write to MH i2c: E2 08 00 89 14 80 13 00 00 00 00 00 00 19 [16:44:27]Write i2c OK [16:44:27]MH_I2C_Read... [16:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:27]Read from MH i2c: E2 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 62 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 62 00 89 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2A DD 02 00 0E 04 04 00 89 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 FB [16:44:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2A DD 02 00 0E 04 04 00 89 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 [16:44:27]wFMCommunicate OK [16:44:27]SAM_PROTO_GetFieldsCounters done [16:44:27]requested_item shift.num is exist - process it [16:44:27]requested_item shift.opened is exist - process it [16:44:27]req_shift_opened [16:44:27]FM_GetShiftState [16:44:27]SAM_PROTO_GetShiftState [16:44:27]wFMCommunicate request_size=4 [16:44:27]MH_SAM_APDU [16:44:27]CAPDU: 80 13 01 00 [16:44:27]Write to MH i2c: E2 08 00 8A 14 80 13 01 00 00 00 00 00 1B [16:44:27]Write i2c OK [16:44:27]MH_I2C_Read... [16:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:27]Read from MH i2c: E2 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 0E 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 0E 00 8A 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 09 [16:44:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:44:27]wFMCommunicate OK [16:44:27]SAM_PROTO_GetShiftState done [16:44:27]FM_GetShiftState done [16:44:27]req_shift_opened done [16:44:27]requested_item shift.open_date is exist - process it [16:44:27]req_shift_open_date [16:44:27]req_shift_open_date done [16:44:27]produce_requested_data done [16:44:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187690,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:44:27]process_action_free close_receipt [16:44:27]json_value_free [16:44:27]json_value_free done [16:44:27]process_json_proto returns [16:44:27]Send response to host [16:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187690,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:44:27]free response buf [16:44:27]execute_script done [16:44:27]execute_script returns [16:44:27]free content buf [16:44:27]Sock 11.Close socket [16:44:27]Sock 11.Thread stoped [16:46:34]ConnectInit Can't connect to host [16:46:34]CommunicateWithHost connect error [16:46:34]CommunicateWithHost err = -1 [16:46:34]OFD Sender: Server communicate error [16:46:39]OFD Sender: Processing packet 187690 [packets to send 49, broken 48] [16:46:39]ProducePacketName [16:46:39]name=ofd_packets/00187690 [16:46:39]OFD Sender: To server: pG, [16:46:39]CommunicateWithHost lk.salyk.kg:30040 [16:46:39]ConnectInit lk.salyk.kg [16:46:40]Connected sock=9 [16:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 16 B2 07 01 06 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 84 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 B8 00 00 00 F4 03 04 00 68 AD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DD 02 00 35 04 06 00 99 6D 76 AA 75 FC AE 89 CB 7E B5 81 6C 4C [16:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 73 8B 47 00 F8 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 38 32 36 10 04 04 00 2A DD 02 00 F4 03 04 00 3C 54 B8 67 B6 04 01 00 00 46 5A CD D0 83 83 5D 28 [16:46:40]CommunicateWithHost err = 0 [16:46:40]CheckOFDResponse [16:46:40]1017 (14) - 77093643461234 [16:46:40]1041 (16) - 0000000000871826 [16:46:40]1040 (4) - 187690 [16:46:40]1012 (4) - 21.02.2025 10:23 [16:46:40]1206 (1) - 0 [16:46:40]OFD Sender: Remove packet 187690 [16:46:40]ProducePacketName [16:46:40]name=ofd_packets/00187690 [16:46:40]NVStorageDeleteData [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:11]accept exits with 7 [16:48:11]New connection [16:48:11]New thread 3067624804 created [16:48:11]Thread 3067481444 joined [16:48:11]Waiting for new connection... [16:48:11] Sock 7.Parse request [16:48:11]Sock 7.Check first char [16:48:11]Sock 7.First char is OK [16:48:11]request: POST /json_proto HTTP/1.0 [16:48:11]Method: POST [16:48:11]URL: /json_proto [16:48:11]Method is POST - this is cgi request [16:48:11]url: /json_proto [16:48:11]query_string will be loaded in cgi processing [16:48:11]execute_cgi json_proto POST (null) [16:48:11]execute_cgi path=json_proto method=POST [16:48:11]POST find Content-Length [16:48:11]Host: 172.17.46.131:8080 [16:48:11]Content-Length: 754 [16:48:11]Content-Type: application/json [16:48:11] [16:48:11]POST finish read [16:48:11]Found Content-Length = 754 [16:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:11]execute_script... [16:48: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)412852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:11]POST & json_proto [16:48:11]process_json_proto [16:48:11]json parsed OK: [16:48:11]protocol is kg_v1.0 [16:48:11]action value=close_receipt [16:48:11]process_action close_receipt [16:48:11]cmd_close_receipt [16:48:11]MH_GetDate [16:48:11]Write to MH i2c: F0 00 00 8B 14 8E [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: F0 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: F0 09 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: F0 09 00 8B 14 00 4C AE B8 67 7E 41 4F 65 23 [16:48:11]GetLastDocTimeStamp 1740156264 [16:48:11]current date 1740156492 [16:48:11]FM_GetShiftState [16:48:11]SAM_PROTO_GetShiftState [16:48:11]wFMCommunicate request_size=4 [16:48:11]MH_SAM_APDU [16:48:11]CAPDU: 80 13 01 00 [16:48:11]Write to MH i2c: E2 08 00 8C 14 80 13 01 00 00 00 00 00 1D [16:48:11]Write i2c OK [16:48:11]MH_I2C_Read... [16:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:11]Read from MH i2c: E2 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 [16:48:11]MH_I2C_Read... [16:48:11]Read from MH i2c: E2 0E 00 8C 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0B [16:48:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:48:11]wFMCommunicate OK [16:48:11]SAM_PROTO_GetShiftState done [16:48:11]FM_GetShiftState done [16:48:11]opened in 1740098043 [16:48:11]opened+sec_in_day 1740184443 [16:48:11]quantity*price = 0 [16:48:11]sum+1 = 1 [16:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 185 21.02.2025 16:48 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116166 ФМ: 0000000000871826 ФД: 187691 ФПД: 8937276272203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T164812&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187691&fm=8937276272203&tin=02508201610067®Number=0000000000091857&sum=0 [16:48:12]StoreToDocumentArchive [16:48:12]shift 649 fd 187691 [16:48:12]save to /storage/0649/doc_00187691 [16:48:12]save last doc name /storage/0649/doc_00187691 to /storage/kkm_last_doc_name [16:48:12]save OK [16:48:12]Clear old archive folders... [16:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:12]tlvbuf is 00BDF340 [16:48:12]SAM_PROTO_ClearQueue [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 09 00 00 [16:48:12]Write to MH i2c: E2 08 00 99 14 80 09 00 00 00 00 00 00 1F [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 99 14 00 90 00 21 [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]SAM_PROTO_ClearQueue done [16:48:12]KKMCreateOFDPacket [16:48:12]OFDProtocolAddRootSTLVToBuf [16:48:12]FM_MakeSignedData [16:48:12]FM_MakeSignedData [16:48:12]SAM_PROTO_SignData [16:48:12]wFMCommunicate request_size=4 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 0D 01 02 [16:48:12]Write to MH i2c: E2 08 00 9A 14 80 0D 01 02 00 00 00 00 27 [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:12]Read from MH i2c: E2 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 [16:48:12]MH_I2C_Read... [16:48:12]Read from MH i2c: E2 03 00 9A 14 00 90 00 22 [16:48:12]RAPDU: 90 00 [16:48:12]wFMCommunicate OK [16:48:12]wFMCommunicate request_size=255 [16:48:12]MH_SAM_APDU [16:48:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 4C AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DD 02 00 35 04 06 00 08 [16:48:12]Write to MH i2c: E2 02 01 9B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 4C AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DD 02 00 35 04 06 00 08 00 00 BA [16:48:12]Write i2c OK [16:48:12]MH_I2C_Read... [16:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:13]Read from MH i2c: E2 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 03 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 03 00 9B 14 00 90 00 23 [16:48:13]RAPDU: 90 00 [16:48:13]wFMCommunicate OK [16:48:13]wFMCommunicate request_size=10 [16:48:13]MH_SAM_APDU [16:48:13]CAPDU: 80 0D 02 02 05 20 DF 2D 6E 4B [16:48:13]Write to MH i2c: E2 0D 00 9C 14 80 0D 02 02 05 00 20 DF 2D 6E 4B 00 00 19 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:13]Read from MH i2c: E2 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 03 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 03 00 9C 14 00 90 00 24 [16:48:13]RAPDU: 90 00 [16:48:13]wFMCommunicate OK [16:48:13]wFMCommunicate request_size=4 [16:48:13]MH_SAM_APDU [16:48:13]CAPDU: 80 0D 03 02 [16:48:13]Write to MH i2c: E2 08 00 9D 14 80 0D 03 02 00 00 00 00 2C [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:13]Read from MH i2c: E2 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 0B 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 0B 00 9D 14 00 C8 3B 99 9B B2 37 28 B0 90 00 25 [16:48:13]RAPDU: C8 3B 99 9B B2 37 28 B0 90 00 [16:48:13]wFMCommunicate OK [16:48:13]SAM_PROTO_SignData done [16:48:13]FM_MakeSignedData done [16:48:13]CreateOFDProtocolMessage [16:48:13]wFMCommunicate request_size=4 [16:48:13]MH_SAM_APDU [16:48:13]CAPDU: 80 11 00 00 [16:48:13]Write to MH i2c: E2 08 00 9E 14 80 11 00 00 00 00 00 00 2C [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:13]Read from MH i2c: E2 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 17 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: E2 17 00 9E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7F [16:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:48:13]wFMCommunicate OK [16:48:13]CreateOFDProtocolMessage done [16:48:13]OFDSenderStorePacket 187691 [16:48:13]StoreOFDPacket docnum=187691 [16:48:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 14 1F 07 01 E9 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 4C AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DD 02 00 35 04 06 00 08 20 DF 2D 6E 4B C8 3B 99 9B B2 37 28 B0 [16:48:13]CheckFolder [16:48:13]dirname=/storage/ofd_packets [16:48:13]CheckFolder done [16:48:13]ProducePacketName [16:48:13]name=ofd_packets/00187691 [16:48:13]NVStorageSaveData ofd_packets/00187691 [16:48:13]File name is /storage/ofd_packets/00187691 [16:48:13]Write 301 bytes [16:48:13]NVStorageSaveData done [16:48:13]OFDSenderStorePacket done [16:48:13]KKMCreateOFDPacket done [16:48:13]NVStorageSaveData kkm_last_timestamp [16:48:13]File name is /storage/kkm_last_timestamp [16:48:13]Write 4 bytes [16:48:13]NVStorageSaveData done [16:48:13]ExternCall_PrintAddStr [16:48:13]wPrintStart [16:48:13]Write to MH i2c: 01 00 00 9F 14 B3 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 FF 0F C8 [16:48:13]RasterBufferAndPrint [16:48:13]line Счет N : (1)412852 [16:48:13]line ИНН: 02508201610067 [16:48:13]line Контрольно-Кассовый Чек [16:48:13]line ПРОДАЖА [16:48:13]line ТРК (МРК, ГНК) : 12 [16:48:13]line Товар: 2710124130 [16:48:13]line Аи-92-К-2 [16:48:13]line 15.580 * 0.00 [16:48:13]line = 0.00 [16:48:13]line НДС 12% НСП 1% [16:48:13]line > о реализуемом товаре [16:48:13]line ИТОГО: 0.00 [16:48:13]line НСП 1% : 0.00 [16:48:13]line НДС 12% : 0.00 [16:48:13]line Наличными: 0.00 [16:48:13]line Безнал.: 0.00 [16:48:13]line Место: АЗС № 92 "Партнер Нефть" [16:48:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:48:13]line СНО: Общий режим [16:48:13]line Чек 185 21.02.2025 16:48 [16:48:13]line Смена: 649 ФФД: 1.0 [16:48:13]line ЗНМ: 0300000118 [16:48:13]line РНМ: 0000000000091857 [16:48:13]line Версия ККМ: 001 [16:48:13]line Талоны: ТК ГПНА Online [16:48:13]line 30116166 [16:48:13]line ФМ: 0000000000871826 [16:48:13]line ФД: 187691 [16:48:13]line ФПД: 8937276272203 [16:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T164812&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187691&fm=8937276272203&tin=02508201610067®Number=0000000000091857&sum=0 [16:48:13]written 0, free lines is 4095 [16:48:13]OFD Sender: Processing packet 187691 [packets to send 49, broken 48] [16:48:13]ProducePacketName [16:48:13]name=ofd_packets/00187691 [16:48:13]OFD Sender: To server: pG, [16:48:13]CommunicateWithHost lk.salyk.kg:30040 [16:48:13]ConnectInit lk.salyk.kg [16:48:13]Connected sock=10 [16:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 14 1F 07 01 E9 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 4C AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DD 02 00 35 04 06 00 08 20 DF 2D 6E 4B C8 3B 99 9B B2 37 28 B0 [16:48:13]Write to MH i2c: 01 00 00 C9 14 DD [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: 01 07 00 C9 14 00 00 00 00 00 FB 0C EB [16:48:13]RasterBufferAndPrint [16:48:13]line [16:48:13]line [16:48:13]line [16:48:13]line [16:48:13]line [16:48:13]written 0, free lines is 3329 [16:48:13]MH_Cut [16:48:13]Write to MH i2c: D1 01 00 D0 14 01 B6 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: D1 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: D1 01 00 [16:48:13]MH_I2C_Read... [16:48:13]Read from MH i2c: D1 01 00 D0 14 00 B5 [16:48:13]Write to MH i2c: 01 00 00 D1 14 E5 [16:48:13]Write i2c OK [16:48:13]MH_I2C_Read... [16:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8B AB 47 00 CD 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DD 02 00 F4 03 04 00 99 54 B8 67 B6 04 01 00 00 10 56 28 AD 28 19 17 95 [16:48:13]CommunicateWithHost err = 0 [16:48:13]CheckOFDResponse [16:48:13]1017 (14) - 77093643461234 [16:48:13]1041 (16) - 0000000000871826 [16:48:13]1040 (4) - 187691 [16:48:13]1012 (4) - 21.02.2025 10:25 [16:48:13]1206 (1) - 0 [16:48:13]OFD Sender: Remove packet 187691 [16:48:13]ProducePacketName [16:48:13]name=ofd_packets/00187691 [16:48:13]NVStorageDeleteData [16:48:14]OFD Sender: No OFD packet to send [16:48:14]*** Cut start [16:48:14]*** Partial cut [16:48:14]*** CUTSNS_PIN = 1 [16:48:14]*** CUTSNS_PIN = 0 [16:48:14]*** Brake cut motor [16:48:15]Read from MH i2c: 01 [16:48:15]MH_I2C_Read... [16:48:15]*** Stop cut motor [16:48:15]*** Cut end [16:48:15]Read from MH i2c: 01 07 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 07 00 D1 14 00 00 00 00 00 FF 0F FA [16:48:15]process_action close_receipt done [16:48:15]requested_data is exist [16:48:15]produce_requested_data [16:48:15]requested_item fm.sn is exist - process it [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 11 00 00 [16:48:15]Write to MH i2c: E2 08 00 D2 14 80 11 00 00 00 00 00 00 60 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 D2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B3 [16:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:48:15]wFMCommunicate OK [16:48:15]requested_item fd.num is exist - process it [16:48:15]SAM_PROTO_GetFieldsCounters [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 13 00 00 [16:48:15]Write to MH i2c: E2 08 00 D3 14 80 13 00 00 00 00 00 00 63 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 62 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 62 00 D3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2B DD 02 00 0E 04 04 00 89 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 49 [16:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2B DD 02 00 0E 04 04 00 89 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 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_GetFieldsCounters done [16:48:15]requested_item shift.num is exist - process it [16:48:15]requested_item shift.opened is exist - process it [16:48:15]req_shift_opened [16:48:15]FM_GetShiftState [16:48:15]SAM_PROTO_GetShiftState [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 13 01 00 [16:48:15]Write to MH i2c: E2 08 00 D4 14 80 13 01 00 00 00 00 00 65 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0E 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0E 00 D4 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 53 [16:48:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_GetShiftState done [16:48:15]FM_GetShiftState done [16:48:15]req_shift_opened done [16:48:15]requested_item shift.open_date is exist - process it [16:48:15]req_shift_open_date [16:48:15]req_shift_open_date done [16:48:15]produce_requested_data done [16:48:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187691,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:48:15]process_action_free close_receipt [16:48:15]json_value_free [16:48:15]json_value_free done [16:48:15]process_json_proto returns [16:48:15]Send response to host [16:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187691,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:48:15]free response buf [16:48:15]execute_script done [16:48:15]execute_script returns [16:48:15]free content buf [16:48:15]Sock 7.Close socket [16:48:15]Sock 7.Thread stoped [16:48:15]accept exits with 9 [16:48:15]New connection [16:48:15]New thread 3067481444 created [16:48:15]Thread 3067624804 joined [16:48:15]Waiting for new connection... [16:48:15] Sock 9.Parse request [16:48:15]Sock 9.Check first char [16:48:15]Sock 9.First char is OK [16:48:15]request: POST /json_proto HTTP/1.0 [16:48:15]Method: POST [16:48:15]URL: /json_proto [16:48:15]Method is POST - this is cgi request [16:48:15]url: /json_proto [16:48:15]query_string will be loaded in cgi processing [16:48:15]execute_cgi json_proto POST (null) [16:48:15]execute_cgi path=json_proto method=POST [16:48:15]POST find Content-Length [16:48:15]Host: 172.17.46.131:8080 [16:48:15]Content-Length: 754 [16:48:15]Content-Type: application/json [16:48:15] [16:48:15]POST finish read [16:48:15]Found Content-Length = 754 [16:48:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:15]execute_script... [16:48: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)412851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:15]POST & json_proto [16:48:15]process_json_proto [16:48:15]json parsed OK: [16:48:15]protocol is kg_v1.0 [16:48:15]action value=close_receipt [16:48:15]process_action close_receipt [16:48:15]cmd_close_receipt [16:48:15]MH_GetDate [16:48:15]Write to MH i2c: F0 00 00 D5 14 D8 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: F0 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: F0 09 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: F0 09 00 D5 14 00 50 AE B8 67 7E 41 4F 65 71 [16:48:15]GetLastDocTimeStamp 1740156492 [16:48:15]current date 1740156496 [16:48:15]FM_GetShiftState [16:48:15]SAM_PROTO_GetShiftState [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 13 01 00 [16:48:15]Write to MH i2c: E2 08 00 D6 14 80 13 01 00 00 00 00 00 67 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:15]E2 0E 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0E 00 D6 14 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 55 [16:48:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_GetShiftState done [16:48:15]FM_GetShiftState done [16:48:15]opened in 1740098043 [16:48:15]opened+sec_in_day 1740184443 [16:48:15]quantity*price = 0 [16:48:15]sum+1 = 1 [16:48:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 186 21.02.2025 16:48 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116166 ФМ: 0000000000871826 ФД: 187692 ФПД: 96672011414054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T164816&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187692&fm=96672011414054&tin=02508201610067®Number=0000000000091857&sum=0 [16:48:17]StoreToDocumentArchive [16:48:17]shift 649 fd 187692 [16:48:17]save to /storage/0649/doc_00187692 [16:48:17]save last doc name /storage/0649/doc_00187692 to /storage/kkm_last_doc_name [16:48:17]save OK [16:48:17]Clear old archive folders... [16:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:17]tlvbuf is 00C4E700 [16:48:17]SAM_PROTO_ClearQueue [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 09 00 00 [16:48:17]Write to MH i2c: E2 08 00 E3 14 80 09 00 00 00 00 00 00 69 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 03 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 03 00 E3 14 00 90 00 6B [16:48:17]RAPDU: 90 00 [16:48:17]wFMCommunicate OK [16:48:17]SAM_PROTO_ClearQueue done [16:48:17]KKMCreateOFDPacket [16:48:17]OFDProtocolAddRootSTLVToBuf [16:48:17]FM_MakeSignedData [16:48:17]FM_MakeSignedData [16:48:17]SAM_PROTO_SignData [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 0D 01 02 [16:48:17]Write to MH i2c: E2 08 00 E4 14 80 0D 01 02 00 00 00 00 71 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 03 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 03 00 E4 14 00 90 00 6C [16:48:17]RAPDU: 90 00 [16:48:17]wFMCommunicate OK [16:48:17]wFMCommunicate request_size=255 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 50 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DD 02 00 35 04 06 00 57 [16:48:17]Write to MH i2c: E2 02 01 E5 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 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 BA 00 00 00 F4 03 04 00 50 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DD 02 00 35 04 06 00 57 00 00 59 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 03 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 03 00 E5 14 00 90 00 6D [16:48:17]RAPDU: 90 00 [16:48:17]wFMCommunicate OK [16:48:17]wFMCommunicate request_size=10 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 0D 02 02 05 EC 34 E6 6A 26 [16:48:17]Write to MH i2c: E2 0D 00 E6 14 80 0D 02 02 05 00 EC 34 E6 6A 26 00 00 14 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 03 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 03 00 E6 14 00 90 00 6E [16:48:17]RAPDU: 90 00 [16:48:17]wFMCommunicate OK [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 0D 03 02 [16:48:17]Write to MH i2c: E2 08 00 E7 14 80 0D 03 02 00 00 00 00 76 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 0B 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 0B 00 E7 14 00 DA 90 D3 82 04 5A 79 59 90 00 66 [16:48:17]RAPDU: DA 90 D3 82 04 5A 79 59 90 00 [16:48:17]wFMCommunicate OK [16:48:17]SAM_PROTO_SignData done [16:48:17]FM_MakeSignedData done [16:48:17]CreateOFDProtocolMessage [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 11 00 00 [16:48:17]Write to MH i2c: E2 08 00 E8 14 80 11 00 00 00 00 00 00 76 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 17 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 17 00 E8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C9 [16:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:48:18]wFMCommunicate OK [16:48:18]CreateOFDProtocolMessage done [16:48:18]OFDSenderStorePacket 187692 [16:48:18]StoreOFDPacket docnum=187692 [16:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 21 F8 07 01 89 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 50 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DD 02 00 35 04 06 00 57 EC 34 E6 6A 26 DA 90 D3 82 04 5A 79 59 [16:48:18]CheckFolder [16:48:18]dirname=/storage/ofd_packets [16:48:18]CheckFolder done [16:48:18]ProducePacketName [16:48:18]name=ofd_packets/00187692 [16:48:18]NVStorageSaveData ofd_packets/00187692 [16:48:18]File name is /storage/ofd_packets/00187692 [16:48:18]Write 301 bytes [16:48:18]NVStorageSaveData done [16:48:18]OFDSenderStorePacket done [16:48:18]KKMCreateOFDPacket done [16:48:18]NVStorageSaveData kkm_last_timestamp [16:48:18]File name is /storage/kkm_last_timestamp [16:48:18]Write 4 bytes [16:48:18]NVStorageSaveData done [16:48:18]ExternCall_PrintAddStr [16:48:18]wPrintStart [16:48:18]Write to MH i2c: 01 00 00 E9 14 FD [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 07 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 07 00 E9 14 00 00 00 00 00 FF 0F 12 [16:48:18]RasterBufferAndPrint [16:48:18]line Счет N : (1)412851 [16:48:18]line ИНН: 02508201610067 [16:48:18]line Контрольно-Кассовый Чек [16:48:18]line ПРОДАЖА [16:48:18]line ТРК (МРК, ГНК) : 32 [16:48:18]line Товар: 2710124130 [16:48:18]line Аи-92-К-2 [16:48:18]line 15.580 * 0.00 [16:48:18]line = 0.00 [16:48:18]line НДС 12% НСП 1% [16:48:18]line > о реализуемом товаре [16:48:18]line ИТОГО: 0.00 [16:48:18]line НСП 1% : 0.00 [16:48:18]line НДС 12% : 0.00 [16:48:18]line Наличными: 0.00 [16:48:18]line Безнал.: 0.00 [16:48:18]line Место: АЗС № 92 "Партнер Нефть" [16:48:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:48:18]line СНО: Общий режим [16:48:18]line Чек 186 21.02.2025 16:48 [16:48:18]line Смена: 649 ФФД: 1.0 [16:48:18]line ЗНМ: 0300000118 [16:48:18]line РНМ: 0000000000091857 [16:48:18]line Версия ККМ: 001 [16:48:18]line Талоны: ТК ГПНА Online [16:48:18]line 30116166 [16:48:18]line ФМ: 0000000000871826 [16:48:18]line ФД: 187692 [16:48:18]line ФПД: 96672011414054 [16:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T164816&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187692&fm=96672011414054&tin=02508201610067®Number=0000000000091857&sum=0 [16:48:18]OFD Sender: Processing packet 187692 [packets to send 49, broken 48] [16:48:18]ProducePacketName [16:48:18]name=ofd_packets/00187692 [16:48:18]OFD Sender: To server: pG, [16:48:18]CommunicateWithHost lk.salyk.kg:30040 [16:48:18]ConnectInit lk.salyk.kg [16:48:18]written 0, free lines is 4095 [16:48:18]Connected sock=10 [16:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 21 F8 07 01 89 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 50 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DD 02 00 35 04 06 00 57 EC 34 E6 6A 26 DA 90 D3 82 04 5A 79 59 [16:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A8 42 47 00 5A FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DD 02 00 F4 03 04 00 9E 54 B8 67 B6 04 01 00 00 34 F6 2F DE E5 25 D0 75 [16:48:18]CommunicateWithHost err = 0 [16:48:18]CheckOFDResponse [16:48:18]1017 (14) - 77093643461234 [16:48:18]1041 (16) - 0000000000871826 [16:48:18]1040 (4) - 187692 [16:48:18]1012 (4) - 21.02.2025 10:25 [16:48:18]1206 (1) - 0 [16:48:18]OFD Sender: Remove packet 187692 [16:48:18]ProducePacketName [16:48:18]name=ofd_packets/00187692 [16:48:18]NVStorageDeleteData [16:48:18]Write to MH i2c: 01 00 00 13 15 28 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 07 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: 01 07 00 13 15 00 00 00 00 00 24 0D 60 [16:48:18]RasterBufferAndPrint [16:48:18]line [16:48:18]line [16:48:18]line [16:48:18]line [16:48:18]line [16:48:18]written 0, free lines is 3379 [16:48:18]MH_Cut [16:48:18]Write to MH i2c: D1 01 00 1A 15 01 01 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: D1 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: D1 01 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: D1 01 00 1A 15 00 00 [16:48:18]Write to MH i2c: 01 00 00 1B 15 30 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:19]OFD Sender: No OFD packet to send [16:48:19]*** Cut start [16:48:19]*** Partial cut [16:48:19]*** CUTSNS_PIN = 1 [16:48:19]*** CUTSNS_PIN = 0 [16:48:19]*** Brake cut motor [16:48:20]Read from MH i2c: 01 [16:48:20]MH_I2C_Read... [16:48:20]*** Stop cut motor [16:48:20]*** Cut end [16:48:20]Read from MH i2c: 01 07 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 07 00 1B 15 00 00 00 00 00 FF 0F 45 [16:48:20]process_action close_receipt done [16:48:20]requested_data is exist [16:48:20]produce_requested_data [16:48:20]requested_item fm.sn is exist - process it [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 11 00 00 [16:48:20]Write to MH i2c: E2 08 00 1C 15 80 11 00 00 00 00 00 00 AB [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 17 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 17 00 1C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FE [16:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:48:20]wFMCommunicate OK [16:48:20]requested_item fd.num is exist - process it [16:48:20]SAM_PROTO_GetFieldsCounters [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 13 00 00 [16:48:20]Write to MH i2c: E2 08 00 1D 15 80 13 00 00 00 00 00 00 AE [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 62 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 62 00 1D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2C DD 02 00 0E 04 04 00 89 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 98 [16:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2C DD 02 00 0E 04 04 00 89 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 [16:48:20]wFMCommunicate OK [16:48:20]SAM_PROTO_GetFieldsCounters done [16:48:20]requested_item shift.num is exist - process it [16:48:20]requested_item shift.opened is exist - process it [16:48:20]req_shift_opened [16:48:20]FM_GetShiftState [16:48:20]SAM_PROTO_GetShiftState [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 13 01 00 [16:48:20]Write to MH i2c: E2 08 00 1E 15 80 13 01 00 00 00 00 00 B0 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 0E 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 0E 00 1E 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 9E [16:48:20]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:48:20]wFMCommunicate OK [16:48:20]SAM_PROTO_GetShiftState done [16:48:20]FM_GetShiftState done [16:48:20]req_shift_opened done [16:48:20]requested_item shift.open_date is exist - process it [16:48:20]req_shift_open_date [16:48:20]req_shift_open_date done [16:48:20]produce_requested_data done [16:48:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187692,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:48:20]process_action_free close_receipt [16:48:20]json_value_free [16:48:20]json_value_free done [16:48:20]process_json_proto returns [16:48:20]Send response to host [16:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187692,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:48:20]free response buf [16:48:20]execute_script done [16:48:20]execute_script returns [16:48:20]free content buf [16:48:20]Sock 9.Close socket [16:48:20]Sock 9.Thread stoped [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:43]accept exits with 7 [16:49:43]New connection [16:49:43]New thread 3067624804 created [16:49:43]Thread 3067481444 joined [16:49:43]Waiting for new connection... [16:49:43] Sock 7.Parse request [16:49:43]Sock 7.Check first char [16:49:43]Sock 7.First char is OK [16:49:43]request: POST /json_proto HTTP/1.0 [16:49:43]Method: POST [16:49:43]URL: /json_proto [16:49:43]Method is POST - this is cgi request [16:49:43]url: /json_proto [16:49:43]query_string will be loaded in cgi processing [16:49:43]execute_cgi json_proto POST (null) [16:49:43]execute_cgi path=json_proto method=POST [16:49:43]POST find Content-Length [16:49:43]Host: 172.17.46.131:8080 [16:49:43]Content-Length: 677 [16:49:43]Content-Type: application/json [16:49:43] [16:49:43]POST finish read [16:49:43]Found Content-Length = 677 [16:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:43]execute_script... [16:49: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)412853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:43]POST & json_proto [16:49:43]process_json_proto [16:49:43]json parsed OK: [16:49:43]protocol is kg_v1.0 [16:49:43]action value=close_receipt [16:49:43]process_action close_receipt [16:49:43]cmd_close_receipt [16:49:43]MH_GetDate [16:49:43]Write to MH i2c: F0 00 00 1F 15 23 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: F0 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: F0 09 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: F0 09 00 1F 15 00 A8 AE B8 67 7E 41 4F 65 14 [16:49:43]GetLastDocTimeStamp 1740156496 [16:49:43]current date 1740156584 [16:49:43]FM_GetShiftState [16:49:43]SAM_PROTO_GetShiftState [16:49:43]wFMCommunicate request_size=4 [16:49:43]MH_SAM_APDU [16:49:43]CAPDU: 80 13 01 00 [16:49:43]Write to MH i2c: E2 08 00 20 15 80 13 01 00 00 00 00 00 B2 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:43]Read from MH i2c: E2 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 0E 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 0E 00 20 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A0 [16:49:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:49:43]wFMCommunicate OK [16:49:43]SAM_PROTO_GetShiftState done [16:49:43]FM_GetShiftState done [16:49:43]opened in 1740098043 [16:49:43]opened+sec_in_day 1740184443 [16:49:43]quantity*price = 50011 [16:49:43]sum+1 = 50013 [16:49:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 187 21.02.2025 16:49 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187693 ФПД: 263848976134685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T164944&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187693&fm=263848976134685&tin=02508201610067®Number=0000000000091857&sum=50000 [16:49:44]StoreToDocumentArchive [16:49:44]shift 649 fd 187693 [16:49:44]save to /storage/0649/doc_00187693 [16:49:44]save last doc name /storage/0649/doc_00187693 to /storage/kkm_last_doc_name [16:49:44]save OK [16:49:44]Clear old archive folders... [16:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:44]tlvbuf is 00BEE230 [16:49:44]SAM_PROTO_ClearQueue [16:49:44]wFMCommunicate request_size=4 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 09 00 00 [16:49:44]Write to MH i2c: E2 08 00 2D 15 80 09 00 00 00 00 00 00 B4 [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 03 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 03 00 2D 15 00 90 00 B6 [16:49:44]RAPDU: 90 00 [16:49:44]wFMCommunicate OK [16:49:44]SAM_PROTO_ClearQueue done [16:49:44]KKMCreateOFDPacket [16:49:44]OFDProtocolAddRootSTLVToBuf [16:49:44]FM_MakeSignedData [16:49:44]FM_MakeSignedData [16:49:44]SAM_PROTO_SignData [16:49:44]wFMCommunicate request_size=4 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 0D 01 02 [16:49:44]Write to MH i2c: E2 08 00 2E 15 80 0D 01 02 00 00 00 00 BC [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 03 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 03 00 2E 15 00 90 00 B7 [16:49:44]RAPDU: 90 00 [16:49:44]wFMCommunicate OK [16:49:44]wFMCommunicate request_size=255 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 A8 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DD 02 00 35 04 06 00 EF [16:49:44]Write to MH i2c: E2 02 01 2F 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 A8 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DD 02 00 35 04 06 00 EF 00 00 0B [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]OFD Sender: No OFD packet to send [16:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 03 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 03 00 2F 15 00 90 00 B8 [16:49:44]RAPDU: 90 00 [16:49:44]wFMCommunicate OK [16:49:44]wFMCommunicate request_size=10 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 0D 02 02 05 F8 20 7F 32 1D [16:49:44]Write to MH i2c: E2 0D 00 30 15 80 0D 02 02 05 00 F8 20 7F 32 1D 00 00 AF [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 03 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 03 00 30 15 00 90 00 B9 [16:49:44]RAPDU: 90 00 [16:49:44]wFMCommunicate OK [16:49:44]wFMCommunicate request_size=4 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 0D 03 02 [16:49:44]Write to MH i2c: E2 08 00 31 15 80 0D 03 02 00 00 00 00 C1 [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 0B 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 0B 00 31 15 00 DB 44 90 95 EA 62 19 35 90 00 A0 [16:49:44]RAPDU: DB 44 90 95 EA 62 19 35 90 00 [16:49:44]wFMCommunicate OK [16:49:44]SAM_PROTO_SignData done [16:49:44]FM_MakeSignedData done [16:49:44]CreateOFDProtocolMessage [16:49:44]wFMCommunicate request_size=4 [16:49:44]MH_SAM_APDU [16:49:44]CAPDU: 80 11 00 00 [16:49:44]Write to MH i2c: E2 08 00 32 15 80 11 00 00 00 00 00 00 C1 [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:44]Read from MH i2c: E2 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 17 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: E2 17 00 32 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [16:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:49:44]wFMCommunicate OK [16:49:44]CreateOFDProtocolMessage done [16:49:44]OFDSenderStorePacket 187693 [16:49:44]StoreOFDPacket docnum=187693 [16:49:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 60 07 01 21 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 A8 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DD 02 00 35 04 06 00 EF F8 20 7F 32 1D DB 44 90 95 EA 62 19 35 [16:49:44]CheckFolder [16:49:44]dirname=/storage/ofd_packets [16:49:44]CheckFolder done [16:49:44]ProducePacketName [16:49:44]name=ofd_packets/00187693 [16:49:44]NVStorageSaveData ofd_packets/00187693 [16:49:44]File name is /storage/ofd_packets/00187693 [16:49:44]Write 301 bytes [16:49:44]NVStorageSaveData done [16:49:44]OFDSenderStorePacket done [16:49:44]KKMCreateOFDPacket done [16:49:44]NVStorageSaveData kkm_last_timestamp [16:49:44]File name is /storage/kkm_last_timestamp [16:49:44]Write 4 bytes [16:49:44]NVStorageSaveData done [16:49:44]ExternCall_PrintAddStr [16:49:44]wPrintStart [16:49:44]Write to MH i2c: 01 00 00 33 15 48 [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: 01 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: 01 07 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: 01 07 00 33 15 00 00 00 00 00 FF 0F 5D [16:49:44]RasterBufferAndPrint [16:49:44]line Счет N : (1)412853 [16:49:44]line ИНН: 02508201610067 [16:49:44]line Контрольно-Кассовый Чек [16:49:44]line ПРОДАЖА [16:49:44]line ТРК (МРК, ГНК) : 22 [16:49:44]line Товар: 2710124130 [16:49:44]line Аи-92-К-2 [16:49:44]line 7.790 * 64.20 [16:49:44]line = 500.12 [16:49:44]line НДС 12% НСП 1% [16:49:44]line > о реализуемом товаре [16:49:44]line ОКРУГЛЕНИЕ: -0.12 [16:49:44]line ИТОГО: 500.00 [16:49:44]line Внесено: 500.00 [16:49:44]line СДАЧА: 0.00 [16:49:44]line НСП 1% : 4.43 [16:49:44]line НДС 12% : 53.11 [16:49:44]line Наличными: 500.00 [16:49:44]line Безнал.: 0.00 [16:49:44]line Место: АЗС № 92 "Партнер Нефть" [16:49:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:49:44]line СНО: Общий режим [16:49:44]line Чек 187 21.02.2025 16:49 [16:49:44]line Смена: 649 ФФД: 1.0 [16:49:44]line ЗНМ: 0300000118 [16:49:44]line РНМ: 0000000000091857 [16:49:44]line Версия ККМ: 001 [16:49:44]line ФМ: 0000000000871826 [16:49:44]line ФД: 187693 [16:49:44]line ФПД: 263848976134685 [16:49:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T164944&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187693&fm=263848976134685&tin=02508201610067®Number=0000000000091857&sum=50000 [16:49:45]OFD Sender: Processing packet 187693 [packets to send 49, broken 48] [16:49:45]ProducePacketName [16:49:45]name=ofd_packets/00187693 [16:49:45]OFD Sender: To server: pG, [16:49:45]CommunicateWithHost lk.salyk.kg:30040 [16:49:45]ConnectInit lk.salyk.kg [16:49:45]written 0, free lines is 4095 [16:49:45]Connected sock=10 [16:49:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 60 07 01 21 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 A8 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DD 02 00 35 04 06 00 EF F8 20 7F 32 1D DB 44 90 95 EA 62 19 35 [16:49:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B6 E1 47 00 44 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DD 02 00 F4 03 04 00 F5 54 B8 67 B6 04 01 00 00 47 6B 16 7B B3 1A 86 4F [16:49:45]CommunicateWithHost err = 0 [16:49:45]CheckOFDResponse [16:49:45]1017 (14) - 77093643461234 [16:49:45]1041 (16) - 0000000000871826 [16:49:45]1040 (4) - 187693 [16:49:45]1012 (4) - 21.02.2025 10:27 [16:49:45]1206 (1) - 0 [16:49:45]OFD Sender: Remove packet 187693 [16:49:45]ProducePacketName [16:49:45]name=ofd_packets/00187693 [16:49:45]NVStorageDeleteData [16:49:45]Write to MH i2c: 01 00 00 5E 15 73 [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: 01 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: 01 07 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: 01 07 00 5E 15 00 00 00 00 00 EE 0C 74 [16:49:45]RasterBufferAndPrint [16:49:45]line [16:49:45]line [16:49:45]line [16:49:45]line [16:49:45]line [16:49:45]written 0, free lines is 3316 [16:49:45]MH_Cut [16:49:45]Write to MH i2c: D1 01 00 65 15 01 4C [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: D1 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: D1 01 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: D1 01 00 65 15 00 4B [16:49:45]Write to MH i2c: 01 00 00 66 15 7B [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:46]OFD Sender: No OFD packet to send [16:49:46]*** Cut start [16:49:46]*** Partial cut [16:49:46]*** CUTSNS_PIN = 1 [16:49:46]*** CUTSNS_PIN = 0 [16:49:46]*** Brake cut motor [16:49:46]Read from MH i2c: 01 [16:49:46]MH_I2C_Read... [16:49:46]*** Stop cut motor [16:49:46]*** Cut end [16:49:46]Read from MH i2c: 01 07 00 [16:49:46]MH_I2C_Read... [16:49:46]Read from MH i2c: 01 07 00 66 15 00 00 00 00 00 FF 0F 90 [16:49:46]process_action close_receipt done [16:49:46]requested_data is exist [16:49:46]produce_requested_data [16:49:46]requested_item fm.sn is exist - process it [16:49:46]wFMCommunicate request_size=4 [16:49:46]MH_SAM_APDU [16:49:46]CAPDU: 80 11 00 00 [16:49:46]Write to MH i2c: E2 08 00 67 15 80 11 00 00 00 00 00 00 F6 [16:49:46]Write i2c OK [16:49:46]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 17 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 17 00 67 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 49 [16:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:49:47]wFMCommunicate OK [16:49:47]requested_item fd.num is exist - process it [16:49:47]SAM_PROTO_GetFieldsCounters [16:49:47]wFMCommunicate request_size=4 [16:49:47]MH_SAM_APDU [16:49:47]CAPDU: 80 13 00 00 [16:49:47]Write to MH i2c: E2 08 00 68 15 80 13 00 00 00 00 00 00 F9 [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 62 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 62 00 68 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2D DD 02 00 0E 04 04 00 89 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 E7 [16:49:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2D DD 02 00 0E 04 04 00 89 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 [16:49:47]wFMCommunicate OK [16:49:47]SAM_PROTO_GetFieldsCounters done [16:49:47]requested_item shift.num is exist - process it [16:49:47]requested_item shift.opened is exist - process it [16:49:47]req_shift_opened [16:49:47]FM_GetShiftState [16:49:47]SAM_PROTO_GetShiftState [16:49:47]wFMCommunicate request_size=4 [16:49:47]MH_SAM_APDU [16:49:47]CAPDU: 80 13 01 00 [16:49:47]Write to MH i2c: E2 08 00 69 15 80 13 01 00 00 00 00 00 FB [16:49:47]Write i2c OK [16:49:47]MH_I2C_Read... [16:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:47]Read from MH i2c: E2 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 0E 00 [16:49:47]MH_I2C_Read... [16:49:47]Read from MH i2c: E2 0E 00 69 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E9 [16:49:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:49:47]wFMCommunicate OK [16:49:47]SAM_PROTO_GetShiftState done [16:49:47]FM_GetShiftState done [16:49:47]req_shift_opened done [16:49:47]requested_item shift.open_date is exist - process it [16:49:47]req_shift_open_date [16:49:47]req_shift_open_date done [16:49:47]produce_requested_data done [16:49:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187693,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:49:47]process_action_free close_receipt [16:49:47]json_value_free [16:49:47]json_value_free done [16:49:47]process_json_proto returns [16:49:47]Send response to host [16:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187693,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:49:47]free response buf [16:49:47]execute_script done [16:49:47]execute_script returns [16:49:47]free content buf [16:49:47]Sock 7.Close socket [16:49:47]Sock 7.Thread stoped [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:50:59]accept exits with 9 [16:50:59]New connection [16:50:59]New thread 3067481444 created [16:50:59]Thread 3067624804 joined [16:50:59]Waiting for new connection... [16:50:59] Sock 9.Parse request [16:50:59]Sock 9.Check first char [16:50:59]Sock 9.First char is OK [16:50:59]request: POST /json_proto HTTP/1.0 [16:50:59]Method: POST [16:50:59]URL: /json_proto [16:50:59]Method is POST - this is cgi request [16:50:59]url: /json_proto [16:50:59]query_string will be loaded in cgi processing [16:50:59]execute_cgi json_proto POST (null) [16:50:59]execute_cgi path=json_proto method=POST [16:50:59]POST find Content-Length [16:50:59]Host: 172.17.46.131:8080 [16:50:59]Content-Length: 678 [16:50:59]Content-Type: application/json [16:50:59] [16:50:59]POST finish read [16:50:59]Found Content-Length = 678 [16:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:59]execute_script... [16:50:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:59]POST & json_proto [16:50:59]process_json_proto [16:50:59]json parsed OK: [16:50:59]protocol is kg_v1.0 [16:50:59]action value=close_receipt [16:50:59]process_action close_receipt [16:50:59]cmd_close_receipt [16:50:59]MH_GetDate [16:50:59]Write to MH i2c: F0 00 00 6A 15 6E [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: F0 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: F0 09 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: F0 09 00 6A 15 00 F4 AE B8 67 7E 41 4F 65 AB [16:50:59]GetLastDocTimeStamp 1740156584 [16:50:59]current date 1740156660 [16:50:59]FM_GetShiftState [16:50:59]SAM_PROTO_GetShiftState [16:50:59]wFMCommunicate request_size=4 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 13 01 00 [16:50:59]Write to MH i2c: E2 08 00 6B 15 80 13 01 00 00 00 00 00 FD [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 0E 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 0E 00 6B 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 EB [16:50:59]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:50:59]wFMCommunicate OK [16:50:59]SAM_PROTO_GetShiftState done [16:50:59]FM_GetShiftState done [16:50:59]opened in 1740098043 [16:50:59]opened+sec_in_day 1740184443 [16:50:59]quantity*price = 200013 [16:50:59]sum+1 = 200014 [16:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 188 21.02.2025 16:51 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187694 ФПД: 200148608298899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165100&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187694&fm=200148608298899&tin=02508201610067®Number=0000000000091857&sum=200000 [16:51:00]StoreToDocumentArchive [16:51:00]shift 649 fd 187694 [16:51:00]save to /storage/0649/doc_00187694 [16:51:00]save last doc name /storage/0649/doc_00187694 to /storage/kkm_last_doc_name [16:51:00]save OK [16:51:00]Clear old archive folders... [16:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:51:00]tlvbuf is 00BBB980 [16:51:00]SAM_PROTO_ClearQueue [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 09 00 00 [16:51:00]Write to MH i2c: E2 08 00 78 15 80 09 00 00 00 00 00 00 FF [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 78 15 00 90 00 01 [16:51:00]RAPDU: 90 00 [16:51:00]wFMCommunicate OK [16:51:00]SAM_PROTO_ClearQueue done [16:51:00]KKMCreateOFDPacket [16:51:00]OFDProtocolAddRootSTLVToBuf [16:51:00]FM_MakeSignedData [16:51:00]FM_MakeSignedData [16:51:00]SAM_PROTO_SignData [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 0D 01 02 [16:51:00]Write to MH i2c: E2 08 00 79 15 80 0D 01 02 00 00 00 00 07 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 79 15 00 90 00 02 [16:51:00]RAPDU: 90 00 [16:51:00]wFMCommunicate OK [16:51:00]wFMCommunicate request_size=255 [16:51:00]MH_SAM_APDU [16:51: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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 F4 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DD 02 00 35 04 06 00 B6 08 BA B3 [16:51:00]Write to MH i2c: E2 02 01 7A 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 F4 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DD 02 00 35 04 06 00 B6 08 BA B3 00 00 61 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:01]OFD Sender: No OFD packet to send [16:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 7A 15 00 90 00 03 [16:51:01]RAPDU: 90 00 [16:51:01]wFMCommunicate OK [16:51:01]wFMCommunicate request_size=7 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 0D 02 02 02 2F 93 [16:51:01]Write to MH i2c: E2 0A 00 7B 15 80 0D 02 02 02 00 2F 93 00 00 D0 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 7B 15 00 90 00 04 [16:51:01]RAPDU: 90 00 [16:51:01]wFMCommunicate OK [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 0D 03 02 [16:51:01]Write to MH i2c: E2 08 00 7C 15 80 0D 03 02 00 00 00 00 0C [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0B 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0B 00 7C 15 00 E0 0B 33 85 1A 31 7A C9 90 00 3E [16:51:01]RAPDU: E0 0B 33 85 1A 31 7A C9 90 00 [16:51:01]wFMCommunicate OK [16:51:01]SAM_PROTO_SignData done [16:51:01]FM_MakeSignedData done [16:51:01]CreateOFDProtocolMessage [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 11 00 00 [16:51:01]Write to MH i2c: E2 08 00 7D 15 80 11 00 00 00 00 00 00 0C [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 17 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 17 00 7D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5F [16:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:51:01]wFMCommunicate OK [16:51:01]CreateOFDProtocolMessage done [16:51:01]OFDSenderStorePacket 187694 [16:51:01]StoreOFDPacket docnum=187694 [16:51:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 99 52 04 01 B8 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 F4 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DD 02 00 35 04 06 00 B6 08 BA B3 2F 93 E0 0B 33 85 1A 31 7A C9 [16:51:01]CheckFolder [16:51:01]dirname=/storage/ofd_packets [16:51:01]CheckFolder done [16:51:01]ProducePacketName [16:51:01]name=ofd_packets/00187694 [16:51:01]NVStorageSaveData ofd_packets/00187694 [16:51:01]File name is /storage/ofd_packets/00187694 [16:51:01]Write 298 bytes [16:51:01]NVStorageSaveData done [16:51:01]OFDSenderStorePacket done [16:51:01]KKMCreateOFDPacket done [16:51:01]NVStorageSaveData kkm_last_timestamp [16:51:01]File name is /storage/kkm_last_timestamp [16:51:01]Write 4 bytes [16:51:01]NVStorageSaveData done [16:51:01]ExternCall_PrintAddStr [16:51:01]wPrintStart [16:51:01]Write to MH i2c: 01 00 00 7E 15 93 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 07 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 07 00 7E 15 00 00 00 00 00 FF 0F A8 [16:51:01]RasterBufferAndPrint [16:51:01]line Счет N : (1)412854 [16:51:01]line ИНН: 02508201610067 [16:51:01]line Контрольно-Кассовый Чек [16:51:01]line ПРОДАЖА [16:51:01]line ТРК (МРК, ГНК) : 6 [16:51:01]line Товар: 2710194210 [16:51:01]line ДТ-К-5 [16:51:01]line 27.550 * 72.60 [16:51:01]line = 2000.13 [16:51:01]line НДС 12% НСП 1% [16:51:01]line > о реализуемом товаре [16:51:01]line ОКРУГЛЕНИЕ: -0.13 [16:51:01]line ИТОГО: 2000.00 [16:51:01]line Внесено: 2000.00 [16:51:01]line СДАЧА: 0.00 [16:51:01]line НСП 1% : 17.70 [16:51:01]line НДС 12% : 212.40 [16:51:01]line Наличными: 2000.00 [16:51:01]line Безнал.: 0.00 [16:51:01]line Место: АЗС № 92 "Партнер Нефть" [16:51:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:51:01]line СНО: Общий режим [16:51:01]line Чек 188 21.02.2025 16:51 [16:51:01]line Смена: 649 ФФД: 1.0 [16:51:01]line ЗНМ: 0300000118 [16:51:01]line РНМ: 0000000000091857 [16:51:01]line Версия ККМ: 001 [16:51:01]line ФМ: 0000000000871826 [16:51:01]line ФД: 187694 [16:51:01]line ФПД: 200148608298899 [16:51:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165100&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187694&fm=200148608298899&tin=02508201610067®Number=0000000000091857&sum=200000 [16:51:01]OFD Sender: Processing packet 187694 [packets to send 49, broken 48] [16:51:01]ProducePacketName [16:51:01]name=ofd_packets/00187694 [16:51:01]OFD Sender: To server: pG, [16:51:01]CommunicateWithHost lk.salyk.kg:30040 [16:51:01]ConnectInit lk.salyk.kg [16:51:01]written 0, free lines is 4095 [16:51:01]Connected sock=10 [16:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 99 52 04 01 B8 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 F4 AE B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DD 02 00 35 04 06 00 B6 08 BA B3 2F 93 E0 0B 33 85 1A 31 7A C9 [16:51:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A4 2B 47 00 14 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E DD 02 00 F4 03 04 00 42 55 B8 67 B6 04 01 00 00 21 39 7C 7B 12 72 60 CB [16:51:02]CommunicateWithHost err = 0 [16:51:02]CheckOFDResponse [16:51:02]1017 (14) - 77093643461234 [16:51:02]1041 (16) - 0000000000871826 [16:51:02]1040 (4) - 187694 [16:51:02]1012 (4) - 21.02.2025 10:28 [16:51:02]1206 (1) - 0 [16:51:02]OFD Sender: Remove packet 187694 [16:51:02]ProducePacketName [16:51:02]name=ofd_packets/00187694 [16:51:02]NVStorageDeleteData [16:51:02]Write to MH i2c: 01 00 00 A9 15 BE [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 07 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 07 00 A9 15 00 00 00 00 00 00 0D D2 [16:51:02]RasterBufferAndPrint [16:51:02]line [16:51:02]line [16:51:02]line [16:51:02]line [16:51:02]line [16:51:02]written 0, free lines is 3334 [16:51:02]MH_Cut [16:51:02]Write to MH i2c: D1 01 00 B0 15 01 97 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: D1 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: D1 01 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: D1 01 00 B0 15 00 96 [16:51:02]Write to MH i2c: 01 00 00 B1 15 C6 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]OFD Sender: No OFD packet to send [16:51:02]*** Cut start [16:51:02]*** Partial cut [16:51:02]*** CUTSNS_PIN = 1 [16:51:02]*** CUTSNS_PIN = 0 [16:51:03]*** Brake cut motor [16:51:03]Read from MH i2c: 01 [16:51:03]MH_I2C_Read... [16:51:03]*** Stop cut motor [16:51:03]*** Cut end [16:51:03]Read from MH i2c: 01 07 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: 01 07 00 B1 15 00 00 00 00 00 FF 0F DB [16:51:03]process_action close_receipt done [16:51:03]requested_data is exist [16:51:03]produce_requested_data [16:51:03]requested_item fm.sn is exist - process it [16:51:03]wFMCommunicate request_size=4 [16:51:03]MH_SAM_APDU [16:51:03]CAPDU: 80 11 00 00 [16:51:03]Write to MH i2c: E2 08 00 B2 15 80 11 00 00 00 00 00 00 41 [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 17 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 17 00 B2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 94 [16:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:51:03]wFMCommunicate OK [16:51:03]requested_item fd.num is exist - process it [16:51:03]SAM_PROTO_GetFieldsCounters [16:51:03]wFMCommunicate request_size=4 [16:51:03]MH_SAM_APDU [16:51:03]CAPDU: 80 13 00 00 [16:51:03]Write to MH i2c: E2 08 00 B3 15 80 13 00 00 00 00 00 00 44 [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 62 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 62 00 B3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2E DD 02 00 0E 04 04 00 89 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 36 [16:51:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2E DD 02 00 0E 04 04 00 89 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 [16:51:03]wFMCommunicate OK [16:51:03]SAM_PROTO_GetFieldsCounters done [16:51:03]requested_item shift.num is exist - process it [16:51:03]requested_item shift.opened is exist - process it [16:51:03]req_shift_opened [16:51:03]FM_GetShiftState [16:51:03]SAM_PROTO_GetShiftState [16:51:03]wFMCommunicate request_size=4 [16:51:03]MH_SAM_APDU [16:51:03]CAPDU: 80 13 01 00 [16:51:03]Write to MH i2c: E2 08 00 B4 15 80 13 01 00 00 00 00 00 46 [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 0E 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 0E 00 B4 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 34 [16:51:03]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:51:03]wFMCommunicate OK [16:51:03]SAM_PROTO_GetShiftState done [16:51:03]FM_GetShiftState done [16:51:03]req_shift_opened done [16:51:03]requested_item shift.open_date is exist - process it [16:51:03]req_shift_open_date [16:51:03]req_shift_open_date done [16:51:03]produce_requested_data done [16:51:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187694,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:51:03]process_action_free close_receipt [16:51:03]json_value_free [16:51:03]json_value_free done [16:51:03]process_json_proto returns [16:51:03]Send response to host [16:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187694,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:51:03]free response buf [16:51:03]execute_script done [16:51:03]execute_script returns [16:51:03]free content buf [16:51:03]Sock 9.Close socket [16:51:03]Sock 9.Thread stoped [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:33]accept exits with 7 [16:52:33]New connection [16:52:33]New thread 3067624804 created [16:52:33]Thread 3067481444 joined [16:52:33]Waiting for new connection... [16:52:33] Sock 7.Parse request [16:52:33]Sock 7.Check first char [16:52:33]Sock 7.First char is OK [16:52:33]request: POST /json_proto HTTP/1.0 [16:52:33]Method: POST [16:52:33]URL: /json_proto [16:52:33]Method is POST - this is cgi request [16:52:33]url: /json_proto [16:52:33]query_string will be loaded in cgi processing [16:52:33]execute_cgi json_proto POST (null) [16:52:33]execute_cgi path=json_proto method=POST [16:52:33]POST find Content-Length [16:52:33]Host: 172.17.46.131:8080 [16:52:33]Content-Length: 677 [16:52:33]Content-Type: application/json [16:52:33] [16:52:33]POST finish read [16:52:33]Found Content-Length = 677 [16:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:33]execute_script... [16:52: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)412856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:33]POST & json_proto [16:52:33]process_json_proto [16:52:33]json parsed OK: [16:52:33]protocol is kg_v1.0 [16:52:33]action value=close_receipt [16:52:33]process_action close_receipt [16:52:33]cmd_close_receipt [16:52:33]MH_GetDate [16:52:33]Write to MH i2c: F0 00 00 B5 15 B9 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: F0 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: F0 09 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: F0 09 00 B5 15 00 52 AF B8 67 7E 41 4F 65 55 [16:52:33]GetLastDocTimeStamp 1740156660 [16:52:33]current date 1740156754 [16:52:33]FM_GetShiftState [16:52:33]SAM_PROTO_GetShiftState [16:52:33]wFMCommunicate request_size=4 [16:52:33]MH_SAM_APDU [16:52:33]CAPDU: 80 13 01 00 [16:52:33]Write to MH i2c: E2 08 00 B6 15 80 13 01 00 00 00 00 00 48 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:33]Read from MH i2c: E2 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 0E 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 0E 00 B6 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 36 [16:52:33]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:52:33]wFMCommunicate OK [16:52:33]SAM_PROTO_GetShiftState done [16:52:33]FM_GetShiftState done [16:52:33]opened in 1740098043 [16:52:33]opened+sec_in_day 1740184443 [16:52:33]quantity*price = 25038 [16:52:33]sum+1 = 25039 [16:52:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 189 21.02.2025 16:52 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187695 ФПД: 90085336784618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165234&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187695&fm=90085336784618&tin=02508201610067®Number=0000000000091857&sum=25000 [16:52:34]StoreToDocumentArchive [16:52:34]shift 649 fd 187695 [16:52:34]save to /storage/0649/doc_00187695 [16:52:34]save last doc name /storage/0649/doc_00187695 to /storage/kkm_last_doc_name [16:52:34]save OK [16:52:34]Clear old archive folders... [16:52:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:34]tlvbuf is 00BE53F0 [16:52:34]SAM_PROTO_ClearQueue [16:52:34]wFMCommunicate request_size=4 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 09 00 00 [16:52:34]Write to MH i2c: E2 08 00 C3 15 80 09 00 00 00 00 00 00 4A [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 C3 15 00 90 00 4C [16:52:34]RAPDU: 90 00 [16:52:34]wFMCommunicate OK [16:52:34]SAM_PROTO_ClearQueue done [16:52:34]KKMCreateOFDPacket [16:52:34]OFDProtocolAddRootSTLVToBuf [16:52:34]FM_MakeSignedData [16:52:34]FM_MakeSignedData [16:52:34]SAM_PROTO_SignData [16:52:34]wFMCommunicate request_size=4 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 0D 01 02 [16:52:34]Write to MH i2c: E2 08 00 C4 15 80 0D 01 02 00 00 00 00 52 [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 C4 15 00 90 00 4D [16:52:34]RAPDU: 90 00 [16:52:34]wFMCommunicate OK [16:52:34]wFMCommunicate request_size=255 [16:52:34]MH_SAM_APDU [16:52: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 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 52 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DD 02 00 35 04 06 00 51 [16:52:34]Write to MH i2c: E2 02 01 C5 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 52 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DD 02 00 35 04 06 00 51 00 00 29 [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 C5 15 00 90 00 4E [16:52:34]RAPDU: 90 00 [16:52:34]wFMCommunicate OK [16:52:34]wFMCommunicate request_size=10 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 0D 02 02 05 EE A0 7F 9E EA [16:52:34]Write to MH i2c: E2 0D 00 C6 15 80 0D 02 02 05 00 EE A0 7F 9E EA 00 00 F4 [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 C6 15 00 90 00 4F [16:52:34]RAPDU: 90 00 [16:52:34]wFMCommunicate OK [16:52:34]wFMCommunicate request_size=4 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 0D 03 02 [16:52:34]Write to MH i2c: E2 08 00 C7 15 80 0D 03 02 00 00 00 00 57 [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 0B 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 0B 00 C7 15 00 AE 55 19 BB 1D A9 37 E8 90 00 14 [16:52:34]RAPDU: AE 55 19 BB 1D A9 37 E8 90 00 [16:52:34]wFMCommunicate OK [16:52:34]SAM_PROTO_SignData done [16:52:34]FM_MakeSignedData done [16:52:34]CreateOFDProtocolMessage [16:52:34]wFMCommunicate request_size=4 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 11 00 00 [16:52:34]Write to MH i2c: E2 08 00 C8 15 80 11 00 00 00 00 00 00 57 [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 17 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 17 00 C8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AA [16:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:52:34]wFMCommunicate OK [16:52:34]CreateOFDProtocolMessage done [16:52:34]OFDSenderStorePacket 187695 [16:52:34]StoreOFDPacket docnum=187695 [16:52:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 8A 07 01 43 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 52 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DD 02 00 35 04 06 00 51 EE A0 7F 9E EA AE 55 19 BB 1D A9 37 E8 [16:52:34]CheckFolder [16:52:34]dirname=/storage/ofd_packets [16:52:34]CheckFolder done [16:52:34]ProducePacketName [16:52:34]name=ofd_packets/00187695 [16:52:34]NVStorageSaveData ofd_packets/00187695 [16:52:34]File name is /storage/ofd_packets/00187695 [16:52:34]Write 301 bytes [16:52:34]NVStorageSaveData done [16:52:34]OFDSenderStorePacket done [16:52:34]KKMCreateOFDPacket done [16:52:34]NVStorageSaveData kkm_last_timestamp [16:52:34]File name is /storage/kkm_last_timestamp [16:52:34]Write 4 bytes [16:52:34]NVStorageSaveData done [16:52:34]ExternCall_PrintAddStr [16:52:34]wPrintStart [16:52:34]Write to MH i2c: 01 00 00 C9 15 DE [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: 01 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: 01 07 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: 01 07 00 C9 15 00 00 00 00 00 FF 0F F3 [16:52:34]RasterBufferAndPrint [16:52:34]line Счет N : (1)412856 [16:52:34]line ИНН: 02508201610067 [16:52:34]line Контрольно-Кассовый Чек [16:52:34]line ПРОДАЖА [16:52:34]line ТРК (МРК, ГНК) : 22 [16:52:34]line Товар: 2710124130 [16:52:34]line Аи-92-К-2 [16:52:34]line 3.900 * 64.20 [16:52:34]line = 250.38 [16:52:34]line НДС 12% НСП 1% [16:52:34]line > о реализуемом товаре [16:52:34]line ОКРУГЛЕНИЕ: -0.38 [16:52:34]line ИТОГО: 250.00 [16:52:34]line Внесено: 250.00 [16:52:34]line СДАЧА: 0.00 [16:52:34]line НСП 1% : 2.22 [16:52:34]line НДС 12% : 26.59 [16:52:34]line Наличными: 250.00 [16:52:34]line Безнал.: 0.00 [16:52:34]line Место: АЗС № 92 "Партнер Нефть" [16:52:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:52:34]line СНО: Общий режим [16:52:34]line Чек 189 21.02.2025 16:52 [16:52:34]line Смена: 649 ФФД: 1.0 [16:52:34]line ЗНМ: 0300000118 [16:52:34]line РНМ: 0000000000091857 [16:52:34]line Версия ККМ: 001 [16:52:34]line ФМ: 0000000000871826 [16:52:34]line ФД: 187695 [16:52:34]line ФПД: 90085336784618 [16:52:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165234&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187695&fm=90085336784618&tin=02508201610067®Number=0000000000091857&sum=25000 [16:52:35]OFD Sender: Processing packet 187695 [packets to send 49, broken 48] [16:52:35]ProducePacketName [16:52:35]name=ofd_packets/00187695 [16:52:35]OFD Sender: To server: pG, [16:52:35]CommunicateWithHost lk.salyk.kg:30040 [16:52:35]ConnectInit lk.salyk.kg [16:52:35]written 0, free lines is 4095 [16:52:35]Connected sock=10 [16:52:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 8A 07 01 43 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 52 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F DD 02 00 35 04 06 00 51 EE A0 7F 9E EA AE 55 19 BB 1D A9 37 E8 [16:52:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2C ED 47 00 7B 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 38 32 36 10 04 04 00 2F DD 02 00 F4 03 04 00 9F 55 B8 67 B6 04 01 00 00 87 21 AC 85 FF FF 96 9C [16:52:35]CommunicateWithHost err = 0 [16:52:35]CheckOFDResponse [16:52:35]1017 (14) - 77093643461234 [16:52:35]1041 (16) - 0000000000871826 [16:52:35]1040 (4) - 187695 [16:52:35]1012 (4) - 21.02.2025 10:29 [16:52:35]1206 (1) - 0 [16:52:35]OFD Sender: Remove packet 187695 [16:52:35]ProducePacketName [16:52:35]name=ofd_packets/00187695 [16:52:35]NVStorageDeleteData [16:52:35]Write to MH i2c: 01 00 00 F4 15 09 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 F4 15 00 00 00 00 00 F6 0C 12 [16:52:35]RasterBufferAndPrint [16:52:35]line [16:52:35]line [16:52:35]line [16:52:35]line [16:52:35]line [16:52:35]written 0, free lines is 3324 [16:52:35]MH_Cut [16:52:35]Write to MH i2c: D1 01 00 FB 15 01 E2 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: D1 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: D1 01 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: D1 01 00 FB 15 00 E1 [16:52:35]Write to MH i2c: 01 00 00 FC 15 11 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:36]OFD Sender: No OFD packet to send [16:52:36]*** Cut start [16:52:36]*** Partial cut [16:52:36]*** CUTSNS_PIN = 1 [16:52:36]*** CUTSNS_PIN = 0 [16:52:36]*** Brake cut motor [16:52:36]Read from MH i2c: 01 [16:52:37]MH_I2C_Read... [16:52:37]*** Stop cut motor [16:52:37]*** Cut end [16:52:37]Read from MH i2c: 01 07 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: 01 07 00 FC 15 00 00 00 00 00 FF 0F 26 [16:52:37]process_action close_receipt done [16:52:37]requested_data is exist [16:52:37]produce_requested_data [16:52:37]requested_item fm.sn is exist - process it [16:52:37]wFMCommunicate request_size=4 [16:52:37]MH_SAM_APDU [16:52:37]CAPDU: 80 11 00 00 [16:52:37]Write to MH i2c: E2 08 00 FD 15 80 11 00 00 00 00 00 00 8C [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:37]Read from MH i2c: E2 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 17 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 17 00 FD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [16:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:52:37]wFMCommunicate OK [16:52:37]requested_item fd.num is exist - process it [16:52:37]SAM_PROTO_GetFieldsCounters [16:52:37]wFMCommunicate request_size=4 [16:52:37]MH_SAM_APDU [16:52:37]CAPDU: 80 13 00 00 [16:52:37]Write to MH i2c: E2 08 00 FE 15 80 13 00 00 00 00 00 00 8F [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:37]Read from MH i2c: E2 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 62 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 62 00 FE 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2F DD 02 00 0E 04 04 00 89 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 85 [16:52:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2F DD 02 00 0E 04 04 00 89 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 [16:52:37]wFMCommunicate OK [16:52:37]SAM_PROTO_GetFieldsCounters done [16:52:37]requested_item shift.num is exist - process it [16:52:37]requested_item shift.opened is exist - process it [16:52:37]req_shift_opened [16:52:37]FM_GetShiftState [16:52:37]SAM_PROTO_GetShiftState [16:52:37]wFMCommunicate request_size=4 [16:52:37]MH_SAM_APDU [16:52:37]CAPDU: 80 13 01 00 [16:52:37]Write to MH i2c: E2 08 00 FF 15 80 13 01 00 00 00 00 00 91 [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:37]Read from MH i2c: E2 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 0E 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 0E 00 FF 15 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 7F [16:52:37]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:52:37]wFMCommunicate OK [16:52:37]SAM_PROTO_GetShiftState done [16:52:37]FM_GetShiftState done [16:52:37]req_shift_opened done [16:52:37]requested_item shift.open_date is exist - process it [16:52:37]req_shift_open_date [16:52:37]req_shift_open_date done [16:52:37]produce_requested_data done [16:52:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187695,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:52:37]process_action_free close_receipt [16:52:37]json_value_free [16:52:37]json_value_free done [16:52:37]process_json_proto returns [16:52:37]Send response to host [16:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187695,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:52:37]free response buf [16:52:37]execute_script done [16:52:37]execute_script returns [16:52:37]free content buf [16:52:37]Sock 7.Close socket [16:52:37]Sock 7.Thread stoped [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:42]accept exits with 9 [16:53:42]New connection [16:53:42]New thread 3067481444 created [16:53:42]Thread 3067624804 joined [16:53:42]Waiting for new connection... [16:53:42] Sock 9.Parse request [16:53:42]Sock 9.Check first char [16:53:42]Sock 9.First char is OK [16:53:42]request: POST /json_proto HTTP/1.0 [16:53:42]Method: POST [16:53:42]URL: /json_proto [16:53:42]Method is POST - this is cgi request [16:53:42]url: /json_proto [16:53:42]query_string will be loaded in cgi processing [16:53:42]execute_cgi json_proto POST (null) [16:53:42]execute_cgi path=json_proto method=POST [16:53:42]POST find Content-Length [16:53:42]Host: 172.17.46.131:8080 [16:53:42]Content-Length: 788 [16:53:42]Content-Type: application/json [16:53:42] [16:53:42]POST finish read [16:53:42]Found Content-Length = 788 [16:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.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\u000A81613", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:42]execute_script... [16:53: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)412855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.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\u000A81613", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:42]POST & json_proto [16:53:42]process_json_proto [16:53:42]json parsed OK: [16:53:42]protocol is kg_v1.0 [16:53:42]action value=close_receipt [16:53:42]process_action close_receipt [16:53:42]cmd_close_receipt [16:53:42]MH_GetDate [16:53:42]Write to MH i2c: F0 00 00 00 16 05 [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: F0 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: F0 09 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: F0 09 00 00 16 00 97 AF B8 67 7E 41 4F 65 E6 [16:53:42]GetLastDocTimeStamp 1740156754 [16:53:42]current date 1740156823 [16:53:42]FM_GetShiftState [16:53:42]SAM_PROTO_GetShiftState [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 13 01 00 [16:53:42]Write to MH i2c: E2 08 00 01 16 80 13 01 00 00 00 00 00 94 [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 0E 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 0E 00 01 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 82 [16:53:42]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:53:42]wFMCommunicate OK [16:53:42]SAM_PROTO_GetShiftState done [16:53:42]FM_GetShiftState done [16:53:42]opened in 1740098043 [16:53:42]opened+sec_in_day 1740184443 [16:53:42]quantity*price = 0 [16:53:42]sum+1 = 1 [16:53:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 190 21.02.2025 16:53 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 81613 ФМ: 0000000000871826 ФД: 187696 ФПД: 95026439854861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165343&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187696&fm=95026439854861&tin=02508201610067®Number=0000000000091857&sum=0 [16:53:43]StoreToDocumentArchive [16:53:43]shift 649 fd 187696 [16:53:43]save to /storage/0649/doc_00187696 [16:53:43]save last doc name /storage/0649/doc_00187696 to /storage/kkm_last_doc_name [16:53:43]save OK [16:53:43]Clear old archive folders... [16:53:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:53:43]tlvbuf is 00BE5660 [16:53:43]SAM_PROTO_ClearQueue [16:53:43]wFMCommunicate request_size=4 [16:53:43]MH_SAM_APDU [16:53:43]CAPDU: 80 09 00 00 [16:53:43]Write to MH i2c: E2 08 00 0E 16 80 09 00 00 00 00 00 00 96 [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:43]Read from MH i2c: E2 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 03 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 03 00 0E 16 00 90 00 98 [16:53:43]RAPDU: 90 00 [16:53:43]wFMCommunicate OK [16:53:43]SAM_PROTO_ClearQueue done [16:53:43]KKMCreateOFDPacket [16:53:43]OFDProtocolAddRootSTLVToBuf [16:53:43]FM_MakeSignedData [16:53:43]FM_MakeSignedData [16:53:43]SAM_PROTO_SignData [16:53:43]wFMCommunicate request_size=4 [16:53:43]MH_SAM_APDU [16:53:43]CAPDU: 80 0D 01 02 [16:53:43]Write to MH i2c: E2 08 00 0F 16 80 0D 01 02 00 00 00 00 9E [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:43]Read from MH i2c: E2 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 03 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 03 00 0F 16 00 90 00 99 [16:53:43]RAPDU: 90 00 [16:53:43]wFMCommunicate OK [16:53:43]wFMCommunicate request_size=255 [16:53:43]MH_SAM_APDU [16:53: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 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 97 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DD 02 00 35 04 06 00 56 6D 11 31 [16:53:43]Write to MH i2c: E2 02 01 10 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 97 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DD 02 00 35 04 06 00 56 6D 11 31 00 00 0C [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:43]Read from MH i2c: E2 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 03 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 03 00 10 16 00 90 00 9A [16:53:43]RAPDU: 90 00 [16:53:43]wFMCommunicate OK [16:53:43]wFMCommunicate request_size=7 [16:53:43]MH_SAM_APDU [16:53:43]CAPDU: 80 0D 02 02 02 1B 0D [16:53:43]Write to MH i2c: E2 0A 00 11 16 80 0D 02 02 02 00 1B 0D 00 00 CD [16:53:43]Write i2c OK [16:53:43]MH_I2C_Read... [16:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:43]Read from MH i2c: E2 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 03 00 [16:53:43]MH_I2C_Read... [16:53:43]Read from MH i2c: E2 03 00 11 16 00 90 00 9B [16:53:43]RAPDU: 90 00 [16:53:43]wFMCommunicate OK [16:53:43]wFMCommunicate request_size=4 [16:53:43]MH_SAM_APDU [16:53:43]CAPDU: 80 0D 03 02 [16:53:44]Write to MH i2c: E2 08 00 12 16 80 0D 03 02 00 00 00 00 A3 [16:53:44]Write i2c OK [16:53:44]MH_I2C_Read... [16:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:44]Read from MH i2c: E2 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: E2 0B 00 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: E2 0B 00 12 16 00 6B A8 38 47 AD 63 40 A5 90 00 2B [16:53:44]RAPDU: 6B A8 38 47 AD 63 40 A5 90 00 [16:53:44]wFMCommunicate OK [16:53:44]SAM_PROTO_SignData done [16:53:44]FM_MakeSignedData done [16:53:44]CreateOFDProtocolMessage [16:53:44]wFMCommunicate request_size=4 [16:53:44]MH_SAM_APDU [16:53:44]CAPDU: 80 11 00 00 [16:53:44]Write to MH i2c: E2 08 00 13 16 80 11 00 00 00 00 00 00 A3 [16:53:44]Write i2c OK [16:53:44]MH_I2C_Read... [16:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:44]Read from MH i2c: E2 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: E2 17 00 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: E2 17 00 13 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F6 [16:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:53:44]wFMCommunicate OK [16:53:44]CreateOFDProtocolMessage done [16:53:44]OFDSenderStorePacket 187696 [16:53:44]StoreOFDPacket docnum=187696 [16:53:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B7 79 04 01 4C F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 97 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DD 02 00 35 04 06 00 56 6D 11 31 1B 0D 6B A8 38 47 AD 63 40 A5 [16:53:44]CheckFolder [16:53:44]dirname=/storage/ofd_packets [16:53:44]CheckFolder done [16:53:44]ProducePacketName [16:53:44]name=ofd_packets/00187696 [16:53:44]NVStorageSaveData ofd_packets/00187696 [16:53:44]File name is /storage/ofd_packets/00187696 [16:53:44]Write 298 bytes [16:53:44]NVStorageSaveData done [16:53:44]OFDSenderStorePacket done [16:53:44]KKMCreateOFDPacket done [16:53:44]NVStorageSaveData kkm_last_timestamp [16:53:44]File name is /storage/kkm_last_timestamp [16:53:44]Write 4 bytes [16:53:44]NVStorageSaveData done [16:53:44]ExternCall_PrintAddStr [16:53:44]wPrintStart [16:53:44]Write to MH i2c: 01 00 00 14 16 2A [16:53:44]Write i2c OK [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: 01 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: 01 07 00 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: 01 07 00 14 16 00 00 00 00 00 FF 0F 3F [16:53:44]RasterBufferAndPrint [16:53:44]line Счет N : (1)412855 [16:53:44]line ИНН: 02508201610067 [16:53:44]line Контрольно-Кассовый Чек [16:53:44]line ПРОДАЖА [16:53:44]line ТРК (МРК, ГНК) : 5 [16:53:44]line Товар: 2710194210 [16:53:44]line ДТ-К-5 [16:53:44]line 60.000 * 0.00 [16:53:44]line = 0.00 [16:53:44]line НДС 12% НСП 1% [16:53:44]line > о реализуемом товаре [16:53:44]line ИТОГО: 0.00 [16:53:44]line НСП 1% : 0.00 [16:53:44]line НДС 12% : 0.00 [16:53:44]line Наличными: 0.00 [16:53:44]line Безнал.: 0.00 [16:53:44]line Место: АЗС № 92 "Партнер Нефть" [16:53:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:53:44]line СНО: Общий режим [16:53:44]line Чек 190 21.02.2025 16:53 [16:53:44]line Смена: 649 ФФД: 1.0 [16:53:44]line ЗНМ: 0300000118 [16:53:44]line РНМ: 0000000000091857 [16:53:44]line Версия ККМ: 001 [16:53:44]line Талоны: Топливная Карта [16:53:44]line 81613 [16:53:44]line ФМ: 0000000000871826 [16:53:44]line ФД: 187696 [16:53:44]line ФПД: 95026439854861 [16:53:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165343&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187696&fm=95026439854861&tin=02508201610067®Number=0000000000091857&sum=0 [16:53:44]written 0, free lines is 4095 [16:53:44]OFD Sender: Processing packet 187696 [packets to send 49, broken 48] [16:53:44]ProducePacketName [16:53:44]name=ofd_packets/00187696 [16:53:44]OFD Sender: To server: pG, [16:53:44]CommunicateWithHost lk.salyk.kg:30040 [16:53:44]ConnectInit lk.salyk.kg [16:53:44]Connected sock=11 [16:53:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B7 79 04 01 4C F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 97 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DD 02 00 35 04 06 00 56 6D 11 31 1B 0D 6B A8 38 47 AD 63 40 A5 [16:53:44]Write to MH i2c: 01 00 00 3E 16 54 [16:53:44]Write i2c OK [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: 01 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: 01 07 00 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: 01 07 00 3E 16 00 00 00 00 00 F7 0C 5E [16:53:44]RasterBufferAndPrint [16:53:44]line [16:53:44]line [16:53:44]line [16:53:44]line [16:53:44]line [16:53:44]written 0, free lines is 3325 [16:53:44]MH_Cut [16:53:44]Write to MH i2c: D1 01 00 45 16 01 2D [16:53:44]Write i2c OK [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: D1 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: D1 01 00 [16:53:44]MH_I2C_Read... [16:53:44]Read from MH i2c: D1 01 00 45 16 00 2C [16:53:44]Write to MH i2c: 01 00 00 46 16 5C [16:53:44]Write i2c OK [16:53:44]MH_I2C_Read... [16:53:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 70 1D 47 00 B0 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 DD 02 00 F4 03 04 00 E4 55 B8 67 B6 04 01 00 00 25 45 A0 EE A1 80 30 F8 [16:53:44]CommunicateWithHost err = 0 [16:53:44]CheckOFDResponse [16:53:44]1017 (14) - 77093643461234 [16:53:44]1041 (16) - 0000000000871826 [16:53:44]1040 (4) - 187696 [16:53:44]1012 (4) - 21.02.2025 10:31 [16:53:44]1206 (1) - 0 [16:53:44]OFD Sender: Remove packet 187696 [16:53:44]ProducePacketName [16:53:44]name=ofd_packets/00187696 [16:53:44]NVStorageDeleteData [16:53:45]OFD Sender: No OFD packet to send [16:53:45]*** Cut start [16:53:45]*** Partial cut [16:53:45]*** CUTSNS_PIN = 1 [16:53:45]*** CUTSNS_PIN = 0 [16:53:45]*** Brake cut motor [16:53:45]Read from MH i2c: 01 [16:53:45]MH_I2C_Read... [16:53:45]*** Stop cut motor [16:53:45]*** Cut end [16:53:45]Read from MH i2c: 01 07 00 [16:53:45]MH_I2C_Read... [16:53:45]Read from MH i2c: 01 07 00 46 16 00 00 00 00 00 FF 0F 71 [16:53:45]process_action close_receipt done [16:53:45]requested_data is exist [16:53:45]produce_requested_data [16:53:45]requested_item fm.sn is exist - process it [16:53:45]wFMCommunicate request_size=4 [16:53:45]MH_SAM_APDU [16:53:45]CAPDU: 80 11 00 00 [16:53:45]Write to MH i2c: E2 08 00 47 16 80 11 00 00 00 00 00 00 D7 [16:53:45]Write i2c OK [16:53:45]MH_I2C_Read... [16:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:46]Read from MH i2c: E2 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 17 00 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 17 00 47 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [16:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:53:46]wFMCommunicate OK [16:53:46]requested_item fd.num is exist - process it [16:53:46]SAM_PROTO_GetFieldsCounters [16:53:46]wFMCommunicate request_size=4 [16:53:46]MH_SAM_APDU [16:53:46]CAPDU: 80 13 00 00 [16:53:46]Write to MH i2c: E2 08 00 48 16 80 13 00 00 00 00 00 00 DA [16:53:46]Write i2c OK [16:53:46]MH_I2C_Read... [16:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:46]Read from MH i2c: E2 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 62 00 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 62 00 48 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 30 DD 02 00 0E 04 04 00 89 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 D4 [16:53:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 30 DD 02 00 0E 04 04 00 89 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 [16:53:46]wFMCommunicate OK [16:53:46]SAM_PROTO_GetFieldsCounters done [16:53:46]requested_item shift.num is exist - process it [16:53:46]requested_item shift.opened is exist - process it [16:53:46]req_shift_opened [16:53:46]FM_GetShiftState [16:53:46]SAM_PROTO_GetShiftState [16:53:46]wFMCommunicate request_size=4 [16:53:46]MH_SAM_APDU [16:53:46]CAPDU: 80 13 01 00 [16:53:46]Write to MH i2c: E2 08 00 49 16 80 13 01 00 00 00 00 00 DC [16:53:46]Write i2c OK [16:53:46]MH_I2C_Read... [16:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:46]Read from MH i2c: E2 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 0E 00 [16:53:46]MH_I2C_Read... [16:53:46]Read from MH i2c: E2 0E 00 49 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 CA [16:53:46]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:53:46]wFMCommunicate OK [16:53:46]SAM_PROTO_GetShiftState done [16:53:46]FM_GetShiftState done [16:53:46]req_shift_opened done [16:53:46]requested_item shift.open_date is exist - process it [16:53:46]req_shift_open_date [16:53:46]req_shift_open_date done [16:53:46]produce_requested_data done [16:53:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187696,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:53:46]process_action_free close_receipt [16:53:46]json_value_free [16:53:46]json_value_free done [16:53:46]process_json_proto returns [16:53:46]Send response to host [16:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187696,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:53:46]free response buf [16:53:46]execute_script done [16:53:46]execute_script returns [16:53:46]free content buf [16:53:46]Sock 9.Close socket [16:53:46]Sock 9.Thread stoped [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:42]accept exits with 7 [16:54:42]New connection [16:54:42]New thread 3067624804 created [16:54:42]Thread 3067481444 joined [16:54:42]Waiting for new connection... [16:54:42] Sock 7.Parse request [16:54:42]Sock 7.Check first char [16:54:42]Sock 7.First char is OK [16:54:42]request: POST /json_proto HTTP/1.0 [16:54:42]Method: POST [16:54:42]URL: /json_proto [16:54:42]Method is POST - this is cgi request [16:54:42]url: /json_proto [16:54:42]query_string will be loaded in cgi processing [16:54:42]execute_cgi json_proto POST (null) [16:54:42]execute_cgi path=json_proto method=POST [16:54:42]POST find Content-Length [16:54:42]Host: 172.17.46.131:8080 [16:54:42]Content-Length: 803 [16:54:42]Content-Type: application/json [16:54:42] [16:54:42]POST finish read [16:54:42]Found Content-Length = 803 [16:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:42]execute_script... [16:54: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)412857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:42]POST & json_proto [16:54:42]process_json_proto [16:54:42]json parsed OK: [16:54:42]protocol is kg_v1.0 [16:54:42]action value=close_receipt [16:54:42]process_action close_receipt [16:54:42]cmd_close_receipt [16:54:42]MH_GetDate [16:54:42]Write to MH i2c: F0 00 00 4A 16 4F [16:54:42]Write i2c OK [16:54:42]MH_I2C_Read... [16:54:42]Read from MH i2c: F0 [16:54:42]MH_I2C_Read... [16:54:42]Read from MH i2c: F0 09 00 [16:54:42]MH_I2C_Read... [16:54:42]Read from MH i2c: F0 09 00 4A 16 00 D3 AF B8 67 7E 41 4F 65 6C [16:54:42]GetLastDocTimeStamp 1740156823 [16:54:42]current date 1740156883 [16:54:42]FM_GetShiftState [16:54:42]SAM_PROTO_GetShiftState [16:54:42]wFMCommunicate request_size=4 [16:54:42]MH_SAM_APDU [16:54:42]CAPDU: 80 13 01 00 [16:54:42]Write to MH i2c: E2 08 00 4B 16 80 13 01 00 00 00 00 00 DE [16:54:42]Write i2c OK [16:54:42]MH_I2C_Read... [16:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:42]Read from MH i2c: E2 [16:54:42]MH_I2C_Read... [16:54:42]Read from MH i2c: E2 0E 00 [16:54:42]MH_I2C_Read... [16:54:42]Read from MH i2c: E2 0E 00 4B 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 CC [16:54:42]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:54:42]wFMCommunicate OK [16:54:42]SAM_PROTO_GetShiftState done [16:54:42]FM_GetShiftState done [16:54:42]opened in 1740098043 [16:54:42]opened+sec_in_day 1740184443 [16:54:42]quantity*price = 100023 [16:54:42]sum+1 = 100025 [16:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 191 21.02.2025 16:54 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187697 ФПД: 219832155606131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165443&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187697&fm=219832155606131&tin=02508201610067®Number=0000000000091857&sum=100024 [16:54:44]StoreToDocumentArchive [16:54:44]shift 649 fd 187697 [16:54:44]save to /storage/0649/doc_00187697 [16:54:44]save last doc name /storage/0649/doc_00187697 to /storage/kkm_last_doc_name [16:54:44]save OK [16:54:44]Clear old archive folders... [16:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:44]tlvbuf is 00BE5510 [16:54:44]SAM_PROTO_ClearQueue [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 09 00 00 [16:54:44]Write to MH i2c: E2 08 00 58 16 80 09 00 00 00 00 00 00 E0 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 58 16 00 90 00 E2 [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]SAM_PROTO_ClearQueue done [16:54:44]KKMCreateOFDPacket [16:54:44]OFDProtocolAddRootSTLVToBuf [16:54:44]FM_MakeSignedData [16:54:44]FM_MakeSignedData [16:54:44]SAM_PROTO_SignData [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 0D 01 02 [16:54:44]Write to MH i2c: E2 08 00 59 16 80 0D 01 02 00 00 00 00 E8 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 59 16 00 90 00 E3 [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]wFMCommunicate request_size=255 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 D3 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DD 02 00 35 04 06 00 C7 [16:54:44]Write to MH i2c: E2 02 01 5A 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 D3 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DD 02 00 35 04 06 00 C7 00 00 D7 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 5A 16 00 90 00 E4 [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]wFMCommunicate request_size=10 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 0D 02 02 05 EF A9 8B 8C 73 [16:54:44]Write to MH i2c: E2 0D 00 5B 16 80 0D 02 02 05 00 EF A9 8B 8C 73 00 00 17 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 03 00 5B 16 00 90 00 E5 [16:54:44]RAPDU: 90 00 [16:54:44]wFMCommunicate OK [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 0D 03 02 [16:54:44]Write to MH i2c: E2 08 00 5C 16 80 0D 03 02 00 00 00 00 ED [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 0B 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 0B 00 5C 16 00 52 6B 18 15 DF AB 60 57 90 00 19 [16:54:44]RAPDU: 52 6B 18 15 DF AB 60 57 90 00 [16:54:44]wFMCommunicate OK [16:54:44]SAM_PROTO_SignData done [16:54:44]FM_MakeSignedData done [16:54:44]CreateOFDProtocolMessage [16:54:44]wFMCommunicate request_size=4 [16:54:44]MH_SAM_APDU [16:54:44]CAPDU: 80 11 00 00 [16:54:44]Write to MH i2c: E2 08 00 5D 16 80 11 00 00 00 00 00 00 ED [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:44]Read from MH i2c: E2 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 17 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: E2 17 00 5D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [16:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:54:44]wFMCommunicate OK [16:54:44]CreateOFDProtocolMessage done [16:54:44]OFDSenderStorePacket 187697 [16:54:44]StoreOFDPacket docnum=187697 [16:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F6 19 07 01 32 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 D3 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DD 02 00 35 04 06 00 C7 EF A9 8B 8C 73 52 6B 18 15 DF AB 60 57 [16:54:44]CheckFolder [16:54:44]dirname=/storage/ofd_packets [16:54:44]CheckFolder done [16:54:44]ProducePacketName [16:54:44]name=ofd_packets/00187697 [16:54:44]NVStorageSaveData ofd_packets/00187697 [16:54:44]File name is /storage/ofd_packets/00187697 [16:54:44]Write 301 bytes [16:54:44]NVStorageSaveData done [16:54:44]OFDSenderStorePacket done [16:54:44]KKMCreateOFDPacket done [16:54:44]NVStorageSaveData kkm_last_timestamp [16:54:44]File name is /storage/kkm_last_timestamp [16:54:44]Write 4 bytes [16:54:44]NVStorageSaveData done [16:54:44]ExternCall_PrintAddStr [16:54:44]wPrintStart [16:54:44]Write to MH i2c: 01 00 00 5E 16 74 [16:54:44]Write i2c OK [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 07 00 [16:54:44]MH_I2C_Read... [16:54:44]Read from MH i2c: 01 07 00 5E 16 00 00 00 00 00 FF 0F 89 [16:54:44]RasterBufferAndPrint [16:54:44]line Счет N : (1)412857 [16:54:44]line ИНН: 02508201610067 [16:54:44]line Контрольно-Кассовый Чек [16:54:44]line ПРОДАЖА [16:54:44]line ТРК (МРК, ГНК) : 42 [16:54:44]line Товар: 2710124130 [16:54:44]line Аи-92-К-2 [16:54:44]line 15.580 * 64.20 [16:54:44]line = 1000.24 [16:54:44]line НДС 12% НСП 1% [16:54:44]line > о реализуемом товаре [16:54:44]line ИТОГО: 1000.24 [16:54:44]line НСП 1% : 8.85 [16:54:44]line НДС 12% : 106.22 [16:54:44]line Наличными: 0.00 [16:54:44]line Безнал.: 1000.24 [16:54:44]line Место: АЗС № 92 "Партнер Нефть" [16:54:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:54:44]line СНО: Общий режим [16:54:44]line Чек 191 21.02.2025 16:54 [16:54:44]line Смена: 649 ФФД: 1.0 [16:54:44]line ЗНМ: 0300000118 [16:54:44]line РНМ: 0000000000091857 [16:54:44]line Версия ККМ: 001 [16:54:44]line Платежная система: O! деньги [16:54:44]line ФМ: 0000000000871826 [16:54:44]line ФД: 187697 [16:54:44]line ФПД: 219832155606131 [16:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165443&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187697&fm=219832155606131&tin=02508201610067®Number=0000000000091857&sum=100024 [16:54:44]written 0, free lines is 4095 [16:54:44]OFD Sender: Processing packet 187697 [packets to send 49, broken 48] [16:54:44]ProducePacketName [16:54:44]name=ofd_packets/00187697 [16:54:44]OFD Sender: To server: pG, [16:54:44]CommunicateWithHost lk.salyk.kg:30040 [16:54:44]ConnectInit lk.salyk.kg [16:54:45]Connected sock=10 [16:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F6 19 07 01 32 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 D3 AF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DD 02 00 35 04 06 00 C7 EF A9 8B 8C 73 52 6B 18 15 DF AB 60 57 [16:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 67 82 47 00 A4 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 DD 02 00 F4 03 04 00 21 56 B8 67 B6 04 01 00 00 55 DA 3A 02 72 18 04 E2 [16:54:45]CommunicateWithHost err = 0 [16:54:45]CheckOFDResponse [16:54:45]1017 (14) - 77093643461234 [16:54:45]1041 (16) - 0000000000871826 [16:54:45]1040 (4) - 187697 [16:54:45]1012 (4) - 21.02.2025 10:32 [16:54:45]1206 (1) - 0 [16:54:45]OFD Sender: Remove packet 187697 [16:54:45]ProducePacketName [16:54:45]name=ofd_packets/00187697 [16:54:45]NVStorageDeleteData [16:54:45]Write to MH i2c: 01 00 00 88 16 9E [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: 01 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: 01 07 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: 01 07 00 88 16 00 00 00 00 00 FC 0C AD [16:54:45]RasterBufferAndPrint [16:54:45]line [16:54:45]line [16:54:45]line [16:54:45]line [16:54:45]line [16:54:45]written 0, free lines is 3331 [16:54:45]MH_Cut [16:54:45]Write to MH i2c: D1 01 00 8F 16 01 77 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: D1 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: D1 01 00 [16:54:45]MH_I2C_Read... [16:54:45]Read from MH i2c: D1 01 00 8F 16 00 76 [16:54:45]Write to MH i2c: 01 00 00 90 16 A6 [16:54:45]Write i2c OK [16:54:45]MH_I2C_Read... [16:54:45]OFD Sender: No OFD packet to send [16:54:46]*** Cut start [16:54:46]*** Partial cut [16:54:46]*** CUTSNS_PIN = 1 [16:54:46]*** CUTSNS_PIN = 0 [16:54:46]*** Brake cut motor [16:54:46]Read from MH i2c: 01 [16:54:46]MH_I2C_Read... [16:54:46]*** Stop cut motor [16:54:46]*** Cut end [16:54:46]Read from MH i2c: 01 07 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: 01 07 00 90 16 00 00 00 00 00 FF 0F BB [16:54:46]process_action close_receipt done [16:54:46]requested_data is exist [16:54:46]produce_requested_data [16:54:46]requested_item fm.sn is exist - process it [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 11 00 00 [16:54:46]Write to MH i2c: E2 08 00 91 16 80 11 00 00 00 00 00 00 21 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 17 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 17 00 91 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [16:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:54:46]wFMCommunicate OK [16:54:46]requested_item fd.num is exist - process it [16:54:46]SAM_PROTO_GetFieldsCounters [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 13 00 00 [16:54:46]Write to MH i2c: E2 08 00 92 16 80 13 00 00 00 00 00 00 24 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:46]Read from MH i2c: E2 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 62 00 [16:54:46]MH_I2C_Read... [16:54:46]Read from MH i2c: E2 62 00 92 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 31 DD 02 00 0E 04 04 00 89 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 22 [16:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 31 DD 02 00 0E 04 04 00 89 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 [16:54:46]wFMCommunicate OK [16:54:46]SAM_PROTO_GetFieldsCounters done [16:54:46]requested_item shift.num is exist - process it [16:54:46]requested_item shift.opened is exist - process it [16:54:46]req_shift_opened [16:54:46]FM_GetShiftState [16:54:46]SAM_PROTO_GetShiftState [16:54:46]wFMCommunicate request_size=4 [16:54:46]MH_SAM_APDU [16:54:46]CAPDU: 80 13 01 00 [16:54:46]Write to MH i2c: E2 08 00 93 16 80 13 01 00 00 00 00 00 26 [16:54:46]Write i2c OK [16:54:46]MH_I2C_Read... [16:54:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:47]Read from MH i2c: E2 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 0E 00 [16:54:47]MH_I2C_Read... [16:54:47]Read from MH i2c: E2 0E 00 93 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 14 [16:54:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:54:47]wFMCommunicate OK [16:54:47]SAM_PROTO_GetShiftState done [16:54:47]FM_GetShiftState done [16:54:47]req_shift_opened done [16:54:47]requested_item shift.open_date is exist - process it [16:54:47]req_shift_open_date [16:54:47]req_shift_open_date done [16:54:47]produce_requested_data done [16:54:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187697,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:54:47]process_action_free close_receipt [16:54:47]json_value_free [16:54:47]json_value_free done [16:54:47]process_json_proto returns [16:54:47]Send response to host [16:54:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187697,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:54:47]free response buf [16:54:47]execute_script done [16:54:47]execute_script returns [16:54:47]free content buf [16:54:47]Sock 7.Close socket [16:54:47]Sock 7.Thread stoped [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]accept exits with 9 [16:56:15]New connection [16:56:15]New thread 3067481444 created [16:56:15]Thread 3067624804 joined [16:56:15]Waiting for new connection... [16:56:15] Sock 9.Parse request [16:56:15]Sock 9.Check first char [16:56:15]Sock 9.First char is OK [16:56:15]request: POST /json_proto HTTP/1.0 [16:56:15]Method: POST [16:56:15]URL: /json_proto [16:56:15]Method is POST - this is cgi request [16:56:15]url: /json_proto [16:56:15]query_string will be loaded in cgi processing [16:56:15]execute_cgi json_proto POST (null) [16:56:15]execute_cgi path=json_proto method=POST [16:56:15]POST find Content-Length [16:56:15]Host: 172.17.46.131:8080 [16:56:15]Content-Length: 799 [16:56:15]Content-Type: application/json [16:56:15] [16:56:15]POST finish read [16:56:15]Found Content-Length = 799 [16:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:15]execute_script... [16:56: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)412858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:15]POST & json_proto [16:56:15]process_json_proto [16:56:15]json parsed OK: [16:56:15]protocol is kg_v1.0 [16:56:15]action value=close_receipt [16:56:15]process_action close_receipt [16:56:15]cmd_close_receipt [16:56:15]MH_GetDate [16:56:15]Write to MH i2c: F0 00 00 94 16 99 [16:56:15]Write i2c OK [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: F0 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: F0 09 00 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: F0 09 00 94 16 00 30 B0 B8 67 7E 41 4F 65 14 [16:56:15]GetLastDocTimeStamp 1740156883 [16:56:15]current date 1740156976 [16:56:15]FM_GetShiftState [16:56:15]SAM_PROTO_GetShiftState [16:56:15]wFMCommunicate request_size=4 [16:56:15]MH_SAM_APDU [16:56:15]CAPDU: 80 13 01 00 [16:56:15]Write to MH i2c: E2 08 00 95 16 80 13 01 00 00 00 00 00 28 [16:56:15]Write i2c OK [16:56:15]MH_I2C_Read... [16:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:15]Read from MH i2c: E2 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: E2 0E 00 [16:56:15]MH_I2C_Read... [16:56:15]Read from MH i2c: E2 0E 00 95 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 16 [16:56:15]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:56:15]wFMCommunicate OK [16:56:15]SAM_PROTO_GetShiftState done [16:56:15]FM_GetShiftState done [16:56:15]opened in 1740098043 [16:56:15]opened+sec_in_day 1740184443 [16:56:15]quantity*price = 150064 [16:56:15]sum+1 = 150065 [16:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 192 21.02.2025 16:56 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187698 ФПД: 201477397216096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187698&fm=201477397216096&tin=02508201610067®Number=0000000000091857&sum=150064 [16:56:16]StoreToDocumentArchive [16:56:16]shift 649 fd 187698 [16:56:16]save to /storage/0649/doc_00187698 [16:56:16]save last doc name /storage/0649/doc_00187698 to /storage/kkm_last_doc_name [16:56:16]save OK [16:56:16]Clear old archive folders... [16:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:56:16]tlvbuf is 00BBBA60 [16:56:16]SAM_PROTO_ClearQueue [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 09 00 00 [16:56:16]Write to MH i2c: E2 08 00 A2 16 80 09 00 00 00 00 00 00 2A [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 A2 16 00 90 00 2C [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]SAM_PROTO_ClearQueue done [16:56:16]KKMCreateOFDPacket [16:56:16]OFDProtocolAddRootSTLVToBuf [16:56:16]FM_MakeSignedData [16:56:16]FM_MakeSignedData [16:56:16]SAM_PROTO_SignData [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 01 02 [16:56:16]Write to MH i2c: E2 08 00 A3 16 80 0D 01 02 00 00 00 00 32 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 A3 16 00 90 00 2D [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=255 [16:56:16]MH_SAM_APDU [16:56: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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 30 B0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DD 02 00 35 04 06 00 B7 3E 1C B0 [16:56:16]Write to MH i2c: E2 02 01 A4 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 30 B0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DD 02 00 35 04 06 00 B7 3E 1C B0 00 00 5D [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 A4 16 00 90 00 2E [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=7 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 02 02 02 FB 60 [16:56:16]Write to MH i2c: E2 0A 00 A5 16 80 0D 02 02 02 00 FB 60 00 00 94 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 03 00 A5 16 00 90 00 2F [16:56:16]RAPDU: 90 00 [16:56:16]wFMCommunicate OK [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 0D 03 02 [16:56:16]Write to MH i2c: E2 08 00 A6 16 80 0D 03 02 00 00 00 00 37 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 0B 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 0B 00 A6 16 00 6F 6C 22 8D 70 C3 F0 4F 90 00 34 [16:56:16]RAPDU: 6F 6C 22 8D 70 C3 F0 4F 90 00 [16:56:16]wFMCommunicate OK [16:56:16]SAM_PROTO_SignData done [16:56:16]FM_MakeSignedData done [16:56:16]CreateOFDProtocolMessage [16:56:16]wFMCommunicate request_size=4 [16:56:16]MH_SAM_APDU [16:56:16]CAPDU: 80 11 00 00 [16:56:16]Write to MH i2c: E2 08 00 A7 16 80 11 00 00 00 00 00 00 37 [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:16]Read from MH i2c: E2 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 17 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: E2 17 00 A7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [16:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:56:16]wFMCommunicate OK [16:56:16]CreateOFDProtocolMessage done [16:56:16]OFDSenderStorePacket 187698 [16:56:16]StoreOFDPacket docnum=187698 [16:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F4 1B 04 01 8F 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 30 B0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DD 02 00 35 04 06 00 B7 3E 1C B0 FB 60 6F 6C 22 8D 70 C3 F0 4F [16:56:16]CheckFolder [16:56:16]dirname=/storage/ofd_packets [16:56:16]CheckFolder done [16:56:16]ProducePacketName [16:56:16]name=ofd_packets/00187698 [16:56:16]NVStorageSaveData ofd_packets/00187698 [16:56:16]File name is /storage/ofd_packets/00187698 [16:56:16]Write 298 bytes [16:56:16]NVStorageSaveData done [16:56:16]OFDSenderStorePacket done [16:56:16]KKMCreateOFDPacket done [16:56:16]NVStorageSaveData kkm_last_timestamp [16:56:16]File name is /storage/kkm_last_timestamp [16:56:16]Write 4 bytes [16:56:16]NVStorageSaveData done [16:56:16]ExternCall_PrintAddStr [16:56:16]wPrintStart [16:56:16]Write to MH i2c: 01 00 00 A8 16 BE [16:56:16]Write i2c OK [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: 01 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: 01 07 00 [16:56:16]MH_I2C_Read... [16:56:16]Read from MH i2c: 01 07 00 A8 16 00 00 00 00 00 FF 0F D3 [16:56:16]RasterBufferAndPrint [16:56:16]line Счет N : (1)412858 [16:56:16]line ИНН: 02508201610067 [16:56:16]line Контрольно-Кассовый Чек [16:56:16]line ПРОДАЖА [16:56:16]line ТРК (МРК, ГНК) : 6 [16:56:16]line Товар: 2710194210 [16:56:16]line ДТ-К-5 [16:56:16]line 20.670 * 72.60 [16:56:16]line = 1500.64 [16:56:16]line НДС 12% НСП 1% [16:56:16]line > о реализуемом товаре [16:56:16]line ИТОГО: 1500.64 [16:56:16]line НСП 1% : 13.28 [16:56:16]line НДС 12% : 159.36 [16:56:16]line Наличными: 0.00 [16:56:16]line Безнал.: 1500.64 [16:56:16]line Место: АЗС № 92 "Партнер Нефть" [16:56:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:56:16]line СНО: Общий режим [16:56:16]line Чек 192 21.02.2025 16:56 [16:56:16]line Смена: 649 ФФД: 1.0 [16:56:16]line ЗНМ: 0300000118 [16:56:16]line РНМ: 0000000000091857 [16:56:16]line Версия ККМ: 001 [16:56:16]line Платежная система: O! деньги [16:56:16]line ФМ: 0000000000871826 [16:56:16]line ФД: 187698 [16:56:16]line ФПД: 201477397216096 [16:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165616&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187698&fm=201477397216096&tin=02508201610067®Number=0000000000091857&sum=150064 [16:56:17]OFD Sender: Processing packet 187698 [packets to send 49, broken 48] [16:56:17]ProducePacketName [16:56:17]name=ofd_packets/00187698 [16:56:17]OFD Sender: To server: pG, [16:56:17]CommunicateWithHost lk.salyk.kg:30040 [16:56:17]ConnectInit lk.salyk.kg [16:56:17]written 0, free lines is 4095 [16:56:17]Connected sock=7 [16:56:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F4 1B 04 01 8F 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 30 B0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DD 02 00 35 04 06 00 B7 3E 1C B0 FB 60 6F 6C 22 8D 70 C3 F0 4F [16:56:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 83 DD 47 00 81 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 DD 02 00 F4 03 04 00 7D 56 B8 67 B6 04 01 00 00 B8 9E 09 33 C9 94 DE 14 [16:56:17]CommunicateWithHost err = 0 [16:56:17]CheckOFDResponse [16:56:17]1017 (14) - 77093643461234 [16:56:17]1041 (16) - 0000000000871826 [16:56:17]1040 (4) - 187698 [16:56:17]1012 (4) - 21.02.2025 10:33 [16:56:17]1206 (1) - 0 [16:56:17]OFD Sender: Remove packet 187698 [16:56:17]ProducePacketName [16:56:17]name=ofd_packets/00187698 [16:56:17]NVStorageDeleteData [16:56:17]Write to MH i2c: 01 00 00 D2 16 E8 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 07 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: 01 07 00 D2 16 00 00 00 00 00 09 0D 05 [16:56:17]RasterBufferAndPrint [16:56:17]line [16:56:17]line [16:56:17]line [16:56:17]line [16:56:17]line [16:56:17]written 0, free lines is 3343 [16:56:17]MH_Cut [16:56:17]Write to MH i2c: D1 01 00 D9 16 01 C1 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: D1 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: D1 01 00 [16:56:17]MH_I2C_Read... [16:56:17]Read from MH i2c: D1 01 00 D9 16 00 C0 [16:56:17]Write to MH i2c: 01 00 00 DA 16 F0 [16:56:17]Write i2c OK [16:56:17]MH_I2C_Read... [16:56:18]OFD Sender: No OFD packet to send [16:56:18]*** Cut start [16:56:18]*** Partial cut [16:56:18]*** CUTSNS_PIN = 1 [16:56:18]*** CUTSNS_PIN = 0 [16:56:18]*** Brake cut motor [16:56:19]Read from MH i2c: 01 [16:56:19]MH_I2C_Read... [16:56:19]*** Stop cut motor [16:56:19]*** Cut end [16:56:19]Read from MH i2c: 01 07 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: 01 07 00 DA 16 00 00 00 00 00 FF 0F 05 [16:56:19]process_action close_receipt done [16:56:19]requested_data is exist [16:56:19]produce_requested_data [16:56:19]requested_item fm.sn is exist - process it [16:56:19]wFMCommunicate request_size=4 [16:56:19]MH_SAM_APDU [16:56:19]CAPDU: 80 11 00 00 [16:56:19]Write to MH i2c: E2 08 00 DB 16 80 11 00 00 00 00 00 00 6B [16:56:19]Write i2c OK [16:56:19]MH_I2C_Read... [16:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:19]Read from MH i2c: E2 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 17 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 17 00 DB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BE [16:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:56:19]wFMCommunicate OK [16:56:19]requested_item fd.num is exist - process it [16:56:19]SAM_PROTO_GetFieldsCounters [16:56:19]wFMCommunicate request_size=4 [16:56:19]MH_SAM_APDU [16:56:19]CAPDU: 80 13 00 00 [16:56:19]Write to MH i2c: E2 08 00 DC 16 80 13 00 00 00 00 00 00 6E [16:56:19]Write i2c OK [16:56:19]MH_I2C_Read... [16:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:19]Read from MH i2c: E2 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 62 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 62 00 DC 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DD 02 00 0E 04 04 00 89 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 [16:56:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 DD 02 00 0E 04 04 00 89 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 [16:56:19]wFMCommunicate OK [16:56:19]SAM_PROTO_GetFieldsCounters done [16:56:19]requested_item shift.num is exist - process it [16:56:19]requested_item shift.opened is exist - process it [16:56:19]req_shift_opened [16:56:19]FM_GetShiftState [16:56:19]SAM_PROTO_GetShiftState [16:56:19]wFMCommunicate request_size=4 [16:56:19]MH_SAM_APDU [16:56:19]CAPDU: 80 13 01 00 [16:56:19]Write to MH i2c: E2 08 00 DD 16 80 13 01 00 00 00 00 00 70 [16:56:19]Write i2c OK [16:56:19]MH_I2C_Read... [16:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:19]Read from MH i2c: E2 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 0E 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 0E 00 DD 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 5E [16:56:19]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:56:19]wFMCommunicate OK [16:56:19]SAM_PROTO_GetShiftState done [16:56:19]FM_GetShiftState done [16:56:19]req_shift_opened done [16:56:19]requested_item shift.open_date is exist - process it [16:56:19]req_shift_open_date [16:56:19]req_shift_open_date done [16:56:19]produce_requested_data done [16:56:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187698,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:56:19]process_action_free close_receipt [16:56:19]json_value_free [16:56:19]json_value_free done [16:56:19]process_json_proto returns [16:56:19]Send response to host [16:56:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187698,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:56:19]free response buf [16:56:19]execute_script done [16:56:19]execute_script returns [16:56:19]free content buf [16:56:19]Sock 9.Close socket [16:56:19]Sock 9.Thread stoped [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:43]accept exits with 10 [16:59:43]New connection [16:59:43]New thread 3067624804 created [16:59:43]Thread 3067481444 joined [16:59:43]Waiting for new connection... [16:59:43] Sock 10.Parse request [16:59:43]Sock 10.Check first char [16:59:43]Sock 10.First char is OK [16:59:43]request: POST /json_proto HTTP/1.0 [16:59:43]Method: POST [16:59:43]URL: /json_proto [16:59:43]Method is POST - this is cgi request [16:59:43]url: /json_proto [16:59:43]query_string will be loaded in cgi processing [16:59:43]execute_cgi json_proto POST (null) [16:59:43]execute_cgi path=json_proto method=POST [16:59:43]POST find Content-Length [16:59:43]Host: 172.17.46.131:8080 [16:59:43]Content-Length: 791 [16:59:43]Content-Type: application/json [16:59:43] [16:59:43]POST finish read [16:59:43]Found Content-Length = 791 [16:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.790, "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\u000A99954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:43]execute_script... [16:59:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.790, "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\u000A99954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:43]POST & json_proto [16:59:43]process_json_proto [16:59:43]json parsed OK: [16:59:43]protocol is kg_v1.0 [16:59:43]action value=close_receipt [16:59:43]process_action close_receipt [16:59:43]cmd_close_receipt [16:59:43]MH_GetDate [16:59:43]Write to MH i2c: F0 00 00 DE 16 E3 [16:59:43]Write i2c OK [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: F0 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: F0 09 00 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: F0 09 00 DE 16 00 00 B1 B8 67 7E 41 4F 65 2F [16:59:43]GetLastDocTimeStamp 1740156976 [16:59:43]current date 1740157184 [16:59:43]FM_GetShiftState [16:59:43]SAM_PROTO_GetShiftState [16:59:43]wFMCommunicate request_size=4 [16:59:43]MH_SAM_APDU [16:59:43]CAPDU: 80 13 01 00 [16:59:43]Write to MH i2c: E2 08 00 DF 16 80 13 01 00 00 00 00 00 72 [16:59:43]Write i2c OK [16:59:43]MH_I2C_Read... [16:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:43]Read from MH i2c: E2 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: E2 0E 00 [16:59:43]MH_I2C_Read... [16:59:43]Read from MH i2c: E2 0E 00 DF 16 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 60 [16:59:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:59:43]wFMCommunicate OK [16:59:43]SAM_PROTO_GetShiftState done [16:59:43]FM_GetShiftState done [16:59:43]opened in 1740098043 [16:59:43]opened+sec_in_day 1740184443 [16:59:43]quantity*price = 0 [16:59:43]sum+1 = 1 [16:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 193 21.02.2025 16:59 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99954 ФМ: 0000000000871826 ФД: 187699 ФПД: 265186768824911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165944&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187699&fm=265186768824911&tin=02508201610067®Number=0000000000091857&sum=0 [16:59:44]StoreToDocumentArchive [16:59:44]shift 649 fd 187699 [16:59:44]save to /storage/0649/doc_00187699 [16:59:44]save last doc name /storage/0649/doc_00187699 to /storage/kkm_last_doc_name [16:59:44]save OK [16:59:44]Clear old archive folders... [16:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:45]tlvbuf is 00BDE970 [16:59:45]SAM_PROTO_ClearQueue [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 09 00 00 [16:59:45]Write to MH i2c: E2 08 00 EC 16 80 09 00 00 00 00 00 00 74 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 EC 16 00 90 00 76 [16:59:45]RAPDU: 90 00 [16:59:45]wFMCommunicate OK [16:59:45]SAM_PROTO_ClearQueue done [16:59:45]KKMCreateOFDPacket [16:59:45]OFDProtocolAddRootSTLVToBuf [16:59:45]FM_MakeSignedData [16:59:45]FM_MakeSignedData [16:59:45]SAM_PROTO_SignData [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 0D 01 02 [16:59:45]Write to MH i2c: E2 08 00 ED 16 80 0D 01 02 00 00 00 00 7C [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 ED 16 00 90 00 77 [16:59:45]RAPDU: 90 00 [16:59:45]wFMCommunicate OK [16:59:45]wFMCommunicate request_size=255 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 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 C1 00 00 00 F4 03 04 00 00 B1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DD 02 00 35 04 06 00 F1 [16:59:45]Write to MH i2c: E2 02 01 EE 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 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 C1 00 00 00 F4 03 04 00 00 B1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DD 02 00 35 04 06 00 F1 00 00 33 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 EE 16 00 90 00 78 [16:59:45]RAPDU: 90 00 [16:59:45]wFMCommunicate OK [16:59:45]wFMCommunicate request_size=10 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 0D 02 02 05 2F 9B 27 AA 4F [16:59:45]Write to MH i2c: E2 0D 00 EF 16 80 0D 02 02 05 00 2F 9B 27 AA 4F 00 00 73 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 03 00 EF 16 00 90 00 79 [16:59:45]RAPDU: 90 00 [16:59:45]wFMCommunicate OK [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 0D 03 02 [16:59:45]Write to MH i2c: E2 08 00 F0 16 80 0D 03 02 00 00 00 00 81 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0B 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 0B 00 F0 16 00 EF F0 BC 30 AB BA 3D 1C 90 00 0B [16:59:45]RAPDU: EF F0 BC 30 AB BA 3D 1C 90 00 [16:59:45]wFMCommunicate OK [16:59:45]SAM_PROTO_SignData done [16:59:45]FM_MakeSignedData done [16:59:45]CreateOFDProtocolMessage [16:59:45]wFMCommunicate request_size=4 [16:59:45]MH_SAM_APDU [16:59:45]CAPDU: 80 11 00 00 [16:59:45]Write to MH i2c: E2 08 00 F1 16 80 11 00 00 00 00 00 00 81 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:45]Read from MH i2c: E2 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 17 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: E2 17 00 F1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [16:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:59:45]wFMCommunicate OK [16:59:45]CreateOFDProtocolMessage done [16:59:45]OFDSenderStorePacket 187699 [16:59:45]StoreOFDPacket docnum=187699 [16:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F4 2B 07 01 9F 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 32 FF 03 08 00 03 6E 1E 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 C1 00 00 00 F4 03 04 00 00 B1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DD 02 00 35 04 06 00 F1 2F 9B 27 AA 4F EF F0 BC 30 AB BA 3D 1C [16:59:45]CheckFolder [16:59:45]dirname=/storage/ofd_packets [16:59:45]CheckFolder done [16:59:45]ProducePacketName [16:59:45]name=ofd_packets/00187699 [16:59:45]NVStorageSaveData ofd_packets/00187699 [16:59:45]File name is /storage/ofd_packets/00187699 [16:59:45]Write 301 bytes [16:59:45]NVStorageSaveData done [16:59:45]OFDSenderStorePacket done [16:59:45]KKMCreateOFDPacket done [16:59:45]NVStorageSaveData kkm_last_timestamp [16:59:45]File name is /storage/kkm_last_timestamp [16:59:45]Write 4 bytes [16:59:45]NVStorageSaveData done [16:59:45]ExternCall_PrintAddStr [16:59:45]wPrintStart [16:59:45]Write to MH i2c: 01 00 00 F2 16 08 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 07 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 07 00 F2 16 00 00 00 00 00 FF 0F 1D [16:59:45]RasterBufferAndPrint [16:59:45]line Счет N : (1)412859 [16:59:45]line ИНН: 02508201610067 [16:59:45]line Контрольно-Кассовый Чек [16:59:45]line ПРОДАЖА [16:59:45]line ТРК (МРК, ГНК) : 22 [16:59:45]line Товар: 2710124130 [16:59:45]line Аи-92-К-2 [16:59:45]line 7.790 * 0.00 [16:59:45]line = 0.00 [16:59:45]line НДС 12% НСП 1% [16:59:45]line > о реализуемом товаре [16:59:45]line ИТОГО: 0.00 [16:59:45]line НСП 1% : 0.00 [16:59:45]line НДС 12% : 0.00 [16:59:45]line Наличными: 0.00 [16:59:45]line Безнал.: 0.00 [16:59:45]line Место: АЗС № 92 "Партнер Нефть" [16:59:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:59:45]line СНО: Общий режим [16:59:45]line Чек 193 21.02.2025 16:59 [16:59:45]line Смена: 649 ФФД: 1.0 [16:59:45]line ЗНМ: 0300000118 [16:59:45]line РНМ: 0000000000091857 [16:59:45]line Версия ККМ: 001 [16:59:45]line Талоны: Топливная Карта [16:59:45]line 99954 [16:59:45]line ФМ: 0000000000871826 [16:59:45]line ФД: 187699 [16:59:45]line ФПД: 265186768824911 [16:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T165944&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187699&fm=265186768824911&tin=02508201610067®Number=0000000000091857&sum=0 [16:59:45]written 0, free lines is 4095 [16:59:45]OFD Sender: Processing packet 187699 [packets to send 49, broken 48] [16:59:45]ProducePacketName [16:59:45]name=ofd_packets/00187699 [16:59:45]OFD Sender: To server: pG, [16:59:45]CommunicateWithHost lk.salyk.kg:30040 [16:59:45]ConnectInit lk.salyk.kg [16:59:45]Write to MH i2c: 01 00 00 1C 17 33 [16:59:45]Write i2c OK [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 07 00 [16:59:45]MH_I2C_Read... [16:59:45]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 04 0D 4B [16:59:45]RasterBufferAndPrint [16:59:45]line [16:59:45]line [16:59:45]line [16:59:45]line [16:59:45]line [16:59:45]written 0, free lines is 3338 [16:59:46]MH_Cut [16:59:46]Write to MH i2c: D1 01 00 23 17 01 0C [16:59:46]Write i2c OK [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: D1 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: D1 01 00 [16:59:46]MH_I2C_Read... [16:59:46]Read from MH i2c: D1 01 00 23 17 00 0B [16:59:46]Write to MH i2c: 01 00 00 24 17 3B [16:59:46]Write i2c OK [16:59:46]MH_I2C_Read... [16:59:46]Connected sock=11 [16:59:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F4 2B 07 01 9F 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 32 FF 03 08 00 03 6E 1E 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 C1 00 00 00 F4 03 04 00 00 B1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DD 02 00 35 04 06 00 F1 2F 9B 27 AA 4F EF F0 BC 30 AB BA 3D 1C [16:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AD 0F 47 00 0B 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 38 32 36 10 04 04 00 33 DD 02 00 F4 03 04 00 4E 57 B8 67 B6 04 01 00 00 51 BC B9 3F A1 0F 7F 79 [16:59:46]CommunicateWithHost err = 0 [16:59:46]CheckOFDResponse [16:59:46]1017 (14) - 77093643461234 [16:59:46]1041 (16) - 0000000000871826 [16:59:46]1040 (4) - 187699 [16:59:46]1012 (4) - 21.02.2025 10:37 [16:59:46]1206 (1) - 0 [16:59:46]OFD Sender: Remove packet 187699 [16:59:46]ProducePacketName [16:59:46]name=ofd_packets/00187699 [16:59:46]NVStorageDeleteData [16:59:46]*** Cut start [16:59:46]*** Partial cut [16:59:46]*** CUTSNS_PIN = 1 [16:59:46]*** CUTSNS_PIN = 0 [16:59:46]OFD Sender: No OFD packet to send [16:59:47]*** Brake cut motor [16:59:47]Read from MH i2c: 01 [16:59:47]MH_I2C_Read... [16:59:47]*** Stop cut motor [16:59:47]*** Cut end [16:59:47]Read from MH i2c: 01 07 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: 01 07 00 24 17 00 00 00 00 00 FF 0F 50 [16:59:47]process_action close_receipt done [16:59:47]requested_data is exist [16:59:47]produce_requested_data [16:59:47]requested_item fm.sn is exist - process it [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 11 00 00 [16:59:47]Write to MH i2c: E2 08 00 25 17 80 11 00 00 00 00 00 00 B6 [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 17 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 17 00 25 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [16:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:59:47]wFMCommunicate OK [16:59:47]requested_item fd.num is exist - process it [16:59:47]SAM_PROTO_GetFieldsCounters [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 13 00 00 [16:59:47]Write to MH i2c: E2 08 00 26 17 80 13 00 00 00 00 00 00 B9 [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 62 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 62 00 26 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 DD 02 00 0E 04 04 00 89 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 [16:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 DD 02 00 0E 04 04 00 89 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 [16:59:47]wFMCommunicate OK [16:59:47]SAM_PROTO_GetFieldsCounters done [16:59:47]requested_item shift.num is exist - process it [16:59:47]requested_item shift.opened is exist - process it [16:59:47]req_shift_opened [16:59:47]FM_GetShiftState [16:59:47]SAM_PROTO_GetShiftState [16:59:47]wFMCommunicate request_size=4 [16:59:47]MH_SAM_APDU [16:59:47]CAPDU: 80 13 01 00 [16:59:47]Write to MH i2c: E2 08 00 27 17 80 13 01 00 00 00 00 00 BB [16:59:47]Write i2c OK [16:59:47]MH_I2C_Read... [16:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:47]Read from MH i2c: E2 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 0E 00 [16:59:47]MH_I2C_Read... [16:59:47]Read from MH i2c: E2 0E 00 27 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A9 [16:59:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [16:59:47]wFMCommunicate OK [16:59:47]SAM_PROTO_GetShiftState done [16:59:47]FM_GetShiftState done [16:59:47]req_shift_opened done [16:59:47]requested_item shift.open_date is exist - process it [16:59:47]req_shift_open_date [16:59:47]req_shift_open_date done [16:59:47]produce_requested_data done [16:59:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187699,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [16:59:47]process_action_free close_receipt [16:59:47]json_value_free [16:59:47]json_value_free done [16:59:47]process_json_proto returns [16:59:47]Send response to host [16:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187699,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [16:59:47]free response buf [16:59:47]execute_script done [16:59:47]execute_script returns [16:59:47]free content buf [16:59:47]Sock 10.Close socket [16:59:47]Sock 10.Thread stoped [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:32]accept exits with 7 [17:01:32]New connection [17:01:32]New thread 3067481444 created [17:01:32]Thread 3067624804 joined [17:01:32]Waiting for new connection... [17:01:32] Sock 7.Parse request [17:01:32]Sock 7.Check first char [17:01:32]Sock 7.First char is OK [17:01:32]request: POST /json_proto HTTP/1.0 [17:01:32]Method: POST [17:01:32]URL: /json_proto [17:01:32]Method is POST - this is cgi request [17:01:32]url: /json_proto [17:01:32]query_string will be loaded in cgi processing [17:01:32]execute_cgi json_proto POST (null) [17:01:32]execute_cgi path=json_proto method=POST [17:01:32]POST find Content-Length [17:01:32]Host: 172.17.46.131:8080 [17:01:32]Content-Length: 800 [17:01:32]Content-Type: application/json [17:01:32] [17:01:32]POST finish read [17:01:32]Found Content-Length = 800 [17:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:32]execute_script... [17:01: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)412860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:32]POST & json_proto [17:01:32]process_json_proto [17:01:32]json parsed OK: [17:01:32]protocol is kg_v1.0 [17:01:32]action value=close_receipt [17:01:32]process_action close_receipt [17:01:32]cmd_close_receipt [17:01:32]MH_GetDate [17:01:32]Write to MH i2c: F0 00 00 28 17 2E [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: F0 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: F0 09 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: F0 09 00 28 17 00 6D B1 B8 67 7E 41 4F 65 E7 [17:01:32]GetLastDocTimeStamp 1740157184 [17:01:32]current date 1740157293 [17:01:32]FM_GetShiftState [17:01:32]SAM_PROTO_GetShiftState [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 13 01 00 [17:01:32]Write to MH i2c: E2 08 00 29 17 80 13 01 00 00 00 00 00 BD [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 0E 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 0E 00 29 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 AB [17:01:32]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:01:32]wFMCommunicate OK [17:01:32]SAM_PROTO_GetShiftState done [17:01:32]FM_GetShiftState done [17:01:32]opened in 1740098043 [17:01:32]opened+sec_in_day 1740184443 [17:01:32]quantity*price = 50042 [17:01:32]sum+1 = 50043 [17:01:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.42 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 194 21.02.2025 17:01 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187700 ФПД: 12581872524803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170133&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187700&fm=12581872524803&tin=02508201610067®Number=0000000000091857&sum=50042 [17:01:33]StoreToDocumentArchive [17:01:33]shift 649 fd 187700 [17:01:33]save to /storage/0649/doc_00187700 [17:01:33]save last doc name /storage/0649/doc_00187700 to /storage/kkm_last_doc_name [17:01:33]save OK [17:01:33]Clear old archive folders... [17:01:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:33]tlvbuf is 00BB5680 [17:01:33]SAM_PROTO_ClearQueue [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 09 00 00 [17:01:33]Write to MH i2c: E2 08 00 36 17 80 09 00 00 00 00 00 00 BF [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 36 17 00 90 00 C1 [17:01:33]RAPDU: 90 00 [17:01:33]wFMCommunicate OK [17:01:33]SAM_PROTO_ClearQueue done [17:01:33]KKMCreateOFDPacket [17:01:33]OFDProtocolAddRootSTLVToBuf [17:01:33]FM_MakeSignedData [17:01:33]FM_MakeSignedData [17:01:33]SAM_PROTO_SignData [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 0D 01 02 [17:01:33]Write to MH i2c: E2 08 00 37 17 80 0D 01 02 00 00 00 00 C7 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 37 17 00 90 00 C2 [17:01:33]RAPDU: 90 00 [17:01:33]wFMCommunicate OK [17:01:33]wFMCommunicate request_size=255 [17:01:33]MH_SAM_APDU [17:01: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6D B1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DD 02 00 35 04 06 00 0B [17:01:33]Write to MH i2c: E2 02 01 38 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6D B1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DD 02 00 35 04 06 00 0B 00 00 48 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 38 17 00 90 00 C3 [17:01:33]RAPDU: 90 00 [17:01:33]wFMCommunicate OK [17:01:33]wFMCommunicate request_size=10 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 0D 02 02 05 71 72 0A DE 03 [17:01:33]Write to MH i2c: E2 0D 00 39 17 80 0D 02 02 05 00 71 72 0A DE 03 00 00 A2 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 39 17 00 90 00 C4 [17:01:33]RAPDU: 90 00 [17:01:33]wFMCommunicate OK [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 0D 03 02 [17:01:33]Write to MH i2c: E2 08 00 3A 17 80 0D 03 02 00 00 00 00 CC [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 0B 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 0B 00 3A 17 00 46 E5 38 FB 4F 5A D4 76 90 00 1E [17:01:33]RAPDU: 46 E5 38 FB 4F 5A D4 76 90 00 [17:01:33]wFMCommunicate OK [17:01:33]SAM_PROTO_SignData done [17:01:33]FM_MakeSignedData done [17:01:33]CreateOFDProtocolMessage [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 11 00 00 [17:01:33]Write to MH i2c: E2 08 00 3B 17 80 11 00 00 00 00 00 00 CC [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 17 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 17 00 3B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1F [17:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:01:33]wFMCommunicate OK [17:01:33]CreateOFDProtocolMessage done [17:01:33]OFDSenderStorePacket 187700 [17:01:33]StoreOFDPacket docnum=187700 [17:01:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D9 87 07 01 86 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6D B1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DD 02 00 35 04 06 00 0B 71 72 0A DE 03 46 E5 38 FB 4F 5A D4 76 [17:01:33]CheckFolder [17:01:33]dirname=/storage/ofd_packets [17:01:33]CheckFolder done [17:01:33]ProducePacketName [17:01:33]name=ofd_packets/00187700 [17:01:33]NVStorageSaveData ofd_packets/00187700 [17:01:33]File name is /storage/ofd_packets/00187700 [17:01:33]Write 301 bytes [17:01:33]NVStorageSaveData done [17:01:33]OFDSenderStorePacket done [17:01:33]KKMCreateOFDPacket done [17:01:33]NVStorageSaveData kkm_last_timestamp [17:01:33]File name is /storage/kkm_last_timestamp [17:01:33]Write 4 bytes [17:01:33]NVStorageSaveData done [17:01:33]ExternCall_PrintAddStr [17:01:33]wPrintStart [17:01:33]Write to MH i2c: 01 00 00 3C 17 53 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 07 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: 01 07 00 3C 17 00 00 00 00 00 FF 0F 68 [17:01:33]RasterBufferAndPrint [17:01:33]line Счет N : (1)412860 [17:01:33]line ИНН: 02508201610067 [17:01:33]line Контрольно-Кассовый Чек [17:01:33]line ПРОДАЖА [17:01:33]line ТРК (МРК, ГНК) : 33 [17:01:33]line Товар: 2710124500 [17:01:33]line Аи-95-К-5 [17:01:33]line 6.960 * 71.90 [17:01:33]line = 500.42 [17:01:33]line НДС 12% НСП 1% [17:01:33]line > о реализуемом товаре [17:01:33]line ИТОГО: 500.42 [17:01:33]line НСП 1% : 4.43 [17:01:33]line НДС 12% : 53.14 [17:01:33]line Наличными: 0.00 [17:01:33]line Безнал.: 500.42 [17:01:33]line Место: АЗС № 92 "Партнер Нефть" [17:01:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:01:33]line СНО: Общий режим [17:01:33]line Чек 194 21.02.2025 17:01 [17:01:33]line Смена: 649 ФФД: 1.0 [17:01:33]line ЗНМ: 0300000118 [17:01:33]line РНМ: 0000000000091857 [17:01:33]line Версия ККМ: 001 [17:01:33]line Платежная система: O! деньги [17:01:33]line ФМ: 0000000000871826 [17:01:33]line ФД: 187700 [17:01:33]line ФПД: 12581872524803 [17:01:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170133&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187700&fm=12581872524803&tin=02508201610067®Number=0000000000091857&sum=50042 [17:01:33]written 0, free lines is 4095 [17:01:33]OFD Sender: Processing packet 187700 [packets to send 49, broken 48] [17:01:33]ProducePacketName [17:01:33]name=ofd_packets/00187700 [17:01:33]OFD Sender: To server: pG, [17:01:33]CommunicateWithHost lk.salyk.kg:30040 [17:01:33]ConnectInit lk.salyk.kg [17:01:34]Connected sock=11 [17:01:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D9 87 07 01 86 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 6D B1 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DD 02 00 35 04 06 00 0B 71 72 0A DE 03 46 E5 38 FB 4F 5A D4 76 [17:01:34]Write to MH i2c: 01 00 00 66 17 7D [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: 01 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: 01 07 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: 01 07 00 66 17 00 00 00 00 00 F5 0C 85 [17:01:34]RasterBufferAndPrint [17:01:34]line [17:01:34]line [17:01:34]line [17:01:34]line [17:01:34]line [17:01:34]written 0, free lines is 3323 [17:01:34]MH_Cut [17:01:34]Write to MH i2c: D1 01 00 6D 17 01 56 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: D1 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: D1 01 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: D1 01 00 6D 17 00 55 [17:01:34]Write to MH i2c: 01 00 00 6E 17 85 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 63 E5 47 00 48 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 DD 02 00 F4 03 04 00 BA 57 B8 67 B6 04 01 00 00 17 9B B5 94 25 CB 52 8A [17:01:34]CommunicateWithHost err = 0 [17:01:34]CheckOFDResponse [17:01:34]1017 (14) - 77093643461234 [17:01:34]1041 (16) - 0000000000871826 [17:01:34]1040 (4) - 187700 [17:01:34]1012 (4) - 21.02.2025 10:38 [17:01:34]1206 (1) - 0 [17:01:34]OFD Sender: Remove packet 187700 [17:01:34]ProducePacketName [17:01:34]name=ofd_packets/00187700 [17:01:34]NVStorageDeleteData [17:01:34]OFD Sender: No OFD packet to send [17:01:34]*** Cut start [17:01:34]*** Partial cut [17:01:34]*** CUTSNS_PIN = 1 [17:01:35]*** CUTSNS_PIN = 0 [17:01:35]*** Brake cut motor [17:01:35]Read from MH i2c: 01 [17:01:35]MH_I2C_Read... [17:01:35]*** Stop cut motor [17:01:35]*** Cut end [17:01:35]Read from MH i2c: 01 07 00 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: 01 07 00 6E 17 00 00 00 00 00 FF 0F 9A [17:01:35]process_action close_receipt done [17:01:35]requested_data is exist [17:01:35]produce_requested_data [17:01:35]requested_item fm.sn is exist - process it [17:01:35]wFMCommunicate request_size=4 [17:01:35]MH_SAM_APDU [17:01:35]CAPDU: 80 11 00 00 [17:01:35]Write to MH i2c: E2 08 00 6F 17 80 11 00 00 00 00 00 00 00 [17:01:35]Write i2c OK [17:01:35]MH_I2C_Read... [17:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:35]Read from MH i2c: E2 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: E2 17 00 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: E2 17 00 6F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [17:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:01:35]wFMCommunicate OK [17:01:35]requested_item fd.num is exist - process it [17:01:35]SAM_PROTO_GetFieldsCounters [17:01:35]wFMCommunicate request_size=4 [17:01:35]MH_SAM_APDU [17:01:35]CAPDU: 80 13 00 00 [17:01:35]Write to MH i2c: E2 08 00 70 17 80 13 00 00 00 00 00 00 03 [17:01:35]Write i2c OK [17:01:35]MH_I2C_Read... [17:01:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:35]Read from MH i2c: E2 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: E2 62 00 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: E2 62 00 70 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DD 02 00 0E 04 04 00 89 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 0D [17:01:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 34 DD 02 00 0E 04 04 00 89 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 [17:01:35]wFMCommunicate OK [17:01:35]SAM_PROTO_GetFieldsCounters done [17:01:35]requested_item shift.num is exist - process it [17:01:35]requested_item shift.opened is exist - process it [17:01:35]req_shift_opened [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 71 17 80 13 01 00 00 00 00 00 05 [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 71 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 F3 [17:01:35]RAPDU: 09 00 01 FB C9 B7 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]req_shift_opened done [17:01:35]requested_item shift.open_date is exist - process it [17:01:35]req_shift_open_date [17:01:35]req_shift_open_date done [17:01:35]produce_requested_data done [17:01:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187700,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:01:35]process_action_free close_receipt [17:01:35]json_value_free [17:01:35]json_value_free done [17:01:35]process_json_proto returns [17:01:35]Send response to host [17:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187700,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:01:35]free response buf [17:01:35]execute_script done [17:01:35]execute_script returns [17:01:35]free content buf [17:01:35]Sock 7.Close socket [17:01:35]Sock 7.Thread stoped [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:03]accept exits with 9 [17:05:03]New connection [17:05:03]New thread 3067624804 created [17:05:03]Thread 3067481444 joined [17:05:03]Waiting for new connection... [17:05:03] Sock 9.Parse request [17:05:03]Sock 9.Check first char [17:05:03]Sock 9.First char is OK [17:05:03]request: POST /json_proto HTTP/1.0 [17:05:03]Method: POST [17:05:03]URL: /json_proto [17:05:03]Method is POST - this is cgi request [17:05:03]url: /json_proto [17:05:03]query_string will be loaded in cgi processing [17:05:03]execute_cgi json_proto POST (null) [17:05:03]execute_cgi path=json_proto method=POST [17:05:03]POST find Content-Length [17:05:03]Host: 172.17.46.131:8080 [17:05:03]Content-Length: 677 [17:05:03]Content-Type: application/json [17:05:03] [17:05:03]POST finish read [17:05:03]Found Content-Length = 677 [17:05:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:03]execute_script... [17:05: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)412861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:03]POST & json_proto [17:05:03]process_json_proto [17:05:03]json parsed OK: [17:05:03]protocol is kg_v1.0 [17:05:03]action value=close_receipt [17:05:03]process_action close_receipt [17:05:03]cmd_close_receipt [17:05:03]MH_GetDate [17:05:03]Write to MH i2c: F0 00 00 72 17 78 [17:05:03]Write i2c OK [17:05:03]MH_I2C_Read... [17:05:03]Read from MH i2c: F0 [17:05:03]MH_I2C_Read... [17:05:03]Read from MH i2c: F0 09 00 [17:05:03]MH_I2C_Read... [17:05:03]Read from MH i2c: F0 09 00 72 17 00 40 B2 B8 67 7E 41 4F 65 05 [17:05:03]GetLastDocTimeStamp 1740157293 [17:05:03]current date 1740157504 [17:05:03]FM_GetShiftState [17:05:03]SAM_PROTO_GetShiftState [17:05:03]wFMCommunicate request_size=4 [17:05:03]MH_SAM_APDU [17:05:03]CAPDU: 80 13 01 00 [17:05:03]Write to MH i2c: E2 08 00 73 17 80 13 01 00 00 00 00 00 07 [17:05:03]Write i2c OK [17:05:03]MH_I2C_Read... [17:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:03]Read from MH i2c: E2 [17:05:03]MH_I2C_Read... [17:05:03]Read from MH i2c: E2 0E 00 [17:05:03]MH_I2C_Read... [17:05:03]Read from MH i2c: E2 0E 00 73 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 F5 [17:05:03]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:05:03]wFMCommunicate OK [17:05:03]SAM_PROTO_GetShiftState done [17:05:03]FM_GetShiftState done [17:05:03]opened in 1740098043 [17:05:03]opened+sec_in_day 1740184443 [17:05:03]quantity*price = 20030 [17:05:03]sum+1 = 20031 [17:05:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 195 21.02.2025 17:05 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187701 ФПД: 92716394324613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170504&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187701&fm=92716394324613&tin=02508201610067®Number=0000000000091857&sum=20000 [17:05:04]StoreToDocumentArchive [17:05:04]shift 649 fd 187701 [17:05:04]save to /storage/0649/doc_00187701 [17:05:04]save last doc name /storage/0649/doc_00187701 to /storage/kkm_last_doc_name [17:05:04]save OK [17:05:04]Clear old archive folders... [17:05:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:04]tlvbuf is 00BDE890 [17:05:04]SAM_PROTO_ClearQueue [17:05:04]wFMCommunicate request_size=4 [17:05:04]MH_SAM_APDU [17:05:04]CAPDU: 80 09 00 00 [17:05:04]Write to MH i2c: E2 08 00 80 17 80 09 00 00 00 00 00 00 09 [17:05:04]Write i2c OK [17:05:04]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 80 17 00 90 00 0B [17:05:05]RAPDU: 90 00 [17:05:05]wFMCommunicate OK [17:05:05]SAM_PROTO_ClearQueue done [17:05:05]KKMCreateOFDPacket [17:05:05]OFDProtocolAddRootSTLVToBuf [17:05:05]FM_MakeSignedData [17:05:05]FM_MakeSignedData [17:05:05]SAM_PROTO_SignData [17:05:05]wFMCommunicate request_size=4 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 0D 01 02 [17:05:05]Write to MH i2c: E2 08 00 81 17 80 0D 01 02 00 00 00 00 11 [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:05]OFD Sender: No OFD packet to send [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 81 17 00 90 00 0C [17:05:05]RAPDU: 90 00 [17:05:05]wFMCommunicate OK [17:05:05]wFMCommunicate request_size=255 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 40 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DD 02 00 35 04 06 00 54 [17:05:05]Write to MH i2c: E2 02 01 82 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 40 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DD 02 00 35 04 06 00 54 00 00 BD [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 82 17 00 90 00 0D [17:05:05]RAPDU: 90 00 [17:05:05]wFMCommunicate OK [17:05:05]wFMCommunicate request_size=10 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 0D 02 02 05 53 37 BF A2 85 [17:05:05]Write to MH i2c: E2 0D 00 83 17 80 0D 02 02 05 00 53 37 BF A2 85 00 00 8E [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 03 00 83 17 00 90 00 0E [17:05:05]RAPDU: 90 00 [17:05:05]wFMCommunicate OK [17:05:05]wFMCommunicate request_size=4 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 0D 03 02 [17:05:05]Write to MH i2c: E2 08 00 84 17 80 0D 03 02 00 00 00 00 16 [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 0B 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 0B 00 84 17 00 50 1B D5 B6 B1 2B 2C 16 90 00 2B [17:05:05]RAPDU: 50 1B D5 B6 B1 2B 2C 16 90 00 [17:05:05]wFMCommunicate OK [17:05:05]SAM_PROTO_SignData done [17:05:05]FM_MakeSignedData done [17:05:05]CreateOFDProtocolMessage [17:05:05]wFMCommunicate request_size=4 [17:05:05]MH_SAM_APDU [17:05:05]CAPDU: 80 11 00 00 [17:05:05]Write to MH i2c: E2 08 00 85 17 80 11 00 00 00 00 00 00 16 [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:05]Read from MH i2c: E2 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 17 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: E2 17 00 85 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 69 [17:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:05:05]wFMCommunicate OK [17:05:05]CreateOFDProtocolMessage done [17:05:05]OFDSenderStorePacket 187701 [17:05:05]StoreOFDPacket docnum=187701 [17:05:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EE 02 07 01 76 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 40 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DD 02 00 35 04 06 00 54 53 37 BF A2 85 50 1B D5 B6 B1 2B 2C 16 [17:05:05]CheckFolder [17:05:05]dirname=/storage/ofd_packets [17:05:05]CheckFolder done [17:05:05]ProducePacketName [17:05:05]name=ofd_packets/00187701 [17:05:05]NVStorageSaveData ofd_packets/00187701 [17:05:05]File name is /storage/ofd_packets/00187701 [17:05:05]Write 301 bytes [17:05:05]NVStorageSaveData done [17:05:05]OFDSenderStorePacket done [17:05:05]KKMCreateOFDPacket done [17:05:05]NVStorageSaveData kkm_last_timestamp [17:05:05]File name is /storage/kkm_last_timestamp [17:05:05]Write 4 bytes [17:05:05]NVStorageSaveData done [17:05:05]ExternCall_PrintAddStr [17:05:05]wPrintStart [17:05:05]Write to MH i2c: 01 00 00 86 17 9D [17:05:05]Write i2c OK [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: 01 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: 01 07 00 [17:05:05]MH_I2C_Read... [17:05:05]Read from MH i2c: 01 07 00 86 17 00 00 00 00 00 FF 0F B2 [17:05:05]RasterBufferAndPrint [17:05:05]line Счет N : (1)412861 [17:05:05]line ИНН: 02508201610067 [17:05:05]line Контрольно-Кассовый Чек [17:05:05]line ПРОДАЖА [17:05:05]line ТРК (МРК, ГНК) : 12 [17:05:05]line Товар: 2710124130 [17:05:05]line Аи-92-К-2 [17:05:05]line 3.120 * 64.20 [17:05:05]line = 200.30 [17:05:05]line НДС 12% НСП 1% [17:05:05]line > о реализуемом товаре [17:05:05]line ОКРУГЛЕНИЕ: -0.30 [17:05:05]line ИТОГО: 200.00 [17:05:05]line Внесено: 200.00 [17:05:05]line СДАЧА: 0.00 [17:05:05]line НСП 1% : 1.77 [17:05:05]line НДС 12% : 21.27 [17:05:05]line Наличными: 200.00 [17:05:05]line Безнал.: 0.00 [17:05:05]line Место: АЗС № 92 "Партнер Нефть" [17:05:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:05:05]line СНО: Общий режим [17:05:05]line Чек 195 21.02.2025 17:05 [17:05:05]line Смена: 649 ФФД: 1.0 [17:05:05]line ЗНМ: 0300000118 [17:05:05]line РНМ: 0000000000091857 [17:05:05]line Версия ККМ: 001 [17:05:05]line ФМ: 0000000000871826 [17:05:05]line ФД: 187701 [17:05:05]line ФПД: 92716394324613 [17:05:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170504&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187701&fm=92716394324613&tin=02508201610067®Number=0000000000091857&sum=20000 [17:05:05]OFD Sender: Processing packet 187701 [packets to send 49, broken 48] [17:05:05]ProducePacketName [17:05:05]name=ofd_packets/00187701 [17:05:05]OFD Sender: To server: pG, [17:05:05]CommunicateWithHost lk.salyk.kg:30040 [17:05:05]ConnectInit lk.salyk.kg [17:05:05]written 0, free lines is 4095 [17:05:05]Connected sock=7 [17:05:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EE 02 07 01 76 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 40 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DD 02 00 35 04 06 00 54 53 37 BF A2 85 50 1B D5 B6 B1 2B 2C 16 [17:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 62 B8 47 00 F4 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 DD 02 00 F4 03 04 00 8E 58 B8 67 B6 04 01 00 00 D3 67 88 81 6C 2F 5C 21 [17:05:06]CommunicateWithHost err = 0 [17:05:06]CheckOFDResponse [17:05:06]1017 (14) - 77093643461234 [17:05:06]1041 (16) - 0000000000871826 [17:05:06]1040 (4) - 187701 [17:05:06]1012 (4) - 21.02.2025 10:42 [17:05:06]1206 (1) - 0 [17:05:06]OFD Sender: Remove packet 187701 [17:05:06]ProducePacketName [17:05:06]name=ofd_packets/00187701 [17:05:06]NVStorageDeleteData [17:05:06]Write to MH i2c: 01 00 00 B1 17 C8 [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 07 00 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: 01 07 00 B1 17 00 00 00 00 00 F3 0C CE [17:05:06]RasterBufferAndPrint [17:05:06]line [17:05:06]line [17:05:06]line [17:05:06]line [17:05:06]line [17:05:06]written 0, free lines is 3324 [17:05:06]MH_Cut [17:05:06]Write to MH i2c: D1 01 00 B8 17 01 A1 [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: D1 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: D1 01 00 [17:05:06]MH_I2C_Read... [17:05:06]Read from MH i2c: D1 01 00 B8 17 00 A0 [17:05:06]Write to MH i2c: 01 00 00 B9 17 D0 [17:05:06]Write i2c OK [17:05:06]MH_I2C_Read... [17:05:06]OFD Sender: No OFD packet to send [17:05:06]*** Cut start [17:05:06]*** Partial cut [17:05:06]*** CUTSNS_PIN = 1 [17:05:07]*** CUTSNS_PIN = 0 [17:05:07]*** Brake cut motor [17:05:07]Read from MH i2c: 01 [17:05:07]MH_I2C_Read... [17:05:07]*** Stop cut motor [17:05:07]*** Cut end [17:05:07]Read from MH i2c: 01 07 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: 01 07 00 B9 17 00 00 00 00 00 FF 0F E5 [17:05:07]process_action close_receipt done [17:05:07]requested_data is exist [17:05:07]produce_requested_data [17:05:07]requested_item fm.sn is exist - process it [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 11 00 00 [17:05:07]Write to MH i2c: E2 08 00 BA 17 80 11 00 00 00 00 00 00 4B [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 17 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 17 00 BA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [17:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:05:07]wFMCommunicate OK [17:05:07]requested_item fd.num is exist - process it [17:05:07]SAM_PROTO_GetFieldsCounters [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 13 00 00 [17:05:07]Write to MH i2c: E2 08 00 BB 17 80 13 00 00 00 00 00 00 4E [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 62 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 62 00 BB 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 DD 02 00 0E 04 04 00 89 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 5C [17:05:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 DD 02 00 0E 04 04 00 89 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 [17:05:07]wFMCommunicate OK [17:05:07]SAM_PROTO_GetFieldsCounters done [17:05:07]requested_item shift.num is exist - process it [17:05:07]requested_item shift.opened is exist - process it [17:05:07]req_shift_opened [17:05:07]FM_GetShiftState [17:05:07]SAM_PROTO_GetShiftState [17:05:07]wFMCommunicate request_size=4 [17:05:07]MH_SAM_APDU [17:05:07]CAPDU: 80 13 01 00 [17:05:07]Write to MH i2c: E2 08 00 BC 17 80 13 01 00 00 00 00 00 50 [17:05:07]Write i2c OK [17:05:07]MH_I2C_Read... [17:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:07]Read from MH i2c: E2 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 0E 00 [17:05:07]MH_I2C_Read... [17:05:07]Read from MH i2c: E2 0E 00 BC 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 3E [17:05:07]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:05:07]wFMCommunicate OK [17:05:07]SAM_PROTO_GetShiftState done [17:05:07]FM_GetShiftState done [17:05:07]req_shift_opened done [17:05:07]requested_item shift.open_date is exist - process it [17:05:07]req_shift_open_date [17:05:07]req_shift_open_date done [17:05:07]produce_requested_data done [17:05:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187701,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:05:07]process_action_free close_receipt [17:05:07]json_value_free [17:05:07]json_value_free done [17:05:07]process_json_proto returns [17:05:07]Send response to host [17:05:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187701,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:05:07]free response buf [17:05:07]execute_script done [17:05:07]execute_script returns [17:05:07]free content buf [17:05:07]Sock 9.Close socket [17:05:07]Sock 9.Thread stoped [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:40]accept exits with 10 [17:05:40]New connection [17:05:40]New thread 3067481444 created [17:05:40]Thread 3067624804 joined [17:05:40]Waiting for new connection... [17:05:40] Sock 10.Parse request [17:05:40]Sock 10.Check first char [17:05:40]Sock 10.First char is OK [17:05:40]request: POST /json_proto HTTP/1.0 [17:05:40]Method: POST [17:05:40]URL: /json_proto [17:05:40]Method is POST - this is cgi request [17:05:40]url: /json_proto [17:05:40]query_string will be loaded in cgi processing [17:05:40]execute_cgi json_proto POST (null) [17:05:40]execute_cgi path=json_proto method=POST [17:05:40]POST find Content-Length [17:05:40]Host: 172.17.46.131:8080 [17:05:40]Content-Length: 682 [17:05:40]Content-Type: application/json [17:05:40] [17:05:40]POST finish read [17:05:40]Found Content-Length = 682 [17:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 20.250, "sum" : 1300.05, "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:05:40]execute_script... [17:05:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 20.250, "sum" : 1300.05, "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:05:40]POST & json_proto [17:05:40]process_json_proto [17:05:40]json parsed OK: [17:05:40]protocol is kg_v1.0 [17:05:40]action value=close_receipt [17:05:40]process_action close_receipt [17:05:40]cmd_close_receipt [17:05:40]MH_GetDate [17:05:40]Write to MH i2c: F0 00 00 BD 17 C3 [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: F0 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: F0 09 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: F0 09 00 BD 17 00 65 B2 B8 67 7E 41 4F 65 75 [17:05:40]GetLastDocTimeStamp 1740157504 [17:05:40]current date 1740157541 [17:05:40]FM_GetShiftState [17:05:40]SAM_PROTO_GetShiftState [17:05:40]wFMCommunicate request_size=4 [17:05:40]MH_SAM_APDU [17:05:40]CAPDU: 80 13 01 00 [17:05:40]Write to MH i2c: E2 08 00 BE 17 80 13 01 00 00 00 00 00 52 [17:05:40]Write i2c OK [17:05:40]MH_I2C_Read... [17:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:40]Read from MH i2c: E2 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 0E 00 [17:05:40]MH_I2C_Read... [17:05:40]Read from MH i2c: E2 0E 00 BE 17 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 40 [17:05:40]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:05:40]wFMCommunicate OK [17:05:40]SAM_PROTO_GetShiftState done [17:05:40]FM_GetShiftState done [17:05:40]opened in 1740098043 [17:05:40]opened+sec_in_day 1740184443 [17:05:40]quantity*price = 130005 [17:05:40]sum+1 = 130006 [17:05:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.50 НДС 12% : 138.06 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 196 21.02.2025 17:05 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187702 ФПД: 57708335636440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170541&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187702&fm=57708335636440&tin=02508201610067®Number=0000000000091857&sum=130000 [17:05:41]StoreToDocumentArchive [17:05:41]shift 649 fd 187702 [17:05:41]save to /storage/0649/doc_00187702 [17:05:41]save last doc name /storage/0649/doc_00187702 to /storage/kkm_last_doc_name [17:05:41]save OK [17:05:41]Clear old archive folders... [17:05:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:41]tlvbuf is 00BBAED0 [17:05:41]SAM_PROTO_ClearQueue [17:05:41]wFMCommunicate request_size=4 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 09 00 00 [17:05:41]Write to MH i2c: E2 08 00 CB 17 80 09 00 00 00 00 00 00 54 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 CB 17 00 90 00 56 [17:05:41]RAPDU: 90 00 [17:05:41]wFMCommunicate OK [17:05:41]SAM_PROTO_ClearQueue done [17:05:41]KKMCreateOFDPacket [17:05:41]OFDProtocolAddRootSTLVToBuf [17:05:41]FM_MakeSignedData [17:05:41]FM_MakeSignedData [17:05:41]SAM_PROTO_SignData [17:05:41]wFMCommunicate request_size=4 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 0D 01 02 [17:05:41]Write to MH i2c: E2 08 00 CC 17 80 0D 01 02 00 00 00 00 5C [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 CC 17 00 90 00 57 [17:05:41]RAPDU: 90 00 [17:05:41]wFMCommunicate OK [17:05:41]wFMCommunicate request_size=255 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 4F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 65 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DD 02 00 35 04 06 00 34 [17:05:41]Write to MH i2c: E2 02 01 CD 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 4F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 65 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DD 02 00 35 04 06 00 34 00 00 DA [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]OFD Sender: No OFD packet to send [17:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 CD 17 00 90 00 58 [17:05:41]RAPDU: 90 00 [17:05:41]wFMCommunicate OK [17:05:41]wFMCommunicate request_size=10 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 0D 02 02 05 7C 44 D8 9F D8 [17:05:41]Write to MH i2c: E2 0D 00 CE 17 80 0D 02 02 05 00 7C 44 D8 9F D8 00 00 78 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 03 00 CE 17 00 90 00 59 [17:05:41]RAPDU: 90 00 [17:05:41]wFMCommunicate OK [17:05:41]wFMCommunicate request_size=4 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 0D 03 02 [17:05:41]Write to MH i2c: E2 08 00 CF 17 80 0D 03 02 00 00 00 00 61 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:41]Read from MH i2c: E2 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 0B 00 [17:05:41]MH_I2C_Read... [17:05:41]Read from MH i2c: E2 0B 00 CF 17 00 60 02 51 55 42 DE D3 F3 90 00 50 [17:05:41]RAPDU: 60 02 51 55 42 DE D3 F3 90 00 [17:05:41]wFMCommunicate OK [17:05:41]SAM_PROTO_SignData done [17:05:41]FM_MakeSignedData done [17:05:41]CreateOFDProtocolMessage [17:05:41]wFMCommunicate request_size=4 [17:05:41]MH_SAM_APDU [17:05:41]CAPDU: 80 11 00 00 [17:05:41]Write to MH i2c: E2 08 00 D0 17 80 11 00 00 00 00 00 00 61 [17:05:41]Write i2c OK [17:05:41]MH_I2C_Read... [17:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:42]Read from MH i2c: E2 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 17 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: E2 17 00 D0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B4 [17:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:05:42]wFMCommunicate OK [17:05:42]CreateOFDProtocolMessage done [17:05:42]OFDSenderStorePacket 187702 [17:05:42]StoreOFDPacket docnum=187702 [17:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 50 01 07 01 19 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 32 FF 03 08 00 03 1A 4F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 65 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DD 02 00 35 04 06 00 34 7C 44 D8 9F D8 60 02 51 55 42 DE D3 F3 [17:05:42]CheckFolder [17:05:42]dirname=/storage/ofd_packets [17:05:42]CheckFolder done [17:05:42]ProducePacketName [17:05:42]name=ofd_packets/00187702 [17:05:42]NVStorageSaveData ofd_packets/00187702 [17:05:42]File name is /storage/ofd_packets/00187702 [17:05:42]Write 301 bytes [17:05:42]NVStorageSaveData done [17:05:42]OFDSenderStorePacket done [17:05:42]KKMCreateOFDPacket done [17:05:42]NVStorageSaveData kkm_last_timestamp [17:05:42]File name is /storage/kkm_last_timestamp [17:05:42]Write 4 bytes [17:05:42]NVStorageSaveData done [17:05:42]ExternCall_PrintAddStr [17:05:42]wPrintStart [17:05:42]Write to MH i2c: 01 00 00 D1 17 E8 [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 D1 17 00 00 00 00 00 FF 0F FD [17:05:42]RasterBufferAndPrint [17:05:42]line Счет N : (1)412862 [17:05:42]line ИНН: 02508201610067 [17:05:42]line Контрольно-Кассовый Чек [17:05:42]line ПРОДАЖА [17:05:42]line ТРК (МРК, ГНК) : 32 [17:05:42]line Товар: 2710124130 [17:05:42]line Аи-92-К-2 [17:05:42]line 20.250 * 64.20 [17:05:42]line = 1300.05 [17:05:42]line НДС 12% НСП 1% [17:05:42]line > о реализуемом товаре [17:05:42]line ОКРУГЛЕНИЕ: -0.05 [17:05:42]line ИТОГО: 1300.00 [17:05:42]line Внесено: 1300.00 [17:05:42]line СДАЧА: 0.00 [17:05:42]line НСП 1% : 11.50 [17:05:42]line НДС 12% : 138.06 [17:05:42]line Наличными: 1300.00 [17:05:42]line Безнал.: 0.00 [17:05:42]line Место: АЗС № 92 "Партнер Нефть" [17:05:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:05:42]line СНО: Общий режим [17:05:42]line Чек 196 21.02.2025 17:05 [17:05:42]line Смена: 649 ФФД: 1.0 [17:05:42]line ЗНМ: 0300000118 [17:05:42]line РНМ: 0000000000091857 [17:05:42]line Версия ККМ: 001 [17:05:42]line ФМ: 0000000000871826 [17:05:42]line ФД: 187702 [17:05:42]line ФПД: 57708335636440 [17:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170541&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187702&fm=57708335636440&tin=02508201610067®Number=0000000000091857&sum=130000 [17:05:42]OFD Sender: Processing packet 187702 [packets to send 49, broken 48] [17:05:42]ProducePacketName [17:05:42]name=ofd_packets/00187702 [17:05:42]OFD Sender: To server: pG, [17:05:42]CommunicateWithHost lk.salyk.kg:30040 [17:05:42]ConnectInit lk.salyk.kg [17:05:42]written 0, free lines is 4095 [17:05:42]Connected sock=9 [17:05:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 50 01 07 01 19 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 32 FF 03 08 00 03 1A 4F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D5 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 65 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 DD 02 00 35 04 06 00 34 7C 44 D8 9F D8 60 02 51 55 42 DE D3 F3 [17:05:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FE F5 47 00 63 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 38 32 36 10 04 04 00 36 DD 02 00 F4 03 04 00 B2 58 B8 67 B6 04 01 00 00 A7 89 25 96 85 50 F1 B1 [17:05:42]CommunicateWithHost err = 0 [17:05:42]CheckOFDResponse [17:05:42]1017 (14) - 77093643461234 [17:05:42]1041 (16) - 0000000000871826 [17:05:42]1040 (4) - 187702 [17:05:42]1012 (4) - 21.02.2025 10:42 [17:05:42]1206 (1) - 0 [17:05:42]OFD Sender: Remove packet 187702 [17:05:42]ProducePacketName [17:05:42]name=ofd_packets/00187702 [17:05:42]NVStorageDeleteData [17:05:42]Write to MH i2c: 01 00 00 FC 17 13 [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 EC 0C 12 [17:05:42]RasterBufferAndPrint [17:05:42]line [17:05:42]line [17:05:42]line [17:05:42]line [17:05:42]line [17:05:42]written 0, free lines is 3314 [17:05:42]MH_Cut [17:05:42]Write to MH i2c: D1 01 00 03 18 01 ED [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: D1 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: D1 01 00 [17:05:42]MH_I2C_Read... [17:05:42]Read from MH i2c: D1 01 00 03 18 00 EC [17:05:42]Write to MH i2c: 01 00 00 04 18 1C [17:05:42]Write i2c OK [17:05:42]MH_I2C_Read... [17:05:43]OFD Sender: No OFD packet to send [17:05:43]*** Cut start [17:05:43]*** Partial cut [17:05:43]*** CUTSNS_PIN = 1 [17:05:43]*** CUTSNS_PIN = 0 [17:05:43]*** Brake cut motor [17:05:44]Read from MH i2c: 01 [17:05:44]MH_I2C_Read... [17:05:44]*** Stop cut motor [17:05:44]*** Cut end [17:05:44]Read from MH i2c: 01 07 00 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: 01 07 00 04 18 00 00 00 00 00 FF 0F 31 [17:05:44]process_action close_receipt done [17:05:44]requested_data is exist [17:05:44]produce_requested_data [17:05:44]requested_item fm.sn is exist - process it [17:05:44]wFMCommunicate request_size=4 [17:05:44]MH_SAM_APDU [17:05:44]CAPDU: 80 11 00 00 [17:05:44]Write to MH i2c: E2 08 00 05 18 80 11 00 00 00 00 00 00 97 [17:05:44]Write i2c OK [17:05:44]MH_I2C_Read... [17:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:44]Read from MH i2c: E2 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: E2 17 00 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: E2 17 00 05 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [17:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:05:44]wFMCommunicate OK [17:05:44]requested_item fd.num is exist - process it [17:05:44]SAM_PROTO_GetFieldsCounters [17:05:44]wFMCommunicate request_size=4 [17:05:44]MH_SAM_APDU [17:05:44]CAPDU: 80 13 00 00 [17:05:44]Write to MH i2c: E2 08 00 06 18 80 13 00 00 00 00 00 00 9A [17:05:44]Write i2c OK [17:05:44]MH_I2C_Read... [17:05:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:44]Read from MH i2c: E2 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: E2 62 00 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: E2 62 00 06 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 DD 02 00 0E 04 04 00 89 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 AC [17:05:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 DD 02 00 0E 04 04 00 89 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 [17:05:44]wFMCommunicate OK [17:05:44]SAM_PROTO_GetFieldsCounters done [17:05:44]requested_item shift.num is exist - process it [17:05:44]requested_item shift.opened is exist - process it [17:05:44]req_shift_opened [17:05:44]FM_GetShiftState [17:05:44]SAM_PROTO_GetShiftState [17:05:44]wFMCommunicate request_size=4 [17:05:44]MH_SAM_APDU [17:05:44]CAPDU: 80 13 01 00 [17:05:44]Write to MH i2c: E2 08 00 07 18 80 13 01 00 00 00 00 00 9C [17:05:44]Write i2c OK [17:05:44]MH_I2C_Read... [17:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:44]Read from MH i2c: E2 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: E2 0E 00 [17:05:44]MH_I2C_Read... [17:05:44]Read from MH i2c: E2 0E 00 07 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 8A [17:05:44]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:05:44]wFMCommunicate OK [17:05:44]SAM_PROTO_GetShiftState done [17:05:44]FM_GetShiftState done [17:05:44]req_shift_opened done [17:05:44]requested_item shift.open_date is exist - process it [17:05:44]req_shift_open_date [17:05:44]req_shift_open_date done [17:05:44]produce_requested_data done [17:05:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187702,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:05:44]process_action_free close_receipt [17:05:44]json_value_free [17:05:44]json_value_free done [17:05:44]process_json_proto returns [17:05:44]Send response to host [17:05:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187702,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:05:44]free response buf [17:05:44]execute_script done [17:05:44]execute_script returns [17:05:44]free content buf [17:05:44]Sock 10.Close socket [17:05:44]Sock 10.Thread stoped [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:08]accept exits with 7 [17:06:08]New connection [17:06:08]New thread 3067624804 created [17:06:08]Thread 3067481444 joined [17:06:08]Waiting for new connection... [17:06:08] Sock 7.Parse request [17:06:08]Sock 7.Check first char [17:06:08]Sock 7.First char is OK [17:06:08]request: POST /json_proto HTTP/1.0 [17:06:08]Method: POST [17:06:08]URL: /json_proto [17:06:08]Method is POST - this is cgi request [17:06:08]url: /json_proto [17:06:08]query_string will be loaded in cgi processing [17:06:08]execute_cgi json_proto POST (null) [17:06:08]execute_cgi path=json_proto method=POST [17:06:08]POST find Content-Length [17:06:08]Host: 172.17.46.131:8080 [17:06:08]Content-Length: 750 [17:06:08]Content-Type: application/json [17:06:08] [17:06:08]POST finish read [17:06:08]Found Content-Length = 750 [17:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:08]execute_script... [17:06: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)412864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:08]POST & json_proto [17:06:08]process_json_proto [17:06:08]json parsed OK: [17:06:08]protocol is kg_v1.0 [17:06:08]action value=close_receipt [17:06:08]process_action close_receipt [17:06:08]cmd_close_receipt [17:06:08]MH_GetDate [17:06:08]Write to MH i2c: F0 00 00 08 18 0F [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: F0 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: F0 09 00 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: F0 09 00 08 18 00 81 B2 B8 67 7E 41 4F 65 DD [17:06:08]GetLastDocTimeStamp 1740157541 [17:06:08]current date 1740157569 [17:06:08]FM_GetShiftState [17:06:08]SAM_PROTO_GetShiftState [17:06:08]wFMCommunicate request_size=4 [17:06:08]MH_SAM_APDU [17:06:08]CAPDU: 80 13 01 00 [17:06:08]Write to MH i2c: E2 08 00 09 18 80 13 01 00 00 00 00 00 9E [17:06:08]Write i2c OK [17:06:08]MH_I2C_Read... [17:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:08]Read from MH i2c: E2 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: E2 0E 00 [17:06:08]MH_I2C_Read... [17:06:08]Read from MH i2c: E2 0E 00 09 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 8C [17:06:08]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:06:08]wFMCommunicate OK [17:06:08]SAM_PROTO_GetShiftState done [17:06:08]FM_GetShiftState done [17:06:08]opened in 1740098043 [17:06:08]opened+sec_in_day 1740184443 [17:06:08]quantity*price = 0 [17:06:08]sum+1 = 1 [17:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 197 21.02.2025 17:06 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106530 ФМ: 0000000000871826 ФД: 187703 ФПД: 15224783245534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170609&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187703&fm=15224783245534&tin=02508201610067®Number=0000000000091857&sum=0 [17:06:09]StoreToDocumentArchive [17:06:09]shift 649 fd 187703 [17:06:09]save to /storage/0649/doc_00187703 [17:06:09]save last doc name /storage/0649/doc_00187703 to /storage/kkm_last_doc_name [17:06:09]save OK [17:06:09]Clear old archive folders... [17:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:06:09]tlvbuf is 00BBAB40 [17:06:09]SAM_PROTO_ClearQueue [17:06:09]wFMCommunicate request_size=4 [17:06:09]MH_SAM_APDU [17:06:09]CAPDU: 80 09 00 00 [17:06:09]Write to MH i2c: E2 08 00 16 18 80 09 00 00 00 00 00 00 A0 [17:06:09]Write i2c OK [17:06:09]MH_I2C_Read... [17:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:09]Read from MH i2c: E2 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: E2 03 00 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: E2 03 00 16 18 00 90 00 A2 [17:06:09]RAPDU: 90 00 [17:06:09]wFMCommunicate OK [17:06:09]SAM_PROTO_ClearQueue done [17:06:09]KKMCreateOFDPacket [17:06:09]OFDProtocolAddRootSTLVToBuf [17:06:09]FM_MakeSignedData [17:06:09]FM_MakeSignedData [17:06:09]SAM_PROTO_SignData [17:06:09]wFMCommunicate request_size=4 [17:06:09]MH_SAM_APDU [17:06:09]CAPDU: 80 0D 01 02 [17:06:09]Write to MH i2c: E2 08 00 17 18 80 0D 01 02 00 00 00 00 A8 [17:06:09]Write i2c OK [17:06:09]MH_I2C_Read... [17:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:09]Read from MH i2c: E2 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: E2 03 00 [17:06:09]MH_I2C_Read... [17:06:09]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [17:06:09]RAPDU: 90 00 [17:06:09]wFMCommunicate OK [17:06:09]wFMCommunicate request_size=255 [17:06:09]MH_SAM_APDU [17:06: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 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 C5 00 00 00 F4 03 04 00 81 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DD 02 00 35 04 06 00 0D D8 CB CC [17:06:09]Write to MH i2c: E2 02 01 18 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 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 C5 00 00 00 F4 03 04 00 81 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DD 02 00 35 04 06 00 0D D8 CB CC 00 00 E3 [17:06:09]Write i2c OK [17:06:09]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 03 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [17:06:10]RAPDU: 90 00 [17:06:10]wFMCommunicate OK [17:06:10]wFMCommunicate request_size=7 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 0D 02 02 02 10 DE [17:06:10]Write to MH i2c: E2 0A 00 19 18 80 0D 02 02 02 00 10 DE 00 00 9D [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 03 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [17:06:10]RAPDU: 90 00 [17:06:10]wFMCommunicate OK [17:06:10]wFMCommunicate request_size=4 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 0D 03 02 [17:06:10]Write to MH i2c: E2 08 00 1A 18 80 0D 03 02 00 00 00 00 AD [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 0B 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 0B 00 1A 18 00 A1 AE 58 33 0D 6C BC 66 90 00 23 [17:06:10]RAPDU: A1 AE 58 33 0D 6C BC 66 90 00 [17:06:10]wFMCommunicate OK [17:06:10]SAM_PROTO_SignData done [17:06:10]FM_MakeSignedData done [17:06:10]CreateOFDProtocolMessage [17:06:10]wFMCommunicate request_size=4 [17:06:10]MH_SAM_APDU [17:06:10]CAPDU: 80 11 00 00 [17:06:10]Write to MH i2c: E2 08 00 1B 18 80 11 00 00 00 00 00 00 AD [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:10]Read from MH i2c: E2 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 17 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: E2 17 00 1B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 00 [17:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:06:10]wFMCommunicate OK [17:06:10]CreateOFDProtocolMessage done [17:06:10]OFDSenderStorePacket 187703 [17:06:10]StoreOFDPacket docnum=187703 [17:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 97 DB 04 01 43 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 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 C5 00 00 00 F4 03 04 00 81 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DD 02 00 35 04 06 00 0D D8 CB CC 10 DE A1 AE 58 33 0D 6C BC 66 [17:06:10]CheckFolder [17:06:10]dirname=/storage/ofd_packets [17:06:10]CheckFolder done [17:06:10]ProducePacketName [17:06:10]name=ofd_packets/00187703 [17:06:10]NVStorageSaveData ofd_packets/00187703 [17:06:10]File name is /storage/ofd_packets/00187703 [17:06:10]Write 298 bytes [17:06:10]NVStorageSaveData done [17:06:10]OFDSenderStorePacket done [17:06:10]KKMCreateOFDPacket done [17:06:10]NVStorageSaveData kkm_last_timestamp [17:06:10]File name is /storage/kkm_last_timestamp [17:06:10]Write 4 bytes [17:06:10]NVStorageSaveData done [17:06:10]ExternCall_PrintAddStr [17:06:10]wPrintStart [17:06:10]Write to MH i2c: 01 00 00 1C 18 34 [17:06:10]Write i2c OK [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: 01 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: 01 07 00 [17:06:10]MH_I2C_Read... [17:06:10]Read from MH i2c: 01 07 00 1C 18 00 00 00 00 00 FF 0F 49 [17:06:10]RasterBufferAndPrint [17:06:10]line Счет N : (1)412864 [17:06:10]line ИНН: 02508201610067 [17:06:10]line Контрольно-Кассовый Чек [17:06:10]line ПРОДАЖА [17:06:10]line ТРК (МРК, ГНК) : 5 [17:06:10]line Товар: 2710194210 [17:06:10]line ДТ-К-5 [17:06:10]line 30.000 * 0.00 [17:06:10]line = 0.00 [17:06:10]line НДС 12% НСП 1% [17:06:10]line > о реализуемом товаре [17:06:10]line ИТОГО: 0.00 [17:06:10]line НСП 1% : 0.00 [17:06:10]line НДС 12% : 0.00 [17:06:10]line Наличными: 0.00 [17:06:10]line Безнал.: 0.00 [17:06:10]line Место: АЗС № 92 "Партнер Нефть" [17:06:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:06:10]line СНО: Общий режим [17:06:10]line Чек 197 21.02.2025 17:06 [17:06:10]line Смена: 649 ФФД: 1.0 [17:06:10]line ЗНМ: 0300000118 [17:06:10]line РНМ: 0000000000091857 [17:06:10]line Версия ККМ: 001 [17:06:10]line Талоны: ТК ГПНА Online [17:06:10]line 30106530 [17:06:10]line ФМ: 0000000000871826 [17:06:10]line ФД: 187703 [17:06:10]line ФПД: 15224783245534 [17:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170609&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187703&fm=15224783245534&tin=02508201610067®Number=0000000000091857&sum=0 [17:06:10]OFD Sender: Processing packet 187703 [packets to send 49, broken 48] [17:06:10]ProducePacketName [17:06:10]name=ofd_packets/00187703 [17:06:10]OFD Sender: To server: pG, [17:06:10]CommunicateWithHost lk.salyk.kg:30040 [17:06:10]ConnectInit lk.salyk.kg [17:06:10]written 0, free lines is 4095 [17:06:10]Connected sock=9 [17:06:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 97 DB 04 01 43 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 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 C5 00 00 00 F4 03 04 00 81 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DD 02 00 35 04 06 00 0D D8 CB CC 10 DE A1 AE 58 33 0D 6C BC 66 [17:06:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 51 7B 47 00 4A 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 DD 02 00 F4 03 04 00 CF 58 B8 67 B6 04 01 00 00 4E 22 59 21 59 9F 78 6E [17:06:11]CommunicateWithHost err = 0 [17:06:11]CheckOFDResponse [17:06:11]1017 (14) - 77093643461234 [17:06:11]1041 (16) - 0000000000871826 [17:06:11]1040 (4) - 187703 [17:06:11]1012 (4) - 21.02.2025 10:43 [17:06:11]1206 (1) - 0 [17:06:11]OFD Sender: Remove packet 187703 [17:06:11]ProducePacketName [17:06:11]name=ofd_packets/00187703 [17:06:11]NVStorageDeleteData [17:06:11]Write to MH i2c: 01 00 00 46 18 5E [17:06:11]Write i2c OK [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: 01 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: 01 07 00 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 0C 0D 7E [17:06:11]RasterBufferAndPrint [17:06:11]line [17:06:11]line [17:06:11]line [17:06:11]line [17:06:11]line [17:06:11]written 0, free lines is 3347 [17:06:11]MH_Cut [17:06:11]Write to MH i2c: D1 01 00 4D 18 01 37 [17:06:11]Write i2c OK [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: D1 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: D1 01 00 [17:06:11]MH_I2C_Read... [17:06:11]Read from MH i2c: D1 01 00 4D 18 00 36 [17:06:11]Write to MH i2c: 01 00 00 4E 18 66 [17:06:11]Write i2c OK [17:06:11]MH_I2C_Read... [17:06:11]OFD Sender: No OFD packet to send [17:06:11]*** Cut start [17:06:11]*** Partial cut [17:06:11]*** CUTSNS_PIN = 1 [17:06:11]*** CUTSNS_PIN = 0 [17:06:12]*** Brake cut motor [17:06:12]Read from MH i2c: 01 [17:06:12]MH_I2C_Read... [17:06:12]*** Stop cut motor [17:06:12]*** Cut end [17:06:12]Read from MH i2c: 01 07 00 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: 01 07 00 4E 18 00 00 00 00 00 FF 0F 7B [17:06:12]process_action close_receipt done [17:06:12]requested_data is exist [17:06:12]produce_requested_data [17:06:12]requested_item fm.sn is exist - process it [17:06:12]wFMCommunicate request_size=4 [17:06:12]MH_SAM_APDU [17:06:12]CAPDU: 80 11 00 00 [17:06:12]Write to MH i2c: E2 08 00 4F 18 80 11 00 00 00 00 00 00 E1 [17:06:12]Write i2c OK [17:06:12]MH_I2C_Read... [17:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:12]Read from MH i2c: E2 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 17 00 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 17 00 4F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 34 [17:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:06:12]wFMCommunicate OK [17:06:12]requested_item fd.num is exist - process it [17:06:12]SAM_PROTO_GetFieldsCounters [17:06:12]wFMCommunicate request_size=4 [17:06:12]MH_SAM_APDU [17:06:12]CAPDU: 80 13 00 00 [17:06:12]Write to MH i2c: E2 08 00 50 18 80 13 00 00 00 00 00 00 E4 [17:06:12]Write i2c OK [17:06:12]MH_I2C_Read... [17:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:12]Read from MH i2c: E2 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 62 00 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 62 00 50 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 37 DD 02 00 0E 04 04 00 89 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 FA [17:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 37 DD 02 00 0E 04 04 00 89 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 [17:06:12]wFMCommunicate OK [17:06:12]SAM_PROTO_GetFieldsCounters done [17:06:12]requested_item shift.num is exist - process it [17:06:12]requested_item shift.opened is exist - process it [17:06:12]req_shift_opened [17:06:12]FM_GetShiftState [17:06:12]SAM_PROTO_GetShiftState [17:06:12]wFMCommunicate request_size=4 [17:06:12]MH_SAM_APDU [17:06:12]CAPDU: 80 13 01 00 [17:06:12]Write to MH i2c: E2 08 00 51 18 80 13 01 00 00 00 00 00 E6 [17:06:12]Write i2c OK [17:06:12]MH_I2C_Read... [17:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:12]Read from MH i2c: E2 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 0E 00 [17:06:12]MH_I2C_Read... [17:06:12]Read from MH i2c: E2 0E 00 51 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D4 [17:06:12]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:06:12]wFMCommunicate OK [17:06:12]SAM_PROTO_GetShiftState done [17:06:12]FM_GetShiftState done [17:06:12]req_shift_opened done [17:06:12]requested_item shift.open_date is exist - process it [17:06:12]req_shift_open_date [17:06:12]req_shift_open_date done [17:06:12]produce_requested_data done [17:06:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187703,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:06:12]process_action_free close_receipt [17:06:12]json_value_free [17:06:12]json_value_free done [17:06:12]process_json_proto returns [17:06:12]Send response to host [17:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187703,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:06:12]free response buf [17:06:12]execute_script done [17:06:12]execute_script returns [17:06:12]free content buf [17:06:12]Sock 7.Close socket [17:06:12]Sock 7.Thread stoped [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:43]accept exits with 10 [17:06:43]New connection [17:06:43]New thread 3067481444 created [17:06:43]Thread 3067624804 joined [17:06:43]Waiting for new connection... [17:06:43] Sock 10.Parse request [17:06:43]Sock 10.Check first char [17:06:43]Sock 10.First char is OK [17:06:43]request: POST /json_proto HTTP/1.0 [17:06:43]Method: POST [17:06:43]URL: /json_proto [17:06:43]Method is POST - this is cgi request [17:06:43]url: /json_proto [17:06:43]query_string will be loaded in cgi processing [17:06:43]execute_cgi json_proto POST (null) [17:06:43]execute_cgi path=json_proto method=POST [17:06:43]POST find Content-Length [17:06:43]Host: 172.17.46.131:8080 [17:06:43]Content-Length: 678 [17:06:43]Content-Type: application/json [17:06:43] [17:06:43]POST finish read [17:06:43]Found Content-Length = 678 [17:06:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:43]execute_script... [17:06: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)412863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:43]POST & json_proto [17:06:43]process_json_proto [17:06:43]json parsed OK: [17:06:43]protocol is kg_v1.0 [17:06:43]action value=close_receipt [17:06:43]process_action close_receipt [17:06:43]cmd_close_receipt [17:06:43]MH_GetDate [17:06:43]Write to MH i2c: F0 00 00 52 18 59 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: F0 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: F0 09 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: F0 09 00 52 18 00 A4 B2 B8 67 7E 41 4F 65 4A [17:06:43]GetLastDocTimeStamp 1740157569 [17:06:43]current date 1740157604 [17:06:43]FM_GetShiftState [17:06:43]SAM_PROTO_GetShiftState [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 13 01 00 [17:06:43]Write to MH i2c: E2 08 00 53 18 80 13 01 00 00 00 00 00 E8 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 0E 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 0E 00 53 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 D6 [17:06:43]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:06:43]wFMCommunicate OK [17:06:43]SAM_PROTO_GetShiftState done [17:06:43]FM_GetShiftState done [17:06:43]opened in 1740098043 [17:06:43]opened+sec_in_day 1740184443 [17:06:43]quantity*price = 300055 [17:06:43]sum+1 = 300057 [17:06:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 198 21.02.2025 17:06 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187704 ФПД: 40991791946429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170644&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187704&fm=40991791946429&tin=02508201610067®Number=0000000000091857&sum=300000 [17:06:44]StoreToDocumentArchive [17:06:44]shift 649 fd 187704 [17:06:44]save to /storage/0649/doc_00187704 [17:06:44]save last doc name /storage/0649/doc_00187704 to /storage/kkm_last_doc_name [17:06:44]save OK [17:06:44]Clear old archive folders... [17:06:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:06:44]tlvbuf is 00BED650 [17:06:44]SAM_PROTO_ClearQueue [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 09 00 00 [17:06:44]Write to MH i2c: E2 08 00 60 18 80 09 00 00 00 00 00 00 EA [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 60 18 00 90 00 EC [17:06:44]RAPDU: 90 00 [17:06:44]wFMCommunicate OK [17:06:44]SAM_PROTO_ClearQueue done [17:06:44]KKMCreateOFDPacket [17:06:44]OFDProtocolAddRootSTLVToBuf [17:06:44]FM_MakeSignedData [17:06:44]FM_MakeSignedData [17:06:44]SAM_PROTO_SignData [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 0D 01 02 [17:06:44]Write to MH i2c: E2 08 00 61 18 80 0D 01 02 00 00 00 00 F2 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 61 18 00 90 00 ED [17:06:44]RAPDU: 90 00 [17:06:44]wFMCommunicate OK [17:06:44]wFMCommunicate request_size=255 [17:06:44]MH_SAM_APDU [17:06: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 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 A4 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DD 02 00 35 04 06 00 25 48 25 32 [17:06:44]Write to MH i2c: E2 02 01 62 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 A4 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DD 02 00 35 04 06 00 25 48 25 32 00 00 7B [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [17:06:44]RAPDU: 90 00 [17:06:44]wFMCommunicate OK [17:06:44]wFMCommunicate request_size=7 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 0D 02 02 02 9A BD [17:06:44]Write to MH i2c: E2 0A 00 63 18 80 0D 02 02 02 00 9A BD 00 00 50 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [17:06:44]RAPDU: 90 00 [17:06:44]wFMCommunicate OK [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 0D 03 02 [17:06:44]Write to MH i2c: E2 08 00 64 18 80 0D 03 02 00 00 00 00 F7 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:44]Read from MH i2c: E2 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 0B 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: E2 0B 00 64 18 00 52 09 2F DB 55 A6 54 73 90 00 1F [17:06:44]RAPDU: 52 09 2F DB 55 A6 54 73 90 00 [17:06:44]wFMCommunicate OK [17:06:44]SAM_PROTO_SignData done [17:06:44]FM_MakeSignedData done [17:06:44]CreateOFDProtocolMessage [17:06:44]wFMCommunicate request_size=4 [17:06:44]MH_SAM_APDU [17:06:44]CAPDU: 80 11 00 00 [17:06:44]Write to MH i2c: E2 08 00 65 18 80 11 00 00 00 00 00 00 F7 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 17 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 17 00 65 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4A [17:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:06:45]wFMCommunicate OK [17:06:45]CreateOFDProtocolMessage done [17:06:45]OFDSenderStorePacket 187704 [17:06:45]StoreOFDPacket docnum=187704 [17:06:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 39 9B 04 01 58 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 A4 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DD 02 00 35 04 06 00 25 48 25 32 9A BD 52 09 2F DB 55 A6 54 73 [17:06:45]CheckFolder [17:06:45]dirname=/storage/ofd_packets [17:06:45]CheckFolder done [17:06:45]ProducePacketName [17:06:45]name=ofd_packets/00187704 [17:06:45]NVStorageSaveData ofd_packets/00187704 [17:06:45]File name is /storage/ofd_packets/00187704 [17:06:45]Write 298 bytes [17:06:45]NVStorageSaveData done [17:06:45]OFDSenderStorePacket done [17:06:45]KKMCreateOFDPacket done [17:06:45]NVStorageSaveData kkm_last_timestamp [17:06:45]File name is /storage/kkm_last_timestamp [17:06:45]Write 4 bytes [17:06:45]NVStorageSaveData done [17:06:45]ExternCall_PrintAddStr [17:06:45]wPrintStart [17:06:45]Write to MH i2c: 01 00 00 66 18 7E [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 07 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 07 00 66 18 00 00 00 00 00 FF 0F 93 [17:06:45]RasterBufferAndPrint [17:06:45]line Счет N : (1)412863 [17:06:45]line ИНН: 02508201610067 [17:06:45]line Контрольно-Кассовый Чек [17:06:45]line ПРОДАЖА [17:06:45]line ТРК (МРК, ГНК) : 6 [17:06:45]line Товар: 2710194210 [17:06:45]line ДТ-К-5 [17:06:45]line 41.330 * 72.60 [17:06:45]line = 3000.56 [17:06:45]line НДС 12% НСП 1% [17:06:45]line > о реализуемом товаре [17:06:45]line ОКРУГЛЕНИЕ: -0.56 [17:06:45]line ИТОГО: 3000.00 [17:06:45]line Внесено: 3000.00 [17:06:45]line СДАЧА: 0.00 [17:06:45]line НСП 1% : 26.55 [17:06:45]line НДС 12% : 318.64 [17:06:45]line Наличными: 3000.00 [17:06:45]line Безнал.: 0.00 [17:06:45]line Место: АЗС № 92 "Партнер Нефть" [17:06:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:06:45]line СНО: Общий режим [17:06:45]line Чек 198 21.02.2025 17:06 [17:06:45]line Смена: 649 ФФД: 1.0 [17:06:45]line ЗНМ: 0300000118 [17:06:45]line РНМ: 0000000000091857 [17:06:45]line Версия ККМ: 001 [17:06:45]line ФМ: 0000000000871826 [17:06:45]line ФД: 187704 [17:06:45]line ФПД: 40991791946429 [17:06:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T170644&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187704&fm=40991791946429&tin=02508201610067®Number=0000000000091857&sum=300000 [17:06:45]OFD Sender: Processing packet 187704 [packets to send 49, broken 48] [17:06:45]ProducePacketName [17:06:45]name=ofd_packets/00187704 [17:06:45]OFD Sender: To server: pG, [17:06:45]CommunicateWithHost lk.salyk.kg:30040 [17:06:45]ConnectInit lk.salyk.kg [17:06:45]written 0, free lines is 4095 [17:06:45]Connected sock=9 [17:06:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 39 9B 04 01 58 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 A4 B2 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DD 02 00 35 04 06 00 25 48 25 32 9A BD 52 09 2F DB 55 A6 54 73 [17:06:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CD FC 47 00 D8 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DD 02 00 F4 03 04 00 F1 58 B8 67 B6 04 01 00 00 DD 9E 2B D4 07 FF EC 6B [17:06:45]CommunicateWithHost err = 0 [17:06:45]CheckOFDResponse [17:06:45]1017 (14) - 77093643461234 [17:06:45]1041 (16) - 0000000000871826 [17:06:45]1040 (4) - 187704 [17:06:45]1012 (4) - 21.02.2025 10:44 [17:06:45]1206 (1) - 0 [17:06:45]OFD Sender: Remove packet 187704 [17:06:45]ProducePacketName [17:06:45]name=ofd_packets/00187704 [17:06:45]NVStorageDeleteData [17:06:45]Write to MH i2c: 01 00 00 91 18 A9 [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 07 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 07 00 91 18 00 00 00 00 00 F4 0C B0 [17:06:45]RasterBufferAndPrint [17:06:45]line [17:06:45]line [17:06:45]line [17:06:45]line [17:06:45]line [17:06:45]written 0, free lines is 3322 [17:06:45]MH_Cut [17:06:45]Write to MH i2c: D1 01 00 98 18 01 82 [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: D1 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: D1 01 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: D1 01 00 98 18 00 81 [17:06:45]Write to MH i2c: 01 00 00 99 18 B1 [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:46]OFD Sender: No OFD packet to send [17:06:46]*** Cut start [17:06:46]*** Partial cut [17:06:46]*** CUTSNS_PIN = 1 [17:06:46]*** CUTSNS_PIN = 0 [17:06:46]*** Brake cut motor [17:06:47]Read from MH i2c: 01 [17:06:47]MH_I2C_Read... [17:06:47]*** Stop cut motor [17:06:47]*** Cut end [17:06:47]Read from MH i2c: 01 07 00 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: 01 07 00 99 18 00 00 00 00 00 FF 0F C6 [17:06:47]process_action close_receipt done [17:06:47]requested_data is exist [17:06:47]produce_requested_data [17:06:47]requested_item fm.sn is exist - process it [17:06:47]wFMCommunicate request_size=4 [17:06:47]MH_SAM_APDU [17:06:47]CAPDU: 80 11 00 00 [17:06:47]Write to MH i2c: E2 08 00 9A 18 80 11 00 00 00 00 00 00 2C [17:06:47]Write i2c OK [17:06:47]MH_I2C_Read... [17:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:47]Read from MH i2c: E2 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: E2 17 00 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: E2 17 00 9A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7F [17:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:06:47]wFMCommunicate OK [17:06:47]requested_item fd.num is exist - process it [17:06:47]SAM_PROTO_GetFieldsCounters [17:06:47]wFMCommunicate request_size=4 [17:06:47]MH_SAM_APDU [17:06:47]CAPDU: 80 13 00 00 [17:06:47]Write to MH i2c: E2 08 00 9B 18 80 13 00 00 00 00 00 00 2F [17:06:47]Write i2c OK [17:06:47]MH_I2C_Read... [17:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:47]Read from MH i2c: E2 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: E2 62 00 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: E2 62 00 9B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 DD 02 00 0E 04 04 00 89 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 49 [17:06:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 DD 02 00 0E 04 04 00 89 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 [17:06:47]wFMCommunicate OK [17:06:47]SAM_PROTO_GetFieldsCounters done [17:06:47]requested_item shift.num is exist - process it [17:06:47]requested_item shift.opened is exist - process it [17:06:47]req_shift_opened [17:06:47]FM_GetShiftState [17:06:47]SAM_PROTO_GetShiftState [17:06:47]wFMCommunicate request_size=4 [17:06:47]MH_SAM_APDU [17:06:47]CAPDU: 80 13 01 00 [17:06:47]Write to MH i2c: E2 08 00 9C 18 80 13 01 00 00 00 00 00 31 [17:06:47]Write i2c OK [17:06:47]MH_I2C_Read... [17:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:47]Read from MH i2c: E2 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: E2 0E 00 [17:06:47]MH_I2C_Read... [17:06:47]Read from MH i2c: E2 0E 00 9C 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 1F [17:06:47]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:06:47]wFMCommunicate OK [17:06:47]SAM_PROTO_GetShiftState done [17:06:47]FM_GetShiftState done [17:06:47]req_shift_opened done [17:06:47]requested_item shift.open_date is exist - process it [17:06:47]req_shift_open_date [17:06:47]req_shift_open_date done [17:06:47]produce_requested_data done [17:06:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187704,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:06:47]process_action_free close_receipt [17:06:47]json_value_free [17:06:47]json_value_free done [17:06:47]process_json_proto returns [17:06:47]Send response to host [17:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187704,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:06:47]free response buf [17:06:47]execute_script done [17:06:47]execute_script returns [17:06:47]free content buf [17:06:47]Sock 10.Close socket [17:06:47]Sock 10.Thread stoped [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:04]accept exits with 7 [17:13:04]New connection [17:13:04]New thread 3067624804 created [17:13:04]Thread 3067481444 joined [17:13:04]Waiting for new connection... [17:13:04] Sock 7.Parse request [17:13:04]Sock 7.Check first char [17:13:04]Sock 7.First char is OK [17:13:04]request: POST /json_proto HTTP/1.0 [17:13:04]Method: POST [17:13:04]URL: /json_proto [17:13:04]Method is POST - this is cgi request [17:13:04]url: /json_proto [17:13:04]query_string will be loaded in cgi processing [17:13:04]execute_cgi json_proto POST (null) [17:13:04]execute_cgi path=json_proto method=POST [17:13:04]POST find Content-Length [17:13:04]Host: 172.17.46.131:8080 [17:13:04]Content-Length: 677 [17:13:04]Content-Type: application/json [17:13:04] [17:13:04]POST finish read [17:13:04]Found Content-Length = 677 [17:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:04]execute_script... [17:13: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)412865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:04]POST & json_proto [17:13:04]process_json_proto [17:13:04]json parsed OK: [17:13:04]protocol is kg_v1.0 [17:13:04]action value=close_receipt [17:13:04]process_action close_receipt [17:13:04]cmd_close_receipt [17:13:04]MH_GetDate [17:13:04]Write to MH i2c: F0 00 00 9D 18 A4 [17:13:04]Write i2c OK [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: F0 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: F0 09 00 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: F0 09 00 9D 18 00 21 B4 B8 67 7E 41 4F 65 14 [17:13:04]GetLastDocTimeStamp 1740157604 [17:13:04]current date 1740157985 [17:13:04]FM_GetShiftState [17:13:04]SAM_PROTO_GetShiftState [17:13:04]wFMCommunicate request_size=4 [17:13:04]MH_SAM_APDU [17:13:04]CAPDU: 80 13 01 00 [17:13:04]Write to MH i2c: E2 08 00 9E 18 80 13 01 00 00 00 00 00 33 [17:13:04]Write i2c OK [17:13:04]MH_I2C_Read... [17:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:04]Read from MH i2c: E2 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 0E 00 [17:13:04]MH_I2C_Read... [17:13:04]Read from MH i2c: E2 0E 00 9E 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 21 [17:13:04]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:13:04]wFMCommunicate OK [17:13:04]SAM_PROTO_GetShiftState done [17:13:04]FM_GetShiftState done [17:13:04]opened in 1740098043 [17:13:04]opened+sec_in_day 1740184443 [17:13:04]quantity*price = 50011 [17:13:04]sum+1 = 50013 [17:13:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 199 21.02.2025 17:13 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187705 ФПД: 94242493292537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T171305&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187705&fm=94242493292537&tin=02508201610067®Number=0000000000091857&sum=50000 [17:13:05]StoreToDocumentArchive [17:13:05]shift 649 fd 187705 [17:13:05]save to /storage/0649/doc_00187705 [17:13:05]save last doc name /storage/0649/doc_00187705 to /storage/kkm_last_doc_name [17:13:05]save OK [17:13:05]Clear old archive folders... [17:13:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:05]tlvbuf is 00BE54D0 [17:13:05]SAM_PROTO_ClearQueue [17:13:05]wFMCommunicate request_size=4 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 09 00 00 [17:13:05]Write to MH i2c: E2 08 00 AB 18 80 09 00 00 00 00 00 00 35 [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 AB 18 00 90 00 37 [17:13:05]RAPDU: 90 00 [17:13:05]wFMCommunicate OK [17:13:05]SAM_PROTO_ClearQueue done [17:13:05]KKMCreateOFDPacket [17:13:05]OFDProtocolAddRootSTLVToBuf [17:13:05]FM_MakeSignedData [17:13:05]FM_MakeSignedData [17:13:05]SAM_PROTO_SignData [17:13:05]wFMCommunicate request_size=4 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 0D 01 02 [17:13:05]Write to MH i2c: E2 08 00 AC 18 80 0D 01 02 00 00 00 00 3D [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 AC 18 00 90 00 38 [17:13:05]RAPDU: 90 00 [17:13:05]wFMCommunicate OK [17:13:05]wFMCommunicate request_size=255 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 B4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DD 02 00 35 04 06 00 55 [17:13:05]Write to MH i2c: E2 02 01 AD 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 B4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DD 02 00 35 04 06 00 55 00 00 89 [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 AD 18 00 90 00 39 [17:13:05]RAPDU: 90 00 [17:13:05]wFMCommunicate OK [17:13:05]wFMCommunicate request_size=10 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 0D 02 02 05 B6 8A 55 DF F9 [17:13:05]Write to MH i2c: E2 0D 00 AE 18 80 0D 02 02 05 00 B6 8A 55 DF F9 00 00 B7 [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 03 00 AE 18 00 90 00 3A [17:13:05]RAPDU: 90 00 [17:13:05]wFMCommunicate OK [17:13:05]wFMCommunicate request_size=4 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 0D 03 02 [17:13:05]Write to MH i2c: E2 08 00 AF 18 80 0D 03 02 00 00 00 00 42 [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 0B 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 0B 00 AF 18 00 CD 84 D8 E4 D5 68 3A E9 90 00 B0 [17:13:05]RAPDU: CD 84 D8 E4 D5 68 3A E9 90 00 [17:13:05]wFMCommunicate OK [17:13:05]SAM_PROTO_SignData done [17:13:05]FM_MakeSignedData done [17:13:05]CreateOFDProtocolMessage [17:13:05]wFMCommunicate request_size=4 [17:13:05]MH_SAM_APDU [17:13:05]CAPDU: 80 11 00 00 [17:13:05]Write to MH i2c: E2 08 00 B0 18 80 11 00 00 00 00 00 00 42 [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:05]Read from MH i2c: E2 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 17 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: E2 17 00 B0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 95 [17:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:13:05]wFMCommunicate OK [17:13:05]CreateOFDProtocolMessage done [17:13:05]OFDSenderStorePacket 187705 [17:13:05]StoreOFDPacket docnum=187705 [17:13:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9F 58 07 01 82 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 B4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DD 02 00 35 04 06 00 55 B6 8A 55 DF F9 CD 84 D8 E4 D5 68 3A E9 [17:13:05]CheckFolder [17:13:05]dirname=/storage/ofd_packets [17:13:05]CheckFolder done [17:13:05]ProducePacketName [17:13:05]name=ofd_packets/00187705 [17:13:05]NVStorageSaveData ofd_packets/00187705 [17:13:05]File name is /storage/ofd_packets/00187705 [17:13:05]Write 301 bytes [17:13:05]NVStorageSaveData done [17:13:05]OFDSenderStorePacket done [17:13:05]KKMCreateOFDPacket done [17:13:05]NVStorageSaveData kkm_last_timestamp [17:13:05]File name is /storage/kkm_last_timestamp [17:13:05]Write 4 bytes [17:13:05]NVStorageSaveData done [17:13:05]ExternCall_PrintAddStr [17:13:05]wPrintStart [17:13:05]Write to MH i2c: 01 00 00 B1 18 C9 [17:13:05]Write i2c OK [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: 01 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: 01 07 00 [17:13:05]MH_I2C_Read... [17:13:05]Read from MH i2c: 01 07 00 B1 18 00 00 00 00 00 FF 0F DE [17:13:05]RasterBufferAndPrint [17:13:05]line Счет N : (1)412865 [17:13:05]line ИНН: 02508201610067 [17:13:05]line Контрольно-Кассовый Чек [17:13:05]line ПРОДАЖА [17:13:05]line ТРК (МРК, ГНК) : 12 [17:13:05]line Товар: 2710124130 [17:13:05]line Аи-92-К-2 [17:13:05]line 7.790 * 64.20 [17:13:05]line = 500.12 [17:13:05]line НДС 12% НСП 1% [17:13:05]line > о реализуемом товаре [17:13:05]line ОКРУГЛЕНИЕ: -0.12 [17:13:05]line ИТОГО: 500.00 [17:13:05]line Внесено: 500.00 [17:13:05]line СДАЧА: 0.00 [17:13:05]line НСП 1% : 4.43 [17:13:05]line НДС 12% : 53.11 [17:13:05]line Наличными: 500.00 [17:13:05]line Безнал.: 0.00 [17:13:05]line Место: АЗС № 92 "Партнер Нефть" [17:13:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:13:05]line СНО: Общий режим [17:13:05]line Чек 199 21.02.2025 17:13 [17:13:05]line Смена: 649 ФФД: 1.0 [17:13:05]line ЗНМ: 0300000118 [17:13:05]line РНМ: 0000000000091857 [17:13:05]line Версия ККМ: 001 [17:13:05]line ФМ: 0000000000871826 [17:13:05]line ФД: 187705 [17:13:05]line ФПД: 94242493292537 [17:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T171305&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187705&fm=94242493292537&tin=02508201610067®Number=0000000000091857&sum=50000 [17:13:06]written 0, free lines is 4095 [17:13:06]OFD Sender: Processing packet 187705 [packets to send 49, broken 48] [17:13:06]ProducePacketName [17:13:06]name=ofd_packets/00187705 [17:13:06]OFD Sender: To server: pG, [17:13:06]CommunicateWithHost lk.salyk.kg:30040 [17:13:06]ConnectInit lk.salyk.kg [17:13:06]Connected sock=10 [17:13:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9F 58 07 01 82 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 21 B4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DD 02 00 35 04 06 00 55 B6 8A 55 DF F9 CD 84 D8 E4 D5 68 3A E9 [17:13:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2D 8C 47 00 B0 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DD 02 00 F4 03 04 00 6E 5A B8 67 B6 04 01 00 00 3F 63 DE 14 5E E7 F8 3D [17:13:06]CommunicateWithHost err = 0 [17:13:06]CheckOFDResponse [17:13:06]1017 (14) - 77093643461234 [17:13:06]1041 (16) - 0000000000871826 [17:13:06]1040 (4) - 187705 [17:13:06]1012 (4) - 21.02.2025 10:50 [17:13:06]1206 (1) - 0 [17:13:06]OFD Sender: Remove packet 187705 [17:13:06]ProducePacketName [17:13:06]name=ofd_packets/00187705 [17:13:06]NVStorageDeleteData [17:13:06]Write to MH i2c: 01 00 00 DC 18 F4 [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: 01 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: 01 07 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: 01 07 00 DC 18 00 00 00 00 00 EE 0C F5 [17:13:06]RasterBufferAndPrint [17:13:06]line [17:13:06]line [17:13:06]line [17:13:06]line [17:13:06]line [17:13:06]written 0, free lines is 3319 [17:13:06]MH_Cut [17:13:06]Write to MH i2c: D1 01 00 E3 18 01 CD [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: D1 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: D1 01 00 [17:13:06]MH_I2C_Read... [17:13:06]Read from MH i2c: D1 01 00 E3 18 00 CC [17:13:06]Write to MH i2c: 01 00 00 E4 18 FC [17:13:06]Write i2c OK [17:13:06]MH_I2C_Read... [17:13:07]OFD Sender: No OFD packet to send [17:13:07]*** Cut start [17:13:07]*** Partial cut [17:13:07]*** CUTSNS_PIN = 1 [17:13:07]*** CUTSNS_PIN = 0 [17:13:07]*** Brake cut motor [17:13:08]Read from MH i2c: 01 [17:13:08]MH_I2C_Read... [17:13:08]*** Stop cut motor [17:13:08]*** Cut end [17:13:08]Read from MH i2c: 01 07 00 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: 01 07 00 E4 18 00 00 00 00 00 FF 0F 11 [17:13:08]process_action close_receipt done [17:13:08]requested_data is exist [17:13:08]produce_requested_data [17:13:08]requested_item fm.sn is exist - process it [17:13:08]wFMCommunicate request_size=4 [17:13:08]MH_SAM_APDU [17:13:08]CAPDU: 80 11 00 00 [17:13:08]Write to MH i2c: E2 08 00 E5 18 80 11 00 00 00 00 00 00 77 [17:13:08]Write i2c OK [17:13:08]MH_I2C_Read... [17:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:08]Read from MH i2c: E2 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 17 00 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 17 00 E5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CA [17:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:13:08]wFMCommunicate OK [17:13:08]requested_item fd.num is exist - process it [17:13:08]SAM_PROTO_GetFieldsCounters [17:13:08]wFMCommunicate request_size=4 [17:13:08]MH_SAM_APDU [17:13:08]CAPDU: 80 13 00 00 [17:13:08]Write to MH i2c: E2 08 00 E6 18 80 13 00 00 00 00 00 00 7A [17:13:08]Write i2c OK [17:13:08]MH_I2C_Read... [17:13:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:08]Read from MH i2c: E2 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 62 00 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 62 00 E6 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 39 DD 02 00 0E 04 04 00 89 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 98 [17:13:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 39 DD 02 00 0E 04 04 00 89 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 [17:13:08]wFMCommunicate OK [17:13:08]SAM_PROTO_GetFieldsCounters done [17:13:08]requested_item shift.num is exist - process it [17:13:08]requested_item shift.opened is exist - process it [17:13:08]req_shift_opened [17:13:08]FM_GetShiftState [17:13:08]SAM_PROTO_GetShiftState [17:13:08]wFMCommunicate request_size=4 [17:13:08]MH_SAM_APDU [17:13:08]CAPDU: 80 13 01 00 [17:13:08]Write to MH i2c: E2 08 00 E7 18 80 13 01 00 00 00 00 00 7C [17:13:08]Write i2c OK [17:13:08]MH_I2C_Read... [17:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:08]Read from MH i2c: E2 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 0E 00 [17:13:08]MH_I2C_Read... [17:13:08]Read from MH i2c: E2 0E 00 E7 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6A [17:13:08]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:13:08]wFMCommunicate OK [17:13:08]SAM_PROTO_GetShiftState done [17:13:08]FM_GetShiftState done [17:13:08]req_shift_opened done [17:13:08]requested_item shift.open_date is exist - process it [17:13:08]req_shift_open_date [17:13:08]req_shift_open_date done [17:13:08]produce_requested_data done [17:13:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187705,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:13:08]process_action_free close_receipt [17:13:08]json_value_free [17:13:08]json_value_free done [17:13:08]process_json_proto returns [17:13:08]Send response to host [17:13:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187705,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:13:08]free response buf [17:13:08]execute_script done [17:13:08]execute_script returns [17:13:08]free content buf [17:13:08]Sock 7.Close socket [17:13:08]Sock 7.Thread stoped [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:07]accept exits with 9 [17:14:07]New connection [17:14:07]New thread 3067481444 created [17:14:07]Thread 3067624804 joined [17:14:07]Waiting for new connection... [17:14:07] Sock 9.Parse request [17:14:07]Sock 9.Check first char [17:14:07]Sock 9.First char is OK [17:14:07]request: POST /json_proto HTTP/1.0 [17:14:07]Method: POST [17:14:07]URL: /json_proto [17:14:07]Method is POST - this is cgi request [17:14:07]url: /json_proto [17:14:07]query_string will be loaded in cgi processing [17:14:07]execute_cgi json_proto POST (null) [17:14:07]execute_cgi path=json_proto method=POST [17:14:07]POST find Content-Length [17:14:07]Host: 172.17.46.131:8080 [17:14:07]Content-Length: 678 [17:14:07]Content-Type: application/json [17:14:07] [17:14:07]POST finish read [17:14:07]Found Content-Length = 678 [17:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:07]execute_script... [17:14: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)412866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:07]POST & json_proto [17:14:07]process_json_proto [17:14:07]json parsed OK: [17:14:07]protocol is kg_v1.0 [17:14:07]action value=close_receipt [17:14:07]process_action close_receipt [17:14:07]cmd_close_receipt [17:14:07]MH_GetDate [17:14:07]Write to MH i2c: F0 00 00 E8 18 EF [17:14:07]Write i2c OK [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: F0 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: F0 09 00 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: F0 09 00 E8 18 00 60 B4 B8 67 7E 41 4F 65 9E [17:14:07]GetLastDocTimeStamp 1740157985 [17:14:07]current date 1740158048 [17:14:07]FM_GetShiftState [17:14:07]SAM_PROTO_GetShiftState [17:14:07]wFMCommunicate request_size=4 [17:14:07]MH_SAM_APDU [17:14:07]CAPDU: 80 13 01 00 [17:14:07]Write to MH i2c: E2 08 00 E9 18 80 13 01 00 00 00 00 00 7E [17:14:07]Write i2c OK [17:14:07]MH_I2C_Read... [17:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:07]Read from MH i2c: E2 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: E2 0E 00 [17:14:07]MH_I2C_Read... [17:14:07]Read from MH i2c: E2 0E 00 E9 18 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 6C [17:14:07]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:14:07]wFMCommunicate OK [17:14:07]SAM_PROTO_GetShiftState done [17:14:07]FM_GetShiftState done [17:14:07]opened in 1740098043 [17:14:07]opened+sec_in_day 1740184443 [17:14:07]quantity*price = 100042 [17:14:07]sum+1 = 100044 [17:14:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 200 21.02.2025 17:14 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187706 ФПД: 203565063531879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T171408&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187706&fm=203565063531879&tin=02508201610067®Number=0000000000091857&sum=100000 [17:14:08]StoreToDocumentArchive [17:14:08]shift 649 fd 187706 [17:14:08]save to /storage/0649/doc_00187706 [17:14:08]save last doc name /storage/0649/doc_00187706 to /storage/kkm_last_doc_name [17:14:08]save OK [17:14:08]Clear old archive folders... [17:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:14:08]tlvbuf is 00BD40F0 [17:14:08]SAM_PROTO_ClearQueue [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 09 00 00 [17:14:08]Write to MH i2c: E2 08 00 F6 18 80 09 00 00 00 00 00 00 80 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 F6 18 00 90 00 82 [17:14:08]RAPDU: 90 00 [17:14:08]wFMCommunicate OK [17:14:08]SAM_PROTO_ClearQueue done [17:14:08]KKMCreateOFDPacket [17:14:08]OFDProtocolAddRootSTLVToBuf [17:14:08]FM_MakeSignedData [17:14:08]FM_MakeSignedData [17:14:08]SAM_PROTO_SignData [17:14:08]wFMCommunicate request_size=4 [17:14:08]MH_SAM_APDU [17:14:08]CAPDU: 80 0D 01 02 [17:14:08]Write to MH i2c: E2 08 00 F7 18 80 0D 01 02 00 00 00 00 88 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:08]Read from MH i2c: E2 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 [17:14:08]MH_I2C_Read... [17:14:08]Read from MH i2c: E2 03 00 F7 18 00 90 00 83 [17:14:08]RAPDU: 90 00 [17:14:08]wFMCommunicate OK [17:14:08]wFMCommunicate request_size=255 [17:14:08]MH_SAM_APDU [17:14: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 60 B4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DD 02 00 35 04 06 00 B9 24 2F 4C [17:14:08]Write to MH i2c: E2 02 01 F8 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 60 B4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DD 02 00 35 04 06 00 B9 24 2F 4C 00 00 23 [17:14:08]Write i2c OK [17:14:08]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 F8 18 00 90 00 84 [17:14:09]RAPDU: 90 00 [17:14:09]wFMCommunicate OK [17:14:09]wFMCommunicate request_size=7 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 0D 02 02 02 ED 67 [17:14:09]Write to MH i2c: E2 0A 00 F9 18 80 0D 02 02 02 00 ED 67 00 00 E3 [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 03 00 F9 18 00 90 00 85 [17:14:09]RAPDU: 90 00 [17:14:09]wFMCommunicate OK [17:14:09]wFMCommunicate request_size=4 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 0D 03 02 [17:14:09]Write to MH i2c: E2 08 00 FA 18 80 0D 03 02 00 00 00 00 8D [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 0B 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 0B 00 FA 18 00 BA B4 EC EE D5 0B 76 EF 90 00 1B [17:14:09]RAPDU: BA B4 EC EE D5 0B 76 EF 90 00 [17:14:09]wFMCommunicate OK [17:14:09]SAM_PROTO_SignData done [17:14:09]FM_MakeSignedData done [17:14:09]CreateOFDProtocolMessage [17:14:09]wFMCommunicate request_size=4 [17:14:09]MH_SAM_APDU [17:14:09]CAPDU: 80 11 00 00 [17:14:09]Write to MH i2c: E2 08 00 FB 18 80 11 00 00 00 00 00 00 8D [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:09]Read from MH i2c: E2 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 17 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: E2 17 00 FB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E0 [17:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:14:09]wFMCommunicate OK [17:14:09]CreateOFDProtocolMessage done [17:14:09]OFDSenderStorePacket 187706 [17:14:09]StoreOFDPacket docnum=187706 [17:14:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 88 D6 04 01 46 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 60 B4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DD 02 00 35 04 06 00 B9 24 2F 4C ED 67 BA B4 EC EE D5 0B 76 EF [17:14:09]CheckFolder [17:14:09]dirname=/storage/ofd_packets [17:14:09]CheckFolder done [17:14:09]ProducePacketName [17:14:09]name=ofd_packets/00187706 [17:14:09]NVStorageSaveData ofd_packets/00187706 [17:14:09]File name is /storage/ofd_packets/00187706 [17:14:09]Write 298 bytes [17:14:09]NVStorageSaveData done [17:14:09]OFDSenderStorePacket done [17:14:09]KKMCreateOFDPacket done [17:14:09]NVStorageSaveData kkm_last_timestamp [17:14:09]File name is /storage/kkm_last_timestamp [17:14:09]Write 4 bytes [17:14:09]NVStorageSaveData done [17:14:09]ExternCall_PrintAddStr [17:14:09]wPrintStart [17:14:09]Write to MH i2c: 01 00 00 FC 18 14 [17:14:09]Write i2c OK [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: 01 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: 01 07 00 [17:14:09]MH_I2C_Read... [17:14:09]Read from MH i2c: 01 07 00 FC 18 00 00 00 00 00 FF 0F 29 [17:14:09]RasterBufferAndPrint [17:14:09]line Счет N : (1)412866 [17:14:09]line ИНН: 02508201610067 [17:14:09]line Контрольно-Кассовый Чек [17:14:09]line ПРОДАЖА [17:14:09]line ТРК (МРК, ГНК) : 5 [17:14:09]line Товар: 2710194210 [17:14:09]line ДТ-К-5 [17:14:09]line 13.780 * 72.60 [17:14:09]line = 1000.43 [17:14:09]line НДС 12% НСП 1% [17:14:09]line > о реализуемом товаре [17:14:09]line ОКРУГЛЕНИЕ: -0.43 [17:14:09]line ИТОГО: 1000.00 [17:14:09]line Внесено: 1000.00 [17:14:09]line СДАЧА: 0.00 [17:14:09]line НСП 1% : 8.85 [17:14:09]line НДС 12% : 106.24 [17:14:09]line Наличными: 1000.00 [17:14:09]line Безнал.: 0.00 [17:14:09]line Место: АЗС № 92 "Партнер Нефть" [17:14:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:14:09]line СНО: Общий режим [17:14:09]line Чек 200 21.02.2025 17:14 [17:14:09]line Смена: 649 ФФД: 1.0 [17:14:09]line ЗНМ: 0300000118 [17:14:09]line РНМ: 0000000000091857 [17:14:09]line Версия ККМ: 001 [17:14:09]line ФМ: 0000000000871826 [17:14:09]line ФД: 187706 [17:14:09]line ФПД: 203565063531879 [17:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T171408&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187706&fm=203565063531879&tin=02508201610067®Number=0000000000091857&sum=100000 [17:14:09]OFD Sender: Processing packet 187706 [packets to send 49, broken 48] [17:14:09]ProducePacketName [17:14:09]name=ofd_packets/00187706 [17:14:09]OFD Sender: To server: pG, [17:14:09]CommunicateWithHost lk.salyk.kg:30040 [17:14:09]ConnectInit lk.salyk.kg [17:14:09]written 0, free lines is 4095 [17:14:09]Connected sock=10 [17:14:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 88 D6 04 01 46 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 60 B4 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DD 02 00 35 04 06 00 B9 24 2F 4C ED 67 BA B4 EC EE D5 0B 76 EF [17: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 38 32 36 4F 00 00 00 8B 83 47 00 97 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DD 02 00 F4 03 04 00 AE 5A B8 67 B6 04 01 00 00 49 55 F7 D5 59 8C 93 46 [17:14:10]CommunicateWithHost err = 0 [17:14:10]CheckOFDResponse [17:14:10]1017 (14) - 77093643461234 [17:14:10]1041 (16) - 0000000000871826 [17:14:10]1040 (4) - 187706 [17:14:10]1012 (4) - 21.02.2025 10:51 [17:14:10]1206 (1) - 0 [17:14:10]OFD Sender: Remove packet 187706 [17:14:10]ProducePacketName [17:14:10]name=ofd_packets/00187706 [17:14:10]NVStorageDeleteData [17:14:10]Write to MH i2c: 01 00 00 27 19 40 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 07 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: 01 07 00 27 19 00 00 00 00 00 FB 0C 4E [17:14:10]RasterBufferAndPrint [17:14:10]line [17:14:10]line [17:14:10]line [17:14:10]line [17:14:10]line [17:14:10]written 0, free lines is 3329 [17:14:10]MH_Cut [17:14:10]Write to MH i2c: D1 01 00 2E 19 01 19 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: D1 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: D1 01 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: D1 01 00 2E 19 00 18 [17:14:10]Write to MH i2c: 01 00 00 2F 19 48 [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]OFD Sender: No OFD packet to send [17:14:10]*** Cut start [17:14:10]*** Partial cut [17:14:10]*** CUTSNS_PIN = 1 [17:14:10]*** CUTSNS_PIN = 0 [17:14:11]*** Brake cut motor [17:14:11]Read from MH i2c: 01 [17:14:11]MH_I2C_Read... [17:14:11]*** Stop cut motor [17:14:11]*** Cut end [17:14:11]Read from MH i2c: 01 07 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: 01 07 00 2F 19 00 00 00 00 00 FF 0F 5D [17:14:11]process_action close_receipt done [17:14:11]requested_data is exist [17:14:11]produce_requested_data [17:14:11]requested_item fm.sn is exist - process it [17:14:11]wFMCommunicate request_size=4 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 11 00 00 [17:14:11]Write to MH i2c: E2 08 00 30 19 80 11 00 00 00 00 00 00 C3 [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:11]Read from MH i2c: E2 17 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 17 00 30 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 16 [17:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:14:11]wFMCommunicate OK [17:14:11]requested_item fd.num is exist - process it [17:14:11]SAM_PROTO_GetFieldsCounters [17:14:11]wFMCommunicate request_size=4 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 13 00 00 [17:14:11]Write to MH i2c: E2 08 00 31 19 80 13 00 00 00 00 00 00 C6 [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 62 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 62 00 31 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A DD 02 00 0E 04 04 00 89 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 E8 [17:14:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A DD 02 00 0E 04 04 00 89 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 [17:14:11]wFMCommunicate OK [17:14:11]SAM_PROTO_GetFieldsCounters done [17:14:11]requested_item shift.num is exist - process it [17:14:11]requested_item shift.opened is exist - process it [17:14:11]req_shift_opened [17:14:11]FM_GetShiftState [17:14:11]SAM_PROTO_GetShiftState [17:14:11]wFMCommunicate request_size=4 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 13 01 00 [17:14:11]Write to MH i2c: E2 08 00 32 19 80 13 01 00 00 00 00 00 C8 [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 0E 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 0E 00 32 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B6 [17:14:11]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:14:11]wFMCommunicate OK [17:14:11]SAM_PROTO_GetShiftState done [17:14:11]FM_GetShiftState done [17:14:11]req_shift_opened done [17:14:11]requested_item shift.open_date is exist - process it [17:14:11]req_shift_open_date [17:14:11]req_shift_open_date done [17:14:11]produce_requested_data done [17:14:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187706,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:14:11]process_action_free close_receipt [17:14:11]json_value_free [17:14:11]json_value_free done [17:14:11]process_json_proto returns [17:14:11]Send response to host [17:14:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187706,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:14:11]free response buf [17:14:11]execute_script done [17:14:11]execute_script returns [17:14:11]free content buf [17:14:11]Sock 9.Close socket [17:14:11]Sock 9.Thread stoped [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:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:23]accept exits with 7 [17:21:23]New connection [17:21:23]New thread 3067624804 created [17:21:23]Thread 3067481444 joined [17:21:23]Waiting for new connection... [17:21:23] Sock 7.Parse request [17:21:23]Sock 7.Check first char [17:21:23]Sock 7.First char is OK [17:21:23]request: POST /json_proto HTTP/1.0 [17:21:23]Method: POST [17:21:23]URL: /json_proto [17:21:23]Method is POST - this is cgi request [17:21:23]url: /json_proto [17:21:23]query_string will be loaded in cgi processing [17:21:23]execute_cgi json_proto POST (null) [17:21:23]execute_cgi path=json_proto method=POST [17:21:23]POST find Content-Length [17:21:23]Host: 172.17.46.131:8080 [17:21:23]Content-Length: 754 [17:21:23]Content-Type: application/json [17:21:23] [17:21:23]POST finish read [17:21:23]Found Content-Length = 754 [17:21:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:23]execute_script... [17:21: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)412867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.580, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:23]POST & json_proto [17:21:23]process_json_proto [17:21:23]json parsed OK: [17:21:23]protocol is kg_v1.0 [17:21:23]action value=close_receipt [17:21:23]process_action close_receipt [17:21:23]cmd_close_receipt [17:21:23]MH_GetDate [17:21:23]Write to MH i2c: F0 00 00 33 19 3B [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 09 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: F0 09 00 33 19 00 14 B6 B8 67 7E 41 4F 65 A0 [17:21:23]GetLastDocTimeStamp 1740158048 [17:21:23]current date 1740158484 [17:21:23]FM_GetShiftState [17:21:23]SAM_PROTO_GetShiftState [17:21:23]wFMCommunicate request_size=4 [17:21:23]MH_SAM_APDU [17:21:23]CAPDU: 80 13 01 00 [17:21:23]Write to MH i2c: E2 08 00 34 19 80 13 01 00 00 00 00 00 CA [17:21:23]Write i2c OK [17:21:23]MH_I2C_Read... [17:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:23]Read from MH i2c: E2 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 0E 00 [17:21:23]MH_I2C_Read... [17:21:23]Read from MH i2c: E2 0E 00 34 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 B8 [17:21:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:21:23]wFMCommunicate OK [17:21:23]SAM_PROTO_GetShiftState done [17:21:23]FM_GetShiftState done [17:21:23]opened in 1740098043 [17:21:23]opened+sec_in_day 1740184443 [17:21:23]quantity*price = 0 [17:21:23]sum+1 = 1 [17:21:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 201 21.02.2025 17:21 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116166 ФМ: 0000000000871826 ФД: 187707 ФПД: 10685833614582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T172124&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187707&fm=10685833614582&tin=02508201610067®Number=0000000000091857&sum=0 [17:21:24]StoreToDocumentArchive [17:21:24]shift 649 fd 187707 [17:21:24]save to /storage/0649/doc_00187707 [17:21:24]save last doc name /storage/0649/doc_00187707 to /storage/kkm_last_doc_name [17:21:24]save OK [17:21:24]Clear old archive folders... [17:21:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:24]tlvbuf is 00BBAD50 [17:21:24]SAM_PROTO_ClearQueue [17:21:24]wFMCommunicate request_size=4 [17:21:24]MH_SAM_APDU [17:21:24]CAPDU: 80 09 00 00 [17:21:24]Write to MH i2c: E2 08 00 41 19 80 09 00 00 00 00 00 00 CC [17:21:24]Write i2c OK [17:21:24]MH_I2C_Read... [17:21:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:24]Read from MH i2c: E2 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: E2 03 00 [17:21:24]MH_I2C_Read... [17:21:24]Read from MH i2c: E2 03 00 41 19 00 90 00 CE [17:21:24]RAPDU: 90 00 [17:21:24]wFMCommunicate OK [17:21:24]SAM_PROTO_ClearQueue done [17:21:24]KKMCreateOFDPacket [17:21:24]OFDProtocolAddRootSTLVToBuf [17:21:24]FM_MakeSignedData [17:21:24]FM_MakeSignedData [17:21:24]SAM_PROTO_SignData [17:21:24]wFMCommunicate request_size=4 [17:21:24]MH_SAM_APDU [17:21:24]CAPDU: 80 0D 01 02 [17:21:24]Write to MH i2c: E2 08 00 42 19 80 0D 01 02 00 00 00 00 D4 [17:21:24]Write i2c OK [17:21:24]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 42 19 00 90 00 CF [17:21:25]RAPDU: 90 00 [17:21:25]wFMCommunicate OK [17:21:25]wFMCommunicate request_size=255 [17:21:25]MH_SAM_APDU [17: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 14 B6 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DD 02 00 35 04 06 00 09 [17:21:25]Write to MH i2c: E2 02 01 43 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 14 B6 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DD 02 00 35 04 06 00 09 00 00 58 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 43 19 00 90 00 D0 [17:21:25]RAPDU: 90 00 [17:21:25]wFMCommunicate OK [17:21:25]wFMCommunicate request_size=10 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 0D 02 02 05 B7 FD 51 14 F6 [17:21:25]Write to MH i2c: E2 0D 00 44 19 80 0D 02 02 05 00 B7 FD 51 14 F6 00 00 F0 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 03 00 44 19 00 90 00 D1 [17:21:25]RAPDU: 90 00 [17:21:25]wFMCommunicate OK [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 0D 03 02 [17:21:25]Write to MH i2c: E2 08 00 45 19 80 0D 03 02 00 00 00 00 D9 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0B 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0B 00 45 19 00 6D CB 5C FC C7 28 61 3E 90 00 F8 [17:21:25]RAPDU: 6D CB 5C FC C7 28 61 3E 90 00 [17:21:25]wFMCommunicate OK [17:21:25]SAM_PROTO_SignData done [17:21:25]FM_MakeSignedData done [17:21:25]CreateOFDProtocolMessage [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 11 00 00 [17:21:25]Write to MH i2c: E2 08 00 46 19 80 11 00 00 00 00 00 00 D9 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 17 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 17 00 46 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [17:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:21:25]wFMCommunicate OK [17:21:25]CreateOFDProtocolMessage done [17:21:25]OFDSenderStorePacket 187707 [17:21:25]StoreOFDPacket docnum=187707 [17:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 24 57 07 01 3D 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 14 B6 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DD 02 00 35 04 06 00 09 B7 FD 51 14 F6 6D CB 5C FC C7 28 61 3E [17:21:25]CheckFolder [17:21:25]dirname=/storage/ofd_packets [17:21:25]CheckFolder done [17:21:25]ProducePacketName [17:21:25]name=ofd_packets/00187707 [17:21:25]NVStorageSaveData ofd_packets/00187707 [17:21:25]File name is /storage/ofd_packets/00187707 [17:21:25]Write 301 bytes [17:21:25]NVStorageSaveData done [17:21:25]OFDSenderStorePacket done [17:21:25]KKMCreateOFDPacket done [17:21:25]NVStorageSaveData kkm_last_timestamp [17:21:25]File name is /storage/kkm_last_timestamp [17:21:25]Write 4 bytes [17:21:25]NVStorageSaveData done [17:21:25]ExternCall_PrintAddStr [17:21:25]wPrintStart [17:21:25]Write to MH i2c: 01 00 00 47 19 60 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: 01 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: 01 07 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: 01 07 00 47 19 00 00 00 00 00 FF 0F 75 [17:21:25]RasterBufferAndPrint [17:21:25]line Счет N : (1)412867 [17:21:25]line ИНН: 02508201610067 [17:21:25]line Контрольно-Кассовый Чек [17:21:25]line ПРОДАЖА [17:21:25]line ТРК (МРК, ГНК) : 42 [17:21:25]line Товар: 2710124130 [17:21:25]line Аи-92-К-2 [17:21:25]line 15.580 * 0.00 [17:21:25]line = 0.00 [17:21:25]line НДС 12% НСП 1% [17:21:25]line > о реализуемом товаре [17:21:25]line ИТОГО: 0.00 [17:21:25]line НСП 1% : 0.00 [17:21:25]line НДС 12% : 0.00 [17:21:25]line Наличными: 0.00 [17:21:25]line Безнал.: 0.00 [17:21:25]line Место: АЗС № 92 "Партнер Нефть" [17:21:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:21:25]line СНО: Общий режим [17:21:25]line Чек 201 21.02.2025 17:21 [17:21:25]line Смена: 649 ФФД: 1.0 [17:21:25]line ЗНМ: 0300000118 [17:21:25]line РНМ: 0000000000091857 [17:21:25]line Версия ККМ: 001 [17:21:25]line Талоны: ТК ГПНА Online [17:21:25]line 30116166 [17:21:25]line ФМ: 0000000000871826 [17:21:25]line ФД: 187707 [17:21:25]line ФПД: 10685833614582 [17:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T172124&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187707&fm=10685833614582&tin=02508201610067®Number=0000000000091857&sum=0 [17:21:25]written 0, free lines is 4095 [17:21:25]OFD Sender: Processing packet 187707 [packets to send 49, broken 48] [17:21:25]ProducePacketName [17:21:25]name=ofd_packets/00187707 [17:21:25]OFD Sender: To server: pG, [17:21:25]CommunicateWithHost lk.salyk.kg:30040 [17:21:25]ConnectInit lk.salyk.kg [17:21:25]Connected sock=11 [17:21:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 24 57 07 01 3D 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 14 B6 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DD 02 00 35 04 06 00 09 B7 FD 51 14 F6 6D CB 5C FC C7 28 61 3E [17:21:25]Write to MH i2c: 01 00 00 71 19 8A [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: 01 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: 01 07 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: 01 07 00 71 19 00 00 00 00 00 00 0D 9E [17:21:25]RasterBufferAndPrint [17:21:25]line [17:21:25]line [17:21:25]line [17:21:25]line [17:21:25]line [17:21:25]written 0, free lines is 3334 [17:21:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 94 22 47 00 28 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DD 02 00 F4 03 04 00 61 5C B8 67 B6 04 01 00 00 7F 36 8D 4C B9 1D 00 3F [17:21:25]CommunicateWithHost err = 0 [17:21:25]CheckOFDResponse [17:21:25]1017 (14) - 77093643461234 [17:21:25]1041 (16) - 0000000000871826 [17:21:25]1040 (4) - 187707 [17:21:25]1012 (4) - 21.02.2025 10:58 [17:21:25]1206 (1) - 0 [17:21:25]OFD Sender: Remove packet 187707 [17:21:25]ProducePacketName [17:21:25]name=ofd_packets/00187707 [17:21:25]NVStorageDeleteData [17:21:25]MH_Cut [17:21:25]Write to MH i2c: D1 01 00 78 19 01 63 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: D1 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: D1 01 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: D1 01 00 78 19 00 62 [17:21:25]Write to MH i2c: 01 00 00 79 19 92 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:26]OFD Sender: No OFD packet to send [17:21:26]*** Cut start [17:21:26]*** Partial cut [17:21:26]*** CUTSNS_PIN = 1 [17:21:26]*** CUTSNS_PIN = 0 [17:21:26]*** Brake cut motor [17:21:27]Read from MH i2c: 01 [17:21:27]MH_I2C_Read... [17:21:27]*** Stop cut motor [17:21:27]*** Cut end [17:21:27]Read from MH i2c: 01 07 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: 01 07 00 79 19 00 00 00 00 00 FF 0F A7 [17:21:27]process_action close_receipt done [17:21:27]requested_data is exist [17:21:27]produce_requested_data [17:21:27]requested_item fm.sn is exist - process it [17:21:27]wFMCommunicate request_size=4 [17:21:27]MH_SAM_APDU [17:21:27]CAPDU: 80 11 00 00 [17:21:27]Write to MH i2c: E2 08 00 7A 19 80 11 00 00 00 00 00 00 0D [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 [17:21:27]MH_I2C_Read... [17:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:27]Read from MH i2c: E2 17 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 17 00 7A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 60 [17:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:21:27]wFMCommunicate OK [17:21:27]requested_item fd.num is exist - process it [17:21:27]SAM_PROTO_GetFieldsCounters [17:21:27]wFMCommunicate request_size=4 [17:21:27]MH_SAM_APDU [17:21:27]CAPDU: 80 13 00 00 [17:21:27]Write to MH i2c: E2 08 00 7B 19 80 13 00 00 00 00 00 00 10 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:27]Read from MH i2c: E2 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 62 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 62 00 7B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B DD 02 00 0E 04 04 00 89 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 36 [17:21:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B DD 02 00 0E 04 04 00 89 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 [17:21:27]wFMCommunicate OK [17:21:27]SAM_PROTO_GetFieldsCounters done [17:21:27]requested_item shift.num is exist - process it [17:21:27]requested_item shift.opened is exist - process it [17:21:27]req_shift_opened [17:21:27]FM_GetShiftState [17:21:27]SAM_PROTO_GetShiftState [17:21:27]wFMCommunicate request_size=4 [17:21:27]MH_SAM_APDU [17:21:27]CAPDU: 80 13 01 00 [17:21:27]Write to MH i2c: E2 08 00 7C 19 80 13 01 00 00 00 00 00 12 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:27]Read from MH i2c: E2 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 0E 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 0E 00 7C 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 00 [17:21:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:21:27]wFMCommunicate OK [17:21:27]SAM_PROTO_GetShiftState done [17:21:27]FM_GetShiftState done [17:21:27]req_shift_opened done [17:21:27]requested_item shift.open_date is exist - process it [17:21:27]req_shift_open_date [17:21:27]req_shift_open_date done [17:21:27]produce_requested_data done [17:21:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187707,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:21:27]process_action_free close_receipt [17:21:27]json_value_free [17:21:27]json_value_free done [17:21:27]process_json_proto returns [17:21:27]Send response to host [17:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187707,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:21:27]free response buf [17:21:27]execute_script done [17:21:27]execute_script returns [17:21:27]free content buf [17:21:27]Sock 7.Close socket [17:21:27]Sock 7.Thread stoped [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [17:44:29]accept exits with 9 [17:44:29]New connection [17:44:29]New thread 3067481444 created [17:44:29]Thread 3067624804 joined [17:44:29]Waiting for new connection... [17:44:29] Sock 9.Parse request [17:44:29]Sock 9.Check first char [17:44:29]Sock 9.First char is OK [17:44:29]request: POST /json_proto HTTP/1.0 [17:44:29]Method: POST [17:44:29]URL: /json_proto [17:44:29]Method is POST - this is cgi request [17:44:29]url: /json_proto [17:44:29]query_string will be loaded in cgi processing [17:44:29]execute_cgi json_proto POST (null) [17:44:29]execute_cgi path=json_proto method=POST [17:44:29]POST find Content-Length [17:44:29]Host: 172.17.46.131:8080 [17:44:29]Content-Length: 800 [17:44:29]Content-Type: application/json [17:44:29] [17:44:29]POST finish read [17:44:29]Found Content-Length = 800 [17:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175776", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:29]execute_script... [17:44: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)412868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175776", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:29]POST & json_proto [17:44:29]process_json_proto [17:44:29]json parsed OK: [17:44:29]protocol is kg_v1.0 [17:44:29]action value=close_receipt [17:44:29]process_action close_receipt [17:44:29]cmd_close_receipt [17:44:29]MH_GetDate [17:44:29]Write to MH i2c: F0 00 00 7D 19 85 [17:44:29]Write i2c OK [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: F0 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: F0 09 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: F0 09 00 7D 19 00 7E BB B8 67 7E 41 4F 65 59 [17:44:29]GetLastDocTimeStamp 1740158484 [17:44:29]current date 1740159870 [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 7E 19 80 13 01 00 00 00 00 00 14 [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 7E 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 02 [17:44:29]RAPDU: 09 00 01 FB C9 B7 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]opened in 1740098043 [17:44:29]opened+sec_in_day 1740184443 [17:44:29]quantity*price = 0 [17:44:29]sum+1 = 1 [17:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 202 21.02.2025 17:44 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175776 ФМ: 0000000000871826 ФД: 187708 ФПД: 210160631411965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T174430&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187708&fm=210160631411965&tin=02508201610067®Number=0000000000091857&sum=0 [17:44:30]StoreToDocumentArchive [17:44:30]shift 649 fd 187708 [17:44:30]save to /storage/0649/doc_00187708 [17:44:30]save last doc name /storage/0649/doc_00187708 to /storage/kkm_last_doc_name [17:44:30]save OK [17:44:30]Clear old archive folders... [17:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:30]tlvbuf is 00BE57B0 [17:44:30]SAM_PROTO_ClearQueue [17:44:30]wFMCommunicate request_size=4 [17:44:30]MH_SAM_APDU [17:44:30]CAPDU: 80 09 00 00 [17:44:30]Write to MH i2c: E2 08 00 8B 19 80 09 00 00 00 00 00 00 16 [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:30]Read from MH i2c: E2 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 03 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 03 00 8B 19 00 90 00 18 [17:44:30]RAPDU: 90 00 [17:44:30]wFMCommunicate OK [17:44:30]SAM_PROTO_ClearQueue done [17:44:30]KKMCreateOFDPacket [17:44:30]OFDProtocolAddRootSTLVToBuf [17:44:30]FM_MakeSignedData [17:44:30]FM_MakeSignedData [17:44:30]SAM_PROTO_SignData [17:44:30]wFMCommunicate request_size=4 [17:44:30]MH_SAM_APDU [17:44:30]CAPDU: 80 0D 01 02 [17:44:30]Write to MH i2c: E2 08 00 8C 19 80 0D 01 02 00 00 00 00 1E [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:30]Read from MH i2c: E2 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 03 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 03 00 8C 19 00 90 00 19 [17:44:30]RAPDU: 90 00 [17:44:30]wFMCommunicate OK [17:44:30]wFMCommunicate request_size=255 [17:44:30]MH_SAM_APDU [17:44:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 7E BB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DD 02 00 35 04 06 00 BF [17:44:30]Write to MH i2c: E2 02 01 8D 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 7E BB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DD 02 00 35 04 06 00 BF 00 00 1F [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:31]Read from MH i2c: E2 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 03 00 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 03 00 8D 19 00 90 00 1A [17:44:31]RAPDU: 90 00 [17:44:31]wFMCommunicate OK [17:44:31]wFMCommunicate request_size=10 [17:44:31]MH_SAM_APDU [17:44:31]CAPDU: 80 0D 02 02 05 23 D5 C7 F4 FD [17:44:31]Write to MH i2c: E2 0D 00 8E 19 80 0D 02 02 05 00 23 D5 C7 F4 FD 00 00 DB [17:44:31]Write i2c OK [17:44:31]MH_I2C_Read... [17:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:31]Read from MH i2c: E2 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 03 00 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [17:44:31]RAPDU: 90 00 [17:44:31]wFMCommunicate OK [17:44:31]wFMCommunicate request_size=4 [17:44:31]MH_SAM_APDU [17:44:31]CAPDU: 80 0D 03 02 [17:44:31]Write to MH i2c: E2 08 00 8F 19 80 0D 03 02 00 00 00 00 23 [17:44:31]Write i2c OK [17:44:31]MH_I2C_Read... [17:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:31]Read from MH i2c: E2 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 0B 00 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 0B 00 8F 19 00 1C 3B 0C 03 11 0B 82 67 90 00 8F [17:44:31]RAPDU: 1C 3B 0C 03 11 0B 82 67 90 00 [17:44:31]wFMCommunicate OK [17:44:31]SAM_PROTO_SignData done [17:44:31]FM_MakeSignedData done [17:44:31]CreateOFDProtocolMessage [17:44:31]wFMCommunicate request_size=4 [17:44:31]MH_SAM_APDU [17:44:31]CAPDU: 80 11 00 00 [17:44:31]Write to MH i2c: E2 08 00 90 19 80 11 00 00 00 00 00 00 23 [17:44:31]Write i2c OK [17:44:31]MH_I2C_Read... [17:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:31]Read from MH i2c: E2 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 17 00 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: E2 17 00 90 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 76 [17:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:44:31]wFMCommunicate OK [17:44:31]CreateOFDProtocolMessage done [17:44:31]OFDSenderStorePacket 187708 [17:44:31]StoreOFDPacket docnum=187708 [17:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 56 B6 07 01 FE DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 7E BB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DD 02 00 35 04 06 00 BF 23 D5 C7 F4 FD 1C 3B 0C 03 11 0B 82 67 [17:44:31]CheckFolder [17:44:31]dirname=/storage/ofd_packets [17:44:31]CheckFolder done [17:44:31]ProducePacketName [17:44:31]name=ofd_packets/00187708 [17:44:31]NVStorageSaveData ofd_packets/00187708 [17:44:31]File name is /storage/ofd_packets/00187708 [17:44:31]Write 301 bytes [17:44:31]NVStorageSaveData done [17:44:31]OFDSenderStorePacket done [17:44:31]KKMCreateOFDPacket done [17:44:31]NVStorageSaveData kkm_last_timestamp [17:44:31]File name is /storage/kkm_last_timestamp [17:44:31]Write 4 bytes [17:44:31]NVStorageSaveData done [17:44:31]ExternCall_PrintAddStr [17:44:31]wPrintStart [17:44:31]Write to MH i2c: 01 00 00 91 19 AA [17:44:31]Write i2c OK [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: 01 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: 01 07 00 [17:44:31]MH_I2C_Read... [17:44:31]Read from MH i2c: 01 07 00 91 19 00 00 00 00 00 FF 0F BF [17:44:31]RasterBufferAndPrint [17:44:31]line Счет N : (1)412868 [17:44:31]line ИНН: 02508201610067 [17:44:31]line Контрольно-Кассовый Чек [17:44:31]line ПРОДАЖА [17:44:31]line ТРК (МРК, ГНК) : 32 [17:44:31]line Товар: 2710124130 [17:44:31]line Аи-92-К-2 [17:44:31]line 20.000 * 0.00 [17:44:31]line = 0.00 [17:44:31]line НДС 12% НСП 1% [17:44:31]line > о реализуемом товаре [17:44:31]line ИТОГО: 0.00 [17:44:31]line НСП 1% : 0.00 [17:44:31]line НДС 12% : 0.00 [17:44:31]line Наличными: 0.00 [17:44:31]line Безнал.: 0.00 [17:44:31]line Место: АЗС № 92 "Партнер Нефть" [17:44:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:44:31]line СНО: Общий режим [17:44:31]line Чек 202 21.02.2025 17:44 [17:44:31]line Смена: 649 ФФД: 1.0 [17:44:31]line ЗНМ: 0300000118 [17:44:31]line РНМ: 0000000000091857 [17:44:31]line Версия ККМ: 001 [17:44:31]line Талоны: Топливные Талоны [17:44:31]line 4175776 [17:44:31]line ФМ: 0000000000871826 [17:44:31]line ФД: 187708 [17:44:31]line ФПД: 210160631411965 [17:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T174430&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187708&fm=210160631411965&tin=02508201610067®Number=0000000000091857&sum=0 [17:44:31]OFD Sender: Processing packet 187708 [packets to send 49, broken 48] [17:44:31]ProducePacketName [17:44:31]name=ofd_packets/00187708 [17:44:31]OFD Sender: To server: pG, [17:44:31]CommunicateWithHost lk.salyk.kg:30040 [17:44:31]ConnectInit lk.salyk.kg [17:44:31]written 0, free lines is 4095 [17:44:31]Connected sock=10 [17:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 56 B6 07 01 FE DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 CA 00 00 00 F4 03 04 00 7E BB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DD 02 00 35 04 06 00 BF 23 D5 C7 F4 FD 1C 3B 0C 03 11 0B 82 67 [17:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6F AB 47 00 D6 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C DD 02 00 F4 03 04 00 CC 61 B8 67 B6 04 01 00 00 E4 64 20 D1 16 D1 26 6F [17:44:32]CommunicateWithHost err = 0 [17:44:32]CheckOFDResponse [17:44:32]1017 (14) - 77093643461234 [17:44:32]1041 (16) - 0000000000871826 [17:44:32]1040 (4) - 187708 [17:44:32]1012 (4) - 21.02.2025 11:21 [17:44:32]1206 (1) - 0 [17:44:32]OFD Sender: Remove packet 187708 [17:44:32]ProducePacketName [17:44:32]name=ofd_packets/00187708 [17:44:32]NVStorageDeleteData [17:44:32]Write to MH i2c: 01 00 00 BB 19 D4 [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: 01 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: 01 07 00 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: 01 07 00 BB 19 00 00 00 00 00 04 0D EC [17:44:32]RasterBufferAndPrint [17:44:32]line [17:44:32]line [17:44:32]line [17:44:32]line [17:44:32]line [17:44:32]written 0, free lines is 3338 [17:44:32]MH_Cut [17:44:32]Write to MH i2c: D1 01 00 C2 19 01 AD [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: D1 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: D1 01 00 [17:44:32]MH_I2C_Read... [17:44:32]Read from MH i2c: D1 01 00 C2 19 00 AC [17:44:32]Write to MH i2c: 01 00 00 C3 19 DC [17:44:32]Write i2c OK [17:44:32]MH_I2C_Read... [17:44:32]OFD Sender: No OFD packet to send [17:44:32]*** Cut start [17:44:32]*** Partial cut [17:44:32]*** CUTSNS_PIN = 1 [17:44:32]*** CUTSNS_PIN = 0 [17:44:33]*** Brake cut motor [17:44:33]Read from MH i2c: 01 [17:44:33]MH_I2C_Read... [17:44:33]*** Stop cut motor [17:44:33]*** Cut end [17:44:33]Read from MH i2c: 01 07 00 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: 01 07 00 C3 19 00 00 00 00 00 FF 0F F1 [17:44:33]process_action close_receipt done [17:44:33]requested_data is exist [17:44:33]produce_requested_data [17:44:33]requested_item fm.sn is exist - process it [17:44:33]wFMCommunicate request_size=4 [17:44:33]MH_SAM_APDU [17:44:33]CAPDU: 80 11 00 00 [17:44:33]Write to MH i2c: E2 08 00 C4 19 80 11 00 00 00 00 00 00 57 [17:44:33]Write i2c OK [17:44:33]MH_I2C_Read... [17:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:33]Read from MH i2c: E2 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: E2 17 00 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: E2 17 00 C4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AA [17:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:44:33]wFMCommunicate OK [17:44:33]requested_item fd.num is exist - process it [17:44:33]SAM_PROTO_GetFieldsCounters [17:44:33]wFMCommunicate request_size=4 [17:44:33]MH_SAM_APDU [17:44:33]CAPDU: 80 13 00 00 [17:44:33]Write to MH i2c: E2 08 00 C5 19 80 13 00 00 00 00 00 00 5A [17:44:33]Write i2c OK [17:44:33]MH_I2C_Read... [17:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:33]Read from MH i2c: E2 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: E2 62 00 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: E2 62 00 C5 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C DD 02 00 0E 04 04 00 89 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 84 [17:44:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C DD 02 00 0E 04 04 00 89 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 [17:44:33]wFMCommunicate OK [17:44:33]SAM_PROTO_GetFieldsCounters done [17:44:33]requested_item shift.num is exist - process it [17:44:33]requested_item shift.opened is exist - process it [17:44:33]req_shift_opened [17:44:33]FM_GetShiftState [17:44:33]SAM_PROTO_GetShiftState [17:44:33]wFMCommunicate request_size=4 [17:44:33]MH_SAM_APDU [17:44:33]CAPDU: 80 13 01 00 [17:44:33]Write to MH i2c: E2 08 00 C6 19 80 13 01 00 00 00 00 00 5C [17:44:33]Write i2c OK [17:44:33]MH_I2C_Read... [17:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:33]Read from MH i2c: E2 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: E2 0E 00 [17:44:33]MH_I2C_Read... [17:44:33]Read from MH i2c: E2 0E 00 C6 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4A [17:44:33]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:44:33]wFMCommunicate OK [17:44:33]SAM_PROTO_GetShiftState done [17:44:33]FM_GetShiftState done [17:44:33]req_shift_opened done [17:44:33]requested_item shift.open_date is exist - process it [17:44:33]req_shift_open_date [17:44:33]req_shift_open_date done [17:44:33]produce_requested_data done [17:44:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187708,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:44:33]process_action_free close_receipt [17:44:33]json_value_free [17:44:33]json_value_free done [17:44:33]process_json_proto returns [17:44:33]Send response to host [17:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187708,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:44:33]free response buf [17:44:33]execute_script done [17:44:33]execute_script returns [17:44:33]free content buf [17:44:33]Sock 9.Close socket [17:44:33]Sock 9.Thread stoped [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:52]accept exits with 7 [17:45:52]New connection [17:45:52]New thread 3067624804 created [17:45:52]Thread 3067481444 joined [17:45:52]Waiting for new connection... [17:45:52] Sock 7.Parse request [17:45:52]Sock 7.Check first char [17:45:52]Sock 7.First char is OK [17:45:52]request: POST /json_proto HTTP/1.0 [17:45:52]Method: POST [17:45:52]URL: /json_proto [17:45:52]Method is POST - this is cgi request [17:45:52]url: /json_proto [17:45:52]query_string will be loaded in cgi processing [17:45:52]execute_cgi json_proto POST (null) [17:45:52]execute_cgi path=json_proto method=POST [17:45:52]POST find Content-Length [17:45:52]Host: 172.17.46.131:8080 [17:45:52]Content-Length: 682 [17:45:52]Content-Type: application/json [17:45:52] [17:45:52]POST finish read [17:45:52]Found Content-Length = 682 [17:45:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:52]execute_script... [17:45:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:52]POST & json_proto [17:45:52]process_json_proto [17:45:52]json parsed OK: [17:45:52]protocol is kg_v1.0 [17:45:52]action value=close_receipt [17:45:52]process_action close_receipt [17:45:52]cmd_close_receipt [17:45:52]MH_GetDate [17:45:52]Write to MH i2c: F0 00 00 C7 19 CF [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: F0 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: F0 09 00 [17:45:52]MH_I2C_Read... [17:45:52]Read from MH i2c: F0 09 00 C7 19 00 D2 BB B8 67 7E 41 4F 65 F7 [17:45:52]GetLastDocTimeStamp 1740159870 [17:45:52]current date 1740159954 [17:45:52]FM_GetShiftState [17:45:52]SAM_PROTO_GetShiftState [17:45:52]wFMCommunicate request_size=4 [17:45:52]MH_SAM_APDU [17:45:52]CAPDU: 80 13 01 00 [17:45:52]Write to MH i2c: E2 08 00 C8 19 80 13 01 00 00 00 00 00 5E [17:45:52]Write i2c OK [17:45:52]MH_I2C_Read... [17:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:53]Read from MH i2c: E2 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: E2 0E 00 [17:45:53]MH_I2C_Read... [17:45:53]Read from MH i2c: E2 0E 00 C8 19 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 4C [17:45:53]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:45:53]wFMCommunicate OK [17:45:53]SAM_PROTO_GetShiftState done [17:45:53]FM_GetShiftState done [17:45:53]opened in 1740098043 [17:45:53]opened+sec_in_day 1740184443 [17:45:53]quantity*price = 200025 [17:45:53]sum+1 = 200027 [17:45:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 203 21.02.2025 17:45 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187709 ФПД: 237489601248753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T174554&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187709&fm=237489601248753&tin=02508201610067®Number=0000000000091857&sum=200000 [17:45:54]StoreToDocumentArchive [17:45:54]shift 649 fd 187709 [17:45:54]save to /storage/0649/doc_00187709 [17:45:54]save last doc name /storage/0649/doc_00187709 to /storage/kkm_last_doc_name [17:45:54]save OK [17:45:54]Clear old archive folders... [17:45:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:54]tlvbuf is B6F4CB50 [17:45:54]SAM_PROTO_ClearQueue [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 09 00 00 [17:45:54]Write to MH i2c: E2 08 00 D5 19 80 09 00 00 00 00 00 00 60 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 D5 19 00 90 00 62 [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]SAM_PROTO_ClearQueue done [17:45:54]KKMCreateOFDPacket [17:45:54]OFDProtocolAddRootSTLVToBuf [17:45:54]FM_MakeSignedData [17:45:54]FM_MakeSignedData [17:45:54]SAM_PROTO_SignData [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 01 02 [17:45:54]Write to MH i2c: E2 08 00 D6 19 80 0D 01 02 00 00 00 00 68 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 D6 19 00 90 00 63 [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]wFMCommunicate request_size=255 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D2 BB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D DD 02 00 35 04 06 00 D7 [17:45:54]Write to MH i2c: E2 02 01 D7 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D2 BB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D DD 02 00 35 04 06 00 D7 00 00 00 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]wFMCommunicate request_size=10 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 02 02 05 FE DB 51 FD F1 [17:45:54]Write to MH i2c: E2 0D 00 D8 19 80 0D 02 02 05 00 FE DB 51 FD F1 00 00 8D [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [17:45:54]RAPDU: 90 00 [17:45:54]wFMCommunicate OK [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 0D 03 02 [17:45:54]Write to MH i2c: E2 08 00 D9 19 80 0D 03 02 00 00 00 00 6D [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 0B 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 0B 00 D9 19 00 27 A6 7F C7 EA F8 80 1D 90 00 00 [17:45:54]RAPDU: 27 A6 7F C7 EA F8 80 1D 90 00 [17:45:54]wFMCommunicate OK [17:45:54]SAM_PROTO_SignData done [17:45:54]FM_MakeSignedData done [17:45:54]CreateOFDProtocolMessage [17:45:54]wFMCommunicate request_size=4 [17:45:54]MH_SAM_APDU [17:45:54]CAPDU: 80 11 00 00 [17:45:54]Write to MH i2c: E2 08 00 DA 19 80 11 00 00 00 00 00 00 6D [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:54]Read from MH i2c: E2 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 17 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: E2 17 00 DA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C0 [17:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:45:54]wFMCommunicate OK [17:45:54]CreateOFDProtocolMessage done [17:45:54]OFDSenderStorePacket 187709 [17:45:54]StoreOFDPacket docnum=187709 [17:45:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A7 CF 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D2 BB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D DD 02 00 35 04 06 00 D7 FE DB 51 FD F1 27 A6 7F C7 EA F8 80 1D [17:45:54]CheckFolder [17:45:54]dirname=/storage/ofd_packets [17:45:54]CheckFolder done [17:45:54]ProducePacketName [17:45:54]name=ofd_packets/00187709 [17:45:54]NVStorageSaveData ofd_packets/00187709 [17:45:54]File name is /storage/ofd_packets/00187709 [17:45:54]Write 301 bytes [17:45:54]NVStorageSaveData done [17:45:54]OFDSenderStorePacket done [17:45:54]KKMCreateOFDPacket done [17:45:54]NVStorageSaveData kkm_last_timestamp [17:45:54]File name is /storage/kkm_last_timestamp [17:45:54]Write 4 bytes [17:45:54]NVStorageSaveData done [17:45:54]ExternCall_PrintAddStr [17:45:54]wPrintStart [17:45:54]Write to MH i2c: 01 00 00 DB 19 F4 [17:45:54]Write i2c OK [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: 01 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: 01 07 00 [17:45:54]MH_I2C_Read... [17:45:54]Read from MH i2c: 01 07 00 DB 19 00 00 00 00 00 FF 0F 09 [17:45:54]RasterBufferAndPrint [17:45:54]line Счет N : (1)412869 [17:45:54]line ИНН: 02508201610067 [17:45:54]line Контрольно-Кассовый Чек [17:45:54]line ПРОДАЖА [17:45:54]line ТРК (МРК, ГНК) : 23 [17:45:54]line Товар: 2710124500 [17:45:54]line Аи-95-К-5 [17:45:54]line 27.820 * 71.90 [17:45:54]line = 2000.26 [17:45:54]line НДС 12% НСП 1% [17:45:54]line > о реализуемом товаре [17:45:54]line ОКРУГЛЕНИЕ: -0.26 [17:45:54]line ИТОГО: 2000.00 [17:45:54]line Внесено: 2000.00 [17:45:54]line СДАЧА: 0.00 [17:45:54]line НСП 1% : 17.70 [17:45:54]line НДС 12% : 212.42 [17:45:54]line Наличными: 2000.00 [17:45:54]line Безнал.: 0.00 [17:45:54]line Место: АЗС № 92 "Партнер Нефть" [17:45:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:45:54]line СНО: Общий режим [17:45:54]line Чек 203 21.02.2025 17:45 [17:45:54]line Смена: 649 ФФД: 1.0 [17:45:54]line ЗНМ: 0300000118 [17:45:54]line РНМ: 0000000000091857 [17:45:54]line Версия ККМ: 001 [17:45:54]line ФМ: 0000000000871826 [17:45:54]line ФД: 187709 [17:45:54]line ФПД: 237489601248753 [17:45:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T174554&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187709&fm=237489601248753&tin=02508201610067®Number=0000000000091857&sum=200000 [17:45:55]OFD Sender: Processing packet 187709 [packets to send 49, broken 48] [17:45:55]ProducePacketName [17:45:55]name=ofd_packets/00187709 [17:45:55]OFD Sender: To server: pG, [17:45:55]CommunicateWithHost lk.salyk.kg:30040 [17:45:55]ConnectInit lk.salyk.kg [17:45:55]written 0, free lines is 4095 [17:45:55]Connected sock=10 [17:45:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A7 CF 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 D2 BB B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D DD 02 00 35 04 06 00 D7 FE DB 51 FD F1 27 A6 7F C7 EA F8 80 1D [17:45:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DB 94 47 00 EB 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 38 32 36 10 04 04 00 3D DD 02 00 F4 03 04 00 1F 62 B8 67 B6 04 01 00 00 9A 4F 85 CE A7 24 F0 68 [17:45:55]CommunicateWithHost err = 0 [17:45:55]CheckOFDResponse [17:45:55]1017 (14) - 77093643461234 [17:45:55]1041 (16) - 0000000000871826 [17:45:55]1040 (4) - 187709 [17:45:55]1012 (4) - 21.02.2025 11:23 [17:45:55]1206 (1) - 0 [17:45:55]OFD Sender: Remove packet 187709 [17:45:55]ProducePacketName [17:45:55]name=ofd_packets/00187709 [17:45:55]NVStorageDeleteData [17:45:55]Write to MH i2c: 01 00 00 06 1A 20 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 07 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: 01 07 00 06 1A 00 00 00 00 00 EA 0C 1D [17:45:55]RasterBufferAndPrint [17:45:55]line [17:45:55]line [17:45:55]line [17:45:55]line [17:45:55]line [17:45:55]written 0, free lines is 3312 [17:45:55]MH_Cut [17:45:55]Write to MH i2c: D1 01 00 0D 1A 01 F9 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: D1 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: D1 01 00 [17:45:55]MH_I2C_Read... [17:45:55]Read from MH i2c: D1 01 00 0D 1A 00 F8 [17:45:55]Write to MH i2c: 01 00 00 0E 1A 28 [17:45:55]Write i2c OK [17:45:55]MH_I2C_Read... [17:45:55]OFD Sender: No OFD packet to send [17:45:56]*** Cut start [17:45:56]*** Partial cut [17:45:56]*** CUTSNS_PIN = 1 [17:45:56]*** CUTSNS_PIN = 0 [17:45:56]*** Brake cut motor [17:45:56]Read from MH i2c: 01 [17:45:56]MH_I2C_Read... [17:45:56]*** Stop cut motor [17:45:56]*** Cut end [17:45:56]Read from MH i2c: 01 07 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: 01 07 00 0E 1A 00 00 00 00 00 FF 0F 3D [17:45:56]process_action close_receipt done [17:45:56]requested_data is exist [17:45:56]produce_requested_data [17:45:56]requested_item fm.sn is exist - process it [17:45:56]wFMCommunicate request_size=4 [17:45:56]MH_SAM_APDU [17:45:56]CAPDU: 80 11 00 00 [17:45:56]Write to MH i2c: E2 08 00 0F 1A 80 11 00 00 00 00 00 00 A3 [17:45:56]Write i2c OK [17:45:56]MH_I2C_Read... [17:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:56]Read from MH i2c: E2 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 17 00 [17:45:56]MH_I2C_Read... [17:45:56]Read from MH i2c: E2 17 00 0F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F6 [17:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:45:56]wFMCommunicate OK [17:45:56]requested_item fd.num is exist - process it [17:45:56]SAM_PROTO_GetFieldsCounters [17:45:56]wFMCommunicate request_size=4 [17:45:56]MH_SAM_APDU [17:45:56]CAPDU: 80 13 00 00 [17:45:56]Write to MH i2c: E2 08 00 10 1A 80 13 00 00 00 00 00 00 A6 [17:45:56]Write i2c OK [17:45:56]MH_I2C_Read... [17:45:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:57]Read from MH i2c: E2 [17:45:57]MH_I2C_Read... [17:45:57]Read from MH i2c: E2 62 00 [17:45:57]MH_I2C_Read... [17:45:57]Read from MH i2c: E2 62 00 10 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3D DD 02 00 0E 04 04 00 89 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 D4 [17:45:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3D DD 02 00 0E 04 04 00 89 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 [17:45:57]wFMCommunicate OK [17:45:57]SAM_PROTO_GetFieldsCounters done [17:45:57]requested_item shift.num is exist - process it [17:45:57]requested_item shift.opened is exist - process it [17:45:57]req_shift_opened [17:45:57]FM_GetShiftState [17:45:57]SAM_PROTO_GetShiftState [17:45:57]wFMCommunicate request_size=4 [17:45:57]MH_SAM_APDU [17:45:57]CAPDU: 80 13 01 00 [17:45:57]Write to MH i2c: E2 08 00 11 1A 80 13 01 00 00 00 00 00 A8 [17:45:57]Write i2c OK [17:45:57]MH_I2C_Read... [17:45:57]Read from MH i2c: E2 [17:45:57]MH_I2C_Read... [17:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:57]Read from MH i2c: E2 0E 00 [17:45:57]MH_I2C_Read... [17:45:57]Read from MH i2c: E2 0E 00 11 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 96 [17:45:57]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:45:57]wFMCommunicate OK [17:45:57]SAM_PROTO_GetShiftState done [17:45:57]FM_GetShiftState done [17:45:57]req_shift_opened done [17:45:57]requested_item shift.open_date is exist - process it [17:45:57]req_shift_open_date [17:45:57]req_shift_open_date done [17:45:57]produce_requested_data done [17:45:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187709,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:45:57]process_action_free close_receipt [17:45:57]json_value_free [17:45:57]json_value_free done [17:45:57]process_json_proto returns [17:45:57]Send response to host [17:45:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187709,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:45:57]free response buf [17:45:57]execute_script done [17:45:57]execute_script returns [17:45:57]free content buf [17:45:57]Sock 7.Close socket [17:45:57]Sock 7.Thread stoped [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:35]accept exits with 9 [17:47:35]New connection [17:47:35]New thread 3067481444 created [17:47:35]Thread 3067624804 joined [17:47:35]Waiting for new connection... [17:47:35] Sock 9.Parse request [17:47:35]Sock 9.Check first char [17:47:35]Sock 9.First char is OK [17:47:35]request: POST /json_proto HTTP/1.0 [17:47:35]Method: POST [17:47:35]URL: /json_proto [17:47:35]Method is POST - this is cgi request [17:47:35]url: /json_proto [17:47:35]query_string will be loaded in cgi processing [17:47:35]execute_cgi json_proto POST (null) [17:47:35]execute_cgi path=json_proto method=POST [17:47:35]POST find Content-Length [17:47:35]Host: 172.17.46.131:8080 [17:47:35]Content-Length: 678 [17:47:35]Content-Type: application/json [17:47:35] [17:47:35]POST finish read [17:47:35]Found Content-Length = 678 [17:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.440, "sum" : 750.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:35]execute_script... [17:47: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)412870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.440, "sum" : 750.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:35]POST & json_proto [17:47:35]process_json_proto [17:47:35]json parsed OK: [17:47:35]protocol is kg_v1.0 [17:47:35]action value=close_receipt [17:47:35]process_action close_receipt [17:47:35]cmd_close_receipt [17:47:35]MH_GetDate [17:47:35]Write to MH i2c: F0 00 00 12 1A 1B [17:47:35]Write i2c OK [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: F0 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: F0 09 00 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: F0 09 00 12 1A 00 38 BC B8 67 7E 41 4F 65 AA [17:47:35]GetLastDocTimeStamp 1740159954 [17:47:35]current date 1740160056 [17:47:35]FM_GetShiftState [17:47:35]SAM_PROTO_GetShiftState [17:47:35]wFMCommunicate request_size=4 [17:47:35]MH_SAM_APDU [17:47:35]CAPDU: 80 13 01 00 [17:47:35]Write to MH i2c: E2 08 00 13 1A 80 13 01 00 00 00 00 00 AA [17:47:35]Write i2c OK [17:47:35]MH_I2C_Read... [17:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:35]Read from MH i2c: E2 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 0E 00 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 0E 00 13 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 98 [17:47:35]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:47:35]wFMCommunicate OK [17:47:35]SAM_PROTO_GetShiftState done [17:47:35]FM_GetShiftState done [17:47:35]opened in 1740098043 [17:47:35]opened+sec_in_day 1740184443 [17:47:35]quantity*price = 75063 [17:47:35]sum+1 = 75065 [17:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 204 21.02.2025 17:47 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187710 ФПД: 136644757766428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T174736&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187710&fm=136644757766428&tin=02508201610067®Number=0000000000091857&sum=75000 [17:47:36]StoreToDocumentArchive [17:47:36]shift 649 fd 187710 [17:47:36]save to /storage/0649/doc_00187710 [17:47:36]save last doc name /storage/0649/doc_00187710 to /storage/kkm_last_doc_name [17:47:36]save OK [17:47:36]Clear old archive folders... [17:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:36]tlvbuf is 00BE5EB0 [17:47:36]SAM_PROTO_ClearQueue [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 09 00 00 [17:47:36]Write to MH i2c: E2 08 00 20 1A 80 09 00 00 00 00 00 00 AC [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 20 1A 00 90 00 AE [17:47:36]RAPDU: 90 00 [17:47:36]wFMCommunicate OK [17:47:36]SAM_PROTO_ClearQueue done [17:47:36]KKMCreateOFDPacket [17:47:36]OFDProtocolAddRootSTLVToBuf [17:47:36]FM_MakeSignedData [17:47:36]FM_MakeSignedData [17:47:36]SAM_PROTO_SignData [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 0D 01 02 [17:47:36]Write to MH i2c: E2 08 00 21 1A 80 0D 01 02 00 00 00 00 B4 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 21 1A 00 90 00 AF [17:47:36]RAPDU: 90 00 [17:47:36]wFMCommunicate OK [17:47:36]wFMCommunicate request_size=255 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 38 BC B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DD 02 00 35 04 06 00 7C [17:47:36]Write to MH i2c: E2 02 01 22 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 38 BC B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DD 02 00 35 04 06 00 7C 00 00 60 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [17:47:36]RAPDU: 90 00 [17:47:36]wFMCommunicate OK [17:47:36]wFMCommunicate request_size=10 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 0D 02 02 05 47 16 3F 41 1C [17:47:36]Write to MH i2c: E2 0D 00 23 1A 80 0D 02 02 05 00 47 16 3F 41 1C 00 00 BA [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [17:47:36]RAPDU: 90 00 [17:47:36]wFMCommunicate OK [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 0D 03 02 [17:47:36]Write to MH i2c: E2 08 00 24 1A 80 0D 03 02 00 00 00 00 B9 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 0B 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 0B 00 24 1A 00 D3 D8 9F 8F 11 BC 7A 90 90 00 6A [17:47:36]RAPDU: D3 D8 9F 8F 11 BC 7A 90 90 00 [17:47:36]wFMCommunicate OK [17:47:36]SAM_PROTO_SignData done [17:47:36]FM_MakeSignedData done [17:47:36]CreateOFDProtocolMessage [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 11 00 00 [17:47:36]Write to MH i2c: E2 08 00 25 1A 80 11 00 00 00 00 00 00 B9 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 17 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 17 00 25 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0C [17:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:47:36]wFMCommunicate OK [17:47:36]CreateOFDProtocolMessage done [17:47:36]OFDSenderStorePacket 187710 [17:47:36]StoreOFDPacket docnum=187710 [17:47:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F4 9A 07 01 3B 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 38 BC B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DD 02 00 35 04 06 00 7C 47 16 3F 41 1C D3 D8 9F 8F 11 BC 7A 90 [17:47:36]CheckFolder [17:47:36]dirname=/storage/ofd_packets [17:47:36]CheckFolder done [17:47:36]ProducePacketName [17:47:36]name=ofd_packets/00187710 [17:47:36]NVStorageSaveData ofd_packets/00187710 [17:47:36]File name is /storage/ofd_packets/00187710 [17:47:36]Write 301 bytes [17:47:36]NVStorageSaveData done [17:47:36]OFDSenderStorePacket done [17:47:36]KKMCreateOFDPacket done [17:47:36]NVStorageSaveData kkm_last_timestamp [17:47:36]File name is /storage/kkm_last_timestamp [17:47:36]Write 4 bytes [17:47:36]NVStorageSaveData done [17:47:36]ExternCall_PrintAddStr [17:47:36]wPrintStart [17:47:36]Write to MH i2c: 01 00 00 26 1A 40 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 26 1A 00 00 00 00 00 FF 0F 55 [17:47:36]RasterBufferAndPrint [17:47:36]line Счет N : (1)412870 [17:47:36]line ИНН: 02508201610067 [17:47:36]line Контрольно-Кассовый Чек [17:47:36]line ПРОДАЖА [17:47:36]line ТРК (МРК, ГНК) : 33 [17:47:36]line Товар: 2710124500 [17:47:36]line Аи-95-К-5 [17:47:36]line 10.440 * 71.90 [17:47:36]line = 750.64 [17:47:36]line НДС 12% НСП 1% [17:47:36]line > о реализуемом товаре [17:47:36]line ОКРУГЛЕНИЕ: -0.64 [17:47:36]line ИТОГО: 750.00 [17:47:36]line Внесено: 750.00 [17:47:36]line СДАЧА: 0.00 [17:47:36]line НСП 1% : 6.64 [17:47:36]line НДС 12% : 79.71 [17:47:36]line Наличными: 750.00 [17:47:36]line Безнал.: 0.00 [17:47:36]line Место: АЗС № 92 "Партнер Нефть" [17:47:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:47:36]line СНО: Общий режим [17:47:36]line Чек 204 21.02.2025 17:47 [17:47:36]line Смена: 649 ФФД: 1.0 [17:47:36]line ЗНМ: 0300000118 [17:47:36]line РНМ: 0000000000091857 [17:47:36]line Версия ККМ: 001 [17:47:36]line ФМ: 0000000000871826 [17:47:36]line ФД: 187710 [17:47:36]line ФПД: 136644757766428 [17:47:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T174736&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187710&fm=136644757766428&tin=02508201610067®Number=0000000000091857&sum=75000 [17:47:37]written 0, free lines is 4095 [17:47:37]OFD Sender: Processing packet 187710 [packets to send 49, broken 48] [17:47:37]ProducePacketName [17:47:37]name=ofd_packets/00187710 [17:47:37]OFD Sender: To server: pG, [17:47:37]CommunicateWithHost lk.salyk.kg:30040 [17:47:37]ConnectInit lk.salyk.kg [17:47:37]Connected sock=10 [17:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F4 9A 07 01 3B 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 38 BC B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DD 02 00 35 04 06 00 7C 47 16 3F 41 1C D3 D8 9F 8F 11 BC 7A 90 [17:47:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 77 6D 47 00 02 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 38 32 36 10 04 04 00 3E DD 02 00 F4 03 04 00 85 62 B8 67 B6 04 01 00 00 81 2F A6 FF DB DD 31 DC [17:47:37]CommunicateWithHost err = 0 [17:47:37]CheckOFDResponse [17:47:37]1017 (14) - 77093643461234 [17:47:37]1041 (16) - 0000000000871826 [17:47:37]1040 (4) - 187710 [17:47:37]1012 (4) - 21.02.2025 11:24 [17:47:37]1206 (1) - 0 [17:47:37]OFD Sender: Remove packet 187710 [17:47:37]ProducePacketName [17:47:37]name=ofd_packets/00187710 [17:47:37]NVStorageDeleteData [17:47:37]Write to MH i2c: 01 00 00 51 1A 6B [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 07 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 07 00 51 1A 00 00 00 00 00 F0 0C 6E [17:47:37]RasterBufferAndPrint [17:47:37]line [17:47:37]line [17:47:37]line [17:47:37]line [17:47:37]line [17:47:37]written 0, free lines is 3319 [17:47:37]MH_Cut [17:47:37]Write to MH i2c: D1 01 00 58 1A 01 44 [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: D1 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: D1 01 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: D1 01 00 58 1A 00 43 [17:47:37]Write to MH i2c: 01 00 00 59 1A 73 [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:38]OFD Sender: No OFD packet to send [17:47:38]*** Cut start [17:47:38]*** Partial cut [17:47:38]*** CUTSNS_PIN = 1 [17:47:38]*** CUTSNS_PIN = 0 [17:47:38]*** Brake cut motor [17:47:38]Read from MH i2c: 01 [17:47:38]MH_I2C_Read... [17:47:38]*** Stop cut motor [17:47:38]*** Cut end [17:47:38]Read from MH i2c: 01 07 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: 01 07 00 59 1A 00 00 00 00 00 FF 0F 88 [17:47:38]process_action close_receipt done [17:47:38]requested_data is exist [17:47:38]produce_requested_data [17:47:38]requested_item fm.sn is exist - process it [17:47:38]wFMCommunicate request_size=4 [17:47:38]MH_SAM_APDU [17:47:38]CAPDU: 80 11 00 00 [17:47:38]Write to MH i2c: E2 08 00 5A 1A 80 11 00 00 00 00 00 00 EE [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:38]Read from MH i2c: E2 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 17 00 [17:47:38]MH_I2C_Read... [17:47:38]Read from MH i2c: E2 17 00 5A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 41 [17:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:47:38]wFMCommunicate OK [17:47:38]requested_item fd.num is exist - process it [17:47:38]SAM_PROTO_GetFieldsCounters [17:47:38]wFMCommunicate request_size=4 [17:47:38]MH_SAM_APDU [17:47:38]CAPDU: 80 13 00 00 [17:47:38]Write to MH i2c: E2 08 00 5B 1A 80 13 00 00 00 00 00 00 F1 [17:47:38]Write i2c OK [17:47:38]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 62 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 62 00 5B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3E DD 02 00 0E 04 04 00 89 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 23 [17:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3E DD 02 00 0E 04 04 00 89 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 [17:47:39]wFMCommunicate OK [17:47:39]SAM_PROTO_GetFieldsCounters done [17:47:39]requested_item shift.num is exist - process it [17:47:39]requested_item shift.opened is exist - process it [17:47:39]req_shift_opened [17:47:39]FM_GetShiftState [17:47:39]SAM_PROTO_GetShiftState [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 13 01 00 [17:47:39]Write to MH i2c: E2 08 00 5C 1A 80 13 01 00 00 00 00 00 F3 [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 0E 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 0E 00 5C 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E1 [17:47:39]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:47:39]wFMCommunicate OK [17:47:39]SAM_PROTO_GetShiftState done [17:47:39]FM_GetShiftState done [17:47:39]req_shift_opened done [17:47:39]requested_item shift.open_date is exist - process it [17:47:39]req_shift_open_date [17:47:39]req_shift_open_date done [17:47:39]produce_requested_data done [17:47:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187710,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:47:39]process_action_free close_receipt [17:47:39]json_value_free [17:47:39]json_value_free done [17:47:39]process_json_proto returns [17:47:39]Send response to host [17:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187710,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:47:39]free response buf [17:47:39]execute_script done [17:47:39]execute_script returns [17:47:39]free content buf [17:47:39]Sock 9.Close socket [17:47:39]Sock 9.Thread stoped [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [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:30]accept exits with 7 [17:54:30]New connection [17:54:30]New thread 3067624804 created [17:54:30]Thread 3067481444 joined [17:54:30]Waiting for new connection... [17:54:30] Sock 7.Parse request [17:54:30]Sock 7.Check first char [17:54:30]Sock 7.First char is OK [17:54:30]request: POST /json_proto HTTP/1.0 [17:54:30]Method: POST [17:54:30]URL: /json_proto [17:54:30]Method is POST - this is cgi request [17:54:30]url: /json_proto [17:54:30]query_string will be loaded in cgi processing [17:54:30]execute_cgi json_proto POST (null) [17:54:30]execute_cgi path=json_proto method=POST [17:54:30]POST find Content-Length [17:54:30]Host: 172.17.46.131:8080 [17:54:30]Content-Length: 682 [17:54:30]Content-Type: application/json [17:54:30] [17:54:30]POST finish read [17:54:30]Found Content-Length = 682 [17:54:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:30]execute_script... [17: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)412871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:30]POST & json_proto [17:54:30]process_json_proto [17:54:30]json parsed OK: [17:54:30]protocol is kg_v1.0 [17:54:30]action value=close_receipt [17:54:30]process_action close_receipt [17:54:30]cmd_close_receipt [17:54:30]MH_GetDate [17:54:30]Write to MH i2c: F0 00 00 5D 1A 66 [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: F0 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: F0 09 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: F0 09 00 5D 1A 00 D8 BD B8 67 7E 41 4F 65 96 [17:54:30]GetLastDocTimeStamp 1740160056 [17:54:30]current date 1740160472 [17:54:30]FM_GetShiftState [17:54:30]SAM_PROTO_GetShiftState [17:54:30]wFMCommunicate request_size=4 [17:54:30]MH_SAM_APDU [17:54:30]CAPDU: 80 13 01 00 [17:54:30]Write to MH i2c: E2 08 00 5E 1A 80 13 01 00 00 00 00 00 F5 [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0E 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0E 00 5E 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 E3 [17:54:30]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:54:30]wFMCommunicate OK [17:54:30]SAM_PROTO_GetShiftState done [17:54:30]FM_GetShiftState done [17:54:30]opened in 1740098043 [17:54:30]opened+sec_in_day 1740184443 [17:54:30]quantity*price = 100023 [17:54:30]sum+1 = 100025 [17:54:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 205 21.02.2025 17:54 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187711 ФПД: 64991719569178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T175432&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187711&fm=64991719569178&tin=02508201610067®Number=0000000000091857&sum=100000 [17:54:31]StoreToDocumentArchive [17:54:31]shift 649 fd 187711 [17:54:31]save to /storage/0649/doc_00187711 [17:54:31]save last doc name /storage/0649/doc_00187711 to /storage/kkm_last_doc_name [17:54:31]save OK [17:54:31]Clear old archive folders... [17:54:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:31]tlvbuf is 00C38890 [17:54:31]SAM_PROTO_ClearQueue [17:54:31]wFMCommunicate request_size=4 [17:54:31]MH_SAM_APDU [17:54:31]CAPDU: 80 09 00 00 [17:54:31]Write to MH i2c: E2 08 00 6B 1A 80 09 00 00 00 00 00 00 F7 [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:31]Read from MH i2c: E2 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: E2 03 00 6B 1A 00 90 00 F9 [17:54:31]RAPDU: 90 00 [17:54:31]wFMCommunicate OK [17:54:31]SAM_PROTO_ClearQueue done [17:54:31]KKMCreateOFDPacket [17:54:31]OFDProtocolAddRootSTLVToBuf [17:54:31]FM_MakeSignedData [17:54:31]FM_MakeSignedData [17:54:31]SAM_PROTO_SignData [17:54:31]wFMCommunicate request_size=4 [17:54:31]MH_SAM_APDU [17:54:31]CAPDU: 80 0D 01 02 [17:54:31]Write to MH i2c: E2 08 00 6C 1A 80 0D 01 02 00 00 00 00 FF [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:32]Read from MH i2c: E2 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 03 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 03 00 6C 1A 00 90 00 FA [17:54:32]RAPDU: 90 00 [17:54:32]wFMCommunicate OK [17:54:32]wFMCommunicate request_size=255 [17:54:32]MH_SAM_APDU [17: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 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 D8 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DD 02 00 35 04 06 00 3B [17:54:32]Write to MH i2c: E2 02 01 6D 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 D8 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DD 02 00 35 04 06 00 3B 00 00 61 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:32]Read from MH i2c: E2 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 03 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 03 00 6D 1A 00 90 00 FB [17:54:32]RAPDU: 90 00 [17:54:32]wFMCommunicate OK [17:54:32]wFMCommunicate request_size=10 [17:54:32]MH_SAM_APDU [17:54:32]CAPDU: 80 0D 02 02 05 1C 10 5B B7 1A [17:54:32]Write to MH i2c: E2 0D 00 6E 1A 80 0D 02 02 05 00 1C 10 5B B7 1A 00 00 64 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:32]Read from MH i2c: E2 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 03 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [17:54:32]RAPDU: 90 00 [17:54:32]wFMCommunicate OK [17:54:32]wFMCommunicate request_size=4 [17:54:32]MH_SAM_APDU [17:54:32]CAPDU: 80 0D 03 02 [17:54:32]Write to MH i2c: E2 08 00 6F 1A 80 0D 03 02 00 00 00 00 04 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:32]Read from MH i2c: E2 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 0B 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 0B 00 6F 1A 00 18 71 5A B0 C5 A8 06 5F 90 00 6A [17:54:32]RAPDU: 18 71 5A B0 C5 A8 06 5F 90 00 [17:54:32]wFMCommunicate OK [17:54:32]SAM_PROTO_SignData done [17:54:32]FM_MakeSignedData done [17:54:32]CreateOFDProtocolMessage [17:54:32]wFMCommunicate request_size=4 [17:54:32]MH_SAM_APDU [17:54:32]CAPDU: 80 11 00 00 [17:54:32]Write to MH i2c: E2 08 00 70 1A 80 11 00 00 00 00 00 00 04 [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:32]Read from MH i2c: E2 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 17 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 17 00 70 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 57 [17:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:54:32]wFMCommunicate OK [17:54:32]CreateOFDProtocolMessage done [17:54:32]OFDSenderStorePacket 187711 [17:54:32]StoreOFDPacket docnum=187711 [17:54:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 09 A8 07 01 07 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 D8 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DD 02 00 35 04 06 00 3B 1C 10 5B B7 1A 18 71 5A B0 C5 A8 06 5F [17:54:32]CheckFolder [17:54:32]dirname=/storage/ofd_packets [17:54:32]CheckFolder done [17:54:32]ProducePacketName [17:54:32]name=ofd_packets/00187711 [17:54:32]NVStorageSaveData ofd_packets/00187711 [17:54:32]File name is /storage/ofd_packets/00187711 [17:54:32]Write 301 bytes [17:54:32]NVStorageSaveData done [17:54:32]OFDSenderStorePacket done [17:54:32]KKMCreateOFDPacket done [17:54:32]NVStorageSaveData kkm_last_timestamp [17:54:32]File name is /storage/kkm_last_timestamp [17:54:32]Write 4 bytes [17:54:32]NVStorageSaveData done [17:54:32]ExternCall_PrintAddStr [17:54:32]wPrintStart [17:54:32]Write to MH i2c: 01 00 00 71 1A 8B [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 07 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 07 00 71 1A 00 00 00 00 00 FF 0F A0 [17:54:32]RasterBufferAndPrint [17:54:32]line Счет N : (1)412871 [17:54:32]line ИНН: 02508201610067 [17:54:32]line Контрольно-Кассовый Чек [17:54:32]line ПРОДАЖА [17:54:32]line ТРК (МРК, ГНК) : 42 [17:54:32]line Товар: 2710124130 [17:54:32]line Аи-92-К-2 [17:54:32]line 15.580 * 64.20 [17:54:32]line = 1000.24 [17:54:32]line НДС 12% НСП 1% [17:54:32]line > о реализуемом товаре [17:54:32]line ОКРУГЛЕНИЕ: -0.24 [17:54:32]line ИТОГО: 1000.00 [17:54:32]line Внесено: 1000.00 [17:54:32]line СДАЧА: 0.00 [17:54:32]line НСП 1% : 8.85 [17:54:32]line НДС 12% : 106.22 [17:54:32]line Наличными: 1000.00 [17:54:32]line Безнал.: 0.00 [17:54:32]line Место: АЗС № 92 "Партнер Нефть" [17:54:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:54:32]line СНО: Общий режим [17:54:32]line Чек 205 21.02.2025 17:54 [17:54:32]line Смена: 649 ФФД: 1.0 [17:54:32]line ЗНМ: 0300000118 [17:54:32]line РНМ: 0000000000091857 [17:54:32]line Версия ККМ: 001 [17:54:32]line ФМ: 0000000000871826 [17:54:32]line ФД: 187711 [17:54:32]line ФПД: 64991719569178 [17:54:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T175432&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187711&fm=64991719569178&tin=02508201610067®Number=0000000000091857&sum=100000 [17:54:32]OFD Sender: Processing packet 187711 [packets to send 49, broken 48] [17:54:32]ProducePacketName [17:54:32]name=ofd_packets/00187711 [17:54:32]OFD Sender: To server: pG, [17:54:32]CommunicateWithHost lk.salyk.kg:30040 [17:54:32]ConnectInit lk.salyk.kg [17:54:32]written 0, free lines is 4095 [17:54:32]Connected sock=10 [17:54:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 09 A8 07 01 07 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 D8 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DD 02 00 35 04 06 00 3B 1C 10 5B B7 1A 18 71 5A B0 C5 A8 06 5F [17: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 38 32 36 4F 00 00 00 73 D4 47 00 E5 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F DD 02 00 F4 03 04 00 25 64 B8 67 B6 04 01 00 00 03 41 74 AC 88 18 73 7B [17:54:33]CommunicateWithHost err = 0 [17:54:33]CheckOFDResponse [17:54:33]1017 (14) - 77093643461234 [17:54:33]1041 (16) - 0000000000871826 [17:54:33]1040 (4) - 187711 [17:54:33]1012 (4) - 21.02.2025 11:31 [17:54:33]1206 (1) - 0 [17:54:33]OFD Sender: Remove packet 187711 [17:54:33]ProducePacketName [17:54:33]name=ofd_packets/00187711 [17:54:33]NVStorageDeleteData [17:54:33]Write to MH i2c: 01 00 00 9C 1A B6 [17:54:33]Write i2c OK [17:54:33]MH_I2C_Read... [17:54:33]Read from MH i2c: 01 [17:54:33]MH_I2C_Read... [17:54:33]Read from MH i2c: 01 07 00 [17:54:33]MH_I2C_Read... [17:54:33]Read from MH i2c: 01 07 00 9C 1A 00 00 00 00 00 EF 0C B8 [17:54:33]RasterBufferAndPrint [17:54:33]line [17:54:33]line [17:54:33]line [17:54:33]line [17:54:33]line [17:54:33]written 0, free lines is 3317 [17:54:33]MH_Cut [17:54:33]Write to MH i2c: D1 01 00 A3 1A 01 8F [17:54:33]Write i2c OK [17:54:33]MH_I2C_Read... [17:54:33]Read from MH i2c: D1 [17:54:33]MH_I2C_Read... [17:54:33]Read from MH i2c: D1 01 00 [17:54:33]MH_I2C_Read... [17:54:33]Read from MH i2c: D1 01 00 A3 1A 00 8E [17:54:33]Write to MH i2c: 01 00 00 A4 1A BE [17:54:33]Write i2c OK [17:54:33]MH_I2C_Read... [17:54:33]OFD Sender: No OFD packet to send [17:54:33]*** Cut start [17:54:33]*** Partial cut [17:54:33]*** CUTSNS_PIN = 1 [17:54:34]*** CUTSNS_PIN = 0 [17:54:34]*** Brake cut motor [17:54:34]Read from MH i2c: 01 [17:54:34]MH_I2C_Read... [17:54:34]*** Stop cut motor [17:54:34]*** Cut end [17:54:34]Read from MH i2c: 01 07 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: 01 07 00 A4 1A 00 00 00 00 00 FF 0F D3 [17:54:34]process_action close_receipt done [17:54:34]requested_data is exist [17:54:34]produce_requested_data [17:54:34]requested_item fm.sn is exist - process it [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 11 00 00 [17:54:34]Write to MH i2c: E2 08 00 A5 1A 80 11 00 00 00 00 00 00 39 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 17 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 17 00 A5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [17:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:54:34]wFMCommunicate OK [17:54:34]requested_item fd.num is exist - process it [17:54:34]SAM_PROTO_GetFieldsCounters [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 13 00 00 [17:54:34]Write to MH i2c: E2 08 00 A6 1A 80 13 00 00 00 00 00 00 3C [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 62 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 62 00 A6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3F DD 02 00 0E 04 04 00 89 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 72 [17: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 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3F DD 02 00 0E 04 04 00 89 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 [17:54:34]wFMCommunicate OK [17:54:34]SAM_PROTO_GetFieldsCounters done [17:54:34]requested_item shift.num is exist - process it [17:54:34]requested_item shift.opened is exist - process it [17:54:34]req_shift_opened [17:54:34]FM_GetShiftState [17:54:34]SAM_PROTO_GetShiftState [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 13 01 00 [17:54:34]Write to MH i2c: E2 08 00 A7 1A 80 13 01 00 00 00 00 00 3E [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 0E 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 0E 00 A7 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2C [17:54:34]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:54:34]wFMCommunicate OK [17:54:34]SAM_PROTO_GetShiftState done [17:54:34]FM_GetShiftState done [17:54:34]req_shift_opened done [17:54:34]requested_item shift.open_date is exist - process it [17:54:34]req_shift_open_date [17:54:34]req_shift_open_date done [17:54:34]produce_requested_data done [17:54:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187711,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:54:34]process_action_free close_receipt [17:54:34]json_value_free [17:54:34]json_value_free done [17:54:34]process_json_proto returns [17:54:34]Send response to host [17:54:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187711,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:54:34]free response buf [17:54:34]execute_script done [17:54:34]execute_script returns [17:54:34]free content buf [17:54:34]Sock 7.Close socket [17:54:34]Sock 7.Thread stoped [17:54:38]OFD Sender: No OFD packet to send [17:54:41]accept exits with 9 [17:54:41]New connection [17:54:41]New thread 3067481444 created [17:54:41]Thread 3067624804 joined [17:54:41]Waiting for new connection... [17:54:41] Sock 9.Parse request [17:54:41]Sock 9.Check first char [17:54:41]Sock 9.First char is OK [17:54:41]request: POST /json_proto HTTP/1.0 [17:54:41]Method: POST [17:54:41]URL: /json_proto [17:54:41]Method is POST - this is cgi request [17:54:41]url: /json_proto [17:54:41]query_string will be loaded in cgi processing [17:54:41]execute_cgi json_proto POST (null) [17:54:41]execute_cgi path=json_proto method=POST [17:54:41]POST find Content-Length [17:54:41]Host: 172.17.46.131:8080 [17:54:41]Content-Length: 677 [17:54:41]Content-Type: application/json [17:54:41] [17:54:41]POST finish read [17:54:41]Found Content-Length = 677 [17:54:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.220, "sum" : 399.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 399.00, "payments": [ { "type": 0, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:41]execute_script... [17:54: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)412872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.220, "sum" : 399.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 399.00, "payments": [ { "type": 0, "sum" : 399.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:41]POST & json_proto [17:54:41]process_json_proto [17:54:41]json parsed OK: [17:54:41]protocol is kg_v1.0 [17:54:41]action value=close_receipt [17:54:41]process_action close_receipt [17:54:41]cmd_close_receipt [17:54:41]MH_GetDate [17:54:41]Write to MH i2c: F0 00 00 A8 1A B1 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: F0 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: F0 09 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: F0 09 00 A8 1A 00 E2 BD B8 67 7E 41 4F 65 EB [17:54:41]GetLastDocTimeStamp 1740160472 [17:54:41]current date 1740160482 [17:54:41]FM_GetShiftState [17:54:41]SAM_PROTO_GetShiftState [17:54:41]wFMCommunicate request_size=4 [17:54:41]MH_SAM_APDU [17:54:41]CAPDU: 80 13 01 00 [17:54:41]Write to MH i2c: E2 08 00 A9 1A 80 13 01 00 00 00 00 00 40 [17:54:41]Write i2c OK [17:54:41]MH_I2C_Read... [17:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:41]Read from MH i2c: E2 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 0E 00 [17:54:41]MH_I2C_Read... [17:54:41]Read from MH i2c: E2 0E 00 A9 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 2E [17:54:41]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:54:41]wFMCommunicate OK [17:54:41]SAM_PROTO_GetShiftState done [17:54:41]FM_GetShiftState done [17:54:41]opened in 1740098043 [17:54:41]opened+sec_in_day 1740184443 [17:54:41]quantity*price = 39932 [17:54:41]sum+1 = 39933 [17:54:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 399.00 Внесено: 500.00 СДАЧА: 101.00 НСП 1% : 3.53 НДС 12% : 42.41 Наличными: 399.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 206 21.02.2025 17:54 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187712 ФПД: 239601344989508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T175442&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187712&fm=239601344989508&tin=02508201610067®Number=0000000000091857&sum=39900 [17:54:42]StoreToDocumentArchive [17:54:42]shift 649 fd 187712 [17:54:42]save to /storage/0649/doc_00187712 [17:54:42]save last doc name /storage/0649/doc_00187712 to /storage/kkm_last_doc_name [17:54:42]save OK [17:54:42]Clear old archive folders... [17:54:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:42]tlvbuf is 00BE9340 [17:54:42]SAM_PROTO_ClearQueue [17:54:42]wFMCommunicate request_size=4 [17:54:42]MH_SAM_APDU [17:54:42]CAPDU: 80 09 00 00 [17:54:42]Write to MH i2c: E2 08 00 B6 1A 80 09 00 00 00 00 00 00 42 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 03 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 03 00 B6 1A 00 90 00 44 [17:54:42]RAPDU: 90 00 [17:54:42]wFMCommunicate OK [17:54:42]SAM_PROTO_ClearQueue done [17:54:42]KKMCreateOFDPacket [17:54:42]OFDProtocolAddRootSTLVToBuf [17:54:42]FM_MakeSignedData [17:54:42]FM_MakeSignedData [17:54:42]SAM_PROTO_SignData [17:54:42]wFMCommunicate request_size=4 [17:54:42]MH_SAM_APDU [17:54:42]CAPDU: 80 0D 01 02 [17:54:42]Write to MH i2c: E2 08 00 B7 1A 80 0D 01 02 00 00 00 00 4A [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 03 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 03 00 B7 1A 00 90 00 45 [17:54:42]RAPDU: 90 00 [17:54:42]wFMCommunicate OK [17:54:42]wFMCommunicate request_size=255 [17:54:42]MH_SAM_APDU [17:54: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 32 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 FC 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 DC 9B 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 E2 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DD 02 00 35 04 06 00 D9 [17:54:42]Write to MH i2c: E2 02 01 B8 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 FC 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 DC 9B 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 E2 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DD 02 00 35 04 06 00 D9 00 00 7E [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 03 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [17:54:42]RAPDU: 90 00 [17:54:42]wFMCommunicate OK [17:54:42]wFMCommunicate request_size=10 [17:54:42]MH_SAM_APDU [17:54:42]CAPDU: 80 0D 02 02 05 EA 89 0E 49 44 [17:54:42]Write to MH i2c: E2 0D 00 B9 1A 80 0D 02 02 05 00 EA 89 0E 49 44 00 00 65 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 03 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 03 00 B9 1A 00 90 00 47 [17:54:42]RAPDU: 90 00 [17:54:42]wFMCommunicate OK [17:54:42]wFMCommunicate request_size=4 [17:54:42]MH_SAM_APDU [17:54:42]CAPDU: 80 0D 03 02 [17:54:42]Write to MH i2c: E2 08 00 BA 1A 80 0D 03 02 00 00 00 00 4F [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 0B 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 0B 00 BA 1A 00 0D 70 00 8C D8 7F 34 92 90 00 76 [17:54:42]RAPDU: 0D 70 00 8C D8 7F 34 92 90 00 [17:54:42]wFMCommunicate OK [17:54:42]SAM_PROTO_SignData done [17:54:42]FM_MakeSignedData done [17:54:42]CreateOFDProtocolMessage [17:54:42]wFMCommunicate request_size=4 [17:54:42]MH_SAM_APDU [17:54:42]CAPDU: 80 11 00 00 [17:54:42]Write to MH i2c: E2 08 00 BB 1A 80 11 00 00 00 00 00 00 4F [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:42]Read from MH i2c: E2 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 17 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: E2 17 00 BB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [17:54:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:54:42]wFMCommunicate OK [17:54:42]CreateOFDProtocolMessage done [17:54:42]OFDSenderStorePacket 187712 [17:54:42]StoreOFDPacket docnum=187712 [17:54:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7D 5B 07 01 7B CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 FC 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 DC 9B 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 E2 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DD 02 00 35 04 06 00 D9 EA 89 0E 49 44 0D 70 00 8C D8 7F 34 92 [17:54:42]CheckFolder [17:54:42]dirname=/storage/ofd_packets [17:54:42]CheckFolder done [17:54:42]ProducePacketName [17:54:42]name=ofd_packets/00187712 [17:54:42]NVStorageSaveData ofd_packets/00187712 [17:54:42]File name is /storage/ofd_packets/00187712 [17:54:42]Write 301 bytes [17:54:42]NVStorageSaveData done [17:54:42]OFDSenderStorePacket done [17:54:42]KKMCreateOFDPacket done [17:54:42]NVStorageSaveData kkm_last_timestamp [17:54:42]File name is /storage/kkm_last_timestamp [17:54:42]Write 4 bytes [17:54:42]NVStorageSaveData done [17:54:42]ExternCall_PrintAddStr [17:54:42]wPrintStart [17:54:42]Write to MH i2c: 01 00 00 BC 1A D6 [17:54:42]Write i2c OK [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 07 00 [17:54:42]MH_I2C_Read... [17:54:42]Read from MH i2c: 01 07 00 BC 1A 00 00 00 00 00 FF 0F EB [17:54:42]RasterBufferAndPrint [17:54:42]line Счет N : (1)412872 [17:54:42]line ИНН: 02508201610067 [17:54:42]line Контрольно-Кассовый Чек [17:54:42]line ПРОДАЖА [17:54:42]line ТРК (МРК, ГНК) : 32 [17:54:42]line Товар: 2710124130 [17:54:42]line Аи-92-К-2 [17:54:42]line 6.220 * 64.20 [17:54:42]line = 399.32 [17:54:42]line НДС 12% НСП 1% [17:54:42]line > о реализуемом товаре [17:54:42]line ОКРУГЛЕНИЕ: -0.32 [17:54:42]line ИТОГО: 399.00 [17:54:42]line Внесено: 500.00 [17:54:42]line СДАЧА: 101.00 [17:54:42]line НСП 1% : 3.53 [17:54:42]line НДС 12% : 42.41 [17:54:42]line Наличными: 399.00 [17:54:42]line Безнал.: 0.00 [17:54:42]line Место: АЗС № 92 "Партнер Нефть" [17:54:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:54:42]line СНО: Общий режим [17:54:42]line Чек 206 21.02.2025 17:54 [17:54:42]line Смена: 649 ФФД: 1.0 [17:54:42]line ЗНМ: 0300000118 [17:54:42]line РНМ: 0000000000091857 [17:54:42]line Версия ККМ: 001 [17:54:42]line ФМ: 0000000000871826 [17:54:42]line ФД: 187712 [17:54:42]line ФПД: 239601344989508 [17:54:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T175442&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187712&fm=239601344989508&tin=02508201610067®Number=0000000000091857&sum=39900 [17:54:42]written 0, free lines is 4095 [17:54:42]OFD Sender: Processing packet 187712 [packets to send 49, broken 48] [17:54:42]ProducePacketName [17:54:43]name=ofd_packets/00187712 [17:54:43]OFD Sender: To server: pG, [17:54:43]CommunicateWithHost lk.salyk.kg:30040 [17:54:43]ConnectInit lk.salyk.kg [17:54:43]Write to MH i2c: 01 00 00 E7 1A 01 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: 01 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: 01 07 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: 01 07 00 E7 1A 00 00 00 00 00 EC 0C 00 [17:54:43]RasterBufferAndPrint [17:54:43]line [17:54:43]line [17:54:43]line [17:54:43]line [17:54:43]line [17:54:43]written 0, free lines is 3317 [17:54:43]MH_Cut [17:54:43]Write to MH i2c: D1 01 00 EE 1A 01 DA [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: D1 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: D1 01 00 [17:54:43]MH_I2C_Read... [17:54:43]Read from MH i2c: D1 01 00 EE 1A 00 D9 [17:54:43]Write to MH i2c: 01 00 00 EF 1A 09 [17:54:43]Write i2c OK [17:54:43]MH_I2C_Read... [17:54:43]Connected sock=10 [17:54:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7D 5B 07 01 7B CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4C 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 FC 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 10 00 00 00 00 07 04 06 00 DC 9B 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 E2 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DD 02 00 35 04 06 00 D9 EA 89 0E 49 44 0D 70 00 8C D8 7F 34 92 [17:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AD DD 47 00 38 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 38 32 36 10 04 04 00 40 DD 02 00 F4 03 04 00 2F 64 B8 67 B6 04 01 00 00 FC FE DD 39 84 B8 C0 30 [17:54:43]CommunicateWithHost err = 0 [17:54:43]CheckOFDResponse [17:54:43]1017 (14) - 77093643461234 [17:54:43]1041 (16) - 0000000000871826 [17:54:43]1040 (4) - 187712 [17:54:43]1012 (4) - 21.02.2025 11:31 [17:54:43]1206 (1) - 0 [17:54:43]OFD Sender: Remove packet 187712 [17:54:43]ProducePacketName [17:54:43]name=ofd_packets/00187712 [17:54:43]NVStorageDeleteData [17:54:43]*** Cut start [17:54:43]*** Partial cut [17:54:43]*** CUTSNS_PIN = 1 [17:54:43]*** CUTSNS_PIN = 0 [17:54:44]OFD Sender: No OFD packet to send [17:54:44]*** Brake cut motor [17:54:44]Read from MH i2c: 01 [17:54:44]MH_I2C_Read... [17:54:44]*** Stop cut motor [17:54:44]*** Cut end [17:54:44]Read from MH i2c: 01 07 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: 01 07 00 EF 1A 00 00 00 00 00 FF 0F 1E [17:54:44]process_action close_receipt done [17:54:44]requested_data is exist [17:54:44]produce_requested_data [17:54:44]requested_item fm.sn is exist - process it [17:54:44]wFMCommunicate request_size=4 [17:54:44]MH_SAM_APDU [17:54:44]CAPDU: 80 11 00 00 [17:54:44]Write to MH i2c: E2 08 00 F0 1A 80 11 00 00 00 00 00 00 84 [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 17 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 17 00 F0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [17:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:54:44]wFMCommunicate OK [17:54:44]requested_item fd.num is exist - process it [17:54:44]SAM_PROTO_GetFieldsCounters [17:54:44]wFMCommunicate request_size=4 [17:54:44]MH_SAM_APDU [17:54:44]CAPDU: 80 13 00 00 [17:54:44]Write to MH i2c: E2 08 00 F1 1A 80 13 00 00 00 00 00 00 87 [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 62 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 62 00 F1 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 40 DD 02 00 0E 04 04 00 89 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 C1 [17:54:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 40 DD 02 00 0E 04 04 00 89 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 [17:54:44]wFMCommunicate OK [17:54:44]SAM_PROTO_GetFieldsCounters done [17:54:44]requested_item shift.num is exist - process it [17:54:44]requested_item shift.opened is exist - process it [17:54:44]req_shift_opened [17:54:44]FM_GetShiftState [17:54:44]SAM_PROTO_GetShiftState [17:54:44]wFMCommunicate request_size=4 [17:54:44]MH_SAM_APDU [17:54:44]CAPDU: 80 13 01 00 [17:54:44]Write to MH i2c: E2 08 00 F2 1A 80 13 01 00 00 00 00 00 89 [17:54:44]Write i2c OK [17:54:44]MH_I2C_Read... [17:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:44]Read from MH i2c: E2 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 0E 00 [17:54:44]MH_I2C_Read... [17:54:44]Read from MH i2c: E2 0E 00 F2 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 77 [17:54:44]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:54:44]wFMCommunicate OK [17:54:44]SAM_PROTO_GetShiftState done [17:54:44]FM_GetShiftState done [17:54:44]req_shift_opened done [17:54:44]requested_item shift.open_date is exist - process it [17:54:44]req_shift_open_date [17:54:44]req_shift_open_date done [17:54:44]produce_requested_data done [17:54:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187712,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:54:44]process_action_free close_receipt [17:54:44]json_value_free [17:54:44]json_value_free done [17:54:44]process_json_proto returns [17:54:44]Send response to host [17:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187712,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:54:44]free response buf [17:54:44]execute_script done [17:54:44]execute_script returns [17:54:44]free content buf [17:54:44]Sock 9.Close socket [17:54:44]Sock 9.Thread stoped [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:55]accept exits with 7 [17:54:55]New connection [17:54:55]New thread 3067624804 created [17:54:55]Thread 3067481444 joined [17:54:55]Waiting for new connection... [17:54:55] Sock 7.Parse request [17:54:55]Sock 7.Check first char [17:54:55]Sock 7.First char is OK [17:54:55]request: POST /json_proto HTTP/1.0 [17:54:55]Method: POST [17:54:55]URL: /json_proto [17:54:55]Method is POST - this is cgi request [17:54:55]url: /json_proto [17:54:55]query_string will be loaded in cgi processing [17:54:55]execute_cgi json_proto POST (null) [17:54:55]execute_cgi path=json_proto method=POST [17:54:55]POST find Content-Length [17:54:55]Host: 172.17.46.131:8080 [17:54:55]Content-Length: 803 [17:54:55]Content-Type: application/json [17:54:55] [17:54:55]POST finish read [17:54:55]Found Content-Length = 803 [17:54:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:55]execute_script... [17:54: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)412873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:55]POST & json_proto [17:54:55]process_json_proto [17:54:55]json parsed OK: [17:54:55]protocol is kg_v1.0 [17:54:55]action value=close_receipt [17:54:55]process_action close_receipt [17:54:55]cmd_close_receipt [17:54:55]MH_GetDate [17:54:55]Write to MH i2c: F0 00 00 F3 1A FC [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: F0 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: F0 09 00 [17:54:55]MH_I2C_Read... [17:54:55]Read from MH i2c: F0 09 00 F3 1A 00 F1 BD B8 67 7E 41 4F 65 45 [17:54:55]GetLastDocTimeStamp 1740160482 [17:54:55]current date 1740160497 [17:54:55]FM_GetShiftState [17:54:55]SAM_PROTO_GetShiftState [17:54:55]wFMCommunicate request_size=4 [17:54:55]MH_SAM_APDU [17:54:55]CAPDU: 80 13 01 00 [17:54:55]Write to MH i2c: E2 08 00 F4 1A 80 13 01 00 00 00 00 00 8B [17:54:55]Write i2c OK [17:54:55]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0E 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0E 00 F4 1A 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 79 [17:54:56]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:54:56]wFMCommunicate OK [17:54:56]SAM_PROTO_GetShiftState done [17:54:56]FM_GetShiftState done [17:54:56]opened in 1740098043 [17:54:56]opened+sec_in_day 1740184443 [17:54:56]quantity*price = 100023 [17:54:56]sum+1 = 100025 [17:54:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 207 21.02.2025 17:54 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187713 ФПД: 87498601078914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T175457&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187713&fm=87498601078914&tin=02508201610067®Number=0000000000091857&sum=100024 [17:54:57]StoreToDocumentArchive [17:54:57]shift 649 fd 187713 [17:54:57]save to /storage/0649/doc_00187713 [17:54:57]save last doc name /storage/0649/doc_00187713 to /storage/kkm_last_doc_name [17:54:57]save OK [17:54:57]Clear old archive folders... [17:54:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:57]tlvbuf is 00BF1B40 [17:54:57]SAM_PROTO_ClearQueue [17:54:57]wFMCommunicate request_size=4 [17:54:57]MH_SAM_APDU [17:54:57]CAPDU: 80 09 00 00 [17:54:57]Write to MH i2c: E2 08 00 01 1B 80 09 00 00 00 00 00 00 8E [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:57]Read from MH i2c: E2 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 03 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 03 00 01 1B 00 90 00 90 [17:54:57]RAPDU: 90 00 [17:54:57]wFMCommunicate OK [17:54:57]SAM_PROTO_ClearQueue done [17:54:57]KKMCreateOFDPacket [17:54:57]OFDProtocolAddRootSTLVToBuf [17:54:57]FM_MakeSignedData [17:54:57]FM_MakeSignedData [17:54:57]SAM_PROTO_SignData [17:54:57]wFMCommunicate request_size=4 [17:54:57]MH_SAM_APDU [17:54:57]CAPDU: 80 0D 01 02 [17:54:57]Write to MH i2c: E2 08 00 02 1B 80 0D 01 02 00 00 00 00 96 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:57]Read from MH i2c: E2 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 03 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 03 00 02 1B 00 90 00 91 [17:54:57]RAPDU: 90 00 [17:54:57]wFMCommunicate OK [17:54:57]wFMCommunicate request_size=255 [17:54:57]MH_SAM_APDU [17:54:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F1 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DD 02 00 35 04 06 00 4F [17:54:57]Write to MH i2c: E2 02 01 03 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F1 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DD 02 00 35 04 06 00 4F 00 00 59 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 [17:54:57]MH_I2C_Read... [17:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:57]Read from MH i2c: E2 03 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 03 00 03 1B 00 90 00 92 [17:54:57]RAPDU: 90 00 [17:54:57]wFMCommunicate OK [17:54:57]wFMCommunicate request_size=10 [17:54:57]MH_SAM_APDU [17:54:57]CAPDU: 80 0D 02 02 05 94 5B 09 20 82 [17:54:57]Write to MH i2c: E2 0D 00 04 1B 80 0D 02 02 05 00 94 5B 09 20 82 00 00 3D [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:57]Read from MH i2c: E2 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 03 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 03 00 04 1B 00 90 00 93 [17:54:57]RAPDU: 90 00 [17:54:57]wFMCommunicate OK [17:54:57]wFMCommunicate request_size=4 [17:54:57]MH_SAM_APDU [17:54:57]CAPDU: 80 0D 03 02 [17:54:57]Write to MH i2c: E2 08 00 05 1B 80 0D 03 02 00 00 00 00 9B [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:57]Read from MH i2c: E2 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 0B 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 0B 00 05 1B 00 94 19 15 1B 5A B4 94 65 90 00 80 [17:54:57]RAPDU: 94 19 15 1B 5A B4 94 65 90 00 [17:54:57]wFMCommunicate OK [17:54:57]SAM_PROTO_SignData done [17:54:57]FM_MakeSignedData done [17:54:57]CreateOFDProtocolMessage [17:54:57]wFMCommunicate request_size=4 [17:54:57]MH_SAM_APDU [17:54:57]CAPDU: 80 11 00 00 [17:54:57]Write to MH i2c: E2 08 00 06 1B 80 11 00 00 00 00 00 00 9B [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:57]Read from MH i2c: E2 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 17 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: E2 17 00 06 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EE [17:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:54:57]wFMCommunicate OK [17:54:57]CreateOFDProtocolMessage done [17:54:57]OFDSenderStorePacket 187713 [17:54:57]StoreOFDPacket docnum=187713 [17:54:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 3B 07 01 F7 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F1 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DD 02 00 35 04 06 00 4F 94 5B 09 20 82 94 19 15 1B 5A B4 94 65 [17:54:57]CheckFolder [17:54:57]dirname=/storage/ofd_packets [17:54:57]CheckFolder done [17:54:57]ProducePacketName [17:54:57]name=ofd_packets/00187713 [17:54:57]NVStorageSaveData ofd_packets/00187713 [17:54:57]File name is /storage/ofd_packets/00187713 [17:54:57]Write 301 bytes [17:54:57]NVStorageSaveData done [17:54:57]OFDSenderStorePacket done [17:54:57]KKMCreateOFDPacket done [17:54:57]NVStorageSaveData kkm_last_timestamp [17:54:57]File name is /storage/kkm_last_timestamp [17:54:57]Write 4 bytes [17:54:57]NVStorageSaveData done [17:54:57]ExternCall_PrintAddStr [17:54:57]wPrintStart [17:54:57]Write to MH i2c: 01 00 00 07 1B 22 [17:54:57]Write i2c OK [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 07 00 [17:54:57]MH_I2C_Read... [17:54:57]Read from MH i2c: 01 07 00 07 1B 00 00 00 00 00 FF 0F 37 [17:54:57]RasterBufferAndPrint [17:54:57]line Счет N : (1)412873 [17:54:57]line ИНН: 02508201610067 [17:54:57]line Контрольно-Кассовый Чек [17:54:57]line ПРОДАЖА [17:54:57]line ТРК (МРК, ГНК) : 22 [17:54:57]line Товар: 2710124130 [17:54:57]line Аи-92-К-2 [17:54:57]line 15.580 * 64.20 [17:54:57]line = 1000.24 [17:54:57]line НДС 12% НСП 1% [17:54:57]line > о реализуемом товаре [17:54:57]line ИТОГО: 1000.24 [17:54:57]line НСП 1% : 8.85 [17:54:57]line НДС 12% : 106.22 [17:54:57]line Наличными: 0.00 [17:54:57]line Безнал.: 1000.24 [17:54:57]line Место: АЗС № 92 "Партнер Нефть" [17:54:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:54:57]line СНО: Общий режим [17:54:57]line Чек 207 21.02.2025 17:54 [17:54:57]line Смена: 649 ФФД: 1.0 [17:54:57]line ЗНМ: 0300000118 [17:54:57]line РНМ: 0000000000091857 [17:54:57]line Версия ККМ: 001 [17:54:57]line Платежная система: O! деньги [17:54:57]line ФМ: 0000000000871826 [17:54:57]line ФД: 187713 [17:54:57]line ФПД: 87498601078914 [17:54:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T175457&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187713&fm=87498601078914&tin=02508201610067®Number=0000000000091857&sum=100024 [17:54:57]written 0, free lines is 4095 [17:54:57]OFD Sender: Processing packet 187713 [packets to send 49, broken 48] [17:54:57]ProducePacketName [17:54:57]name=ofd_packets/00187713 [17:54:57]OFD Sender: To server: pG, [17:54:57]CommunicateWithHost lk.salyk.kg:30040 [17:54:57]ConnectInit lk.salyk.kg [17:54:58]Connected sock=10 [17:54:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 3B 07 01 F7 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F1 BD B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DD 02 00 35 04 06 00 4F 94 5B 09 20 82 94 19 15 1B 5A B4 94 65 [17:54:58]Write to MH i2c: 01 00 00 31 1B 4C [17:54:58]Write i2c OK [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: 01 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: 01 07 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: 01 07 00 31 1B 00 00 00 00 00 00 0D 60 [17:54:58]RasterBufferAndPrint [17:54:58]line [17:54:58]line [17:54:58]line [17:54:58]line [17:54:58]line [17:54:58]written 0, free lines is 3336 [17:54:58]MH_Cut [17:54:58]Write to MH i2c: D1 01 00 38 1B 01 25 [17:54:58]Write i2c OK [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: D1 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: D1 01 00 [17:54:58]MH_I2C_Read... [17:54:58]Read from MH i2c: D1 01 00 38 1B 00 24 [17:54:58]Write to MH i2c: 01 00 00 39 1B 54 [17:54:58]Write i2c OK [17:54:58]MH_I2C_Read... [17:54:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E5 3C 47 00 99 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DD 02 00 F4 03 04 00 3E 64 B8 67 B6 04 01 00 00 3B 4B A2 E5 47 49 22 CF [17:54:58]CommunicateWithHost err = 0 [17:54:58]CheckOFDResponse [17:54:58]1017 (14) - 77093643461234 [17:54:58]1041 (16) - 0000000000871826 [17:54:58]1040 (4) - 187713 [17:54:58]1012 (4) - 21.02.2025 11:32 [17:54:58]1206 (1) - 0 [17:54:58]OFD Sender: Remove packet 187713 [17:54:58]ProducePacketName [17:54:58]name=ofd_packets/00187713 [17:54:58]NVStorageDeleteData [17:54:58]OFD Sender: No OFD packet to send [17:54:58]*** Cut start [17:54:58]*** Partial cut [17:54:58]*** CUTSNS_PIN = 1 [17:54:58]*** CUTSNS_PIN = 0 [17:54:59]*** Brake cut motor [17:54:59]Read from MH i2c: *** Stop cut motor [17:54:59]*** Cut end [17:54:59]01 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: 01 07 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: 01 07 00 39 1B 00 00 00 00 00 FF 0F 69 [17:54:59]process_action close_receipt done [17:54:59]requested_data is exist [17:54:59]produce_requested_data [17:54:59]requested_item fm.sn is exist - process it [17:54:59]wFMCommunicate request_size=4 [17:54:59]MH_SAM_APDU [17:54:59]CAPDU: 80 11 00 00 [17:54:59]Write to MH i2c: E2 08 00 3A 1B 80 11 00 00 00 00 00 00 CF [17:54:59]Write i2c OK [17:54:59]MH_I2C_Read... [17:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:59]Read from MH i2c: E2 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 17 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 17 00 3A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 22 [17:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:54:59]wFMCommunicate OK [17:54:59]requested_item fd.num is exist - process it [17:54:59]SAM_PROTO_GetFieldsCounters [17:54:59]wFMCommunicate request_size=4 [17:54:59]MH_SAM_APDU [17:54:59]CAPDU: 80 13 00 00 [17:54:59]Write to MH i2c: E2 08 00 3B 1B 80 13 00 00 00 00 00 00 D2 [17:54:59]Write i2c OK [17:54:59]MH_I2C_Read... [17:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:59]Read from MH i2c: E2 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 62 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 62 00 3B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 41 DD 02 00 0E 04 04 00 89 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 10 [17:54:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 41 DD 02 00 0E 04 04 00 89 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 [17:54:59]wFMCommunicate OK [17:54:59]SAM_PROTO_GetFieldsCounters done [17:54:59]requested_item shift.num is exist - process it [17:54:59]requested_item shift.opened is exist - process it [17:54:59]req_shift_opened [17:54:59]FM_GetShiftState [17:54:59]SAM_PROTO_GetShiftState [17:54:59]wFMCommunicate request_size=4 [17:54:59]MH_SAM_APDU [17:54:59]CAPDU: 80 13 01 00 [17:54:59]Write to MH i2c: E2 08 00 3C 1B 80 13 01 00 00 00 00 00 D4 [17:54:59]Write i2c OK [17:54:59]MH_I2C_Read... [17:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:59]Read from MH i2c: E2 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 0E 00 [17:54:59]MH_I2C_Read... [17:54:59]Read from MH i2c: E2 0E 00 3C 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C2 [17:54:59]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [17:54:59]wFMCommunicate OK [17:54:59]SAM_PROTO_GetShiftState done [17:54:59]FM_GetShiftState done [17:54:59]req_shift_opened done [17:54:59]requested_item shift.open_date is exist - process it [17:54:59]req_shift_open_date [17:54:59]req_shift_open_date done [17:54:59]produce_requested_data done [17:54:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187713,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [17:54:59]process_action_free close_receipt [17:54:59]json_value_free [17:54:59]json_value_free done [17:54:59]process_json_proto returns [17:54:59]Send response to host [17:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187713,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [17:54:59]free response buf [17:54:59]execute_script done [17:54:59]execute_script returns [17:54:59]free content buf [17:54:59]Sock 7.Close socket [17:54:59]Sock 7.Thread stoped [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:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:48]accept exits with 9 [18:02:48]New connection [18:02:48]New thread 3067481444 created [18:02:48]Thread 3067624804 joined [18:02:48]Waiting for new connection... [18:02:48] Sock 9.Parse request [18:02:48]Sock 9.Check first char [18:02:48]Sock 9.First char is OK [18:02:48]request: POST /json_proto HTTP/1.0 [18:02:48]Method: POST [18:02:48]URL: /json_proto [18:02:48]Method is POST - this is cgi request [18:02:48]url: /json_proto [18:02:48]query_string will be loaded in cgi processing [18:02:48]execute_cgi json_proto POST (null) [18:02:48]execute_cgi path=json_proto method=POST [18:02:48]POST find Content-Length [18:02:48]Host: 172.17.46.131:8080 [18:02:48]Content-Length: 682 [18:02:48]Content-Type: application/json [18:02:48] [18:02:48]POST finish read [18:02:48]Found Content-Length = 682 [18:02:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:48]execute_script... [18:02: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)412874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:48]POST & json_proto [18:02:48]process_json_proto [18:02:48]json parsed OK: [18:02:48]protocol is kg_v1.0 [18:02:48]action value=close_receipt [18:02:48]process_action close_receipt [18:02:48]cmd_close_receipt [18:02:48]MH_GetDate [18:02:48]Write to MH i2c: F0 00 00 3D 1B 47 [18:02:48]Write i2c OK [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: F0 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: F0 09 00 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: F0 09 00 3D 1B 00 C9 BF B8 67 7E 41 4F 65 6A [18:02:48]GetLastDocTimeStamp 1740160497 [18:02:48]current date 1740160969 [18:02:48]FM_GetShiftState [18:02:48]SAM_PROTO_GetShiftState [18:02:48]wFMCommunicate request_size=4 [18:02:48]MH_SAM_APDU [18:02:48]CAPDU: 80 13 01 00 [18:02:48]Write to MH i2c: E2 08 00 3E 1B 80 13 01 00 00 00 00 00 D6 [18:02:48]Write i2c OK [18:02:48]MH_I2C_Read... [18:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:48]Read from MH i2c: E2 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: E2 0E 00 [18:02:48]MH_I2C_Read... [18:02:48]Read from MH i2c: E2 0E 00 3E 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 C4 [18:02:48]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [18:02:48]wFMCommunicate OK [18:02:48]SAM_PROTO_GetShiftState done [18:02:48]FM_GetShiftState done [18:02:48]opened in 1740098043 [18:02:48]opened+sec_in_day 1740184443 [18:02:48]quantity*price = 100023 [18:02:48]sum+1 = 100025 [18:02:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 208 21.02.2025 18:02 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187714 ФПД: 266091308751361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T180249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187714&fm=266091308751361&tin=02508201610067®Number=0000000000091857&sum=100000 [18:02:49]StoreToDocumentArchive [18:02:49]shift 649 fd 187714 [18:02:49]save to /storage/0649/doc_00187714 [18:02:49]save last doc name /storage/0649/doc_00187714 to /storage/kkm_last_doc_name [18:02:49]save OK [18:02:49]Clear old archive folders... [18:02:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:49]tlvbuf is 00C46850 [18:02:49]SAM_PROTO_ClearQueue [18:02:49]wFMCommunicate request_size=4 [18:02:49]MH_SAM_APDU [18:02:49]CAPDU: 80 09 00 00 [18:02:49]Write to MH i2c: E2 08 00 4B 1B 80 09 00 00 00 00 00 00 D8 [18:02:49]Write i2c OK [18:02:49]MH_I2C_Read... [18:02:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:49]Read from MH i2c: E2 [18:02:49]MH_I2C_Read... [18:02:49]Read from MH i2c: E2 03 00 [18:02:49]MH_I2C_Read... [18:02:49]Read from MH i2c: E2 03 00 4B 1B 00 90 00 DA [18:02:49]RAPDU: 90 00 [18:02:49]wFMCommunicate OK [18:02:49]SAM_PROTO_ClearQueue done [18:02:49]KKMCreateOFDPacket [18:02:49]OFDProtocolAddRootSTLVToBuf [18:02:49]FM_MakeSignedData [18:02:49]FM_MakeSignedData [18:02:49]SAM_PROTO_SignData [18:02:49]wFMCommunicate request_size=4 [18:02:49]MH_SAM_APDU [18:02:49]CAPDU: 80 0D 01 02 [18:02:49]Write to MH i2c: E2 08 00 4C 1B 80 0D 01 02 00 00 00 00 E0 [18:02:49]Write i2c OK [18:02:49]MH_I2C_Read... [18:02:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:49]Read from MH i2c: E2 [18:02:49]MH_I2C_Read... [18:02:49]Read from MH i2c: E2 03 00 [18:02:49]MH_I2C_Read... [18:02:49]Read from MH i2c: E2 03 00 4C 1B 00 90 00 DB [18:02:49]RAPDU: 90 00 [18:02:49]wFMCommunicate OK [18:02:49]wFMCommunicate request_size=255 [18:02:49]MH_SAM_APDU [18:02:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 C9 BF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DD 02 00 35 04 06 00 F2 [18:02:49]Write to MH i2c: E2 02 01 4D 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 C9 BF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DD 02 00 35 04 06 00 F2 00 00 F2 [18:02:49]Write i2c OK [18:02:49]MH_I2C_Read... [18:02:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:49]Read from MH i2c: E2 [18:02:49]MH_I2C_Read... [18:02:49]Read from MH i2c: E2 03 00 [18:02:49]MH_I2C_Read... [18:02:49]Read from MH i2c: E2 03 00 4D 1B 00 90 00 DC [18:02:49]RAPDU: 90 00 [18:02:49]wFMCommunicate OK [18:02:49]wFMCommunicate request_size=10 [18:02:49]MH_SAM_APDU [18:02:49]CAPDU: 80 0D 02 02 05 02 35 EF 9A 01 [18:02:49]Write to MH i2c: E2 0D 00 4E 1B 80 0D 02 02 05 00 02 35 EF 9A 01 00 00 AE [18:02:49]Write i2c OK [18:02:49]MH_I2C_Read... [18:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:50]Read from MH i2c: E2 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: E2 03 00 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: E2 03 00 4E 1B 00 90 00 DD [18:02:50]RAPDU: 90 00 [18:02:50]wFMCommunicate OK [18:02:50]wFMCommunicate request_size=4 [18:02:50]MH_SAM_APDU [18:02:50]CAPDU: 80 0D 03 02 [18:02:50]Write to MH i2c: E2 08 00 4F 1B 80 0D 03 02 00 00 00 00 E5 [18:02:50]Write i2c OK [18:02:50]MH_I2C_Read... [18:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:50]Read from MH i2c: E2 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: E2 0B 00 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: E2 0B 00 4F 1B 00 B0 94 3A 31 24 FF CB CA 90 00 4D [18:02:50]RAPDU: B0 94 3A 31 24 FF CB CA 90 00 [18:02:50]wFMCommunicate OK [18:02:50]SAM_PROTO_SignData done [18:02:50]FM_MakeSignedData done [18:02:50]CreateOFDProtocolMessage [18:02:50]wFMCommunicate request_size=4 [18:02:50]MH_SAM_APDU [18:02:50]CAPDU: 80 11 00 00 [18:02:50]Write to MH i2c: E2 08 00 50 1B 80 11 00 00 00 00 00 00 E5 [18:02:50]Write i2c OK [18:02:50]MH_I2C_Read... [18:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:50]Read from MH i2c: E2 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: E2 17 00 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: E2 17 00 50 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 38 [18:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:02:50]wFMCommunicate OK [18:02:50]CreateOFDProtocolMessage done [18:02:50]OFDSenderStorePacket 187714 [18:02:50]StoreOFDPacket docnum=187714 [18:02:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B6 E8 07 01 28 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 C9 BF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DD 02 00 35 04 06 00 F2 02 35 EF 9A 01 B0 94 3A 31 24 FF CB CA [18:02:50]CheckFolder [18:02:50]dirname=/storage/ofd_packets [18:02:50]CheckFolder done [18:02:50]ProducePacketName [18:02:50]name=ofd_packets/00187714 [18:02:50]NVStorageSaveData ofd_packets/00187714 [18:02:50]File name is /storage/ofd_packets/00187714 [18:02:50]Write 301 bytes [18:02:50]NVStorageSaveData done [18:02:50]OFDSenderStorePacket done [18:02:50]KKMCreateOFDPacket done [18:02:50]NVStorageSaveData kkm_last_timestamp [18:02:50]File name is /storage/kkm_last_timestamp [18:02:50]Write 4 bytes [18:02:50]NVStorageSaveData done [18:02:50]ExternCall_PrintAddStr [18:02:50]wPrintStart [18:02:50]Write to MH i2c: 01 00 00 51 1B 6C [18:02:50]Write i2c OK [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: 01 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: 01 07 00 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: 01 07 00 51 1B 00 00 00 00 00 FF 0F 81 [18:02:50]RasterBufferAndPrint [18:02:50]line Счет N : (1)412874 [18:02:50]line ИНН: 02508201610067 [18:02:50]line Контрольно-Кассовый Чек [18:02:50]line ПРОДАЖА [18:02:50]line ТРК (МРК, ГНК) : 32 [18:02:50]line Товар: 2710124130 [18:02:50]line Аи-92-К-2 [18:02:50]line 15.580 * 64.20 [18:02:50]line = 1000.24 [18:02:50]line НДС 12% НСП 1% [18:02:50]line > о реализуемом товаре [18:02:50]line ОКРУГЛЕНИЕ: -0.24 [18:02:50]line ИТОГО: 1000.00 [18:02:50]line Внесено: 1000.00 [18:02:50]line СДАЧА: 0.00 [18:02:50]line НСП 1% : 8.85 [18:02:50]line НДС 12% : 106.22 [18:02:50]line Наличными: 1000.00 [18:02:50]line Безнал.: 0.00 [18:02:50]line Место: АЗС № 92 "Партнер Нефть" [18:02:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:02:50]line СНО: Общий режим [18:02:50]line Чек 208 21.02.2025 18:02 [18:02:50]line Смена: 649 ФФД: 1.0 [18:02:50]line ЗНМ: 0300000118 [18:02:50]line РНМ: 0000000000091857 [18:02:50]line Версия ККМ: 001 [18:02:50]line ФМ: 0000000000871826 [18:02:50]line ФД: 187714 [18:02:50]line ФПД: 266091308751361 [18:02:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T180249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187714&fm=266091308751361&tin=02508201610067®Number=0000000000091857&sum=100000 [18:02:50]OFD Sender: Processing packet 187714 [packets to send 49, broken 48] [18:02:50]ProducePacketName [18:02:50]name=ofd_packets/00187714 [18:02:50]OFD Sender: To server: pG, [18:02:50]CommunicateWithHost lk.salyk.kg:30040 [18:02:50]ConnectInit lk.salyk.kg [18:02:50]written 0, free lines is 4095 [18:02:50]Connected sock=10 [18:02:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B6 E8 07 01 28 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 C9 BF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DD 02 00 35 04 06 00 F2 02 35 EF 9A 01 B0 94 3A 31 24 FF CB CA [18:02:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 31 B7 47 00 5C F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DD 02 00 F4 03 04 00 16 66 B8 67 B6 04 01 00 00 3B AA 29 E5 58 7E 02 38 [18:02:50]CommunicateWithHost err = 0 [18:02:50]CheckOFDResponse [18:02:50]1017 (14) - 77093643461234 [18:02:50]1041 (16) - 0000000000871826 [18:02:50]1040 (4) - 187714 [18:02:50]1012 (4) - 21.02.2025 11:40 [18:02:50]1206 (1) - 0 [18:02:50]OFD Sender: Remove packet 187714 [18:02:50]ProducePacketName [18:02:50]name=ofd_packets/00187714 [18:02:50]NVStorageDeleteData [18:02:50]Write to MH i2c: 01 00 00 7C 1B 97 [18:02:50]Write i2c OK [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: 01 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: 01 07 00 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: 01 07 00 7C 1B 00 00 00 00 00 ED 0C 97 [18:02:50]RasterBufferAndPrint [18:02:50]line [18:02:50]line [18:02:50]line [18:02:50]line [18:02:50]line [18:02:50]written 0, free lines is 3318 [18:02:50]MH_Cut [18:02:50]Write to MH i2c: D1 01 00 83 1B 01 70 [18:02:50]Write i2c OK [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: D1 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: D1 01 00 [18:02:50]MH_I2C_Read... [18:02:50]Read from MH i2c: D1 01 00 83 1B 00 6F [18:02:50]Write to MH i2c: 01 00 00 84 1B 9F [18:02:50]Write i2c OK [18:02:50]MH_I2C_Read... [18:02:51]OFD Sender: No OFD packet to send [18:02:51]*** Cut start [18:02:51]*** Partial cut [18:02:51]*** CUTSNS_PIN = 1 [18:02:51]*** CUTSNS_PIN = 0 [18:02:51]*** Brake cut motor [18:02:52]Read from MH i2c: 01 [18:02:52]MH_I2C_Read... [18:02:52]*** Stop cut motor [18:02:52]*** Cut end [18:02:52]Read from MH i2c: 01 07 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: 01 07 00 84 1B 00 00 00 00 00 FF 0F B4 [18:02:52]process_action close_receipt done [18:02:52]requested_data is exist [18:02:52]produce_requested_data [18:02:52]requested_item fm.sn is exist - process it [18:02:52]wFMCommunicate request_size=4 [18:02:52]MH_SAM_APDU [18:02:52]CAPDU: 80 11 00 00 [18:02:52]Write to MH i2c: E2 08 00 85 1B 80 11 00 00 00 00 00 00 1A [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:52]Read from MH i2c: E2 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 17 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 17 00 85 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [18:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:02:52]wFMCommunicate OK [18:02:52]requested_item fd.num is exist - process it [18:02:52]SAM_PROTO_GetFieldsCounters [18:02:52]wFMCommunicate request_size=4 [18:02:52]MH_SAM_APDU [18:02:52]CAPDU: 80 13 00 00 [18:02:52]Write to MH i2c: E2 08 00 86 1B 80 13 00 00 00 00 00 00 1D [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:52]Read from MH i2c: E2 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 62 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 62 00 86 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 42 DD 02 00 0E 04 04 00 89 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 5F [18:02:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 42 DD 02 00 0E 04 04 00 89 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 [18:02:52]wFMCommunicate OK [18:02:52]SAM_PROTO_GetFieldsCounters done [18:02:52]requested_item shift.num is exist - process it [18:02:52]requested_item shift.opened is exist - process it [18:02:52]req_shift_opened [18:02:52]FM_GetShiftState [18:02:52]SAM_PROTO_GetShiftState [18:02:52]wFMCommunicate request_size=4 [18:02:52]MH_SAM_APDU [18:02:52]CAPDU: 80 13 01 00 [18:02:52]Write to MH i2c: E2 08 00 87 1B 80 13 01 00 00 00 00 00 1F [18:02:52]Write i2c OK [18:02:52]MH_I2C_Read... [18:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:52]Read from MH i2c: E2 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 0E 00 [18:02:52]MH_I2C_Read... [18:02:52]Read from MH i2c: E2 0E 00 87 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0D [18:02:52]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [18:02:52]wFMCommunicate OK [18:02:52]SAM_PROTO_GetShiftState done [18:02:52]FM_GetShiftState done [18:02:52]req_shift_opened done [18:02:52]requested_item shift.open_date is exist - process it [18:02:52]req_shift_open_date [18:02:52]req_shift_open_date done [18:02:52]produce_requested_data done [18:02:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187714,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [18:02:52]process_action_free close_receipt [18:02:52]json_value_free [18:02:52]json_value_free done [18:02:52]process_json_proto returns [18:02:52]Send response to host [18:02:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187714,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [18:02:52]free response buf [18:02:52]execute_script done [18:02:52]execute_script returns [18:02:52]free content buf [18:02:52]Sock 9.Close socket [18:02:52]Sock 9.Thread stoped [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:03]accept exits with 7 [18:03:03]New connection [18:03:03]New thread 3067624804 created [18:03:03]Thread 3067481444 joined [18:03:03]Waiting for new connection... [18:03:03] Sock 7.Parse request [18:03:03]Sock 7.Check first char [18:03:03]Sock 7.First char is OK [18:03:03]request: POST /json_proto HTTP/1.0 [18:03:03]Method: POST [18:03:03]URL: /json_proto [18:03:03]Method is POST - this is cgi request [18:03:03]url: /json_proto [18:03:03]query_string will be loaded in cgi processing [18:03:03]execute_cgi json_proto POST (null) [18:03:03]execute_cgi path=json_proto method=POST [18:03:03]POST find Content-Length [18:03:03]Host: 172.17.46.131:8080 [18:03:03]Content-Length: 678 [18:03:03]Content-Type: application/json [18:03:03] [18:03:03]POST finish read [18:03:03]Found Content-Length = 678 [18:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:03]execute_script... [18:03:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:03]POST & json_proto [18:03:03]process_json_proto [18:03:03]json parsed OK: [18:03:03]protocol is kg_v1.0 [18:03:03]action value=close_receipt [18:03:03]process_action close_receipt [18:03:03]cmd_close_receipt [18:03:03]MH_GetDate [18:03:03]Write to MH i2c: F0 00 00 88 1B 92 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: F0 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: F0 09 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: F0 09 00 88 1B 00 D8 BF B8 67 7E 41 4F 65 C4 [18:03:03]GetLastDocTimeStamp 1740160969 [18:03:03]current date 1740160984 [18:03:03]FM_GetShiftState [18:03:03]SAM_PROTO_GetShiftState [18:03:03]wFMCommunicate request_size=4 [18:03:03]MH_SAM_APDU [18:03:03]CAPDU: 80 13 01 00 [18:03:03]Write to MH i2c: E2 08 00 89 1B 80 13 01 00 00 00 00 00 21 [18:03:03]Write i2c OK [18:03:03]MH_I2C_Read... [18:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:03]Read from MH i2c: E2 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 0E 00 [18:03:03]MH_I2C_Read... [18:03:03]Read from MH i2c: E2 0E 00 89 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 0F [18:03:03]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [18:03:03]wFMCommunicate OK [18:03:03]SAM_PROTO_GetShiftState done [18:03:03]FM_GetShiftState done [18:03:03]opened in 1740098043 [18:03:03]opened+sec_in_day 1740184443 [18:03:03]quantity*price = 100042 [18:03:03]sum+1 = 100044 [18:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 209 21.02.2025 18:03 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187715 ФПД: 98552810761994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T180304&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187715&fm=98552810761994&tin=02508201610067®Number=0000000000091857&sum=100000 [18:03:04]StoreToDocumentArchive [18:03:04]shift 649 fd 187715 [18:03:04]save to /storage/0649/doc_00187715 [18:03:04]save last doc name /storage/0649/doc_00187715 to /storage/kkm_last_doc_name [18:03:04]save OK [18:03:04]Clear old archive folders... [18:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:03:04]tlvbuf is 00BE53B0 [18:03:04]SAM_PROTO_ClearQueue [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 09 00 00 [18:03:04]Write to MH i2c: E2 08 00 96 1B 80 09 00 00 00 00 00 00 23 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 09 00 00... 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 96 1B 00 90 00 25 [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]SAM_PROTO_ClearQueue done [18:03:04]KKMCreateOFDPacket [18:03:04]OFDProtocolAddRootSTLVToBuf [18:03:04]FM_MakeSignedData [18:03:04]FM_MakeSignedData [18:03:04]SAM_PROTO_SignData [18:03:04]wFMCommunicate request_size=4 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 01 02 [18:03:04]Write to MH i2c: E2 08 00 97 1B 80 0D 01 02 00 00 00 00 2B [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:04]*** iso7816_exchange 80 0D 01 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 97 1B 00 90 00 26 [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]wFMCommunicate request_size=255 [18:03:04]MH_SAM_APDU [18:03: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 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D8 BF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DD 02 00 35 04 06 00 59 A2 1D 46 [18:03:04]Write to MH i2c: E2 02 01 98 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D8 BF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DD 02 00 35 04 06 00 59 A2 1D 46 00 00 61 [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 98 1B 00 90 00 27 [18:03:04]RAPDU: 90 00 [18:03:04]wFMCommunicate OK [18:03:04]wFMCommunicate request_size=7 [18:03:04]MH_SAM_APDU [18:03:04]CAPDU: 80 0D 02 02 02 EF 0A [18:03:04]Write to MH i2c: E2 0A 00 99 1B 80 0D 02 02 02 00 EF 0A 00 00 2B [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 99 1B 00 90 00 28 [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 9A 1B 80 0D 03 02 00 00 00 00 30 [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 9A 1B 00 67 B2 10 F5 3B 46 E0 09 90 00 B9 [18:03:04]RAPDU: 67 B2 10 F5 3B 46 E0 09 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 9B 1B 80 11 00 00 00 00 00 00 30 [18:03:04]Write i2c OK [18:03:04]MH_I2C_Read... [18:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:05]Read from MH i2c: E2 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 17 00 [18:03:05]MH_I2C_Read... [18:03:05]Read from MH i2c: E2 17 00 9B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 83 [18:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:03:05]wFMCommunicate OK [18:03:05]CreateOFDProtocolMessage done [18:03:05]OFDSenderStorePacket 187715 [18:03:05]StoreOFDPacket docnum=187715 [18:03:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 67 42 04 01 84 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D8 BF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DD 02 00 35 04 06 00 59 A2 1D 46 EF 0A 67 B2 10 F5 3B 46 E0 09 [18:03:05]CheckFolder [18:03:05]dirname=/storage/ofd_packets [18:03:05]CheckFolder done [18:03:05]ProducePacketName [18:03:05]name=ofd_packets/00187715 [18:03:05]NVStorageSaveData ofd_packets/00187715 [18:03:05]File name is /storage/ofd_packets/00187715 [18:03:05]Write 298 bytes [18:03:05]NVStorageSaveData done [18:03:05]OFDSenderStorePacket done [18:03:05]KKMCreateOFDPacket done [18:03:05]NVStorageSaveData kkm_last_timestamp [18:03:05]File name is /storage/kkm_last_timestamp [18:03:05]Write 4 bytes [18:03:05]NVStorageSaveData done [18:03:05]ExternCall_PrintAddStr [18:03:05]wPrintStart [18:03:05]Write to MH i2c: 01 00 00 9C 1B B7 [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 9C 1B 00 00 00 00 00 FF 0F CC [18:03:05]RasterBufferAndPrint [18:03:05]line Счет N : (1)412875 [18:03:05]line ИНН: 02508201610067 [18:03:05]line Контрольно-Кассовый Чек [18:03:05]line ПРОДАЖА [18:03:05]line ТРК (МРК, ГНК) : 5 [18:03:05]line Товар: 2710194210 [18:03:05]line ДТ-К-5 [18:03:05]line 13.780 * 72.60 [18:03:05]line = 1000.43 [18:03:05]line НДС 12% НСП 1% [18:03:05]line > о реализуемом товаре [18:03:05]line ОКРУГЛЕНИЕ: -0.43 [18:03:05]line ИТОГО: 1000.00 [18:03:05]line Внесено: 1000.00 [18:03:05]line СДАЧА: 0.00 [18:03:05]line НСП 1% : 8.85 [18:03:05]line НДС 12% : 106.24 [18:03:05]line Наличными: 1000.00 [18:03:05]line Безнал.: 0.00 [18:03:05]line Место: АЗС № 92 "Партнер Нефть" [18:03:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:03:05]line СНО: Общий режим [18:03:05]line Чек 209 21.02.2025 18:03 [18:03:05]line Смена: 649 ФФД: 1.0 [18:03:05]line ЗНМ: 0300000118 [18:03:05]line РНМ: 0000000000091857 [18:03:05]line Версия ККМ: 001 [18:03:05]line ФМ: 0000000000871826 [18:03:05]line ФД: 187715 [18:03:05]line ФПД: 98552810761994 [18:03:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T180304&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187715&fm=98552810761994&tin=02508201610067®Number=0000000000091857&sum=100000 [18:03:05]OFD Sender: Processing packet 187715 [packets to send 49, broken 48] [18:03:05]ProducePacketName [18:03:05]name=ofd_packets/00187715 [18:03:05]OFD Sender: To server: pG, [18:03:05]CommunicateWithHost lk.salyk.kg:30040 [18:03:05]ConnectInit lk.salyk.kg [18:03:05]written 0, free lines is 4095 [18:03:05]Connected sock=10 [18:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 67 42 04 01 84 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D8 BF B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DD 02 00 35 04 06 00 59 A2 1D 46 EF 0A 67 B2 10 F5 3B 46 E0 09 [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 38 32 36 4F 00 00 00 FE 81 47 00 B5 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 DD 02 00 F4 03 04 00 25 66 B8 67 B6 04 01 00 00 FC 80 A3 A7 B4 2F B9 82 [18:03:05]CommunicateWithHost err = 0 [18:03:05]CheckOFDResponse [18:03:05]1017 (14) - 77093643461234 [18:03:05]1041 (16) - 0000000000871826 [18:03:05]1040 (4) - 187715 [18:03:05]1012 (4) - 21.02.2025 11:40 [18:03:05]1206 (1) - 0 [18:03:05]OFD Sender: Remove packet 187715 [18:03:05]ProducePacketName [18:03:05]name=ofd_packets/00187715 [18:03:05]NVStorageDeleteData [18:03:05]Write to MH i2c: 01 00 00 C7 1B E2 [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 C7 1B 00 00 00 00 00 EF 0C E4 [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 3317 [18:03:05]MH_Cut [18:03:05]Write to MH i2c: D1 01 00 CE 1B 01 BB [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 CE 1B 00 BA [18:03:05]Write to MH i2c: 01 00 00 CF 1B EA [18:03:05]Write i2c OK [18:03:05]MH_I2C_Read... [18:03:06]OFD Sender: No OFD packet to send [18:03:06]*** Cut start [18:03:06]*** Partial cut [18:03:06]*** CUTSNS_PIN = 1 [18:03:06]*** CUTSNS_PIN = 0 [18:03:06]*** Brake cut motor [18:03:07]Read from MH i2c: 01 [18:03:07]MH_I2C_Read... [18:03:07]*** Stop cut motor [18:03:07]*** Cut end [18:03:07]Read from MH i2c: 01 07 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: 01 07 00 CF 1B 00 00 00 00 00 FF 0F FF [18:03:07]process_action close_receipt done [18:03:07]requested_data is exist [18:03:07]produce_requested_data [18:03:07]requested_item fm.sn is exist - process it [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 11 00 00 [18:03:07]Write to MH i2c: E2 08 00 D0 1B 80 11 00 00 00 00 00 00 65 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 17 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 17 00 D0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B8 [18:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:03:07]wFMCommunicate OK [18:03:07]requested_item fd.num is exist - process it [18:03:07]SAM_PROTO_GetFieldsCounters [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 13 00 00 [18:03:07]Write to MH i2c: E2 08 00 D1 1B 80 13 00 00 00 00 00 00 68 [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 62 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 62 00 D1 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 43 DD 02 00 0E 04 04 00 89 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 AE [18:03:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 43 DD 02 00 0E 04 04 00 89 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 [18:03:07]wFMCommunicate OK [18:03:07]SAM_PROTO_GetFieldsCounters done [18:03:07]requested_item shift.num is exist - process it [18:03:07]requested_item shift.opened is exist - process it [18:03:07]req_shift_opened [18:03:07]FM_GetShiftState [18:03:07]SAM_PROTO_GetShiftState [18:03:07]wFMCommunicate request_size=4 [18:03:07]MH_SAM_APDU [18:03:07]CAPDU: 80 13 01 00 [18:03:07]Write to MH i2c: E2 08 00 D2 1B 80 13 01 00 00 00 00 00 6A [18:03:07]Write i2c OK [18:03:07]MH_I2C_Read... [18:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:07]Read from MH i2c: E2 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 0E 00 [18:03:07]MH_I2C_Read... [18:03:07]Read from MH i2c: E2 0E 00 D2 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 58 [18:03:07]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [18:03:07]wFMCommunicate OK [18:03:07]SAM_PROTO_GetShiftState done [18:03:07]FM_GetShiftState done [18:03:07]req_shift_opened done [18:03:07]requested_item shift.open_date is exist - process it [18:03:07]req_shift_open_date [18:03:07]req_shift_open_date done [18:03:07]produce_requested_data done [18:03:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187715,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [18:03:07]process_action_free close_receipt [18:03:07]json_value_free [18:03:07]json_value_free done [18:03:07]process_json_proto returns [18:03:07]Send response to host [18:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187715,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [18:03:07]free response buf [18:03:07]execute_script done [18:03:07]execute_script returns [18:03:07]free content buf [18:03:07]Sock 7.Close socket [18:03:07]Sock 7.Thread stoped [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:23]accept exits with 9 [18:06:23]New connection [18:06:23]New thread 3067481444 created [18:06:23]Thread 3067624804 joined [18:06:23]Waiting for new connection... [18:06:23] Sock 9.Parse request [18:06:23]Sock 9.Check first char [18:06:23]Sock 9.First char is OK [18:06:23]request: POST /json_proto HTTP/1.0 [18:06:23]Method: POST [18:06:23]URL: /json_proto [18:06:23]Method is POST - this is cgi request [18:06:23]url: /json_proto [18:06:23]query_string will be loaded in cgi processing [18:06:23]execute_cgi json_proto POST (null) [18:06:23]execute_cgi path=json_proto method=POST [18:06:23]POST find Content-Length [18:06:23]Host: 172.17.46.131:8080 [18:06:23]Content-Length: 677 [18:06:23]Content-Type: application/json [18:06:23] [18:06:23]POST finish read [18:06:23]Found Content-Length = 677 [18:06:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.370, "sum" : 280.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:23]execute_script... [18:06: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)412876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.370, "sum" : 280.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:23]POST & json_proto [18:06:23]process_json_proto [18:06:23]json parsed OK: [18:06:23]protocol is kg_v1.0 [18:06:23]action value=close_receipt [18:06:23]process_action close_receipt [18:06:23]cmd_close_receipt [18:06:23]MH_GetDate [18:06:23]Write to MH i2c: F0 00 00 D3 1B DD [18:06:23]Write i2c OK [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: F0 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: F0 09 00 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: F0 09 00 D3 1B 00 A0 C0 B8 67 7E 41 4F 65 D8 [18:06:23]GetLastDocTimeStamp 1740160984 [18:06:23]current date 1740161184 [18:06:23]FM_GetShiftState [18:06:23]SAM_PROTO_GetShiftState [18:06:23]wFMCommunicate request_size=4 [18:06:23]MH_SAM_APDU [18:06:23]CAPDU: 80 13 01 00 [18:06:23]Write to MH i2c: E2 08 00 D4 1B 80 13 01 00 00 00 00 00 6C [18:06:23]Write i2c OK [18:06:23]MH_I2C_Read... [18:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:23]Read from MH i2c: E2 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 0E 00 [18:06:23]MH_I2C_Read... [18:06:23]Read from MH i2c: E2 0E 00 D4 1B 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 5A [18:06:23]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [18:06:23]wFMCommunicate OK [18:06:23]SAM_PROTO_GetShiftState done [18:06:23]FM_GetShiftState done [18:06:23]opened in 1740098043 [18:06:23]opened+sec_in_day 1740184443 [18:06:23]quantity*price = 28055 [18:06:23]sum+1 = 28056 [18:06:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.79 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 210 21.02.2025 18:06 Смена: 649 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187716 ФПД: 26435540545594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T180624&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187716&fm=26435540545594&tin=02508201610067®Number=0000000000091857&sum=28000 [18:06:24]StoreToDocumentArchive [18:06:24]shift 649 fd 187716 [18:06:24]save to /storage/0649/doc_00187716 [18:06:24]save last doc name /storage/0649/doc_00187716 to /storage/kkm_last_doc_name [18:06:24]save OK [18:06:24]Clear old archive folders... [18:06:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:24]tlvbuf is 00BDECB0 [18:06:24]SAM_PROTO_ClearQueue [18:06:24]wFMCommunicate request_size=4 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 09 00 00 [18:06:24]Write to MH i2c: E2 08 00 E1 1B 80 09 00 00 00 00 00 00 6E [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 03 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 03 00 E1 1B 00 90 00 70 [18:06:24]RAPDU: 90 00 [18:06:24]wFMCommunicate OK [18:06:24]SAM_PROTO_ClearQueue done [18:06:24]KKMCreateOFDPacket [18:06:24]OFDProtocolAddRootSTLVToBuf [18:06:24]FM_MakeSignedData [18:06:24]FM_MakeSignedData [18:06:24]SAM_PROTO_SignData [18:06:24]wFMCommunicate request_size=4 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 0D 01 02 [18:06:24]Write to MH i2c: E2 08 00 E2 1B 80 0D 01 02 00 00 00 00 76 [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 03 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 03 00 E2 1B 00 90 00 71 [18:06:24]RAPDU: 90 00 [18:06:24]wFMCommunicate OK [18:06:24]wFMCommunicate request_size=255 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A0 C0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DD 02 00 35 04 06 00 18 [18:06:24]Write to MH i2c: E2 02 01 E3 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A0 C0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DD 02 00 35 04 06 00 18 00 00 2D [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 03 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 03 00 E3 1B 00 90 00 72 [18:06:24]RAPDU: 90 00 [18:06:24]wFMCommunicate OK [18:06:24]wFMCommunicate request_size=10 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 0D 02 02 05 0B 01 00 F0 3A [18:06:24]Write to MH i2c: E2 0D 00 E4 1B 80 0D 02 02 05 00 0B 01 00 F0 3A 00 00 B9 [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 03 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [18:06:24]RAPDU: 90 00 [18:06:24]wFMCommunicate OK [18:06:24]wFMCommunicate request_size=4 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 0D 03 02 [18:06:24]Write to MH i2c: E2 08 00 E5 1B 80 0D 03 02 00 00 00 00 7B [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 0B 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 0B 00 E5 1B 00 AB DC 4A 1A 8E 28 C4 E5 90 00 C6 [18:06:24]RAPDU: AB DC 4A 1A 8E 28 C4 E5 90 00 [18:06:24]wFMCommunicate OK [18:06:24]SAM_PROTO_SignData done [18:06:24]FM_MakeSignedData done [18:06:24]CreateOFDProtocolMessage [18:06:24]wFMCommunicate request_size=4 [18:06:24]MH_SAM_APDU [18:06:24]CAPDU: 80 11 00 00 [18:06:24]Write to MH i2c: E2 08 00 E6 1B 80 11 00 00 00 00 00 00 7B [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:24]Read from MH i2c: E2 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 17 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: E2 17 00 E6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CE [18:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:06:24]wFMCommunicate OK [18:06:24]CreateOFDProtocolMessage done [18:06:24]OFDSenderStorePacket 187716 [18:06:24]StoreOFDPacket docnum=187716 [18:06:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5B 87 07 01 48 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A0 C0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DD 02 00 35 04 06 00 18 0B 01 00 F0 3A AB DC 4A 1A 8E 28 C4 E5 [18:06:24]CheckFolder [18:06:24]dirname=/storage/ofd_packets [18:06:24]CheckFolder done [18:06:24]ProducePacketName [18:06:24]name=ofd_packets/00187716 [18:06:24]NVStorageSaveData ofd_packets/00187716 [18:06:24]File name is /storage/ofd_packets/00187716 [18:06:24]Write 301 bytes [18:06:24]NVStorageSaveData done [18:06:24]OFDSenderStorePacket done [18:06:24]KKMCreateOFDPacket done [18:06:24]NVStorageSaveData kkm_last_timestamp [18:06:24]File name is /storage/kkm_last_timestamp [18:06:24]Write 4 bytes [18:06:24]NVStorageSaveData done [18:06:24]ExternCall_PrintAddStr [18:06:24]wPrintStart [18:06:24]Write to MH i2c: 01 00 00 E7 1B 02 [18:06:24]Write i2c OK [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: 01 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: 01 07 00 [18:06:24]MH_I2C_Read... [18:06:24]Read from MH i2c: 01 07 00 E7 1B 00 00 00 00 00 FF 0F 17 [18:06:24]RasterBufferAndPrint [18:06:24]line Счет N : (1)412876 [18:06:24]line ИНН: 02508201610067 [18:06:24]line Контрольно-Кассовый Чек [18:06:24]line ПРОДАЖА [18:06:24]line ТРК (МРК, ГНК) : 22 [18:06:24]line Товар: 2710124130 [18:06:24]line Аи-92-К-2 [18:06:24]line 4.370 * 64.20 [18:06:24]line = 280.55 [18:06:24]line НДС 12% НСП 1% [18:06:24]line > о реализуемом товаре [18:06:24]line ОКРУГЛЕНИЕ: -0.55 [18:06:24]line ИТОГО: 280.00 [18:06:24]line Внесено: 280.00 [18:06:24]line СДАЧА: 0.00 [18:06:24]line НСП 1% : 2.48 [18:06:24]line НДС 12% : 29.79 [18:06:24]line Наличными: 280.00 [18:06:24]line Безнал.: 0.00 [18:06:24]line Место: АЗС № 92 "Партнер Нефть" [18:06:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:06:24]line СНО: Общий режим [18:06:24]line Чек 210 21.02.2025 18:06 [18:06:24]line Смена: 649 ФФД: 1.0 [18:06:24]line ЗНМ: 0300000118 [18:06:24]line РНМ: 0000000000091857 [18:06:24]line Версия ККМ: 001 [18:06:24]line ФМ: 0000000000871826 [18:06:24]line ФД: 187716 [18:06:24]line ФПД: 26435540545594 [18:06:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250221T180624&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187716&fm=26435540545594&tin=02508201610067®Number=0000000000091857&sum=28000 [18:06:25]written 0, free lines is 4095 [18:06:25]OFD Sender: Processing packet 187716 [packets to send 49, broken 48] [18:06:25]ProducePacketName [18:06:25]name=ofd_packets/00187716 [18:06:25]OFD Sender: To server: pG, [18:06:25]CommunicateWithHost lk.salyk.kg:30040 [18:06:25]ConnectInit lk.salyk.kg [18:06:25]Connected sock=7 [18:06:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5B 87 07 01 48 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 A0 C0 B8 67 0E 04 04 00 89 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DD 02 00 35 04 06 00 18 0B 01 00 F0 3A AB DC 4A 1A 8E 28 C4 E5 [18:06:25]Write to MH i2c: 01 00 00 12 1C 2E [18:06:25]Write i2c OK [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: 01 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: 01 07 00 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: 01 07 00 12 1C 00 00 00 00 00 EA 0C 2B [18:06:25]RasterBufferAndPrint [18:06:25]line [18:06:25]line [18:06:25]line [18:06:25]line [18:06:25]line [18:06:25]written 0, free lines is 3313 [18:06:25]MH_Cut [18:06:25]Write to MH i2c: D1 01 00 19 1C 01 07 [18:06:25]Write i2c OK [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: D1 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: D1 01 00 [18:06:25]MH_I2C_Read... [18:06:25]Read from MH i2c: D1 01 00 19 1C 00 06 [18:06:25]Write to MH i2c: 01 00 00 1A 1C 36 [18:06:25]Write i2c OK [18:06:25]MH_I2C_Read... [18:06:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BD CB 47 00 20 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 38 32 36 10 04 04 00 44 DD 02 00 F4 03 04 00 ED 66 B8 67 B6 04 01 00 00 FE 0A 94 1E FF 86 BE C5 [18:06:25]CommunicateWithHost err = 0 [18:06:25]CheckOFDResponse [18:06:25]1017 (14) - 77093643461234 [18:06:25]1041 (16) - 0000000000871826 [18:06:25]1040 (4) - 187716 [18:06:25]1012 (4) - 21.02.2025 11:43 [18:06:25]1206 (1) - 0 [18:06:25]OFD Sender: Remove packet 187716 [18:06:25]ProducePacketName [18:06:25]name=ofd_packets/00187716 [18:06:25]NVStorageDeleteData [18:06:26]OFD Sender: No OFD packet to send [18:06:26]*** Cut start [18:06:26]*** Partial cut [18:06:26]*** CUTSNS_PIN = 1 [18:06:26]*** CUTSNS_PIN = 0 [18:06:26]*** Brake cut motor [18:06:27]Read from MH i2c: 01 [18:06:27]MH_I2C_Read... [18:06:27]*** Stop cut motor [18:06:27]*** Cut end [18:06:27]Read from MH i2c: 01 07 00 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: 01 07 00 1A 1C 00 00 00 00 00 FF 0F 4B [18:06:27]process_action close_receipt done [18:06:27]requested_data is exist [18:06:27]produce_requested_data [18:06:27]requested_item fm.sn is exist - process it [18:06:27]wFMCommunicate request_size=4 [18:06:27]MH_SAM_APDU [18:06:27]CAPDU: 80 11 00 00 [18:06:27]Write to MH i2c: E2 08 00 1B 1C 80 11 00 00 00 00 00 00 B1 [18:06:27]Write i2c OK [18:06:27]MH_I2C_Read... [18:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:27]Read from MH i2c: E2 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: E2 17 00 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: E2 17 00 1B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 04 [18:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:06:27]wFMCommunicate OK [18:06:27]requested_item fd.num is exist - process it [18:06:27]SAM_PROTO_GetFieldsCounters [18:06:27]wFMCommunicate request_size=4 [18:06:27]MH_SAM_APDU [18:06:27]CAPDU: 80 13 00 00 [18:06:27]Write to MH i2c: E2 08 00 1C 1C 80 13 00 00 00 00 00 00 B4 [18:06:27]Write i2c OK [18:06:27]MH_I2C_Read... [18:06:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:27]Read from MH i2c: E2 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: E2 62 00 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: E2 62 00 1C 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 44 DD 02 00 0E 04 04 00 89 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 FE [18:06:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 44 DD 02 00 0E 04 04 00 89 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 [18:06:27]wFMCommunicate OK [18:06:27]SAM_PROTO_GetFieldsCounters done [18:06:27]requested_item shift.num is exist - process it [18:06:27]requested_item shift.opened is exist - process it [18:06:27]req_shift_opened [18:06:27]FM_GetShiftState [18:06:27]SAM_PROTO_GetShiftState [18:06:27]wFMCommunicate request_size=4 [18:06:27]MH_SAM_APDU [18:06:27]CAPDU: 80 13 01 00 [18:06:27]Write to MH i2c: E2 08 00 1D 1C 80 13 01 00 00 00 00 00 B6 [18:06:27]Write i2c OK [18:06:27]MH_I2C_Read... [18:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:27]Read from MH i2c: E2 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: E2 0E 00 [18:06:27]MH_I2C_Read... [18:06:27]Read from MH i2c: E2 0E 00 1D 1C 00 09 00 01 FB C9 B7 67 00 00 00 00 90 00 A4 [18:06:27]RAPDU: 09 00 01 FB C9 B7 67 00 00 00 00 90 00 [18:06:27]wFMCommunicate OK [18:06:27]SAM_PROTO_GetShiftState done [18:06:27]FM_GetShiftState done [18:06:27]req_shift_opened done [18:06:27]requested_item shift.open_date is exist - process it [18:06:27]req_shift_open_date [18:06:27]req_shift_open_date done [18:06:27]produce_requested_data done [18:06:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187716,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043} [18:06:27]process_action_free close_receipt [18:06:27]json_value_free [18:06:27]json_value_free done [18:06:27]process_json_proto returns [18:06:27]Send response to host [18:06:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187716,"shift.num":649,"shift.opened":1,"shift.open_date":1740098043}}} [18:06:27]free response buf [18:06:27]execute_script done [18:06:27]execute_script returns [18:06:27]free content buf [18:06:27]Sock 9.Close socket [18:06:27]Sock 9.Thread stoped [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send